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
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
770 ENABLE_BUILD_WITH_CXX
773 valgrind_path_defines
845 program_transform_name
856 ac_subst_files='option_includes
859 enable_option_checking
864 enable_generated_files_in_srcdir
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
899 enable_leading_mingw64_underscores
902 enable_win32_registry
908 enable_gnu_indirect_function
910 enable_gnu_unique_object
911 enable_linker_build_id
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
919 enable_libquadmath_support
920 with_linker_hash_style
922 ac_precious_vars='build_alias
943 # Initialize some variables set by options.
945 ac_init_version=false
946 ac_unrecognized_opts=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval enable_$ac_useropt=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_$ac_useropt"
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval with_$ac_useropt=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405 test "$silent" = yes && exec 6>/dev/null
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1448 ac_srcdir_defaulted=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures this package to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 --target=TARGET configure for building compilers for TARGET [HOST]
1551 if test -n "$ac_init_help"; then
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-generated-files-in-srcdir
1560 put copies of generated files in source dir intended
1561 for creating source tarballs for users without
1562 texinfo bison or flex
1563 --disable-largefile omit support for large files
1564 --enable-werror-always enable -Werror despite compiler version
1565 --enable-checking[=LIST]
1566 enable expensive run-time checks. With LIST, enable
1567 only specific categories of checks. Categories are:
1568 yes,no,all,none,release. Flags are:
1569 assert,df,fold,gc,gcac,gimple,misc,
1570 rtlflag,rtl,runtime,tree,valgrind,types
1571 --enable-coverage[=LEVEL]
1572 enable compiler's code coverage collection. Use to
1573 measure compiler performance and locate unused parts
1574 of the compiler. With LEVEL, specify optimization.
1575 Values are opt, noopt, default is noopt
1576 --enable-gather-detailed-mem-stats
1577 enable detailed memory allocation stats gathering
1578 --enable-build-with-cxx build with C++ compiler instead of C compiler
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-__cxa_atexit enable __cxa_atexit for C++
1581 --enable-decimal-float={no,yes,bid,dpd}
1582 enable decimal float extension to C. Selecting 'bid'
1583 or 'dpd' choses which decimal floating point format
1585 --enable-fixed-point enable fixed-point arithmetic extension to C
1586 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1588 --enable-tls enable or disable generation of tls code overriding
1589 the assembler check for tls support
1590 --enable-objc-gc enable the use of Boehm's garbage collector with the
1591 GNU Objective-C runtime
1592 --disable-shared don't provide a shared libgcc
1593 --enable-languages=LIST specify which front-ends to build
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-initfini-array use .init_array/.fini_array sections
1596 --enable-sjlj-exceptions
1597 arrange to use setjmp/longjmp exception handling
1598 --enable-secureplt enable -msecure-plt by default for PowerPC
1599 --enable-leading-mingw64-underscores
1600 enable leading underscores on 64 bit mingw targets
1601 --enable-cld enable -mcld by default for 32bit x86
1602 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1604 --disable-win32-registry
1605 disable lookup of installation paths in the Registry
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful (and
1627 sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be installed
1630 in a compiler-specific directory
1631 --enable-plugin enable plugin support
1632 --disable-libquadmath-support
1633 disable libquadmath support for Fortran
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-build-libsubdir=DIR Directory where to find libraries for build system
1639 --with-local-prefix=DIR specifies directory to put local include
1640 --with-gxx-include-dir=DIR
1641 specifies directory to put g++ header files
1642 --with-cpp-install-dir=DIR
1643 install the user visible C preprocessor in DIR
1644 (relative to PREFIX) as well as PREFIX/bin
1645 --with-gnu-ld arrange to work with GNU ld
1646 --with-ld arrange to use the specified ld (full pathname)
1647 --with-demangler-in-ld try to use demangler in GNU ld
1648 --with-gnu-as arrange to work with GNU as
1649 --with-as arrange to use the specified as (full pathname)
1650 --with-stabs arrange to use stabs instead of host debug format
1651 --with-dwarf2 force the default debug format to be DWARF 2
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1662 --with-system-libunwind use installed libunwind
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-plugin-ld=[ARG] specify the plugin linker
1667 --with-long-double-128 use 128-bit long double by default
1668 --with-gc={page,zone} choose the garbage collection mechanism to use with
1670 --with-system-zlib use installed libz
1671 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1672 --with-linker-hash-style={sysv,gnu,both}
1673 specify the linker hash style
1675 Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1683 CXX C++ compiler command
1684 CXXFLAGS C++ compiler flags
1686 CXXCPP C++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to find CLOOG include files
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev/null && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1892 ac_fn_c_check_header_mongrel ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1916 ac_header_compiler=no
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1932 ac_header_preproc=no
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1964 eval "$3=\$ac_header_compiler"
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_c_check_header_mongrel
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2008 ac_retval=$ac_status
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_header_compile
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 ac_fn_c_compute_int ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2070 if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid; break
2089 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090 if test $ac_lo -le $ac_mid; then
2094 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) < 0)];
2112 if ac_fn_c_try_compile "$LINENO"; then :
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 if ac_fn_c_try_compile "$LINENO"; then :
2165 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2185 FILE *f = fopen ("conftest.val", "w");
2190 long int i = longval ();
2193 fprintf (f, "%ld", i);
2197 unsigned long int i = ulongval ();
2200 fprintf (f, "%lu", i);
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2210 if ac_fn_c_try_run "$LINENO"; then :
2211 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216 conftest.$ac_objext conftest.beam conftest.$ac_ext
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 } # ac_fn_c_compute_int
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile "$LINENO"; then :
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 } # ac_fn_c_check_type
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 ac_fn_c_find_intX_t ()
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2292 for ac_type in int$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2322 if ac_fn_c_try_compile "$LINENO"; then :
2329 eval "$3=\$ac_type" ;;
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 if test "x$as_val" = x""no; then :
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348 } # ac_fn_c_find_intX_t
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 rm -f conftest.$ac_objext conftest$ac_exeext
2357 if { { ac_try="$ac_link"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 } # ac_fn_c_try_link
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 ac_fn_c_find_uintX_t ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$3=\$ac_type" ;;
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 if test "x$as_val" = x""no; then :
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 } # ac_fn_c_find_uintX_t
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2468 rm -f conftest.err conftest.$ac_ext
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_c_check_header_preproc
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 if test -s conftest.err; then
2493 grep -v '^ *+' conftest.err >conftest.er1
2494 cat conftest.er1 >&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev/null && {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 } # ac_fn_cxx_try_cpp
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2534 rm -f conftest.err conftest.$ac_ext
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_cxx_check_header_preproc
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2566 # include <limits.h>
2568 # include <assert.h>
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2595 if ac_fn_c_try_link "$LINENO"; then :
2600 rm -f core conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 } # ac_fn_c_check_func
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 rm -f conftest.$ac_objext conftest$ac_exeext
2617 if { { ac_try="$ac_link"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2720 ac_must_keep_next=false
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 -* ) ac_must_keep_next=true ;;
2752 as_fn_append ac_configure_args " '$ac_arg'"
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2776 # The following way of writing the cache mishandles newlines in values,
2778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779 eval ac_val=\$$ac_var
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 $as_echo "$ac_var='\''$ac_val'\''"
2824 if test -n "$ac_subst_files"; then
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2831 for ac_var in $ac_subst_files
2833 eval ac_val=\$$ac_var
2835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 $as_echo "$ac_var='\''$ac_val'\''"
2842 if test -s confdefs.h; then
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2938 # Check that the precious variables saved in the cache have kept the same
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x $ac_old_val`
2960 ac_new_val_w=`echo x $ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964 ac_cache_corrupted=:
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013 gcc_version=`cat $srcdir/BASE-VER`
3015 # Determine the host, build, and target systems
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 ac_save_IFS=$IFS; IFS='-'
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 ac_save_IFS=$IFS; IFS='-'
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3148 program_prefix=${target_alias}-
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3169 # Determine the target- and build-specific subdirectories
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 build_libsubdir="$build_subdir"
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3198 target_subdir=${target_noncanonical}
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3228 library_path_setting="ok"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory"
3254 gcc_exec_prefix_setting="ok"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3270 # Specify the local prefix
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 *) local_prefix=$with_local_prefix ;;
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306 if test x${enable_version_specific_runtime_libs} = xyes; then
3307 gcc_gxx_include_dir='${libsubdir}/include/c++'
3309 libstdcxx_incdir='include/c++/$(version)'
3310 if test x$host != x$target; then
3311 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3313 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323 cpp_install_dir=$withval
3328 # We would like to our source tree to be readonly. However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336 # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3340 generated_files_in_srcdir=no
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3347 if test "$generated_files_in_srcdir" = "yes"; then
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3368 # With pre-defined ld
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376 if test ! -x "$DEFAULT_LINKER"; then
3377 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test x"$gnu_ld_flag" = x"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 # With demangler in GNU ld
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463 if test x"$gas_flag" = x"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3488 # Find the native compiler
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3727 if test -z "$CC"; then
3729 for ac_prog in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3771 if test "x$ac_ct_CC" = x; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806 if test -s conftest.err; then
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841 for ac_file in $ac_files
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 if { { ac_try="$ac_link_default"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3866 for ac_file in $ac_files ''
3868 test -f "$ac_file" || continue
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3873 # We found the default executable, but exeext='' is most
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3908 ac_exeext=$ac_cv_exeext
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3929 if test "$cross_compiling" = maybe; then
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4130 if ac_fn_c_try_compile "$LINENO"; then :
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4151 if test "$GCC" = yes; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4162 ac_cv_prog_cc_c89=no
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4184 s = g (p, va_arg (v,int));
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4227 rm -f conftest.$ac_ext
4232 case "x$ac_cv_prog_cc_c89" in
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4319 if { { case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351 rm -f core conftest*
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC="$am_aux_dir/compile $CC"
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4432 test -n "$CXX" && break
4435 if test -z "$CXX"; then
4437 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$ac_ct_CXX" && break
4479 if test "x$ac_ct_CXX" = x; then
4482 case $cross_compiling:$ac_tool_warned in
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4498 for ac_option in --version -v -V -qversion; do
4499 { { ac_try="$ac_compiler $ac_option >&5"
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508 if test -s conftest.err; then
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4628 if test "$GXX" = yes; then
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4720 if test "x$ac_ct_GNATBIND" = x; then
4723 case $cross_compiling:$ac_tool_warned in
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4729 GNATBIND=$ac_ct_GNATBIND
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4812 if test "x$ac_ct_GNATMAKE" = x; then
4815 case $cross_compiling:$ac_tool_warned in
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4821 GNATMAKE=$ac_ct_GNATMAKE
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4864 OUTPUT_OPTION='-o $@'
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4877 # -------------------------
4878 # Check C compiler features
4879 # -------------------------
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4889 # On Suns, sometimes $CPP names a directory.
4890 if test -n "$CPP" && test -d "$CPP"; then
4893 if test -z "$CPP"; then
4894 if test "${ac_cv_prog_CPP+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4897 # Double quotes because CPP needs to be expanded
4898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4901 for ac_c_preproc_warn_flag in '' yes
4903 # Use a header file that comes with gcc, so configuring glibc
4904 # with a fresh cross-compiler works.
4905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906 # <limits.h> exists even on freestanding compilers.
4907 # On the NeXT, cc -E runs the code through the compiler's parser,
4908 # not just through cpp. "Syntax error" is here to catch this case.
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4912 # include <limits.h>
4914 # include <assert.h>
4918 if ac_fn_c_try_cpp "$LINENO"; then :
4921 # Broken: fails on valid input.
4924 rm -f conftest.err conftest.$ac_ext
4926 # OK, works on sane cases. Now check whether nonexistent headers
4927 # can be detected and how.
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #include <ac_nonexistent.h>
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4933 # Broken: success on invalid input.
4936 # Passes both tests.
4940 rm -f conftest.err conftest.$ac_ext
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then :
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4958 $as_echo "$CPP" >&6; }
4960 for ac_c_preproc_warn_flag in '' yes
4962 # Use a header file that comes with gcc, so configuring glibc
4963 # with a fresh cross-compiler works.
4964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965 # <limits.h> exists even on freestanding compilers.
4966 # On the NeXT, cc -E runs the code through the compiler's parser,
4967 # not just through cpp. "Syntax error" is here to catch this case.
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4971 # include <limits.h>
4973 # include <assert.h>
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4980 # Broken: fails on valid input.
4983 rm -f conftest.err conftest.$ac_ext
4985 # OK, works on sane cases. Now check whether nonexistent headers
4986 # can be detected and how.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992 # Broken: success on invalid input.
4995 # Passes both tests.
4999 rm -f conftest.err conftest.$ac_ext
5002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003 rm -f conftest.err conftest.$ac_ext
5004 if $ac_preproc_ok; then :
5007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5009 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." "$LINENO" 5; }
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5021 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5022 if test "${ac_cv_path_GREP+set}" = set; then :
5023 $as_echo_n "(cached) " >&6
5025 if test -z "$GREP"; then
5026 ac_path_GREP_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5032 test -z "$as_dir" && as_dir=.
5033 for ac_prog in grep ggrep; do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5036 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5037 # Check for GNU ac_path_GREP and select it if it is found.
5038 # Check for GNU $ac_path_GREP
5039 case `"$ac_path_GREP" --version 2>&1` in
5041 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5044 $as_echo_n 0123456789 >"conftest.in"
5047 cat "conftest.in" "conftest.in" >"conftest.tmp"
5048 mv "conftest.tmp" "conftest.in"
5049 cp "conftest.in" "conftest.nl"
5050 $as_echo 'GREP' >> "conftest.nl"
5051 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053 as_fn_arith $ac_count + 1 && ac_count=$as_val
5054 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5055 # Best one so far, save it but keep looking for a better one
5056 ac_cv_path_GREP="$ac_path_GREP"
5057 ac_path_GREP_max=$ac_count
5059 # 10*(2^10) chars as input seems more than enough
5060 test $ac_count -gt 10 && break
5062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065 $ac_path_GREP_found && break 3
5070 if test -z "$ac_cv_path_GREP"; then
5071 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5074 ac_cv_path_GREP=$GREP
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5079 $as_echo "$ac_cv_path_GREP" >&6; }
5080 GREP="$ac_cv_path_GREP"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5084 $as_echo_n "checking for egrep... " >&6; }
5085 if test "${ac_cv_path_EGREP+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5088 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5089 then ac_cv_path_EGREP="$GREP -E"
5091 if test -z "$EGREP"; then
5092 ac_path_EGREP_found=false
5093 # Loop through the user's path and test for each of PROGNAME-LIST
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5098 test -z "$as_dir" && as_dir=.
5099 for ac_prog in egrep; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5102 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5103 # Check for GNU ac_path_EGREP and select it if it is found.
5104 # Check for GNU $ac_path_EGREP
5105 case `"$ac_path_EGREP" --version 2>&1` in
5107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5110 $as_echo_n 0123456789 >"conftest.in"
5113 cat "conftest.in" "conftest.in" >"conftest.tmp"
5114 mv "conftest.tmp" "conftest.in"
5115 cp "conftest.in" "conftest.nl"
5116 $as_echo 'EGREP' >> "conftest.nl"
5117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119 as_fn_arith $ac_count + 1 && ac_count=$as_val
5120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5121 # Best one so far, save it but keep looking for a better one
5122 ac_cv_path_EGREP="$ac_path_EGREP"
5123 ac_path_EGREP_max=$ac_count
5125 # 10*(2^10) chars as input seems more than enough
5126 test $ac_count -gt 10 && break
5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131 $ac_path_EGREP_found && break 3
5136 if test -z "$ac_cv_path_EGREP"; then
5137 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5140 ac_cv_path_EGREP=$EGREP
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5146 $as_echo "$ac_cv_path_EGREP" >&6; }
5147 EGREP="$ac_cv_path_EGREP"
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5151 $as_echo_n "checking for ANSI C header files... " >&6; }
5152 if test "${ac_cv_header_stdc+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_cv_header_stdc=yes
5173 ac_cv_header_stdc=no
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 if test $ac_cv_header_stdc = yes; then
5178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5185 $EGREP "memchr" >/dev/null 2>&1; then :
5188 ac_cv_header_stdc=no
5194 if test $ac_cv_header_stdc = yes; then
5195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202 $EGREP "free" >/dev/null 2>&1; then :
5205 ac_cv_header_stdc=no
5211 if test $ac_cv_header_stdc = yes; then
5212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213 if test "$cross_compiling" = yes; then :
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5220 #if ((' ' & 0x0FF) == 0x020)
5221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5224 # define ISLOWER(c) \
5225 (('a' <= (c) && (c) <= 'i') \
5226 || ('j' <= (c) && (c) <= 'r') \
5227 || ('s' <= (c) && (c) <= 'z'))
5228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5236 for (i = 0; i < 256; i++)
5237 if (XOR (islower (i), ISLOWER (i))
5238 || toupper (i) != TOUPPER (i))
5243 if ac_fn_c_try_run "$LINENO"; then :
5246 ac_cv_header_stdc=no
5248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5249 conftest.$ac_objext conftest.beam conftest.$ac_ext
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5255 $as_echo "$ac_cv_header_stdc" >&6; }
5256 if test $ac_cv_header_stdc = yes; then
5258 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5264 inttypes.h stdint.h unistd.h
5266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5269 eval as_val=\$$as_ac_Header
5270 if test "x$as_val" = x""yes; then :
5271 cat >>confdefs.h <<_ACEOF
5272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5281 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5282 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5289 if test "$MINIX" = yes; then
5291 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5294 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5297 $as_echo "#define _MINIX 1" >>confdefs.h
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5303 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5304 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5310 # define __EXTENSIONS__ 1
5311 $ac_includes_default
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321 ac_cv_safe_to_define___extensions__=yes
5323 ac_cv_safe_to_define___extensions__=no
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5328 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5329 test $ac_cv_safe_to_define___extensions__ = yes &&
5330 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5332 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5334 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5336 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5338 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5348 # On Suns, sometimes $CPP names a directory.
5349 if test -n "$CPP" && test -d "$CPP"; then
5352 if test -z "$CPP"; then
5353 if test "${ac_cv_prog_CPP+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5356 # Double quotes because CPP needs to be expanded
5357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5360 for ac_c_preproc_warn_flag in '' yes
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5371 # include <limits.h>
5373 # include <assert.h>
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5380 # Broken: fails on valid input.
5383 rm -f conftest.err conftest.$ac_ext
5385 # OK, works on sane cases. Now check whether nonexistent headers
5386 # can be detected and how.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <ac_nonexistent.h>
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392 # Broken: success on invalid input.
5395 # Passes both tests.
5399 rm -f conftest.err conftest.$ac_ext
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417 $as_echo "$CPP" >&6; }
5419 for ac_c_preproc_warn_flag in '' yes
5421 # Use a header file that comes with gcc, so configuring glibc
5422 # with a fresh cross-compiler works.
5423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424 # <limits.h> exists even on freestanding compilers.
5425 # On the NeXT, cc -E runs the code through the compiler's parser,
5426 # not just through cpp. "Syntax error" is here to catch this case.
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5430 # include <limits.h>
5432 # include <assert.h>
5436 if ac_fn_c_try_cpp "$LINENO"; then :
5439 # Broken: fails on valid input.
5442 rm -f conftest.err conftest.$ac_ext
5444 # OK, works on sane cases. Now check whether nonexistent headers
5445 # can be detected and how.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <ac_nonexistent.h>
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451 # Broken: success on invalid input.
5454 # Passes both tests.
5458 rm -f conftest.err conftest.$ac_ext
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then :
5466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details." "$LINENO" 5; }
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5479 $as_echo_n "checking for inline... " >&6; }
5480 if test "${ac_cv_c_inline+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5484 for ac_kw in inline __inline__ __inline; do
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5489 static $ac_kw foo_t static_foo () {return 0; }
5490 $ac_kw foo_t foo () {return 0; }
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_c_inline=$ac_kw
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 test "$ac_cv_c_inline" != no && break
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5503 $as_echo "$ac_cv_c_inline" >&6; }
5505 case $ac_cv_c_inline in
5508 case $ac_cv_c_inline in
5510 *) ac_val=$ac_cv_c_inline;;
5512 cat >>confdefs.h <<_ACEOF
5514 #define inline $ac_val
5521 # Check whether --enable-largefile was given.
5522 if test "${enable_largefile+set}" = set; then :
5523 enableval=$enable_largefile;
5526 if test "$enable_largefile" != no; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5529 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5530 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5533 ac_cv_sys_largefile_CC=no
5534 if test "$GCC" != yes; then
5537 # IRIX 6.2 and later do not support large files by default,
5538 # so use the C compiler's -n32 option if that helps.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <sys/types.h>
5542 /* Check that off_t can represent 2**63 - 1 correctly.
5543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544 since some C++ compilers masquerading as C compilers
5545 incorrectly reject 9223372036854775807. */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548 && LARGE_OFF_T % 2147483647 == 1)
5558 if ac_fn_c_try_compile "$LINENO"; then :
5561 rm -f core conftest.err conftest.$ac_objext
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 ac_cv_sys_largefile_CC=' -n32'; break
5566 rm -f core conftest.err conftest.$ac_objext
5570 rm -f conftest.$ac_ext
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5574 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5575 if test "$ac_cv_sys_largefile_CC" != no; then
5576 CC=$CC$ac_cv_sys_largefile_CC
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5580 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5581 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <sys/types.h>
5588 /* Check that off_t can represent 2**63 - 1 correctly.
5589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5590 since some C++ compilers masquerading as C compilers
5591 incorrectly reject 9223372036854775807. */
5592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5594 && LARGE_OFF_T % 2147483647 == 1)
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_cv_sys_file_offset_bits=no; break
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #define _FILE_OFFSET_BITS 64
5611 #include <sys/types.h>
5612 /* Check that off_t can represent 2**63 - 1 correctly.
5613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5614 since some C++ compilers masquerading as C compilers
5615 incorrectly reject 9223372036854775807. */
5616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5618 && LARGE_OFF_T % 2147483647 == 1)
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 ac_cv_sys_file_offset_bits=64; break
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 ac_cv_sys_file_offset_bits=unknown
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5637 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5638 case $ac_cv_sys_file_offset_bits in #(
5641 cat >>confdefs.h <<_ACEOF
5642 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5647 if test $ac_cv_sys_file_offset_bits = unknown; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5649 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5650 if test "${ac_cv_sys_large_files+set}" = set; then :
5651 $as_echo_n "(cached) " >&6
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <sys/types.h>
5657 /* Check that off_t can represent 2**63 - 1 correctly.
5658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659 since some C++ compilers masquerading as C compilers
5660 incorrectly reject 9223372036854775807. */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663 && LARGE_OFF_T % 2147483647 == 1)
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 ac_cv_sys_large_files=no; break
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #define _LARGE_FILES 1
5680 #include <sys/types.h>
5681 /* Check that off_t can represent 2**63 - 1 correctly.
5682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5683 since some C++ compilers masquerading as C compilers
5684 incorrectly reject 9223372036854775807. */
5685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5687 && LARGE_OFF_T % 2147483647 == 1)
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_sys_large_files=1; break
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 ac_cv_sys_large_files=unknown
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5706 $as_echo "$ac_cv_sys_large_files" >&6; }
5707 case $ac_cv_sys_large_files in #(
5710 cat >>confdefs.h <<_ACEOF
5711 #define _LARGE_FILES $ac_cv_sys_large_files
5720 # sizeof(char) is 1 by definition.
5721 # The cast to long int works around a bug in the HP C Compiler
5722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5724 # This bug is HP SR number 8606223364.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5726 $as_echo_n "checking size of void *... " >&6; }
5727 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5733 if test "$ac_cv_type_void_p" = yes; then
5734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5736 { as_fn_set_status 77
5737 as_fn_error "cannot compute sizeof (void *)
5738 See \`config.log' for more details." "$LINENO" 5; }; }
5740 ac_cv_sizeof_void_p=0
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5746 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5755 # The cast to long int works around a bug in the HP C Compiler
5756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5758 # This bug is HP SR number 8606223364.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5760 $as_echo_n "checking size of short... " >&6; }
5761 if test "${ac_cv_sizeof_short+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5767 if test "$ac_cv_type_short" = yes; then
5768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5770 { as_fn_set_status 77
5771 as_fn_error "cannot compute sizeof (short)
5772 See \`config.log' for more details." "$LINENO" 5; }; }
5774 ac_cv_sizeof_short=0
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5780 $as_echo "$ac_cv_sizeof_short" >&6; }
5784 cat >>confdefs.h <<_ACEOF
5785 #define SIZEOF_SHORT $ac_cv_sizeof_short
5789 # The cast to long int works around a bug in the HP C Compiler
5790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5792 # This bug is HP SR number 8606223364.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5794 $as_echo_n "checking size of int... " >&6; }
5795 if test "${ac_cv_sizeof_int+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5798 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5801 if test "$ac_cv_type_int" = yes; then
5802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5804 { as_fn_set_status 77
5805 as_fn_error "cannot compute sizeof (int)
5806 See \`config.log' for more details." "$LINENO" 5; }; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5814 $as_echo "$ac_cv_sizeof_int" >&6; }
5818 cat >>confdefs.h <<_ACEOF
5819 #define SIZEOF_INT $ac_cv_sizeof_int
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5828 $as_echo_n "checking size of long... " >&6; }
5829 if test "${ac_cv_sizeof_long+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5835 if test "$ac_cv_type_long" = yes; then
5836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5848 $as_echo "$ac_cv_sizeof_long" >&6; }
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG $ac_cv_sizeof_long
5857 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5858 if test "x$ac_cv_type_long_long" = x""yes; then :
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_LONG_LONG 1
5864 # The cast to long int works around a bug in the HP C Compiler
5865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5867 # This bug is HP SR number 8606223364.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5869 $as_echo_n "checking size of long long... " >&6; }
5870 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5876 if test "$ac_cv_type_long_long" = yes; then
5877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 { as_fn_set_status 77
5880 as_fn_error "cannot compute sizeof (long long)
5881 See \`config.log' for more details." "$LINENO" 5; }; }
5883 ac_cv_sizeof_long_long=0
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5889 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5893 cat >>confdefs.h <<_ACEOF
5894 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5900 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5901 if test "x$ac_cv_type___int64" = x""yes; then :
5903 cat >>confdefs.h <<_ACEOF
5904 #define HAVE___INT64 1
5907 # The cast to long int works around a bug in the HP C Compiler
5908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5910 # This bug is HP SR number 8606223364.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5912 $as_echo_n "checking size of __int64... " >&6; }
5913 if test "${ac_cv_sizeof___int64+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5919 if test "$ac_cv_type___int64" = yes; then
5920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 { as_fn_set_status 77
5923 as_fn_error "cannot compute sizeof (__int64)
5924 See \`config.log' for more details." "$LINENO" 5; }; }
5926 ac_cv_sizeof___int64=0
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5932 $as_echo "$ac_cv_sizeof___int64" >&6; }
5936 cat >>confdefs.h <<_ACEOF
5937 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5943 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5944 case $ac_cv_c_int8_t in #(
5948 cat >>confdefs.h <<_ACEOF
5949 #define int8_t $ac_cv_c_int8_t
5954 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5955 case $ac_cv_c_int16_t in #(
5959 cat >>confdefs.h <<_ACEOF
5960 #define int16_t $ac_cv_c_int16_t
5965 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5966 case $ac_cv_c_int32_t in #(
5970 cat >>confdefs.h <<_ACEOF
5971 #define int32_t $ac_cv_c_int32_t
5976 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5977 case $ac_cv_c_int64_t in #(
5981 cat >>confdefs.h <<_ACEOF
5982 #define int64_t $ac_cv_c_int64_t
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5989 $as_echo_n "checking for long long int... " >&6; }
5990 if test "${ac_cv_type_long_long_int+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5996 /* For now, do not test the preprocessor; as of 2007 there are too many
5997 implementations with broken preprocessors. Perhaps this can
5998 be revisited in 2012. In the meantime, code should not expect
5999 #if to work with literals wider than 32 bits. */
6000 /* Test literals. */
6001 long long int ll = 9223372036854775807ll;
6002 long long int nll = -9223372036854775807LL;
6003 unsigned long long int ull = 18446744073709551615ULL;
6004 /* Test constant expressions. */
6005 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6007 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6013 /* Test availability of runtime routines for shift and division. */
6014 long long int llmax = 9223372036854775807ll;
6015 unsigned long long int ullmax = 18446744073709551615ull;
6016 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6017 | (llmax / ll) | (llmax % ll)
6018 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6019 | (ullmax / ull) | (ullmax % ull));
6025 if ac_fn_c_try_link "$LINENO"; then :
6026 if test "$cross_compiling" = yes; then :
6027 ac_cv_type_long_long_int=yes
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6034 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6035 # define LLONG_MAX (HALF - 1 + HALF)
6040 long long int n = 1;
6044 long long int m = n << i;
6047 if (LLONG_MAX / 2 < m)
6055 if ac_fn_c_try_run "$LINENO"; then :
6056 ac_cv_type_long_long_int=yes
6058 ac_cv_type_long_long_int=no
6060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6061 conftest.$ac_objext conftest.beam conftest.$ac_ext
6065 ac_cv_type_long_long_int=no
6067 rm -f core conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6071 $as_echo "$ac_cv_type_long_long_int" >&6; }
6072 if test $ac_cv_type_long_long_int = yes; then
6074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6080 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6081 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6083 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6086 test $ac_cv_type_long_long_int = yes \
6087 && ac_type='long long int' \
6088 || ac_type='long int'
6090 cat >>confdefs.h <<_ACEOF
6091 #define intmax_t $ac_type
6098 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6099 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6101 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6104 for ac_type in 'int' 'long int' 'long long int'; do
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 $ac_includes_default
6111 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6118 if ac_fn_c_try_compile "$LINENO"; then :
6120 cat >>confdefs.h <<_ACEOF
6121 #define intptr_t $ac_type
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 test -z "$ac_type" && break
6132 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6133 case $ac_cv_c_uint8_t in #(
6137 $as_echo "#define _UINT8_T 1" >>confdefs.h
6140 cat >>confdefs.h <<_ACEOF
6141 #define uint8_t $ac_cv_c_uint8_t
6146 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6147 case $ac_cv_c_uint16_t in #(
6152 cat >>confdefs.h <<_ACEOF
6153 #define uint16_t $ac_cv_c_uint16_t
6158 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6159 case $ac_cv_c_uint32_t in #(
6163 $as_echo "#define _UINT32_T 1" >>confdefs.h
6166 cat >>confdefs.h <<_ACEOF
6167 #define uint32_t $ac_cv_c_uint32_t
6172 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6173 case $ac_cv_c_uint64_t in #(
6177 $as_echo "#define _UINT64_T 1" >>confdefs.h
6180 cat >>confdefs.h <<_ACEOF
6181 #define uint64_t $ac_cv_c_uint64_t
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6188 $as_echo_n "checking for unsigned long long int... " >&6; }
6189 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6195 /* For now, do not test the preprocessor; as of 2007 there are too many
6196 implementations with broken preprocessors. Perhaps this can
6197 be revisited in 2012. In the meantime, code should not expect
6198 #if to work with literals wider than 32 bits. */
6199 /* Test literals. */
6200 long long int ll = 9223372036854775807ll;
6201 long long int nll = -9223372036854775807LL;
6202 unsigned long long int ull = 18446744073709551615ULL;
6203 /* Test constant expressions. */
6204 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6206 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6212 /* Test availability of runtime routines for shift and division. */
6213 long long int llmax = 9223372036854775807ll;
6214 unsigned long long int ullmax = 18446744073709551615ull;
6215 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6216 | (llmax / ll) | (llmax % ll)
6217 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6218 | (ullmax / ull) | (ullmax % ull));
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 ac_cv_type_unsigned_long_long_int=yes
6227 ac_cv_type_unsigned_long_long_int=no
6229 rm -f core conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6233 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6234 if test $ac_cv_type_unsigned_long_long_int = yes; then
6236 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6242 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6243 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6245 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6248 test $ac_cv_type_unsigned_long_long_int = yes \
6249 && ac_type='unsigned long long int' \
6250 || ac_type='unsigned long int'
6252 cat >>confdefs.h <<_ACEOF
6253 #define uintmax_t $ac_type
6260 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6261 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6263 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6266 for ac_type in 'unsigned int' 'unsigned long int' \
6267 'unsigned long long int'; do
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 $ac_includes_default
6274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6281 if ac_fn_c_try_compile "$LINENO"; then :
6283 cat >>confdefs.h <<_ACEOF
6284 #define uintptr_t $ac_type
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 test -z "$ac_type" && break
6308 # ---------------------
6309 # Warnings and checking
6310 # ---------------------
6312 # Check $CC warning features (if it's GCC).
6313 # We want to use -pedantic, but we don't want warnings about
6316 # * overlong strings
6317 # So, we only use -pedantic if we can disable those warnings.
6320 save_CFLAGS="$CFLAGS"
6321 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6322 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327 $as_echo_n "(cached) " >&6
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 eval "$as_acx_Woption=yes"
6344 eval "$as_acx_Woption=no"
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 eval ac_res=\$$as_acx_Woption
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353 loose_warn="$loose_warn${loose_warn:+ }$option"
6356 CFLAGS="$save_CFLAGS"
6359 save_CFLAGS="$CFLAGS"
6360 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6361 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6364 $as_echo_n "checking whether $CC supports $option... " >&6; }
6365 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6366 $as_echo_n "(cached) " >&6
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 eval "$as_acx_Woption=yes"
6383 eval "$as_acx_Woption=no"
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 eval ac_res=\$$as_acx_Woption
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6390 $as_echo "$ac_res" >&6; }
6391 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6392 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6395 CFLAGS="$save_CFLAGS"
6398 save_CFLAGS="$CFLAGS"
6399 for option in -Wmissing-format-attribute; do
6400 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6403 $as_echo_n "checking whether $CC supports $option... " >&6; }
6404 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6405 $as_echo_n "(cached) " >&6
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6419 if ac_fn_c_try_compile "$LINENO"; then :
6420 eval "$as_acx_Woption=yes"
6422 eval "$as_acx_Woption=no"
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 eval ac_res=\$$as_acx_Woption
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6429 $as_echo "$ac_res" >&6; }
6430 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6431 strict_warn="$strict_warn${strict_warn:+ }$option"
6434 CFLAGS="$save_CFLAGS"
6437 save_CFLAGS="$CFLAGS"
6438 for option in -Wold-style-definition -Wc++-compat; do
6439 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6442 $as_echo_n "checking whether $CC supports $option... " >&6; }
6443 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6444 $as_echo_n "(cached) " >&6
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459 eval "$as_acx_Woption=yes"
6461 eval "$as_acx_Woption=no"
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 eval ac_res=\$$as_acx_Woption
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6470 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6473 CFLAGS="$save_CFLAGS"
6475 if test "$GCC" = yes; then :
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6477 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6478 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6481 save_CFLAGS="$CFLAGS"
6482 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6497 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 CFLAGS="$save_CFLAGS"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6503 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6504 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6505 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6510 # Check whether --enable-werror-always was given.
6511 if test "${enable_werror_always+set}" = set; then :
6512 enableval=$enable_werror_always;
6514 enable_werror_always=no
6517 if test $enable_werror_always = yes; then :
6518 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6523 # The above macros do nothing if the compiler is not GCC. However, the
6524 # Makefile has more goo to add other flags, so these variables are used
6525 # to enable warnings only for GCC.
6528 if test "x$GCC" = "xyes"; then
6529 warn_cflags='$(GCC_WARN_CFLAGS)'
6530 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6535 # Enable expensive internal checks
6537 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6541 # Check whether --enable-checking was given.
6542 if test "${enable_checking+set}" = set; then :
6543 enableval=$enable_checking; ac_checking_flags="${enableval}"
6546 # Determine the default checks.
6547 if test x$is_release = x ; then
6548 ac_checking_flags=yes
6550 ac_checking_flags=release
6554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6555 for check in release $ac_checking_flags
6558 # these set all the flags to specific states
6559 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6560 ac_fold_checking= ; ac_gc_checking=1 ;
6561 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6562 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6563 ac_tree_checking=1 ; ac_valgrind_checking= ;
6564 ac_types_checking=1 ;;
6565 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6566 ac_fold_checking= ; ac_gc_checking= ;
6567 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6568 ac_rtlflag_checking= ; ac_runtime_checking= ;
6569 ac_tree_checking= ; ac_valgrind_checking= ;
6570 ac_types_checking= ;;
6571 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6572 ac_fold_checking=1 ; ac_gc_checking=1 ;
6573 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6574 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6575 ac_tree_checking=1 ; ac_valgrind_checking= ;
6576 ac_types_checking=1 ;;
6577 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6578 ac_fold_checking= ; ac_gc_checking= ;
6579 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6580 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6581 ac_tree_checking= ; ac_valgrind_checking= ;
6582 ac_types_checking= ;;
6583 # these enable particular checks
6584 assert) ac_assert_checking=1 ;;
6585 df) ac_df_checking=1 ;;
6586 fold) ac_fold_checking=1 ;;
6587 gc) ac_gc_checking=1 ;;
6588 gcac) ac_gc_always_collect=1 ;;
6589 gimple) ac_gimple_checking=1 ;;
6590 misc) ac_checking=1 ;;
6591 rtl) ac_rtl_checking=1 ;;
6592 rtlflag) ac_rtlflag_checking=1 ;;
6593 runtime) ac_runtime_checking=1 ;;
6594 tree) ac_tree_checking=1 ;;
6595 types) ac_types_checking=1 ;;
6596 valgrind) ac_valgrind_checking=1 ;;
6597 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6603 if test x$ac_checking != x ; then
6605 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6607 nocommon_flag=-fno-common
6610 if test x$ac_df_checking != x ; then
6612 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6615 if test x$ac_assert_checking != x ; then
6617 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6620 if test x$ac_gimple_checking != x ; then
6622 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6626 if test x$ac_runtime_checking != x ; then
6628 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6631 if test x$ac_tree_checking != x ; then
6633 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6635 TREEBROWSER=tree-browser.o
6637 if test x$ac_types_checking != x ; then
6639 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6643 if test x$ac_rtl_checking != x ; then
6645 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6648 if test x$ac_rtlflag_checking != x ; then
6650 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6653 if test x$ac_gc_checking != x ; then
6655 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6658 if test x$ac_gc_always_collect != x ; then
6660 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6663 if test x$ac_fold_checking != x ; then
6665 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6668 valgrind_path_defines=
6671 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6672 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6680 if test x$ac_valgrind_checking != x ; then
6681 # It is certainly possible that there's valgrind but no valgrind.h.
6682 # GCC relies on making annotations so we must have both.
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6684 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 #include <valgrind/memcheck.h>
6688 #ifndef VALGRIND_DISCARD
6689 #error VALGRIND_DISCARD not defined
6692 if ac_fn_c_try_cpp "$LINENO"; then :
6693 gcc_cv_header_valgrind_memcheck_h=yes
6695 gcc_cv_header_valgrind_memcheck_h=no
6697 rm -f conftest.err conftest.$ac_ext
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6699 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6701 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <memcheck.h>
6705 #ifndef VALGRIND_DISCARD
6706 #error VALGRIND_DISCARD not defined
6709 if ac_fn_c_try_cpp "$LINENO"; then :
6710 gcc_cv_header_memcheck_h=yes
6712 gcc_cv_header_memcheck_h=no
6714 rm -f conftest.err conftest.$ac_ext
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6716 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6718 # Prepare PATH_SEPARATOR.
6719 # The user is always right.
6720 if test "${PATH_SEPARATOR+set}" != set; then
6721 echo "#! /bin/sh" >conf$$.sh
6722 echo "exit 0" >>conf$$.sh
6724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6732 # Find out how to test for executable files. Don't use a zero-byte file,
6733 # as systems may use methods other than mode bits to determine executability.
6734 cat >conf$$.file <<_ASEOF
6738 chmod +x conf$$.file
6739 if test -x conf$$.file >/dev/null 2>&1; then
6740 ac_executable_p="test -x"
6742 ac_executable_p="test -f"
6746 # Extract the first word of "valgrind", so it can be a program name with args.
6747 set dummy valgrind; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6753 case "$valgrind_path" in
6755 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6758 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6759 for ac_dir in $PATH; do
6761 test -z "$ac_dir" && ac_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6764 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6765 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6775 valgrind_path="$ac_cv_path_valgrind_path"
6776 if test -n "$valgrind_path"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6778 $as_echo "$valgrind_path" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6784 if test "x$valgrind_path" = "x" \
6785 || (test $have_valgrind_h = no \
6786 && test $gcc_cv_header_memcheck_h = no \
6787 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6788 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6790 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6791 valgrind_command="$valgrind_path -q"
6793 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6795 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6797 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6800 if test $gcc_cv_header_memcheck_h = yes; then
6802 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6809 # Enable code coverage collection
6810 # Check whether --enable-coverage was given.
6811 if test "${enable_coverage+set}" = set; then :
6812 enableval=$enable_coverage; case "${enableval}" in
6814 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6817 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6820 # a.k.a. --disable-coverage
6824 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6833 # Check whether --enable-gather-detailed-mem-stats was given.
6834 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6835 enableval=$enable_gather_detailed_mem_stats;
6837 enable_gather_detailed_mem_stats=no
6840 if test x$enable_gather_detailed_mem_stats = xyes ; then
6842 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6846 # -------------------------------
6847 # Miscenalleous configure options
6848 # -------------------------------
6850 # See if we are building gcc with C++.
6851 # Check whether --enable-build-with-cxx was given.
6852 if test "${enable_build_with_cxx+set}" = set; then :
6853 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6855 ENABLE_BUILD_WITH_CXX=no
6859 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6861 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6867 # Check whether --with-stabs was given.
6868 if test "${with_stabs+set}" = set; then :
6869 withval=$with_stabs; stabs="$with_stabs"
6875 # Determine whether or not multilibs are enabled.
6876 # Check whether --enable-multilib was given.
6877 if test "${enable_multilib+set}" = set; then :
6878 enableval=$enable_multilib;
6885 # Enable __cxa_atexit for C++.
6886 # Check whether --enable-__cxa_atexit was given.
6887 if test "${enable___cxa_atexit+set}" = set; then :
6888 enableval=$enable___cxa_atexit;
6892 # Enable C extension for decimal float if target supports it.
6894 # Check whether --enable-decimal-float was given.
6895 if test "${enable_decimal_float+set}" = set; then :
6896 enableval=$enable_decimal_float;
6897 case $enable_decimal_float in
6898 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6899 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6900 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6906 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6907 i?86*-*-mingw* | x86_64*-*-mingw* | \
6909 enable_decimal_float=yes
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6913 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6914 enable_decimal_float=no
6921 # x86's use BID format instead of DPD
6922 case x$enable_decimal_float in
6925 i?86*-*-* | x86_64*-*-*)
6926 enable_decimal_float=bid
6929 enable_decimal_float=dpd
6932 default_decimal_float=$enable_decimal_float
6935 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6936 # dependency on libdecnumber.
6937 default_decimal_float=dpd
6944 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6946 cat >>confdefs.h <<_ACEOF
6947 #define ENABLE_DECIMAL_FLOAT $dfp
6951 # Use default_decimal_float for dependency.
6952 enable_decimal_float=$default_decimal_float
6954 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6956 cat >>confdefs.h <<_ACEOF
6957 #define ENABLE_DECIMAL_BID_FORMAT $bid
6961 # Enable C extension for fixed-point arithmetic.
6962 # Check whether --enable-fixed-point was given.
6963 if test "${enable_fixed_point+set}" = set; then :
6964 enableval=$enable_fixed_point;
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6972 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6973 enable_fixed_point=no
6976 enable_fixed_point=yes
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6982 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6983 enable_fixed_point=no
6991 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6993 cat >>confdefs.h <<_ACEOF
6994 #define ENABLE_FIXED_POINT $fixedpoint
6999 # Pass with no value to take the default
7000 # Pass with a value to specify a thread package
7001 # Check whether --enable-threads was given.
7002 if test "${enable_threads+set}" = set; then :
7003 enableval=$enable_threads;
7009 # Check whether --enable-tls was given.
7010 if test "${enable_tls+set}" = set; then :
7011 enableval=$enable_tls;
7014 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7015 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7023 # Check whether --enable-objc-gc was given.
7024 if test "${enable_objc_gc+set}" = set; then :
7025 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7036 # Check whether --with-dwarf2 was given.
7037 if test "${with_dwarf2+set}" = set; then :
7038 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7044 # Check whether --enable-shared was given.
7045 if test "${enable_shared+set}" = set; then :
7046 enableval=$enable_shared;
7047 case $enable_shared in
7051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7052 for pkg in $enableval; do
7053 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7068 # Check whether --with-build-sysroot was given.
7069 if test "${with_build_sysroot+set}" = set; then :
7070 withval=$with_build_sysroot;
7075 # Check whether --with-sysroot was given.
7076 if test "${with_sysroot+set}" = set; then :
7077 withval=$with_sysroot;
7078 case ${with_sysroot} in
7079 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7080 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7083 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7084 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7086 if test "x$prefix" = xNONE; then
7087 test_prefix=/usr/local
7091 if test "x$exec_prefix" = xNONE; then
7092 test_exec_prefix=$test_prefix
7094 test_exec_prefix=$exec_prefix
7096 case ${TARGET_SYSTEM_ROOT} in
7097 "${test_prefix}"|"${test_prefix}/"*|\
7098 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7099 '${prefix}'|'${prefix}/'*|\
7100 '${exec_prefix}'|'${exec_prefix}/'*)
7101 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7102 TARGET_SYSTEM_ROOT_DEFINE="$t"
7109 TARGET_SYSTEM_ROOT_DEFINE=
7110 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7119 # Check whether --with-specs was given.
7120 if test "${with_specs+set}" = set; then :
7121 withval=$with_specs; CONFIGURE_SPECS=$withval
7131 # Check whether --with-pkgversion was given.
7132 if test "${with_pkgversion+set}" = set; then :
7133 withval=$with_pkgversion; case "$withval" in
7134 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7136 *) PKGVERSION="($withval) " ;;
7147 # Check whether --with-bugurl was given.
7148 if test "${with_bugurl+set}" = set; then :
7149 withval=$with_bugurl; case "$withval" in
7150 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7153 *) BUGURL="$withval"
7157 BUGURL="http://gcc.gnu.org/bugs.html"
7167 REPORT_BUGS_TO="<$BUGURL>"
7168 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7175 # Sanity check enable_languages in case someone does not run the toplevel
7176 # configure # script.
7177 # Check whether --enable-languages was given.
7178 if test "${enable_languages+set}" = set; then :
7179 enableval=$enable_languages; case ,${enable_languages}, in
7181 # go safe -- we cannot be much sure without the toplevel
7183 # analysis of which target libs are present and usable
7187 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7192 enable_languages=c,${enable_languages}
7201 # Check whether --with-multilib-list was given.
7202 if test "${with_multilib_list+set}" = set; then :
7203 withval=$with_multilib_list; :
7205 with_multilib_list=default
7209 # -------------------------
7210 # Checks for other programs
7211 # -------------------------
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7218 $as_echo_n "(cached) " >&6
7220 cat >conftest.make <<\_ACEOF
7223 @echo '@@@%%%=$(MAKE)=@@@%%%'
7225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7228 eval ac_cv_prog_make_${ac_make}_set=yes;;
7230 eval ac_cv_prog_make_${ac_make}_set=no;;
7234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7236 $as_echo "yes" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 SET_MAKE="MAKE=${MAKE-make}"
7245 # Find some useful tools
7246 for ac_prog in gawk mawk nawk awk
7248 # Extract the first word of "$ac_prog", so it can be a program name with args.
7249 set dummy $ac_prog; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if test "${ac_cv_prog_AWK+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7255 if test -n "$AWK"; then
7256 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_prog_AWK="$ac_prog"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 if test -n "$AWK"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7278 $as_echo "$AWK" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7285 test -n "$AWK" && break
7288 # We need awk to create options.c and options.h.
7289 # Bail out if it's missing.
7291 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7295 $as_echo_n "checking whether ln -s works... " >&6; }
7296 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7299 rm -f conftestdata_t
7300 echo >conftestdata_f
7301 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7303 gcc_cv_prog_LN_S="ln -s"
7305 if ln conftestdata_f conftestdata_t 2>/dev/null
7309 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7311 gcc_cv_prog_LN_S="cp -p"
7317 rm -f conftestdata_f conftestdata_t
7320 LN_S="$gcc_cv_prog_LN_S"
7321 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7323 $as_echo "yes" >&6; }
7325 if test "$gcc_cv_prog_LN_S" = "ln"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7327 $as_echo "no, using ln" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7330 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7335 $as_echo_n "checking whether ln works... " >&6; }
7336 if test "${acx_cv_prog_LN+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7339 rm -f conftestdata_t
7340 echo >conftestdata_f
7341 if ln conftestdata_f conftestdata_t 2>/dev/null
7347 rm -f conftestdata_f conftestdata_t
7350 if test $acx_cv_prog_LN = no; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7353 $as_echo "no, using $LN" >&6; }
7355 LN="$acx_cv_prog_LN"
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7357 $as_echo "yes" >&6; }
7360 if test -n "$ac_tool_prefix"; then
7361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7368 if test -n "$RANLIB"; then
7369 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 RANLIB=$ac_cv_prog_RANLIB
7389 if test -n "$RANLIB"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7391 $as_echo "$RANLIB" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7399 if test -z "$ac_cv_prog_RANLIB"; then
7400 ac_ct_RANLIB=$RANLIB
7401 # Extract the first word of "ranlib", so it can be a program name with args.
7402 set dummy ranlib; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7408 if test -n "$ac_ct_RANLIB"; then
7409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_ac_ct_RANLIB="ranlib"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7429 if test -n "$ac_ct_RANLIB"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7431 $as_echo "$ac_ct_RANLIB" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7437 if test "x$ac_ct_RANLIB" = x; then
7440 case $cross_compiling:$ac_tool_warned in
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7446 RANLIB=$ac_ct_RANLIB
7449 RANLIB="$ac_cv_prog_RANLIB"
7454 # By default, the Darwin ranlib will not treat common symbols as
7455 # definitions when building the archive table of contents. Other
7456 # ranlibs do that; pass an option to the Darwin ranlib that makes
7457 # it behave similarly.
7465 # Find a good install program. We prefer a C program (faster),
7466 # so one script is as good as another. But avoid the broken or
7467 # incompatible versions:
7468 # SysV /etc/install, /usr/sbin/install
7469 # SunOS /usr/etc/install
7470 # IRIX /sbin/install
7472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7474 # ./install, which can be erroneously created by make from ./install.sh.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7476 $as_echo_n "checking for a BSD compatible install... " >&6; }
7477 if test -z "$INSTALL"; then
7478 if test "${ac_cv_path_install+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7481 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7482 for ac_dir in $PATH; do
7483 # Account for people who put trailing slashes in PATH elements.
7485 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7487 # OSF1 and SCO ODT 3.0 have their own names for install.
7488 for ac_prog in ginstall scoinst install; do
7489 if test -f $ac_dir/$ac_prog; then
7490 if test $ac_prog = install &&
7491 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7492 # AIX install. It has an incompatible calling convention.
7493 # OSF/1 installbsd also uses dspmsg, but is usable.
7496 ac_cv_path_install="$ac_dir/$ac_prog -c"
7507 if test "${ac_cv_path_install+set}" = set; then
7508 INSTALL="$ac_cv_path_install"
7510 # As a last resort, use the slow shell script. We don't cache a
7511 # path for INSTALL within a source directory, because that will
7512 # break other packages using the cache if that directory is
7513 # removed, or if the path is relative.
7514 INSTALL="$ac_install_sh"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7518 $as_echo "$INSTALL" >&6; }
7520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7521 # It thinks the first close brace ends the variable substitution.
7522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7527 # See if cmp has --ignore-initial.
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7529 $as_echo_n "checking for cmp's capabilities... " >&6; }
7530 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7535 gcc_cv_prog_cmp_skip=slowcompare
7536 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7537 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7540 gcc_cv_prog_cmp_skip=gnucompare
7543 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7544 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7545 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7548 gcc_cv_prog_cmp_skip=fastcompare
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7556 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7557 make_compare_target=$gcc_cv_prog_cmp_skip
7561 # See if we have the mktemp command.
7562 # Extract the first word of "mktemp", so it can be a program name with args.
7563 set dummy mktemp; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7569 if test -n "$have_mktemp_command"; then
7570 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_prog_have_mktemp_command="yes"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7590 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7591 if test -n "$have_mktemp_command"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7593 $as_echo "$have_mktemp_command" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7601 # See if makeinfo has been installed and is modern enough
7602 # that we can use it.
7604 # Extract the first word of "makeinfo", so it can be a program name with args.
7605 set dummy makeinfo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$MAKEINFO"; then
7612 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_MAKEINFO="makeinfo"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 MAKEINFO=$ac_cv_prog_MAKEINFO
7632 if test -n "$MAKEINFO"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7634 $as_echo "$MAKEINFO" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7641 if test -n "$MAKEINFO"; then
7642 # Found it, now check the version.
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7644 $as_echo_n "checking for modern makeinfo... " >&6; }
7645 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7648 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7649 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7651 case $ac_prog_version in
7652 '') gcc_cv_prog_makeinfo_modern=no;;
7653 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7654 *) gcc_cv_prog_makeinfo_modern=no;;
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7659 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7661 gcc_cv_prog_makeinfo_modern=no
7663 if test $gcc_cv_prog_makeinfo_modern = no; then
7664 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7667 if test $gcc_cv_prog_makeinfo_modern = no; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7669 *** Makeinfo is missing or too old.
7670 *** Info documentation will not be built." >&5
7671 $as_echo "$as_me: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&2;}
7680 # Is pod2man recent enough to regenerate manpages?
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7682 $as_echo_n "checking for recent Pod::Man... " >&6; }
7683 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685 $as_echo "yes" >&6; }
7686 GENERATED_MANPAGES=generated-manpages
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7694 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7699 # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_FLEX+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7706 if test -n "$FLEX"; then
7707 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_prog_FLEX="$ac_prog"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 FLEX=$ac_cv_prog_FLEX
7727 if test -n "$FLEX"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7729 $as_echo "$FLEX" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7736 test -n "$FLEX" && break
7738 test -n "$FLEX" || FLEX="$MISSING flex"
7742 for ac_prog in bison
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_BISON+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$BISON"; then
7752 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_BISON="$ac_prog"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 BISON=$ac_cv_prog_BISON
7772 if test -n "$BISON"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7774 $as_echo "$BISON" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7781 test -n "$BISON" && break
7783 test -n "$BISON" || BISON="$MISSING bison"
7786 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7787 # check for build == host before using them.
7790 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7791 && test -d ../binutils ; then
7792 NM='${objdir}/../binutils/nm-new'
7794 # Extract the first word of "nm", so it can be a program name with args.
7795 set dummy nm; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_NM+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$NM"; then
7802 ac_cv_prog_NM="$NM" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7823 if test -n "$NM"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7825 $as_echo "$NM" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7835 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7836 && test -d ../binutils ; then
7837 AR='${objdir}/../binutils/ar'
7839 # Extract the first word of "ar", so it can be a program name with args.
7840 set dummy ar; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if test "${ac_cv_prog_AR+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 if test -n "$AR"; then
7847 ac_cv_prog_AR="$AR" # Let the user override the test.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7868 if test -n "$AR"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7870 $as_echo "$AR" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7880 # --------------------
7881 # Checks for C headers
7882 # --------------------
7884 # Need to reject headers which give warnings, so that the -Werror bootstrap
7885 # works later. *sigh* This needs to come before all header checks.
7887 ac_c_preproc_warn_flag=yes
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7890 $as_echo_n "checking for ANSI C header files... " >&6; }
7891 if test "${ac_cv_header_stdc+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7909 if ac_fn_c_try_compile "$LINENO"; then :
7910 ac_cv_header_stdc=yes
7912 ac_cv_header_stdc=no
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 if test $ac_cv_header_stdc = yes; then
7917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924 $EGREP "memchr" >/dev/null 2>&1; then :
7927 ac_cv_header_stdc=no
7933 if test $ac_cv_header_stdc = yes; then
7934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7941 $EGREP "free" >/dev/null 2>&1; then :
7944 ac_cv_header_stdc=no
7950 if test $ac_cv_header_stdc = yes; then
7951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7952 if test "$cross_compiling" = yes; then :
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7959 #if ((' ' & 0x0FF) == 0x020)
7960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7963 # define ISLOWER(c) \
7964 (('a' <= (c) && (c) <= 'i') \
7965 || ('j' <= (c) && (c) <= 'r') \
7966 || ('s' <= (c) && (c) <= 'z'))
7967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7975 for (i = 0; i < 256; i++)
7976 if (XOR (islower (i), ISLOWER (i))
7977 || toupper (i) != TOUPPER (i))
7982 if ac_fn_c_try_run "$LINENO"; then :
7985 ac_cv_header_stdc=no
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7988 conftest.$ac_objext conftest.beam conftest.$ac_ext
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7994 $as_echo "$ac_cv_header_stdc" >&6; }
7995 if test $ac_cv_header_stdc = yes; then
7997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8002 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8003 if test "${ac_cv_header_time+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <sys/types.h>
8009 #include <sys/time.h>
8015 if ((struct tm *) 0)
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022 ac_cv_header_time=yes
8024 ac_cv_header_time=no
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8029 $as_echo "$ac_cv_header_time" >&6; }
8030 if test $ac_cv_header_time = yes; then
8032 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8037 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8038 if test "${gcc_cv_header_string+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8044 #include <strings.h>
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054 gcc_cv_header_string=yes
8056 gcc_cv_header_string=no
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8061 $as_echo "$gcc_cv_header_string" >&6; }
8062 if test $gcc_cv_header_string = yes; then
8064 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8069 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8070 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include <sys/types.h>
8076 #include <sys/wait.h>
8078 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8081 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8089 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 ac_cv_header_sys_wait_h=yes
8097 ac_cv_header_sys_wait_h=no
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8102 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8103 if test $ac_cv_header_sys_wait_h = yes; then
8105 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8109 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8110 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8111 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8112 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8115 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8116 eval as_val=\$$as_ac_Header
8117 if test "x$as_val" = x""yes; then :
8118 cat >>confdefs.h <<_ACEOF
8119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8126 # Check for thread headers.
8127 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8128 if test "x$ac_cv_header_thread_h" = x""yes; then :
8134 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8135 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8142 # These tests can't be done till we know if we have limits.h.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8144 $as_echo_n "checking for CHAR_BIT... " >&6; }
8145 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #ifdef HAVE_LIMITS_H
8157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8158 $EGREP "found" >/dev/null 2>&1; then :
8159 gcc_cv_decl_char_bit=yes
8161 gcc_cv_decl_char_bit=no
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8168 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8169 if test $gcc_cv_decl_char_bit = no; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8171 $as_echo_n "checking number of bits in a byte... " >&6; }
8172 if test "${gcc_cv_c_nbby+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8177 while test $i -lt 65; do
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8185 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8186 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 gcc_cv_c_nbby=$i; break
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8202 $as_echo "$gcc_cv_c_nbby" >&6; }
8203 if test $gcc_cv_c_nbby = failed; then
8204 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8207 cat >>confdefs.h <<_ACEOF
8208 #define CHAR_BIT $gcc_cv_c_nbby
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8214 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8215 if test "${ac_cv_c_bigendian+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8218 ac_cv_c_bigendian=unknown
8219 # See if we're dealing with a universal compiler.
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 #ifndef __APPLE_CC__
8223 not a universal capable compiler
8228 if ac_fn_c_try_compile "$LINENO"; then :
8230 # Check for potential -arch flags. It is not universal unless
8231 # there are at least two -arch flags with different values.
8234 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8235 if test -n "$ac_prev"; then
8237 i?86 | x86_64 | ppc | ppc64)
8238 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8241 ac_cv_c_bigendian=universal
8247 elif test "x$ac_word" = "x-arch"; then
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 if test $ac_cv_c_bigendian = unknown; then
8254 # See if sys/param.h defines the BYTE_ORDER macro.
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257 #include <sys/types.h>
8258 #include <sys/param.h>
8263 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8264 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274 # It does; now see whether it defined to BIG_ENDIAN or not.
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277 #include <sys/types.h>
8278 #include <sys/param.h>
8283 #if BYTE_ORDER != BIG_ENDIAN
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292 ac_cv_c_bigendian=yes
8294 ac_cv_c_bigendian=no
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 if test $ac_cv_c_bigendian = unknown; then
8301 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8309 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 # It does; now see whether it defined to _BIG_ENDIAN or not.
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 ac_cv_c_bigendian=yes
8337 ac_cv_c_bigendian=no
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 if test $ac_cv_c_bigendian = unknown; then
8344 # Compile a test program.
8345 if test "$cross_compiling" = yes; then :
8346 # Try to guess by grepping values from an object file.
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 short int ascii_mm[] =
8350 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8351 short int ascii_ii[] =
8352 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8353 int use_ascii (int i) {
8354 return ascii_mm[i] + ascii_ii[i];
8356 short int ebcdic_ii[] =
8357 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8358 short int ebcdic_mm[] =
8359 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8360 int use_ebcdic (int i) {
8361 return ebcdic_mm[i] + ebcdic_ii[i];
8368 return use_ascii (foo) == use_ebcdic (foo);
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8375 ac_cv_c_bigendian=yes
8377 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8378 if test "$ac_cv_c_bigendian" = unknown; then
8379 ac_cv_c_bigendian=no
8381 # finding both strings is unlikely to happen, but who knows?
8382 ac_cv_c_bigendian=unknown
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 $ac_includes_default
8395 /* Are we little or big endian? From Harbison&Steele. */
8399 char c[sizeof (long int)];
8402 return u.c[sizeof (long int) - 1] == 1;
8408 if ac_fn_c_try_run "$LINENO"; then :
8409 ac_cv_c_bigendian=no
8411 ac_cv_c_bigendian=yes
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8414 conftest.$ac_objext conftest.beam conftest.$ac_ext
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8420 $as_echo "$ac_cv_c_bigendian" >&6; }
8421 case $ac_cv_c_bigendian in #(
8423 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8429 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8433 as_fn_error "unknown endianness
8434 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8438 # ----------------------
8439 # Checks for C++ headers
8440 # ----------------------
8443 ac_cpp='$CXXCPP $CPPFLAGS'
8444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8448 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8449 if test -z "$CXXCPP"; then
8450 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8453 # Double quotes because CXXCPP needs to be expanded
8454 for CXXCPP in "$CXX -E" "/lib/cpp"
8457 for ac_cxx_preproc_warn_flag in '' yes
8459 # Use a header file that comes with gcc, so configuring glibc
8460 # with a fresh cross-compiler works.
8461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462 # <limits.h> exists even on freestanding compilers.
8463 # On the NeXT, cc -E runs the code through the compiler's parser,
8464 # not just through cpp. "Syntax error" is here to catch this case.
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8468 # include <limits.h>
8470 # include <assert.h>
8474 if ac_fn_cxx_try_cpp "$LINENO"; then :
8477 # Broken: fails on valid input.
8480 rm -f conftest.err conftest.$ac_ext
8482 # OK, works on sane cases. Now check whether nonexistent headers
8483 # can be detected and how.
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 #include <ac_nonexistent.h>
8488 if ac_fn_cxx_try_cpp "$LINENO"; then :
8489 # Broken: success on invalid input.
8492 # Passes both tests.
8496 rm -f conftest.err conftest.$ac_ext
8499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8500 rm -f conftest.err conftest.$ac_ext
8501 if $ac_preproc_ok; then :
8506 ac_cv_prog_CXXCPP=$CXXCPP
8509 CXXCPP=$ac_cv_prog_CXXCPP
8511 ac_cv_prog_CXXCPP=$CXXCPP
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8514 $as_echo "$CXXCPP" >&6; }
8516 for ac_cxx_preproc_warn_flag in '' yes
8518 # Use a header file that comes with gcc, so configuring glibc
8519 # with a fresh cross-compiler works.
8520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8521 # <limits.h> exists even on freestanding compilers.
8522 # On the NeXT, cc -E runs the code through the compiler's parser,
8523 # not just through cpp. "Syntax error" is here to catch this case.
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8527 # include <limits.h>
8529 # include <assert.h>
8533 if ac_fn_cxx_try_cpp "$LINENO"; then :
8536 # Broken: fails on valid input.
8539 rm -f conftest.err conftest.$ac_ext
8541 # OK, works on sane cases. Now check whether nonexistent headers
8542 # can be detected and how.
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <ac_nonexistent.h>
8547 if ac_fn_cxx_try_cpp "$LINENO"; then :
8548 # Broken: success on invalid input.
8551 # Passes both tests.
8555 rm -f conftest.err conftest.$ac_ext
8558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8559 rm -f conftest.err conftest.$ac_ext
8560 if $ac_preproc_ok; then :
8563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8566 See \`config.log' for more details." >&5
8567 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8568 See \`config.log' for more details." >&2;}; }
8572 ac_cpp='$CPP $CPPFLAGS'
8573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8587 for ac_header in unordered_map
8589 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8590 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_UNORDERED_MAP 1
8598 for ac_header in tr1/unordered_map
8600 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8601 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8602 cat >>confdefs.h <<_ACEOF
8603 #define HAVE_TR1_UNORDERED_MAP 1
8609 for ac_header in ext/hash_map
8611 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8612 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8613 cat >>confdefs.h <<_ACEOF
8614 #define HAVE_EXT_HASH_MAP 1
8622 ac_cpp='$CPP $CPPFLAGS'
8623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633 # These libraries may be used by collect2.
8634 # We may need a special search path to get them linked.
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8636 $as_echo_n "checking for collect2 libraries... " >&6; }
8637 if test "${gcc_cv_collect2_libs+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8641 for libs in '' -lld -lmld \
8642 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8643 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8649 /* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8664 if ac_fn_c_try_link "$LINENO"; then :
8665 gcc_cv_collect2_libs="$libs"; break
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8674 $as_echo "$gcc_cv_collect2_libs" >&6; }
8675 case $gcc_cv_collect2_libs in
8677 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8681 # When building Ada code on Alpha, we need exc_resume which is usually in
8682 # -lexc. So test for it.
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8686 $as_echo_n "checking for library containing exc_resume... " >&6; }
8687 if test "${ac_cv_search_exc_resume+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8690 ac_func_search_save_LIBS=$LIBS
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8694 /* Override any GCC internal prototype to avoid an error.
8695 Use char because int might match the return type of a GCC
8696 builtin and then its argument prototype would still apply. */
8704 return exc_resume ();
8709 for ac_lib in '' exc; do
8710 if test -z "$ac_lib"; then
8711 ac_res="none required"
8714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8716 if ac_fn_c_try_link "$LINENO"; then :
8717 ac_cv_search_exc_resume=$ac_res
8719 rm -f core conftest.err conftest.$ac_objext \
8721 if test "${ac_cv_search_exc_resume+set}" = set; then :
8725 if test "${ac_cv_search_exc_resume+set}" = set; then :
8728 ac_cv_search_exc_resume=no
8731 LIBS=$ac_func_search_save_LIBS
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8734 $as_echo "$ac_cv_search_exc_resume" >&6; }
8735 ac_res=$ac_cv_search_exc_resume
8736 if test "$ac_res" != no; then :
8737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8745 # Some systems put ldexp and frexp in libm instead of libc; assume
8746 # they're both in the same place. jcf-dump needs them.
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8750 $as_echo_n "checking for library containing ldexp... " >&6; }
8751 if test "${ac_cv_search_ldexp+set}" = set; then :
8752 $as_echo_n "(cached) " >&6
8754 ac_func_search_save_LIBS=$LIBS
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8758 /* Override any GCC internal prototype to avoid an error.
8759 Use char because int might match the return type of a GCC
8760 builtin and then its argument prototype would still apply. */
8773 for ac_lib in '' m; do
8774 if test -z "$ac_lib"; then
8775 ac_res="none required"
8778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 ac_cv_search_ldexp=$ac_res
8783 rm -f core conftest.err conftest.$ac_objext \
8785 if test "${ac_cv_search_ldexp+set}" = set; then :
8789 if test "${ac_cv_search_ldexp+set}" = set; then :
8792 ac_cv_search_ldexp=no
8795 LIBS=$ac_func_search_save_LIBS
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8798 $as_echo "$ac_cv_search_ldexp" >&6; }
8799 ac_res=$ac_cv_search_ldexp
8800 if test "$ac_res" != no; then :
8801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8809 # Use <inttypes.h> only if it exists,
8810 # doesn't clash with <sys/types.h>, and declares intmax_t.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8812 $as_echo_n "checking for inttypes.h... " >&6; }
8813 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 #include <sys/types.h>
8819 #include <inttypes.h>
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 gcc_cv_header_inttypes_h=yes
8831 gcc_cv_header_inttypes_h=no
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8837 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8838 if test $gcc_cv_header_inttypes_h = yes; then
8840 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8846 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8847 sysconf strsignal getrusage nl_langinfo \
8848 gettimeofday mbstowcs wcswidth mmap setlocale \
8849 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
8851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8853 eval as_val=\$$as_ac_var
8854 if test "x$as_val" = x""yes; then :
8855 cat >>confdefs.h <<_ACEOF
8856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8863 if test x$ac_cv_func_mbstowcs = xyes; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8865 $as_echo_n "checking whether mbstowcs works... " >&6; }
8866 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8869 if test "$cross_compiling" = yes; then :
8870 gcc_cv_func_mbstowcs_works=yes
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8881 if ac_fn_c_try_run "$LINENO"; then :
8882 gcc_cv_func_mbstowcs_works=yes
8884 gcc_cv_func_mbstowcs_works=no
8886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8887 conftest.$ac_objext conftest.beam conftest.$ac_ext
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8892 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8893 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8895 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8900 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8901 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8905 cat >>confdefs.h <<_ACEOF
8911 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8912 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8916 cat >>confdefs.h <<_ACEOF
8917 #define caddr_t char *
8924 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8925 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8926 gcc_header_sys_mman_h=yes
8928 gcc_header_sys_mman_h=no
8931 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8932 if test "x$ac_cv_func_mmap" = x""yes; then :
8938 if test "$gcc_header_sys_mman_h" != yes \
8939 || test "$gcc_func_mmap" != yes; then
8940 gcc_cv_func_mmap_file=no
8941 gcc_cv_func_mmap_dev_zero=no
8942 gcc_cv_func_mmap_anon=no
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8945 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8946 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8947 $as_echo_n "(cached) " >&6
8949 # Add a system to this blacklist if
8950 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8951 # memory area containing the same data that you'd get if you applied
8952 # read() to the same fd. The only system known to have a problem here
8953 # is VMS, where text files have record structure.
8956 gcc_cv_func_mmap_file=no ;;
8958 gcc_cv_func_mmap_file=yes;;
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8962 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8964 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8965 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8968 # Add a system to this blacklist if it has mmap() but /dev/zero
8969 # does not exist, or if mmapping /dev/zero does not give anonymous
8970 # zeroed pages with both the following properties:
8971 # 1. If you map N consecutive pages in with one call, and then
8972 # unmap any subset of those pages, the pages that were not
8973 # explicitly unmapped remain accessible.
8974 # 2. If you map two adjacent blocks of memory and then unmap them
8975 # both at once, they must both go away.
8976 # Systems known to be in this category are Windows (all variants),
8979 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8980 gcc_cv_func_mmap_dev_zero=no ;;
8982 gcc_cv_func_mmap_dev_zero=yes;;
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8986 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8988 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8990 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8991 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 #include <sys/types.h>
8997 #include <sys/mman.h>
9000 #ifndef MAP_ANONYMOUS
9001 #define MAP_ANONYMOUS MAP_ANON
9007 int n = MAP_ANONYMOUS;
9012 if ac_fn_c_try_compile "$LINENO"; then :
9013 gcc_cv_decl_map_anon=yes
9015 gcc_cv_decl_map_anon=no
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9020 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9022 if test $gcc_cv_decl_map_anon = no; then
9023 gcc_cv_func_mmap_anon=no
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9026 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9027 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9030 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9031 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9032 # doesn't give anonymous zeroed pages with the same properties listed
9033 # above for use of /dev/zero.
9034 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9036 vms* | cygwin* | pe | mingw* | sco* | udk* )
9037 gcc_cv_func_mmap_anon=no ;;
9039 gcc_cv_func_mmap_anon=yes;;
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9043 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9047 if test $gcc_cv_func_mmap_file = yes; then
9049 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9052 if test $gcc_cv_func_mmap_dev_zero = yes; then
9054 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9057 if test $gcc_cv_func_mmap_anon = yes; then
9059 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9066 # Under VMS, vfork works very differently than on Unix. The standard test
9067 # won't work, and it isn't easily adaptable. It makes more sense to
9069 ac_cv_func_vfork_works=yes
9072 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9073 if test "x$ac_cv_type_pid_t" = x""yes; then :
9077 cat >>confdefs.h <<_ACEOF
9083 for ac_header in vfork.h
9085 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9086 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9087 cat >>confdefs.h <<_ACEOF
9088 #define HAVE_VFORK_H 1
9094 for ac_func in fork vfork
9096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9098 eval as_val=\$$as_ac_var
9099 if test "x$as_val" = x""yes; then :
9100 cat >>confdefs.h <<_ACEOF
9101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9107 if test "x$ac_cv_func_fork" = xyes; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9109 $as_echo_n "checking for working fork... " >&6; }
9110 if test "${ac_cv_func_fork_works+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9113 if test "$cross_compiling" = yes; then :
9114 ac_cv_func_fork_works=cross
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 $ac_includes_default
9123 /* By Ruediger Kuhlmann. */
9130 if ac_fn_c_try_run "$LINENO"; then :
9131 ac_cv_func_fork_works=yes
9133 ac_cv_func_fork_works=no
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136 conftest.$ac_objext conftest.beam conftest.$ac_ext
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9141 $as_echo "$ac_cv_func_fork_works" >&6; }
9144 ac_cv_func_fork_works=$ac_cv_func_fork
9146 if test "x$ac_cv_func_fork_works" = xcross; then
9148 *-*-amigaos* | *-*-msdosdjgpp*)
9149 # Override, as these systems have only a dummy fork() stub
9150 ac_cv_func_fork_works=no
9153 ac_cv_func_fork_works=yes
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9157 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9159 ac_cv_func_vfork_works=$ac_cv_func_vfork
9160 if test "x$ac_cv_func_vfork" = xyes; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9162 $as_echo_n "checking for working vfork... " >&6; }
9163 if test "${ac_cv_func_vfork_works+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9166 if test "$cross_compiling" = yes; then :
9167 ac_cv_func_vfork_works=cross
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 /* Thanks to Paul Eggert for this test. */
9172 $ac_includes_default
9173 #include <sys/wait.h>
9177 /* On some sparc systems, changes by the child to local and incoming
9178 argument registers are propagated back to the parent. The compiler
9179 is told about this with #include <vfork.h>, but some compilers
9180 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9181 static variable whose address is put into a register that is
9182 clobbered by the vfork. */
9185 sparc_address_test (int arg)
9187 sparc_address_test (arg) int arg;
9208 pid_t parent = getpid ();
9211 sparc_address_test (0);
9216 /* Here is another test for sparc vfork register problems. This
9217 test uses lots of local variables, at least as many local
9218 variables as main has allocated so far including compiler
9219 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9220 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9221 reuse the register of parent for one of the local variables,
9222 since it will think that parent can't possibly be used any more
9223 in this routine. Assigning to the local variable will thus
9224 munge parent in the parent process. */
9226 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9227 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9228 /* Convince the compiler that p..p7 are live; otherwise, it might
9229 use the same hardware register for all 8 local variables. */
9230 if (p != p1 || p != p2 || p != p3 || p != p4
9231 || p != p5 || p != p6 || p != p7)
9234 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9235 from child file descriptors. If the child closes a descriptor
9236 before it execs or exits, this munges the parent's descriptor
9237 as well. Test for this by closing stdout in the child. */
9238 _exit(close(fileno(stdout)) != 0);
9243 while (wait(&status) != child)
9246 /* Was there some problem with vforking? */
9249 /* Did the child fail? (This shouldn't happen.) */
9252 /* Did the vfork/compiler bug occur? */
9253 || parent != getpid()
9255 /* Did the file descriptor bug occur? */
9256 || fstat(fileno(stdout), &st) != 0
9261 if ac_fn_c_try_run "$LINENO"; then :
9262 ac_cv_func_vfork_works=yes
9264 ac_cv_func_vfork_works=no
9266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9267 conftest.$ac_objext conftest.beam conftest.$ac_ext
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9272 $as_echo "$ac_cv_func_vfork_works" >&6; }
9275 if test "x$ac_cv_func_fork_works" = xcross; then
9276 ac_cv_func_vfork_works=$ac_cv_func_vfork
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9278 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9281 if test "x$ac_cv_func_vfork_works" = xyes; then
9283 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9287 $as_echo "#define vfork fork" >>confdefs.h
9290 if test "x$ac_cv_func_fork_works" = xyes; then
9292 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9298 if test "X$prefix" = "XNONE"; then
9299 acl_final_prefix="$ac_default_prefix"
9301 acl_final_prefix="$prefix"
9303 if test "X$exec_prefix" = "XNONE"; then
9304 acl_final_exec_prefix='${prefix}'
9306 acl_final_exec_prefix="$exec_prefix"
9308 acl_save_prefix="$prefix"
9309 prefix="$acl_final_prefix"
9310 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9311 prefix="$acl_save_prefix"
9314 # Check whether --with-gnu-ld was given.
9315 if test "${with_gnu_ld+set}" = set; then :
9316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9321 # Prepare PATH_SEPARATOR.
9322 # The user is always right.
9323 if test "${PATH_SEPARATOR+set}" != set; then
9324 echo "#! /bin/sh" >conf$$.sh
9325 echo "exit 0" >>conf$$.sh
9327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9335 if test "$GCC" = yes; then
9336 # Check if gcc -print-prog-name=ld gives a path.
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9338 $as_echo_n "checking for ld used by GCC... " >&6; }
9341 # gcc leaves a trailing carriage return which upsets mingw
9342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9347 # Accept absolute paths.
9348 [\\/]* | [A-Za-z]:[\\/]*)
9349 re_direlt='/[^/][^/]*/\.\./'
9350 # Canonicalize the path of ld
9351 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9352 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9353 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9355 test -z "$LD" && LD="$ac_prog"
9358 # If it fails, then pretend we aren't using GCC.
9362 # If it is relative, then search for the first ld in PATH.
9366 elif test "$with_gnu_ld" = yes; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9368 $as_echo_n "checking for GNU ld... " >&6; }
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9371 $as_echo_n "checking for non-GNU ld... " >&6; }
9373 if test "${acl_cv_path_LD+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9376 if test -z "$LD"; then
9377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9378 for ac_dir in $PATH; do
9379 test -z "$ac_dir" && ac_dir=.
9380 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9381 acl_cv_path_LD="$ac_dir/$ac_prog"
9382 # Check to see if the program is GNU ld. I'd rather use --version,
9383 # but apparently some GNU ld's only accept -v.
9384 # Break only if it was the GNU/non-GNU ld that we prefer.
9385 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9386 test "$with_gnu_ld" != no && break
9388 test "$with_gnu_ld" != yes && break
9394 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9398 LD="$acl_cv_path_LD"
9399 if test -n "$LD"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9401 $as_echo "$LD" >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9406 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9409 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9410 $as_echo_n "(cached) " >&6
9412 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9413 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9414 acl_cv_prog_gnu_ld=yes
9416 acl_cv_prog_gnu_ld=no
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9420 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9421 with_gnu_ld=$acl_cv_prog_gnu_ld
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9426 $as_echo_n "checking for shared library run path origin... " >&6; }
9427 if test "${acl_cv_rpath+set}" = set; then :
9428 $as_echo_n "(cached) " >&6
9431 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9432 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9439 $as_echo "$acl_cv_rpath" >&6; }
9441 libext="$acl_cv_libext"
9442 shlibext="$acl_cv_shlibext"
9443 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9444 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9445 hardcode_direct="$acl_cv_hardcode_direct"
9446 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9447 # Check whether --enable-rpath was given.
9448 if test "${enable_rpath+set}" = set; then :
9449 enableval=$enable_rpath; :
9463 acl_save_prefix="$prefix"
9464 prefix="$acl_final_prefix"
9465 acl_save_exec_prefix="$exec_prefix"
9466 exec_prefix="$acl_final_exec_prefix"
9468 eval additional_includedir=\"$includedir\"
9469 eval additional_libdir=\"$libdir\"
9471 exec_prefix="$acl_save_exec_prefix"
9472 prefix="$acl_save_prefix"
9475 # Check whether --with-libiconv-prefix was given.
9476 if test "${with_libiconv_prefix+set}" = set; then :
9477 withval=$with_libiconv_prefix;
9478 if test "X$withval" = "Xno"; then
9481 if test "X$withval" = "X"; then
9483 acl_save_prefix="$prefix"
9484 prefix="$acl_final_prefix"
9485 acl_save_exec_prefix="$exec_prefix"
9486 exec_prefix="$acl_final_exec_prefix"
9488 eval additional_includedir=\"$includedir\"
9489 eval additional_libdir=\"$libdir\"
9491 exec_prefix="$acl_save_exec_prefix"
9492 prefix="$acl_save_prefix"
9495 additional_includedir="$withval/include"
9496 additional_libdir="$withval/lib"
9507 names_already_handled=
9508 names_next_round='iconv '
9509 while test -n "$names_next_round"; do
9510 names_this_round="$names_next_round"
9512 for name in $names_this_round; do
9514 for n in $names_already_handled; do
9515 if test "$n" = "$name"; then
9520 if test -z "$already_handled"; then
9521 names_already_handled="$names_already_handled $name"
9522 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9523 eval value=\"\$HAVE_LIB$uppername\"
9524 if test -n "$value"; then
9525 if test "$value" = yes; then
9526 eval value=\"\$LIB$uppername\"
9527 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9528 eval value=\"\$LTLIB$uppername\"
9529 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9538 if test $use_additional = yes; then
9539 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9540 found_dir="$additional_libdir"
9541 found_so="$additional_libdir/lib$name.$shlibext"
9542 if test -f "$additional_libdir/lib$name.la"; then
9543 found_la="$additional_libdir/lib$name.la"
9546 if test -f "$additional_libdir/lib$name.$libext"; then
9547 found_dir="$additional_libdir"
9548 found_a="$additional_libdir/lib$name.$libext"
9549 if test -f "$additional_libdir/lib$name.la"; then
9550 found_la="$additional_libdir/lib$name.la"
9555 if test "X$found_dir" = "X"; then
9556 for x in $LDFLAGS $LTLIBICONV; do
9558 acl_save_prefix="$prefix"
9559 prefix="$acl_final_prefix"
9560 acl_save_exec_prefix="$exec_prefix"
9561 exec_prefix="$acl_final_exec_prefix"
9563 exec_prefix="$acl_save_exec_prefix"
9564 prefix="$acl_save_prefix"
9568 dir=`echo "X$x" | sed -e 's/^X-L//'`
9569 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9571 found_so="$dir/lib$name.$shlibext"
9572 if test -f "$dir/lib$name.la"; then
9573 found_la="$dir/lib$name.la"
9576 if test -f "$dir/lib$name.$libext"; then
9578 found_a="$dir/lib$name.$libext"
9579 if test -f "$dir/lib$name.la"; then
9580 found_la="$dir/lib$name.la"
9586 if test "X$found_dir" != "X"; then
9591 if test "X$found_dir" != "X"; then
9592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9593 if test "X$found_so" != "X"; then
9594 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9595 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9598 for x in $ltrpathdirs; do
9599 if test "X$x" = "X$found_dir"; then
9604 if test -z "$haveit"; then
9605 ltrpathdirs="$ltrpathdirs $found_dir"
9607 if test "$hardcode_direct" = yes; then
9608 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9610 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9611 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9613 for x in $rpathdirs; do
9614 if test "X$x" = "X$found_dir"; then
9619 if test -z "$haveit"; then
9620 rpathdirs="$rpathdirs $found_dir"
9624 for x in $LDFLAGS $LIBICONV; do
9626 acl_save_prefix="$prefix"
9627 prefix="$acl_final_prefix"
9628 acl_save_exec_prefix="$exec_prefix"
9629 exec_prefix="$acl_final_exec_prefix"
9631 exec_prefix="$acl_save_exec_prefix"
9632 prefix="$acl_save_prefix"
9634 if test "X$x" = "X-L$found_dir"; then
9639 if test -z "$haveit"; then
9640 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9642 if test "$hardcode_minus_L" != no; then
9643 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9645 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9651 if test "X$found_a" != "X"; then
9652 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9654 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9657 additional_includedir=
9658 case "$found_dir" in
9660 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9661 additional_includedir="$basedir/include"
9664 if test "X$additional_includedir" != "X"; then
9665 if test "X$additional_includedir" != "X/usr/include"; then
9667 if test "X$additional_includedir" = "X/usr/local/include"; then
9668 if test -n "$GCC"; then
9670 linux*) haveit=yes;;
9674 if test -z "$haveit"; then
9675 for x in $CPPFLAGS $INCICONV; do
9677 acl_save_prefix="$prefix"
9678 prefix="$acl_final_prefix"
9679 acl_save_exec_prefix="$exec_prefix"
9680 exec_prefix="$acl_final_exec_prefix"
9682 exec_prefix="$acl_save_exec_prefix"
9683 prefix="$acl_save_prefix"
9685 if test "X$x" = "X-I$additional_includedir"; then
9690 if test -z "$haveit"; then
9691 if test -d "$additional_includedir"; then
9692 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9698 if test -n "$found_la"; then
9699 save_libdir="$libdir"
9701 */* | *\\*) . "$found_la" ;;
9702 *) . "./$found_la" ;;
9704 libdir="$save_libdir"
9705 for dep in $dependency_libs; do
9708 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9709 if test "X$additional_libdir" != "X/usr/lib"; then
9711 if test "X$additional_libdir" = "X/usr/local/lib"; then
9712 if test -n "$GCC"; then
9714 linux*) haveit=yes;;
9718 if test -z "$haveit"; then
9720 for x in $LDFLAGS $LIBICONV; do
9722 acl_save_prefix="$prefix"
9723 prefix="$acl_final_prefix"
9724 acl_save_exec_prefix="$exec_prefix"
9725 exec_prefix="$acl_final_exec_prefix"
9727 exec_prefix="$acl_save_exec_prefix"
9728 prefix="$acl_save_prefix"
9730 if test "X$x" = "X-L$additional_libdir"; then
9735 if test -z "$haveit"; then
9736 if test -d "$additional_libdir"; then
9737 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9741 for x in $LDFLAGS $LTLIBICONV; do
9743 acl_save_prefix="$prefix"
9744 prefix="$acl_final_prefix"
9745 acl_save_exec_prefix="$exec_prefix"
9746 exec_prefix="$acl_final_exec_prefix"
9748 exec_prefix="$acl_save_exec_prefix"
9749 prefix="$acl_save_prefix"
9751 if test "X$x" = "X-L$additional_libdir"; then
9756 if test -z "$haveit"; then
9757 if test -d "$additional_libdir"; then
9758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9765 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9766 if test "$enable_rpath" != no; then
9768 for x in $rpathdirs; do
9769 if test "X$x" = "X$dir"; then
9774 if test -z "$haveit"; then
9775 rpathdirs="$rpathdirs $dir"
9778 for x in $ltrpathdirs; do
9779 if test "X$x" = "X$dir"; then
9784 if test -z "$haveit"; then
9785 ltrpathdirs="$ltrpathdirs $dir"
9790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9793 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9796 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9810 if test "X$rpathdirs" != "X"; then
9811 if test -n "$hardcode_libdir_separator"; then
9813 for found_dir in $rpathdirs; do
9814 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9816 acl_save_libdir="$libdir"
9818 eval flag=\"$hardcode_libdir_flag_spec\"
9819 libdir="$acl_save_libdir"
9820 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9822 for found_dir in $rpathdirs; do
9823 acl_save_libdir="$libdir"
9825 eval flag=\"$hardcode_libdir_flag_spec\"
9826 libdir="$acl_save_libdir"
9827 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9831 if test "X$ltrpathdirs" != "X"; then
9832 for found_dir in $ltrpathdirs; do
9833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9843 am_save_CPPFLAGS="$CPPFLAGS"
9845 for element in $INCICONV; do
9847 for x in $CPPFLAGS; do
9849 acl_save_prefix="$prefix"
9850 prefix="$acl_final_prefix"
9851 acl_save_exec_prefix="$exec_prefix"
9852 exec_prefix="$acl_final_exec_prefix"
9854 exec_prefix="$acl_save_exec_prefix"
9855 prefix="$acl_save_prefix"
9857 if test "X$x" = "X$element"; then
9862 if test -z "$haveit"; then
9863 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9869 $as_echo_n "checking for iconv... " >&6; }
9870 if test "${am_cv_func_iconv+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9874 am_cv_func_iconv="no, consider installing GNU libiconv"
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9883 iconv_t cd = iconv_open("","");
9884 iconv(cd,NULL,NULL,NULL,NULL);
9890 if ac_fn_c_try_link "$LINENO"; then :
9891 am_cv_func_iconv=yes
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 if test "$am_cv_func_iconv" != yes; then
9896 am_save_LIBS="$LIBS"
9897 LIBS="$LIBS $LIBICONV"
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9905 iconv_t cd = iconv_open("","");
9906 iconv(cd,NULL,NULL,NULL,NULL);
9912 if ac_fn_c_try_link "$LINENO"; then :
9914 am_cv_func_iconv=yes
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS="$am_save_LIBS"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9923 $as_echo "$am_cv_func_iconv" >&6; }
9924 if test "$am_cv_func_iconv" = yes; then
9926 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9929 if test "$am_cv_lib_iconv" = yes; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9931 $as_echo_n "checking how to link with libiconv... " >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9933 $as_echo "$LIBICONV" >&6; }
9935 CPPFLAGS="$am_save_CPPFLAGS"
9942 if test "$am_cv_func_iconv" = yes; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9944 $as_echo_n "checking for iconv declaration... " >&6; }
9945 if test "${am_cv_proto_iconv+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9958 #if defined(__STDC__) || defined(__cplusplus)
9959 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973 am_cv_proto_iconv_arg1=""
9975 am_cv_proto_iconv_arg1="const"
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 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);"
9981 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9983 }$am_cv_proto_iconv" >&5
9985 }$am_cv_proto_iconv" >&6; }
9987 cat >>confdefs.h <<_ACEOF
9988 #define ICONV_CONST $am_cv_proto_iconv_arg1
9993 # Until we have in-tree GNU iconv:
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9999 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10000 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 #include <locale.h>
10014 if ac_fn_c_try_link "$LINENO"; then :
10015 am_cv_val_LC_MESSAGES=yes
10017 am_cv_val_LC_MESSAGES=no
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10023 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10024 if test $am_cv_val_LC_MESSAGES = yes; then
10026 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10033 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10034 if test "${am_cv_langinfo_codeset+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 #include <langinfo.h>
10043 char* cs = nl_langinfo(CODESET);
10048 if ac_fn_c_try_link "$LINENO"; then :
10049 am_cv_langinfo_codeset=yes
10051 am_cv_langinfo_codeset=no
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10058 $as_echo "$am_cv_langinfo_codeset" >&6; }
10059 if test $am_cv_langinfo_codeset = yes; then
10061 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10066 # We will need to find libiberty.h and ansidecl.h
10067 saved_CFLAGS="$CFLAGS"
10068 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10069 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10070 strsignal strstr strverscmp \
10071 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10072 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
10074 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10076 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10077 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10078 $as_echo_n "(cached) " >&6
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10083 #define $ac_tr_decl 1
10085 #include "ansidecl.h"
10086 #include "system.h"
10092 char *(*pfn) = (char *(*)) $ac_func ;
10098 if ac_fn_c_try_compile "$LINENO"; then :
10099 eval "gcc_cv_have_decl_$ac_func=yes"
10101 eval "gcc_cv_have_decl_$ac_func=no"
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10108 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10109 #define $ac_tr_decl 1
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10115 #define $ac_tr_decl 0
10123 for ac_func in getrlimit setrlimit getrusage
10125 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10127 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10128 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10129 $as_echo_n "(cached) " >&6
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10134 #define $ac_tr_decl 1
10136 #include "ansidecl.h"
10137 #include "system.h"
10138 #ifdef HAVE_SYS_RESOURCE_H
10139 #include <sys/resource.h>
10147 char *(*pfn) = (char *(*)) $ac_func ;
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 eval "gcc_cv_have_decl_$ac_func=yes"
10156 eval "gcc_cv_have_decl_$ac_func=no"
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10163 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10164 #define $ac_tr_decl 1
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10170 #define $ac_tr_decl 0
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10181 #include "ansidecl.h"
10182 #include "system.h"
10183 #ifdef HAVE_SYS_RESOURCE_H
10184 #include <sys/resource.h>
10195 if ac_fn_c_try_compile "$LINENO"; then :
10199 $as_echo "#define rlim_t long" >>confdefs.h
10202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10204 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10205 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10206 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10207 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10208 for ac_func in ldgetname
10210 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10212 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10213 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10214 $as_echo_n "(cached) " >&6
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10219 #define $ac_tr_decl 1
10221 #include "ansidecl.h"
10222 #include "system.h"
10223 #ifdef HAVE_LDFCN_H
10234 char *(*pfn) = (char *(*)) $ac_func ;
10240 if ac_fn_c_try_compile "$LINENO"; then :
10241 eval "gcc_cv_have_decl_$ac_func=yes"
10243 eval "gcc_cv_have_decl_$ac_func=no"
10245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10251 #define $ac_tr_decl 1
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10257 #define $ac_tr_decl 0
10265 for ac_func in times
10267 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10269 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10270 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10271 $as_echo_n "(cached) " >&6
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10276 #define $ac_tr_decl 1
10278 #include "ansidecl.h"
10279 #include "system.h"
10280 #ifdef HAVE_SYS_TIMES_H
10281 #include <sys/times.h>
10289 char *(*pfn) = (char *(*)) $ac_func ;
10295 if ac_fn_c_try_compile "$LINENO"; then :
10296 eval "gcc_cv_have_decl_$ac_func=yes"
10298 eval "gcc_cv_have_decl_$ac_func=no"
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10303 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10306 #define $ac_tr_decl 1
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10312 #define $ac_tr_decl 0
10320 for ac_func in sigaltstack
10322 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10324 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10325 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10326 $as_echo_n "(cached) " >&6
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10331 #define $ac_tr_decl 1
10333 #include "ansidecl.h"
10334 #include "system.h"
10335 #include <signal.h>
10342 char *(*pfn) = (char *(*)) $ac_func ;
10348 if ac_fn_c_try_compile "$LINENO"; then :
10349 eval "gcc_cv_have_decl_$ac_func=yes"
10351 eval "gcc_cv_have_decl_$ac_func=no"
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10359 #define $ac_tr_decl 1
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10365 #define $ac_tr_decl 0
10373 # More time-related stuff.
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10375 $as_echo_n "checking for struct tms... " >&6; }
10376 if test "${ac_cv_struct_tms+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10383 #include "ansidecl.h"
10384 #include "system.h"
10385 #ifdef HAVE_SYS_TIMES_H
10386 #include <sys/times.h>
10397 if ac_fn_c_try_compile "$LINENO"; then :
10398 ac_cv_struct_tms=yes
10400 ac_cv_struct_tms=no
10402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10405 $as_echo "$ac_cv_struct_tms" >&6; }
10406 if test $ac_cv_struct_tms = yes; then
10408 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10412 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10413 # revisit after autoconf 2.50.
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10415 $as_echo_n "checking for clock_t... " >&6; }
10416 if test "${gcc_cv_type_clock_t+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 #include "ansidecl.h"
10424 #include "system.h"
10434 if ac_fn_c_try_compile "$LINENO"; then :
10435 gcc_cv_type_clock_t=yes
10437 gcc_cv_type_clock_t=no
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10442 $as_echo "$gcc_cv_type_clock_t" >&6; }
10443 if test $gcc_cv_type_clock_t = yes; then
10445 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10449 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10450 CFLAGS="$saved_CFLAGS"
10452 # Check whether --enable-initfini-array was given.
10453 if test "${enable_initfini_array+set}" = set; then :
10454 enableval=$enable_initfini_array;
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10458 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10459 if test "${gcc_cv_initfini_array+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
10462 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10463 if test "$cross_compiling" = yes; then :
10464 gcc_cv_initfini_array=no
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10470 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10471 if it can be used. */
10473 int main (void) { return x; }
10474 int foo (void) { x = 0; }
10475 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10477 extern void abort ();
10487 void (*const init_array1005) ()
10488 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10496 void (*const fini_array1005) ()
10497 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10507 void (*const ctors1007) ()
10508 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10517 void (*const dtors1007) ()
10518 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10528 void (*const init_array65530) ()
10529 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10534 if (count != 65530)
10538 void (*const fini_array65530) ()
10539 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10545 if (count != 65530)
10549 void (*const ctors65535) ()
10550 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10555 if (count != 65535)
10559 void (*const dtors65535) ()
10560 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10571 if ac_fn_c_try_run "$LINENO"; then :
10572 gcc_cv_initfini_array=yes
10574 gcc_cv_initfini_array=no
10576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10577 conftest.$ac_objext conftest.beam conftest.$ac_ext
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10582 $as_echo_n "checking cross compile... guessing... " >&6; }
10583 gcc_cv_initfini_array=no
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10587 $as_echo "$gcc_cv_initfini_array" >&6; }
10588 enable_initfini_array=$gcc_cv_initfini_array
10592 if test $enable_initfini_array = yes; then
10594 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10598 # mkdir takes a single argument on some systems.
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10600 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10601 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10607 #include <sys/types.h>
10608 #ifdef HAVE_SYS_STAT_H
10609 # include <sys/stat.h>
10611 #ifdef HAVE_UNISTD_H
10612 # include <unistd.h>
10614 #ifdef HAVE_DIRECT_H
10615 # include <direct.h>
10625 if ac_fn_c_try_compile "$LINENO"; then :
10626 gcc_cv_mkdir_takes_one_arg=no
10628 gcc_cv_mkdir_takes_one_arg=yes
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10633 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10634 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10636 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10647 # With Setjmp/Longjmp based exception handling.
10648 # Check whether --enable-sjlj-exceptions was given.
10649 if test "${enable_sjlj_exceptions+set}" = set; then :
10650 enableval=$enable_sjlj_exceptions; case $target in
10652 if test $enableval != yes; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10654 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10659 force_sjlj_exceptions=yes
10663 force_sjlj_exceptions=yes
10667 force_sjlj_exceptions=no
10672 if test $force_sjlj_exceptions = yes; then
10673 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10675 cat >>confdefs.h <<_ACEOF
10676 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10681 # For platforms with the unwind ABI which includes an unwind library,
10682 # libunwind, we can choose to use the system libunwind.
10683 # config.gcc also contains tests of with_system_libunwind.
10686 # Check whether --with-system-libunwind was given.
10687 if test "${with_system_libunwind+set}" = set; then :
10688 withval=$with_system_libunwind;
10691 # If system-libunwind was not specifically set, pick a default setting.
10692 if test x$with_system_libunwind = x; then
10694 ia64-*-hpux*) with_system_libunwind=yes ;;
10695 *) with_system_libunwind=no ;;
10698 # Based on system-libunwind and target, do we have ipinfo?
10699 if test x$with_system_libunwind = xyes; then
10701 ia64-*-*) have_unwind_getipinfo=no ;;
10702 *) have_unwind_getipinfo=yes ;;
10705 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10708 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10709 *) have_unwind_getipinfo=yes ;;
10714 if test x$have_unwind_getipinfo = xyes; then
10716 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10721 # --------------------------------------------------------
10722 # Build, host, and target specific configuration fragments
10723 # --------------------------------------------------------
10725 # Collect build-machine-specific information.
10726 . ${srcdir}/config.build
10728 # Collect host-machine-specific information.
10729 . ${srcdir}/config.host
10733 # Collect target-machine-specific information.
10734 . ${srcdir}/config.gcc
10736 extra_objs="${host_extra_objs} ${extra_objs}"
10737 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10739 # Default the target-machine variables that were not explicitly set.
10740 if test x"$tm_file" = x
10741 then tm_file=$cpu_type/$cpu_type.h; fi
10743 if test x"$extra_headers" = x
10744 then extra_headers=; fi
10746 if test x$md_file = x
10747 then md_file=$cpu_type/$cpu_type.md; fi
10749 if test x$out_file = x
10750 then out_file=$cpu_type/$cpu_type.c; fi
10752 if test x"$tmake_file" = x
10753 then tmake_file=$cpu_type/t-$cpu_type
10756 if test x"$dwarf2" = xyes
10757 then tm_file="$tm_file tm-dwarf2.h"
10760 # Say what files are being used for the output code and MD file.
10761 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10762 echo "Using \`$srcdir/config/$md_file' as machine description file."
10764 # If any of the xm_file variables contain nonexistent files, warn
10765 # about them and drop them.
10768 for x in $build_xm_file; do
10769 if test -f $srcdir/config/$x
10771 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10772 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10775 build_xm_file="$bx"
10778 for x in $host_xm_file; do
10779 if test -f $srcdir/config/$x
10781 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10782 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10788 for x in $xm_file; do
10789 if test -f $srcdir/config/$x
10791 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10792 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10798 for f in $tm_file; do
10801 if test $count = ax; then
10802 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10804 echo "Using the following target machine macro files:"
10805 for f in $tm_file; do
10806 echo " $srcdir/config/$f"
10810 if test x$need_64bit_hwint = xyes; then
10812 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10816 if test x$use_long_long_for_widest_fast_int = xyes; then
10818 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10823 for f in $host_xm_file; do
10826 if test $count = a; then
10828 elif test $count = ax; then
10829 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10831 echo "Using the following host machine macro files:"
10832 for f in $host_xm_file; do
10833 echo " $srcdir/config/$f"
10836 echo "Using ${out_host_hook_obj} for host machine hooks."
10838 if test "$host_xm_file" != "$build_xm_file"; then
10840 for f in $build_xm_file; do
10843 if test $count = a; then
10845 elif test $count = ax; then
10846 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10848 echo "Using the following build machine macro files:"
10849 for f in $build_xm_file; do
10850 echo " $srcdir/config/$f"
10856 powerpc*-*-darwin*)
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10858 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10859 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10865 #include <sys/cdefs.h>
10866 #include <sys/signal.h>
10867 #include <ucontext.h>
10868 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10871 if ac_fn_c_try_compile "$LINENO"; then :
10872 gcc_cv_mcontext_underscores=no
10874 gcc_cv_mcontext_underscores=yes
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10879 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10880 if test $gcc_cv_mcontext_underscores = yes; then
10882 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10892 # Check if a valid thread package
10893 case ${enable_threads} in
10896 target_thread_file='single'
10900 target_thread_file='single'
10902 aix | dce | lynx | mipssde | nks | posix | posix95 | rtems | \
10903 single | tpf | vxworks | win32)
10904 target_thread_file=${enable_threads}
10907 echo "${enable_threads} is an unknown thread package" 1>&2
10912 if test x${thread_file} = x; then
10913 # No thread file set by target-specific clauses in config.gcc,
10914 # so use file chosen by default logic above
10915 thread_file=${target_thread_file}
10918 # Make gthr-default.h if we have a thread file.
10920 if test $thread_file != single; then
10921 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10922 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10923 rm -f gthr-default.h-t
10925 mv -f gthr-default.h-t gthr-default.h
10927 gthread_flags=-DHAVE_GTHR_DEFAULT
10936 if test x$enable___cxa_atexit = xyes || \
10937 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10938 if test x$host = x$target; then
10940 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10941 # keyed to flag_use_cxa_atexit
10946 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10947 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10950 echo "__cxa_atexit can't be enabled on this target"
10956 # We can't check for __cxa_atexit when building a cross, so assume
10960 if test x$use_cxa_atexit = xyes; then
10962 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10967 # Look for a file containing extra machine modes.
10968 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10969 extra_modes_file='$(srcdir)'/config/${extra_modes}
10972 cat >>confdefs.h <<_ACEOF
10973 #define EXTRA_MODES_FILE "config/$extra_modes"
10978 # Convert extra_options into a form suitable for Makefile use.
10981 for f in $extra_options; do
10982 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10983 all_opt_files="$all_opt_files $srcdir/config/$f"
10987 # auto-host.h is the file containing items generated by autoconf and is
10988 # the first file included by config.h.
10989 # If host=build, it is correct to have bconfig include auto-host.h
10990 # as well. If host!=build, we are in error and need to do more
10991 # work to find out the build config parameters.
10992 if test x$host = x$build
10994 build_auto=auto-host.h
10996 # We create a subdir, then run autoconf in the subdir.
10997 # To prevent recursion we set host and build for the new
10998 # invocation of configure to the build for this invocation
11005 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11006 *) realsrcdir=../${srcdir};;
11008 saved_CFLAGS="${CFLAGS}"
11009 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11010 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11011 ${realsrcdir}/configure \
11012 --enable-languages=${enable_languages-all} \
11013 --target=$target_alias --host=$build_alias --build=$build_alias
11014 CFLAGS="${saved_CFLAGS}"
11016 # We just finished tests for the build machine, so rename
11017 # the file auto-build.h in the gcc directory.
11018 mv auto-host.h ../auto-build.h
11021 build_auto=auto-build.h
11025 tm_file="${tm_file} defaults.h"
11026 tm_p_file="${tm_p_file} tm-preds.h"
11027 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11028 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11029 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11030 # put this back in temporarily.
11031 xm_file="auto-host.h ansidecl.h ${xm_file}"
11037 # Compile in configure arguments.
11038 if test -f configargs.h ; then
11039 # Being re-configured.
11040 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11041 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11043 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11046 # Double all backslashes and backslash all quotes to turn
11047 # gcc_config_arguments into a C string.
11048 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11049 $gcc_config_arguments
11051 gcc_config_arguments_str=`cat conftest.out`
11054 cat > configargs.h <<EOF
11055 /* Generated automatically. */
11056 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11057 static const char thread_model[] = "$thread_file";
11059 static const struct {
11060 const char *name, *value;
11061 } configure_default_options[] = $configure_default_options;
11064 gcc_BASEVER=`cat $srcdir/BASE-VER`
11065 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11066 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11067 if test -f $srcdir/REVISION ; then
11068 gcc_REVISION=`cat $srcdir/REVISION`
11072 cat > plugin-version.h <<EOF
11073 #include "configargs.h"
11075 static char basever[] = "$gcc_BASEVER";
11076 static char datestamp[] = "$gcc_DATESTAMP";
11077 static char devphase[] = "$gcc_DEVPHASE";
11078 static char revision[] = "$gcc_REVISION";
11080 /* FIXME plugins: We should make the version information more precise.
11081 One way to do is to add a checksum. */
11083 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11084 devphase, revision,
11085 configuration_arguments};
11088 # Internationalization
11089 # If we haven't got the data from the intl directory,
11090 # assume NLS is disabled.
11099 if test -f ../intl/config.intl; then
11100 . ../intl/config.intl
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11103 $as_echo_n "checking whether NLS is requested... " >&6; }
11104 if test x"$USE_NLS" != xyes; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11109 $as_echo "yes" >&6; }
11111 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11115 $as_echo_n "checking for catalogs to be installed... " >&6; }
11116 # Look for .po and .gmo files in the source directory.
11119 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11120 # If there aren't any .gmo files the shell will give us the
11121 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11123 case "$cat" in *\**)
11126 # The quadruple backslash is collapsed to a double backslash
11127 # by the backticks, then collapsed again by the double quotes,
11128 # leaving us with one backslash in the sed expression (right
11129 # before the dot that mustn't act as a wildcard).
11130 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11131 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11132 # The user is allowed to set LINGUAS to a list of languages to
11133 # install catalogs for. If it's empty that means "all of them."
11134 if test "x$LINGUAS" = x; then
11135 CATALOGS="$CATALOGS $cat"
11136 XLINGUAS="$XLINGUAS $lang"
11138 case "$LINGUAS" in *$lang*)
11139 CATALOGS="$CATALOGS $cat"
11140 XLINGUAS="$XLINGUAS $lang"
11145 LINGUAS="$XLINGUAS"
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11147 $as_echo "$LINGUAS" >&6; }
11160 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11161 # -liconv on the link line twice.
11162 case "$LIBINTL" in *$LIBICONV*)
11166 # Check whether --enable-secureplt was given.
11167 if test "${enable_secureplt+set}" = set; then :
11168 enableval=$enable_secureplt;
11172 # Check whether --enable-leading-mingw64-underscores was given.
11173 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11174 enableval=$enable_leading_mingw64_underscores;
11177 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11179 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11183 # Check whether --enable-cld was given.
11184 if test "${enable_cld+set}" = set; then :
11185 enableval=$enable_cld;
11191 # Check whether --enable-frame-pointer was given.
11192 if test "${enable_frame_pointer+set}" = set; then :
11193 enableval=$enable_frame_pointer;
11197 linux* | darwin[8912]*)
11198 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11200 enable_frame_pointer=no
11203 enable_frame_pointer=yes
11210 # Windows32 Registry support for specifying GCC installation paths.
11211 # Check whether --enable-win32-registry was given.
11212 if test "${enable_win32_registry+set}" = set; then :
11213 enableval=$enable_win32_registry;
11218 win32 | pe | cygwin* | mingw32* | uwin*)
11219 if test "x$enable_win32_registry" != xno; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11221 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11222 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 ac_func_search_save_LIBS=$LIBS
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11235 char RegOpenKeyExA ();
11239 return RegOpenKeyExA ();
11244 for ac_lib in '' advapi32; do
11245 if test -z "$ac_lib"; then
11246 ac_res="none required"
11249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_search_RegOpenKeyExA=$ac_res
11254 rm -f core conftest.err conftest.$ac_objext \
11256 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11260 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11263 ac_cv_search_RegOpenKeyExA=no
11265 rm conftest.$ac_ext
11266 LIBS=$ac_func_search_save_LIBS
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11269 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11270 ac_res=$ac_cv_search_RegOpenKeyExA
11271 if test "$ac_res" != no; then :
11272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11275 enable_win32_registry=no
11280 if test "x$enable_win32_registry" != xno; then
11282 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11285 if test "x$enable_win32_registry" != xyes \
11286 && test "x$enable_win32_registry" != x; then
11288 cat >>confdefs.h <<_ACEOF
11289 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11297 # Get an absolute path to the GCC top-level source directory
11298 holddir=`${PWDCMD-pwd}`
11300 topdir=`${PWDCMD-pwd}`
11303 # Conditionalize the makefile for this host machine.
11305 for f in ${host_xmake_file}
11307 if test -f ${srcdir}/config/$f
11309 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11313 # Conditionalize the makefile for this target machine.
11315 for f in ${tmake_file}
11317 if test -f ${srcdir}/config/$f
11319 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11322 tmake_file="${tmake_file_}"
11324 out_object_file=`basename $out_file .c`.o
11325 common_out_object_file=`basename $common_out_file .c`.o
11327 tm_file_list="options.h"
11328 tm_include_list="options.h insn-constants.h"
11329 for f in $tm_file; do
11332 f=`echo $f | sed 's/^..//'`
11333 tm_file_list="${tm_file_list} $f"
11334 tm_include_list="${tm_include_list} $f"
11337 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11338 tm_include_list="${tm_include_list} $f"
11341 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11342 tm_include_list="${tm_include_list} config/$f"
11347 libgcc_tm_file_list=
11348 libgcc_tm_include_list=
11349 for f in $libgcc_tm_file; do
11350 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11351 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11356 for f in $tm_p_file; do
11359 tm_p_file_list="${tm_p_file_list} $f"
11360 tm_p_include_list="${tm_p_include_list} $f"
11363 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11364 tm_p_include_list="${tm_p_include_list} config/$f"
11370 for f in $xm_file; do
11373 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11374 xm_include_list="${xm_include_list} $f"
11377 xm_file_list="${xm_file_list} $f"
11378 xm_include_list="${xm_include_list} $f"
11381 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11382 xm_include_list="${xm_include_list} config/$f"
11388 host_xm_include_list=
11389 for f in $host_xm_file; do
11392 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11393 host_xm_include_list="${host_xm_include_list} $f"
11396 host_xm_file_list="${host_xm_file_list} $f"
11397 host_xm_include_list="${host_xm_include_list} $f"
11400 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11401 host_xm_include_list="${host_xm_include_list} config/$f"
11406 build_xm_file_list=
11407 for f in $build_xm_file; do
11410 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11411 build_xm_include_list="${build_xm_include_list} $f"
11413 auto-build.h | auto-host.h )
11414 build_xm_file_list="${build_xm_file_list} $f"
11415 build_xm_include_list="${build_xm_include_list} $f"
11418 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11419 build_xm_include_list="${build_xm_include_list} config/$f"
11424 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11425 # cross-compiler which does not use the native headers and libraries.
11426 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11429 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11431 if test "x$with_build_sysroot" != x; then
11432 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11434 # This value is used, even on a native system, because
11435 # CROSS_SYSTEM_HEADER_DIR is just
11436 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11437 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11440 if test x$host != x$target
11442 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11444 SYSTEM_HEADER_DIR=$build_system_header_dir
11445 case "$host","$target" in
11446 # Darwin crosses can use the host system's libraries and headers,
11447 # because of the fat library support. Of course, it must be the
11448 # same version of Darwin on both sides. Allow the user to
11449 # just say --target=foo-darwin without a version number to mean
11450 # "the version on this system".
11451 *-*-darwin*,*-*-darwin*)
11452 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11453 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11454 if test $hostos = $targetos -o $targetos = darwin ; then
11456 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11461 i?86-*-*,x86_64-*-* \
11462 | powerpc*-*-*,powerpc64*-*-*)
11463 CROSS="$CROSS -DNATIVE_CROSS" ;;
11468 if test "x$with_headers" = x; then
11475 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11476 SYSTEM_HEADER_DIR=$build_system_header_dir
11479 # If this is a cross-compiler that does not
11480 # have its own set of headers then define
11483 # If this is using newlib, without having the headers available now,
11484 # then define inhibit_libc in LIBGCC2_CFLAGS.
11485 # This prevents libgcc2 from containing any code which requires libc
11487 : ${inhibit_libc=false}
11488 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11489 test x$with_newlib = xyes ; } &&
11490 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11495 # When building gcc with a cross-compiler, we need to adjust things so
11496 # that the generator programs are still built with the native compiler.
11497 # Also, we cannot run fixincludes.
11499 # These are the normal (build=host) settings:
11500 CC_FOR_BUILD='$(CC)'
11501 BUILD_CFLAGS='$(ALL_CFLAGS)'
11502 BUILD_LDFLAGS='$(LDFLAGS)'
11503 STMP_FIXINC=stmp-fixinc
11505 # And these apply if build != host, or we are generating coverage data
11506 if test x$build != x$host || test "x$coverage_flags" != x
11508 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11509 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11512 # Expand extra_headers to include complete path.
11513 # This substitutes for lots of t-* files.
11514 extra_headers_list=
11515 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11516 for file in ${extra_headers} ; do
11517 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11520 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11521 if test x"$use_gcc_tgmath" = xyes
11522 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11525 # Define collect2 in Makefile.
11526 case $host_can_use_collect2 in
11528 *) collect2='collect2$(exeext)' ;;
11532 # Add a definition of USE_COLLECT2 if system wants one.
11533 case $use_collect2 in
11534 no) use_collect2= ;;
11537 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11538 xm_defines="${xm_defines} USE_COLLECT2"
11539 case $host_can_use_collect2 in
11541 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11548 cat >>confdefs.h <<_ACEOF
11549 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11553 # ---------------------------
11554 # Assembler & linker features
11555 # ---------------------------
11557 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11558 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11559 # However when ld-new is first executed from the build tree, libtool will
11560 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11561 # to the build tree. While doing this we need to use the previous-stage
11562 # linker, or we have an infinite loop. The presence of a shell script as
11563 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11564 # the gcc/collect-ld script. So we need to know how libtool works, or
11565 # exec-tool will fail.
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11571 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11576 macro_version='2.2.7a'
11577 macro_revision='1.3134'
11591 ltmain="$ac_aux_dir/ltmain.sh"
11593 # Backslashify metacharacters that are still active within
11594 # double-quoted strings.
11595 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11597 # Same as above, but do not quote variable references.
11598 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11600 # Sed substitution to delay expansion of an escaped shell variable in a
11601 # double_quote_subst'ed string.
11602 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11604 # Sed substitution to delay expansion of an escaped single quote.
11605 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11607 # Sed substitution to avoid accidental globbing in evaled expressions
11608 no_glob_subst='s/\*/\\\*/g'
11610 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11611 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11612 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11615 $as_echo_n "checking how to print strings... " >&6; }
11616 # Test print first, because it will be a builtin if present.
11617 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11618 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11620 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11623 # Use this function as a fallback that always works.
11624 func_fallback_echo ()
11626 eval 'cat <<_LTECHO_EOF
11630 ECHO='func_fallback_echo'
11633 # func_echo_all arg...
11634 # Invoke $ECHO with all args, space-separated.
11641 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11642 $as_echo "printf" >&6; } ;;
11643 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11644 $as_echo "print -r" >&6; } ;;
11645 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11646 $as_echo "cat" >&6; } ;;
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11663 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11664 if test "${ac_cv_path_SED+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
11667 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11668 for ac_i in 1 2 3 4 5 6 7; do
11669 ac_script="$ac_script$as_nl$ac_script"
11671 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11672 { ac_script=; unset ac_script;}
11673 if test -z "$SED"; then
11674 ac_path_SED_found=false
11675 # Loop through the user's path and test for each of PROGNAME-LIST
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11680 test -z "$as_dir" && as_dir=.
11681 for ac_prog in sed gsed; do
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11684 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11685 # Check for GNU ac_path_SED and select it if it is found.
11686 # Check for GNU $ac_path_SED
11687 case `"$ac_path_SED" --version 2>&1` in
11689 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11692 $as_echo_n 0123456789 >"conftest.in"
11695 cat "conftest.in" "conftest.in" >"conftest.tmp"
11696 mv "conftest.tmp" "conftest.in"
11697 cp "conftest.in" "conftest.nl"
11698 $as_echo '' >> "conftest.nl"
11699 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11701 as_fn_arith $ac_count + 1 && ac_count=$as_val
11702 if test $ac_count -gt ${ac_path_SED_max-0}; then
11703 # Best one so far, save it but keep looking for a better one
11704 ac_cv_path_SED="$ac_path_SED"
11705 ac_path_SED_max=$ac_count
11707 # 10*(2^10) chars as input seems more than enough
11708 test $ac_count -gt 10 && break
11710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11713 $ac_path_SED_found && break 3
11718 if test -z "$ac_cv_path_SED"; then
11719 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11722 ac_cv_path_SED=$SED
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11727 $as_echo "$ac_cv_path_SED" >&6; }
11728 SED="$ac_cv_path_SED"
11731 test -z "$SED" && SED=sed
11732 Xsed="$SED -e 1s/^X//"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11745 $as_echo_n "checking for fgrep... " >&6; }
11746 if test "${ac_cv_path_FGREP+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11749 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11750 then ac_cv_path_FGREP="$GREP -F"
11752 if test -z "$FGREP"; then
11753 ac_path_FGREP_found=false
11754 # Loop through the user's path and test for each of PROGNAME-LIST
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11759 test -z "$as_dir" && as_dir=.
11760 for ac_prog in fgrep; do
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11763 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11764 # Check for GNU ac_path_FGREP and select it if it is found.
11765 # Check for GNU $ac_path_FGREP
11766 case `"$ac_path_FGREP" --version 2>&1` in
11768 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11771 $as_echo_n 0123456789 >"conftest.in"
11774 cat "conftest.in" "conftest.in" >"conftest.tmp"
11775 mv "conftest.tmp" "conftest.in"
11776 cp "conftest.in" "conftest.nl"
11777 $as_echo 'FGREP' >> "conftest.nl"
11778 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11780 as_fn_arith $ac_count + 1 && ac_count=$as_val
11781 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11782 # Best one so far, save it but keep looking for a better one
11783 ac_cv_path_FGREP="$ac_path_FGREP"
11784 ac_path_FGREP_max=$ac_count
11786 # 10*(2^10) chars as input seems more than enough
11787 test $ac_count -gt 10 && break
11789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11792 $ac_path_FGREP_found && break 3
11797 if test -z "$ac_cv_path_FGREP"; then
11798 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11801 ac_cv_path_FGREP=$FGREP
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11807 $as_echo "$ac_cv_path_FGREP" >&6; }
11808 FGREP="$ac_cv_path_FGREP"
11811 test -z "$GREP" && GREP=grep
11831 # Check whether --with-gnu-ld was given.
11832 if test "${with_gnu_ld+set}" = set; then :
11833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11839 if test "$GCC" = yes; then
11840 # Check if gcc -print-prog-name=ld gives a path.
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11842 $as_echo_n "checking for ld used by $CC... " >&6; }
11845 # gcc leaves a trailing carriage return which upsets mingw
11846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11851 # Accept absolute paths.
11853 re_direlt='/[^/][^/]*/\.\./'
11854 # Canonicalize the pathname of ld
11855 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11856 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11857 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11859 test -z "$LD" && LD="$ac_prog"
11862 # If it fails, then pretend we aren't using GCC.
11866 # If it is relative, then search for the first ld in PATH.
11867 with_gnu_ld=unknown
11870 elif test "$with_gnu_ld" = yes; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11872 $as_echo_n "checking for GNU ld... " >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11875 $as_echo_n "checking for non-GNU ld... " >&6; }
11877 if test "${lt_cv_path_LD+set}" = set; then :
11878 $as_echo_n "(cached) " >&6
11880 if test -z "$LD"; then
11881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11882 for ac_dir in $PATH; do
11884 test -z "$ac_dir" && ac_dir=.
11885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11886 lt_cv_path_LD="$ac_dir/$ac_prog"
11887 # Check to see if the program is GNU ld. I'd rather use --version,
11888 # but apparently some variants of GNU ld only accept -v.
11889 # Break only if it was the GNU/non-GNU ld that we prefer.
11890 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11891 *GNU* | *'with BFD'*)
11892 test "$with_gnu_ld" != no && break
11895 test "$with_gnu_ld" != yes && break
11902 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11906 LD="$lt_cv_path_LD"
11907 if test -n "$LD"; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11909 $as_echo "$LD" >&6; }
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11914 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11917 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11920 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11921 case `$LD -v 2>&1 </dev/null` in
11922 *GNU* | *'with BFD'*)
11923 lt_cv_prog_gnu_ld=yes
11926 lt_cv_prog_gnu_ld=no
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11931 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11932 with_gnu_ld=$lt_cv_prog_gnu_ld
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11943 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11944 if test "${lt_cv_path_NM+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11947 if test -n "$NM"; then
11948 # Let the user override the test.
11949 lt_cv_path_NM="$NM"
11951 lt_nm_to_check="${ac_tool_prefix}nm"
11952 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11953 lt_nm_to_check="$lt_nm_to_check nm"
11955 for lt_tmp_nm in $lt_nm_to_check; do
11956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11957 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11959 test -z "$ac_dir" && ac_dir=.
11960 tmp_nm="$ac_dir/$lt_tmp_nm"
11961 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11962 # Check to see if the nm accepts a BSD-compat flag.
11963 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11964 # nm: unknown option "B" ignored
11965 # Tru64's nm complains that /dev/null is an invalid object file
11966 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11967 */dev/null* | *'Invalid file or object type'*)
11968 lt_cv_path_NM="$tmp_nm -B"
11972 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11974 lt_cv_path_NM="$tmp_nm -p"
11978 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11979 continue # so that we can try to find one that supports BSD flags
11988 : ${lt_cv_path_NM=no}
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11992 $as_echo "$lt_cv_path_NM" >&6; }
11993 if test "$lt_cv_path_NM" != "no"; then
11994 NM="$lt_cv_path_NM"
11996 # Didn't find any BSD compatible name lister, look for dumpbin.
11997 if test -n "$DUMPBIN"; then :
11998 # Let the user override the test.
12000 if test -n "$ac_tool_prefix"; then
12001 for ac_prog in dumpbin "link -dump"
12003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12010 if test -n "$DUMPBIN"; then
12011 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 DUMPBIN=$ac_cv_prog_DUMPBIN
12031 if test -n "$DUMPBIN"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12033 $as_echo "$DUMPBIN" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12040 test -n "$DUMPBIN" && break
12043 if test -z "$DUMPBIN"; then
12044 ac_ct_DUMPBIN=$DUMPBIN
12045 for ac_prog in dumpbin "link -dump"
12047 # Extract the first word of "$ac_prog", so it can be a program name with args.
12048 set dummy $ac_prog; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12054 if test -n "$ac_ct_DUMPBIN"; then
12055 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12064 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12075 if test -n "$ac_ct_DUMPBIN"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12077 $as_echo "$ac_ct_DUMPBIN" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12084 test -n "$ac_ct_DUMPBIN" && break
12087 if test "x$ac_ct_DUMPBIN" = x; then
12090 case $cross_compiling:$ac_tool_warned in
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12094 ac_tool_warned=yes ;;
12096 DUMPBIN=$ac_ct_DUMPBIN
12100 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12102 DUMPBIN="$DUMPBIN -symbols"
12110 if test "$DUMPBIN" != ":"; then
12114 test -z "$NM" && NM=nm
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12122 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12123 if test "${lt_cv_nm_interface+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12126 lt_cv_nm_interface="BSD nm"
12127 echo "int some_variable = 0;" > conftest.$ac_ext
12128 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12129 (eval "$ac_compile" 2>conftest.err)
12130 cat conftest.err >&5
12131 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12132 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12133 cat conftest.err >&5
12134 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12135 cat conftest.out >&5
12136 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12137 lt_cv_nm_interface="MS dumpbin"
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12142 $as_echo "$lt_cv_nm_interface" >&6; }
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12145 $as_echo_n "checking whether ln -s works... " >&6; }
12147 if test "$LN_S" = "ln -s"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12149 $as_echo "yes" >&6; }
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12152 $as_echo "no, using $LN_S" >&6; }
12155 # find the maximum length of command line arguments
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12157 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12158 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12166 # On DJGPP, this test can blow up pretty badly due to problems in libc
12167 # (any single argument exceeding 2000 bytes causes a buffer overrun
12168 # during glob expansion). Even if it were fixed, the result of this
12169 # check would be larger than it should be.
12170 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12174 # Under GNU Hurd, this test is not required because there is
12175 # no limit to the length of command line arguments.
12176 # Libtool will interpret -1 as no limit whatsoever
12177 lt_cv_sys_max_cmd_len=-1;
12180 cygwin* | mingw* | cegcc*)
12181 # On Win9x/ME, this test blows up -- it succeeds, but takes
12182 # about 5 minutes as the teststring grows exponentially.
12183 # Worse, since 9x/ME are not pre-emptively multitasking,
12184 # you end up with a "frozen" computer, even though with patience
12185 # the test eventually succeeds (with a max line length of 256k).
12186 # Instead, let's just punt: use the minimum linelength reported by
12187 # all of the supported platforms: 8192 (on NT/2K/XP).
12188 lt_cv_sys_max_cmd_len=8192;
12192 # On MiNT this can take a long time and run out of memory.
12193 lt_cv_sys_max_cmd_len=8192;
12197 # On AmigaOS with pdksh, this test takes hours, literally.
12198 # So we just punt and use a minimum line length of 8192.
12199 lt_cv_sys_max_cmd_len=8192;
12202 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12203 # This has been around since 386BSD, at least. Likely further.
12204 if test -x /sbin/sysctl; then
12205 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12206 elif test -x /usr/sbin/sysctl; then
12207 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12209 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12211 # And add a safety zone
12212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12217 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12218 lt_cv_sys_max_cmd_len=196608
12222 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12223 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12224 # nice to cause kernel panics so lets avoid the loop below.
12225 # First set a reasonable default.
12226 lt_cv_sys_max_cmd_len=16384
12228 if test -x /sbin/sysconfig; then
12229 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12230 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12235 lt_cv_sys_max_cmd_len=102400
12237 sysv5* | sco5v6* | sysv4.2uw2*)
12238 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12239 if test -n "$kargmax"; then
12240 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12242 lt_cv_sys_max_cmd_len=32768
12246 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12247 if test -n "$lt_cv_sys_max_cmd_len"; then
12248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12251 # Make teststring a little bigger before we do anything with it.
12252 # a 1K string should be a reasonable start.
12253 for i in 1 2 3 4 5 6 7 8 ; do
12254 teststring=$teststring$teststring
12256 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12257 # If test is not a shell built-in, we'll probably end up computing a
12258 # maximum length that is only half of the actual maximum length, but
12260 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12261 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12262 test $i != 17 # 1/2 MB should be enough
12265 teststring=$teststring$teststring
12267 # Only check the string length outside the loop.
12268 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12270 # Add a significant safety factor because C++ compilers can tack on
12271 # massive amounts of additional arguments before passing them to the
12272 # linker. It appears as though 1/2 is a usable value.
12273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12280 if test -n $lt_cv_sys_max_cmd_len ; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12282 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12285 $as_echo "none" >&6; }
12287 max_cmd_len=$lt_cv_sys_max_cmd_len
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12299 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12300 # Try some XSI features
12302 ( _lt_dummy="a/b/c"
12303 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12305 && eval 'test $(( 1 + 1 )) -eq 2 \
12306 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12309 $as_echo "$xsi_shell" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12313 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12315 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12317 && lt_shell_append=yes
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12319 $as_echo "$lt_shell_append" >&6; }
12322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12332 # test EBCDIC or ASCII
12333 case `echo X|tr X '\101'` in
12334 A) # ASCII based system
12335 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12336 lt_SP2NL='tr \040 \012'
12337 lt_NL2SP='tr \015\012 \040\040'
12339 *) # EBCDIC based system
12340 lt_SP2NL='tr \100 \n'
12341 lt_NL2SP='tr \r\n \100\100'
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12354 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12355 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12358 lt_cv_ld_reload_flag='-r'
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12361 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12362 reload_flag=$lt_cv_ld_reload_flag
12363 case $reload_flag in
12365 *) reload_flag=" $reload_flag" ;;
12367 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12370 if test "$GCC" = yes; then
12371 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12373 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12386 if test -n "$ac_tool_prefix"; then
12387 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12388 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
12394 if test -n "$OBJDUMP"; then
12395 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 OBJDUMP=$ac_cv_prog_OBJDUMP
12415 if test -n "$OBJDUMP"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12417 $as_echo "$OBJDUMP" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12425 if test -z "$ac_cv_prog_OBJDUMP"; then
12426 ac_ct_OBJDUMP=$OBJDUMP
12427 # Extract the first word of "objdump", so it can be a program name with args.
12428 set dummy objdump; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12434 if test -n "$ac_ct_OBJDUMP"; then
12435 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12455 if test -n "$ac_ct_OBJDUMP"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12457 $as_echo "$ac_ct_OBJDUMP" >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12463 if test "x$ac_ct_OBJDUMP" = x; then
12466 case $cross_compiling:$ac_tool_warned in
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12470 ac_tool_warned=yes ;;
12472 OBJDUMP=$ac_ct_OBJDUMP
12475 OBJDUMP="$ac_cv_prog_OBJDUMP"
12478 test -z "$OBJDUMP" && OBJDUMP=objdump
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12489 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12490 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
12493 lt_cv_file_magic_cmd='$MAGIC_CMD'
12494 lt_cv_file_magic_test_file=
12495 lt_cv_deplibs_check_method='unknown'
12496 # Need to set the preceding variable on all platforms that support
12497 # interlibrary dependencies.
12498 # 'none' -- dependencies not supported.
12499 # `unknown' -- same as none, but documents that we really don't know.
12500 # 'pass_all' -- all dependencies passed with no checks.
12501 # 'test_compile' -- check by making test program.
12502 # 'file_magic [[regex]]' -- check by looking for files in library path
12503 # which responds to the $file_magic_cmd with a given extended regex.
12504 # If you have `file' or equivalent on your system and you're not sure
12505 # whether `pass_all' will *always* work, you probably want this one.
12509 lt_cv_deplibs_check_method=pass_all
12513 lt_cv_deplibs_check_method=pass_all
12517 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12518 lt_cv_file_magic_cmd='/usr/bin/file -L'
12519 lt_cv_file_magic_test_file=/shlib/libc.so
12523 # func_win32_libid is a shell function defined in ltmain.sh
12524 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12525 lt_cv_file_magic_cmd='func_win32_libid'
12529 # Base MSYS/MinGW do not provide the 'file' command needed by
12530 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12531 # unless we find 'file', for example because we are cross-compiling.
12532 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12533 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12535 lt_cv_file_magic_cmd='func_win32_libid'
12537 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12538 lt_cv_file_magic_cmd='$OBJDUMP -f'
12543 # use the weaker test based on 'objdump'. See mingw*.
12544 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12545 lt_cv_file_magic_cmd='$OBJDUMP -f'
12548 darwin* | rhapsody*)
12549 lt_cv_deplibs_check_method=pass_all
12552 freebsd* | dragonfly*)
12553 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12556 # Not sure whether the presence of OpenBSD here was a mistake.
12557 # Let's accept both of them until this is cleared up.
12558 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12559 lt_cv_file_magic_cmd=/usr/bin/file
12560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12564 lt_cv_deplibs_check_method=pass_all
12569 lt_cv_deplibs_check_method=pass_all
12573 lt_cv_deplibs_check_method=pass_all
12576 hpux10.20* | hpux11*)
12577 lt_cv_file_magic_cmd=/usr/bin/file
12580 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12581 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12584 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]'
12585 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12589 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12595 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12599 irix5* | irix6* | nonstopux*)
12601 *-32|*"-32 ") libmagic=32-bit;;
12602 *-n32|*"-n32 ") libmagic=N32;;
12603 *-64|*"-64 ") libmagic=64-bit;;
12604 *) libmagic=never-match;;
12606 lt_cv_deplibs_check_method=pass_all
12609 # This must be Linux ELF.
12610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12611 lt_cv_deplibs_check_method=pass_all
12615 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12624 lt_cv_file_magic_cmd=/usr/bin/file
12625 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12629 lt_cv_deplibs_check_method=pass_all
12633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12640 osf3* | osf4* | osf5*)
12641 lt_cv_deplibs_check_method=pass_all
12645 lt_cv_deplibs_check_method=pass_all
12649 lt_cv_deplibs_check_method=pass_all
12652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12653 lt_cv_deplibs_check_method=pass_all
12657 case $host_vendor in
12659 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]'
12660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12663 lt_cv_deplibs_check_method=pass_all
12666 lt_cv_file_magic_cmd='/bin/file'
12667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12670 lt_cv_file_magic_cmd='/bin/file'
12671 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12672 lt_cv_file_magic_test_file=/lib/libc.so
12675 lt_cv_deplibs_check_method=pass_all
12678 lt_cv_deplibs_check_method=pass_all
12684 lt_cv_deplibs_check_method=pass_all
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12690 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12691 file_magic_cmd=$lt_cv_file_magic_cmd
12692 deplibs_check_method=$lt_cv_deplibs_check_method
12693 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12706 if test -n "$ac_tool_prefix"; then
12707 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12708 set dummy ${ac_tool_prefix}ar; ac_word=$2
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710 $as_echo_n "checking for $ac_word... " >&6; }
12711 if test "${ac_cv_prog_AR+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12714 if test -n "$AR"; then
12715 ac_cv_prog_AR="$AR" # Let the user override the test.
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $PATH
12721 test -z "$as_dir" && as_dir=.
12722 for ac_exec_ext in '' $ac_executable_extensions; do
12723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12724 ac_cv_prog_AR="${ac_tool_prefix}ar"
12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 if test -n "$AR"; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12737 $as_echo "$AR" >&6; }
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12745 if test -z "$ac_cv_prog_AR"; then
12747 # Extract the first word of "ar", so it can be a program name with args.
12748 set dummy ar; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12754 if test -n "$ac_ct_AR"; then
12755 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12764 ac_cv_prog_ac_ct_AR="ar"
12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12775 if test -n "$ac_ct_AR"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12777 $as_echo "$ac_ct_AR" >&6; }
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12783 if test "x$ac_ct_AR" = x; then
12786 case $cross_compiling:$ac_tool_warned in
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12790 ac_tool_warned=yes ;;
12795 AR="$ac_cv_prog_AR"
12798 test -z "$AR" && AR=ar
12799 test -z "$AR_FLAGS" && AR_FLAGS=cru
12811 if test -n "$ac_tool_prefix"; then
12812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12813 set dummy ${ac_tool_prefix}strip; ac_word=$2
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815 $as_echo_n "checking for $ac_word... " >&6; }
12816 if test "${ac_cv_prog_STRIP+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12819 if test -n "$STRIP"; then
12820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12839 STRIP=$ac_cv_prog_STRIP
12840 if test -n "$STRIP"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12842 $as_echo "$STRIP" >&6; }
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12850 if test -z "$ac_cv_prog_STRIP"; then
12852 # Extract the first word of "strip", so it can be a program name with args.
12853 set dummy strip; ac_word=$2
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855 $as_echo_n "checking for $ac_word... " >&6; }
12856 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12857 $as_echo_n "(cached) " >&6
12859 if test -n "$ac_ct_STRIP"; then
12860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12869 ac_cv_prog_ac_ct_STRIP="strip"
12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12880 if test -n "$ac_ct_STRIP"; then
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12882 $as_echo "$ac_ct_STRIP" >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12888 if test "x$ac_ct_STRIP" = x; then
12891 case $cross_compiling:$ac_tool_warned in
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12895 ac_tool_warned=yes ;;
12900 STRIP="$ac_cv_prog_STRIP"
12903 test -z "$STRIP" && STRIP=:
12910 if test -n "$ac_tool_prefix"; then
12911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914 $as_echo_n "checking for $ac_word... " >&6; }
12915 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12918 if test -n "$RANLIB"; then
12919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $PATH
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12938 RANLIB=$ac_cv_prog_RANLIB
12939 if test -n "$RANLIB"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12941 $as_echo "$RANLIB" >&6; }
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12949 if test -z "$ac_cv_prog_RANLIB"; then
12950 ac_ct_RANLIB=$RANLIB
12951 # Extract the first word of "ranlib", so it can be a program name with args.
12952 set dummy ranlib; ac_word=$2
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954 $as_echo_n "checking for $ac_word... " >&6; }
12955 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12956 $as_echo_n "(cached) " >&6
12958 if test -n "$ac_ct_RANLIB"; then
12959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_prog_ac_ct_RANLIB="ranlib"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12979 if test -n "$ac_ct_RANLIB"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12981 $as_echo "$ac_ct_RANLIB" >&6; }
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12987 if test "x$ac_ct_RANLIB" = x; then
12990 case $cross_compiling:$ac_tool_warned in
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12994 ac_tool_warned=yes ;;
12996 RANLIB=$ac_ct_RANLIB
12999 RANLIB="$ac_cv_prog_RANLIB"
13002 test -z "$RANLIB" && RANLIB=:
13009 # Determine commands to create old-style static archives.
13010 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13011 old_postinstall_cmds='chmod 644 $oldlib'
13012 old_postuninstall_cmds=
13014 if test -n "$RANLIB"; then
13017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13023 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13028 lock_old_archive_extraction=yes ;;
13030 lock_old_archive_extraction=no ;;
13071 # If no C compiler was specified, use CC.
13074 # If no C compiler flags were specified, use CFLAGS.
13075 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13077 # Allow CC to be a program name with arguments.
13081 # Check for command to grab the raw symbol name followed by C symbol from nm.
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13083 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13084 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
13088 # These are sane defaults that work on at least a few old systems.
13089 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13091 # Character class describing NM global symbol codes.
13092 symcode='[BCDEGRST]'
13094 # Regexp to match symbols that can be accessed directly from C.
13095 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13097 # Define system-specific variables.
13102 cygwin* | mingw* | pw32* | cegcc*)
13103 symcode='[ABCDGISTW]'
13106 if test "$host_cpu" = ia64; then
13107 symcode='[ABCDEGRST]'
13110 irix* | nonstopux*)
13111 symcode='[BCDEGRST]'
13114 symcode='[BCDEGQRST]'
13125 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13133 # If we're using GNU nm, then use its standard symbol codes.
13134 case `$NM -V 2>&1` in
13135 *GNU* | *'with BFD'*)
13136 symcode='[ABCDGIRSTW]' ;;
13139 # Transform an extracted symbol line into a proper C declaration.
13140 # Some systems (esp. on ia64) link data and code symbols differently,
13141 # so use this general approach.
13142 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13144 # Transform an extracted symbol line into symbol name and symbol address
13145 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13146 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'"
13148 # Handle CRLF in mingw tool chain
13152 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13156 # Try without a prefix underscore, then with it.
13157 for ac_symprfx in "" "_"; do
13159 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13160 symxfrm="\\1 $ac_symprfx\\2 \\2"
13162 # Write the raw and C identifiers.
13163 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13164 # Fake it for dumpbin and say T for any non-static function
13165 # and D for any global variable.
13166 # Also find C++ and __fastcall symbols from MSVC++,
13167 # which start with @ or ?.
13168 lt_cv_sys_global_symbol_pipe="$AWK '"\
13169 " {last_section=section; section=\$ 3};"\
13170 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13171 " \$ 0!~/External *\|/{next};"\
13172 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13173 " {if(hide[section]) next};"\
13174 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13175 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13176 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13177 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13178 " ' prfx=^$ac_symprfx"
13180 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13183 # Check to see that the pipe works correctly.
13187 cat > conftest.$ac_ext <<_LT_EOF
13192 void nm_test_func(void);
13193 void nm_test_func(void){}
13197 int main(){nm_test_var='a';nm_test_func();return(0);}
13200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13201 (eval $ac_compile) 2>&5
13203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204 test $ac_status = 0; }; then
13205 # Now try to grab the symbols.
13207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13208 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13211 test $ac_status = 0; } && test -s "$nlist"; then
13212 # Try sorting and uniquifying the output.
13213 if sort "$nlist" | uniq > "$nlist"T; then
13214 mv -f "$nlist"T "$nlist"
13219 # Make sure that we snagged all the symbols we need.
13220 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13221 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13222 cat <<_LT_EOF > conftest.$ac_ext
13228 # Now generate the symbol file.
13229 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13231 cat <<_LT_EOF >> conftest.$ac_ext
13233 /* The mapping between symbol names and symbols. */
13238 lt__PROGRAM__LTX_preloaded_symbols[] =
13240 { "@PROGRAM@", (void *) 0 },
13242 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13243 cat <<\_LT_EOF >> conftest.$ac_ext
13247 /* This works around a problem in FreeBSD linker */
13248 #ifdef FREEBSD_WORKAROUND
13249 static const void *lt_preloaded_setup() {
13250 return lt__PROGRAM__LTX_preloaded_symbols;
13258 # Now try linking the two files.
13259 mv conftest.$ac_objext conftstm.$ac_objext
13260 lt_save_LIBS="$LIBS"
13261 lt_save_CFLAGS="$CFLAGS"
13262 LIBS="conftstm.$ac_objext"
13263 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13265 (eval $ac_link) 2>&5
13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13271 LIBS="$lt_save_LIBS"
13272 CFLAGS="$lt_save_CFLAGS"
13274 echo "cannot find nm_test_func in $nlist" >&5
13277 echo "cannot find nm_test_var in $nlist" >&5
13280 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13283 echo "$progname: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13286 rm -rf conftest* conftst*
13288 # Do not use the global_symbol_pipe unless it works.
13289 if test "$pipe_works" = yes; then
13292 lt_cv_sys_global_symbol_pipe=
13298 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13299 lt_cv_sys_global_symbol_to_cdecl=
13301 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13303 $as_echo "failed" >&6; }
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13306 $as_echo "ok" >&6; }
13330 # Check whether --enable-libtool-lock was given.
13331 if test "${enable_libtool_lock+set}" = set; then :
13332 enableval=$enable_libtool_lock;
13335 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13337 # Some flags need to be propagated to the compiler or linker for good
13341 # Find out which ABI we are using.
13342 echo 'int i;' > conftest.$ac_ext
13343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13344 (eval $ac_compile) 2>&5
13346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13347 test $ac_status = 0; }; then
13348 case `/usr/bin/file conftest.$ac_objext` in
13350 HPUX_IA64_MODE="32"
13353 HPUX_IA64_MODE="64"
13360 # Find out which ABI we are using.
13361 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13363 (eval $ac_compile) 2>&5
13365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; }; then
13367 if test "$lt_cv_prog_gnu_ld" = yes; then
13368 case `/usr/bin/file conftest.$ac_objext` in
13370 LD="${LD-ld} -melf32bsmip"
13373 LD="${LD-ld} -melf32bmipn32"
13376 LD="${LD-ld} -melf64bmip"
13380 case `/usr/bin/file conftest.$ac_objext` in
13396 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13397 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13398 # Find out which ABI we are using.
13399 echo 'int i;' > conftest.$ac_ext
13400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13401 (eval $ac_compile) 2>&5
13403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13404 test $ac_status = 0; }; then
13405 case `/usr/bin/file conftest.o` in
13408 x86_64-*kfreebsd*-gnu)
13409 LD="${LD-ld} -m elf_i386_fbsd"
13412 LD="${LD-ld} -m elf_i386"
13414 ppc64-*linux*|powerpc64-*linux*)
13415 LD="${LD-ld} -m elf32ppclinux"
13418 LD="${LD-ld} -m elf_s390"
13421 LD="${LD-ld} -m elf32_sparc"
13427 x86_64-*kfreebsd*-gnu)
13428 LD="${LD-ld} -m elf_x86_64_fbsd"
13431 LD="${LD-ld} -m elf_x86_64"
13433 ppc*-*linux*|powerpc*-*linux*)
13434 LD="${LD-ld} -m elf64ppc"
13436 s390*-*linux*|s390*-*tpf*)
13437 LD="${LD-ld} -m elf64_s390"
13440 LD="${LD-ld} -m elf64_sparc"
13450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13451 SAVE_CFLAGS="$CFLAGS"
13452 CFLAGS="$CFLAGS -belf"
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13454 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13455 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13456 $as_echo_n "(cached) " >&6
13459 ac_cpp='$CPP $CPPFLAGS'
13460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13475 if ac_fn_c_try_link "$LINENO"; then :
13476 lt_cv_cc_needs_belf=yes
13478 lt_cv_cc_needs_belf=no
13480 rm -f core conftest.err conftest.$ac_objext \
13481 conftest$ac_exeext conftest.$ac_ext
13483 ac_cpp='$CPP $CPPFLAGS'
13484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13490 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13491 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13492 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13493 CFLAGS="$SAVE_CFLAGS"
13497 # Find out which ABI we are using.
13498 echo 'int i;' > conftest.$ac_ext
13499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13500 (eval $ac_compile) 2>&5
13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 test $ac_status = 0; }; then
13504 case `/usr/bin/file conftest.o` in
13506 case $lt_cv_prog_gnu_ld in
13507 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13509 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13521 need_locks="$enable_libtool_lock"
13525 rhapsody* | darwin*)
13526 if test -n "$ac_tool_prefix"; then
13527 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13528 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13530 $as_echo_n "checking for $ac_word... " >&6; }
13531 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13534 if test -n "$DSYMUTIL"; then
13535 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538 for as_dir in $PATH
13541 test -z "$as_dir" && as_dir=.
13542 for ac_exec_ext in '' $ac_executable_extensions; do
13543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13544 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13554 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13555 if test -n "$DSYMUTIL"; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13557 $as_echo "$DSYMUTIL" >&6; }
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 $as_echo "no" >&6; }
13565 if test -z "$ac_cv_prog_DSYMUTIL"; then
13566 ac_ct_DSYMUTIL=$DSYMUTIL
13567 # Extract the first word of "dsymutil", so it can be a program name with args.
13568 set dummy dsymutil; ac_word=$2
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13570 $as_echo_n "checking for $ac_word... " >&6; }
13571 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13574 if test -n "$ac_ct_DSYMUTIL"; then
13575 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13584 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13595 if test -n "$ac_ct_DSYMUTIL"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13597 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13603 if test "x$ac_ct_DSYMUTIL" = x; then
13606 case $cross_compiling:$ac_tool_warned in
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13610 ac_tool_warned=yes ;;
13612 DSYMUTIL=$ac_ct_DSYMUTIL
13615 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13618 if test -n "$ac_tool_prefix"; then
13619 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13620 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13624 $as_echo_n "(cached) " >&6
13626 if test -n "$NMEDIT"; then
13627 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13636 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 NMEDIT=$ac_cv_prog_NMEDIT
13647 if test -n "$NMEDIT"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13649 $as_echo "$NMEDIT" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13657 if test -z "$ac_cv_prog_NMEDIT"; then
13658 ac_ct_NMEDIT=$NMEDIT
13659 # Extract the first word of "nmedit", so it can be a program name with args.
13660 set dummy nmedit; ac_word=$2
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13662 $as_echo_n "checking for $ac_word... " >&6; }
13663 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13664 $as_echo_n "(cached) " >&6
13666 if test -n "$ac_ct_NMEDIT"; then
13667 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13670 for as_dir in $PATH
13673 test -z "$as_dir" && as_dir=.
13674 for ac_exec_ext in '' $ac_executable_extensions; do
13675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13676 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13687 if test -n "$ac_ct_NMEDIT"; then
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13689 $as_echo "$ac_ct_NMEDIT" >&6; }
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13695 if test "x$ac_ct_NMEDIT" = x; then
13698 case $cross_compiling:$ac_tool_warned in
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13702 ac_tool_warned=yes ;;
13704 NMEDIT=$ac_ct_NMEDIT
13707 NMEDIT="$ac_cv_prog_NMEDIT"
13710 if test -n "$ac_tool_prefix"; then
13711 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13712 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if test "${ac_cv_prog_LIPO+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13718 if test -n "$LIPO"; then
13719 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722 for as_dir in $PATH
13725 test -z "$as_dir" && as_dir=.
13726 for ac_exec_ext in '' $ac_executable_extensions; do
13727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13728 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 LIPO=$ac_cv_prog_LIPO
13739 if test -n "$LIPO"; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13741 $as_echo "$LIPO" >&6; }
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744 $as_echo "no" >&6; }
13749 if test -z "$ac_cv_prog_LIPO"; then
13751 # Extract the first word of "lipo", so it can be a program name with args.
13752 set dummy lipo; ac_word=$2
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13754 $as_echo_n "checking for $ac_word... " >&6; }
13755 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13756 $as_echo_n "(cached) " >&6
13758 if test -n "$ac_ct_LIPO"; then
13759 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
13767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13768 ac_cv_prog_ac_ct_LIPO="lipo"
13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13779 if test -n "$ac_ct_LIPO"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13781 $as_echo "$ac_ct_LIPO" >&6; }
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 $as_echo "no" >&6; }
13787 if test "x$ac_ct_LIPO" = x; then
13790 case $cross_compiling:$ac_tool_warned in
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13794 ac_tool_warned=yes ;;
13799 LIPO="$ac_cv_prog_LIPO"
13802 if test -n "$ac_tool_prefix"; then
13803 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13804 set dummy ${ac_tool_prefix}otool; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13810 if test -n "$OTOOL"; then
13811 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
13819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13820 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830 OTOOL=$ac_cv_prog_OTOOL
13831 if test -n "$OTOOL"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13833 $as_echo "$OTOOL" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13841 if test -z "$ac_cv_prog_OTOOL"; then
13843 # Extract the first word of "otool", so it can be a program name with args.
13844 set dummy otool; ac_word=$2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13846 $as_echo_n "checking for $ac_word... " >&6; }
13847 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13848 $as_echo_n "(cached) " >&6
13850 if test -n "$ac_ct_OTOOL"; then
13851 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13860 ac_cv_prog_ac_ct_OTOOL="otool"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13871 if test -n "$ac_ct_OTOOL"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13873 $as_echo "$ac_ct_OTOOL" >&6; }
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13876 $as_echo "no" >&6; }
13879 if test "x$ac_ct_OTOOL" = x; then
13882 case $cross_compiling:$ac_tool_warned in
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13886 ac_tool_warned=yes ;;
13891 OTOOL="$ac_cv_prog_OTOOL"
13894 if test -n "$ac_tool_prefix"; then
13895 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13896 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13898 $as_echo_n "checking for $ac_word... " >&6; }
13899 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
13902 if test -n "$OTOOL64"; then
13903 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH
13909 test -z "$as_dir" && as_dir=.
13910 for ac_exec_ext in '' $ac_executable_extensions; do
13911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13912 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13922 OTOOL64=$ac_cv_prog_OTOOL64
13923 if test -n "$OTOOL64"; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13925 $as_echo "$OTOOL64" >&6; }
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928 $as_echo "no" >&6; }
13933 if test -z "$ac_cv_prog_OTOOL64"; then
13934 ac_ct_OTOOL64=$OTOOL64
13935 # Extract the first word of "otool64", so it can be a program name with args.
13936 set dummy otool64; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938 $as_echo_n "checking for $ac_word... " >&6; }
13939 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13942 if test -n "$ac_ct_OTOOL64"; then
13943 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13952 ac_cv_prog_ac_ct_OTOOL64="otool64"
13953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13963 if test -n "$ac_ct_OTOOL64"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13965 $as_echo "$ac_ct_OTOOL64" >&6; }
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13971 if test "x$ac_ct_OTOOL64" = x; then
13974 case $cross_compiling:$ac_tool_warned in
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13978 ac_tool_warned=yes ;;
13980 OTOOL64=$ac_ct_OTOOL64
13983 OTOOL64="$ac_cv_prog_OTOOL64"
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14013 $as_echo_n "checking for -single_module linker flag... " >&6; }
14014 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14015 $as_echo_n "(cached) " >&6
14017 lt_cv_apple_cc_single_mod=no
14018 if test -z "${LT_MULTI_MODULE}"; then
14019 # By default we will add the -single_module flag. You can override
14020 # by either setting the environment variable LT_MULTI_MODULE
14021 # non-empty at configure time, or by adding -multi_module to the
14023 rm -rf libconftest.dylib*
14024 echo "int foo(void){return 1;}" > conftest.c
14025 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14026 -dynamiclib -Wl,-single_module conftest.c" >&5
14027 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14028 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14030 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14031 lt_cv_apple_cc_single_mod=yes
14033 cat conftest.err >&5
14035 rm -rf libconftest.dylib*
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14040 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14042 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14043 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14044 $as_echo_n "(cached) " >&6
14046 lt_cv_ld_exported_symbols_list=no
14047 save_LDFLAGS=$LDFLAGS
14048 echo "_main" > conftest.sym
14049 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14061 if ac_fn_c_try_link "$LINENO"; then :
14062 lt_cv_ld_exported_symbols_list=yes
14064 lt_cv_ld_exported_symbols_list=no
14066 rm -f core conftest.err conftest.$ac_objext \
14067 conftest$ac_exeext conftest.$ac_ext
14068 LDFLAGS="$save_LDFLAGS"
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14072 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14074 $as_echo_n "checking for -force_load linker flag... " >&6; }
14075 if test "${lt_cv_ld_force_load+set}" = set; then :
14076 $as_echo_n "(cached) " >&6
14078 lt_cv_ld_force_load=no
14079 cat > conftest.c << _LT_EOF
14080 int forced_loaded() { return 2;}
14082 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14083 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14084 echo "$AR cru libconftest.a conftest.o" >&5
14085 $AR cru libconftest.a conftest.o 2>&5
14086 cat > conftest.c << _LT_EOF
14087 int main() { return 0;}
14089 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14090 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14092 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14093 lt_cv_ld_force_load=yes
14095 cat conftest.err >&5
14097 rm -f conftest.err libconftest.a conftest conftest.c
14098 rm -rf conftest.dSYM
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14102 $as_echo "$lt_cv_ld_force_load" >&6; }
14104 rhapsody* | darwin1.[012])
14105 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14107 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14108 darwin*) # darwin 5.x on
14109 # if running on 10.5 or later, the deployment target defaults
14110 # to the OS version, if on x86, and 10.4, the deployment
14111 # target defaults to 10.4. Don't you love it?
14112 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14113 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14114 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14116 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14118 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14122 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14123 _lt_dar_single_mod='$single_module'
14125 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14126 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14128 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14130 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14131 _lt_dsymutil='~$DSYMUTIL $lib || :'
14138 for ac_header in dlfcn.h
14140 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14141 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_DLFCN_H 1
14160 enable_win32_dll=no
14163 # Check whether --enable-shared was given.
14164 if test "${enable_shared+set}" = set; then :
14165 enableval=$enable_shared; p=${PACKAGE-default}
14167 yes) enable_shared=yes ;;
14168 no) enable_shared=no ;;
14171 # Look at the argument we got. We use all the common list separators.
14172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14173 for pkg in $enableval; do
14175 if test "X$pkg" = "X$p"; then
14194 # Check whether --enable-static was given.
14195 if test "${enable_static+set}" = set; then :
14196 enableval=$enable_static; p=${PACKAGE-default}
14198 yes) enable_static=yes ;;
14199 no) enable_static=no ;;
14202 # Look at the argument we got. We use all the common list separators.
14203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14204 for pkg in $enableval; do
14206 if test "X$pkg" = "X$p"; then
14226 # Check whether --with-pic was given.
14227 if test "${with_pic+set}" = set; then :
14228 withval=$with_pic; pic_mode="$withval"
14234 test -z "$pic_mode" && pic_mode=default
14242 # Check whether --enable-fast-install was given.
14243 if test "${enable_fast_install+set}" = set; then :
14244 enableval=$enable_fast_install; p=${PACKAGE-default}
14246 yes) enable_fast_install=yes ;;
14247 no) enable_fast_install=no ;;
14249 enable_fast_install=no
14250 # Look at the argument we got. We use all the common list separators.
14251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14252 for pkg in $enableval; do
14254 if test "X$pkg" = "X$p"; then
14255 enable_fast_install=yes
14262 enable_fast_install=yes
14275 # This can be used to rebuild libtool when needed
14276 LIBTOOL_DEPS="$ltmain"
14278 # Always use our own libtool.
14279 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14306 test -z "$LN_S" && LN_S="ln -s"
14321 if test -n "${ZSH_VERSION+set}" ; then
14322 setopt NO_GLOB_SUBST
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14326 $as_echo_n "checking for objdir... " >&6; }
14327 if test "${lt_cv_objdir+set}" = set; then :
14328 $as_echo_n "(cached) " >&6
14330 rm -f .libs 2>/dev/null
14331 mkdir .libs 2>/dev/null
14332 if test -d .libs; then
14335 # MS-DOS does not allow filenames that begin with a dot.
14338 rmdir .libs 2>/dev/null
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14341 $as_echo "$lt_cv_objdir" >&6; }
14342 objdir=$lt_cv_objdir
14348 cat >>confdefs.h <<_ACEOF
14349 #define LT_OBJDIR "$lt_cv_objdir/"
14357 # AIX sometimes has problems with the GCC collect2 program. For some
14358 # reason, if we set the COLLECT_NAMES environment variable, the problems
14359 # vanish in a puff of smoke.
14360 if test "X${COLLECT_NAMES+set}" != Xset; then
14362 export COLLECT_NAMES
14367 # Global variables:
14369 can_build_shared=yes
14371 # All known linkers require a `.a' archive for static linking (except MSVC,
14372 # which needs '.lib').
14375 with_gnu_ld="$lt_cv_prog_gnu_ld"
14378 old_CFLAGS="$CFLAGS"
14380 # Set sane defaults for various variables
14381 test -z "$CC" && CC=cc
14382 test -z "$LTCC" && LTCC=$CC
14383 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14384 test -z "$LD" && LD=ld
14385 test -z "$ac_objext" && ac_objext=o
14387 for cc_temp in $compiler""; do
14389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14395 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14398 # Only perform the check for file, if the check method requires it
14399 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14400 case $deplibs_check_method in
14402 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14404 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14405 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14413 lt_save_MAGIC_CMD="$MAGIC_CMD"
14414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14415 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14416 for ac_dir in $ac_dummy; do
14418 test -z "$ac_dir" && ac_dir=.
14419 if test -f $ac_dir/${ac_tool_prefix}file; then
14420 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14421 if test -n "$file_magic_test_file"; then
14422 case $deplibs_check_method in
14424 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14426 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14427 $EGREP "$file_magic_regex" > /dev/null; then
14432 *** Warning: the command libtool uses to detect shared libraries,
14433 *** $file_magic_cmd, produces output that libtool cannot recognize.
14434 *** The result is that libtool may fail to recognize shared libraries
14435 *** as such. This will affect the creation of libtool libraries that
14436 *** depend on shared libraries, but programs linked with such libtool
14437 *** libraries will work regardless of this problem. Nevertheless, you
14438 *** may want to report the problem to your system manager and/or to
14439 *** bug-libtool@gnu.org
14449 MAGIC_CMD="$lt_save_MAGIC_CMD"
14454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14455 if test -n "$MAGIC_CMD"; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14457 $as_echo "$MAGIC_CMD" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 $as_echo "no" >&6; }
14467 if test -z "$lt_cv_path_MAGIC_CMD"; then
14468 if test -n "$ac_tool_prefix"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14470 $as_echo_n "checking for file... " >&6; }
14471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14472 $as_echo_n "(cached) " >&6
14476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14479 lt_save_MAGIC_CMD="$MAGIC_CMD"
14480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14482 for ac_dir in $ac_dummy; do
14484 test -z "$ac_dir" && ac_dir=.
14485 if test -f $ac_dir/file; then
14486 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14487 if test -n "$file_magic_test_file"; then
14488 case $deplibs_check_method in
14490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14493 $EGREP "$file_magic_regex" > /dev/null; then
14498 *** Warning: the command libtool uses to detect shared libraries,
14499 *** $file_magic_cmd, produces output that libtool cannot recognize.
14500 *** The result is that libtool may fail to recognize shared libraries
14501 *** as such. This will affect the creation of libtool libraries that
14502 *** depend on shared libraries, but programs linked with such libtool
14503 *** libraries will work regardless of this problem. Nevertheless, you
14504 *** may want to report the problem to your system manager and/or to
14505 *** bug-libtool@gnu.org
14515 MAGIC_CMD="$lt_save_MAGIC_CMD"
14520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14521 if test -n "$MAGIC_CMD"; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14523 $as_echo "$MAGIC_CMD" >&6; }
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14539 # Use C for the default configuration in the libtool script
14543 ac_cpp='$CPP $CPPFLAGS'
14544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14549 # Source file extension for C test sources.
14552 # Object file extension for compiled C test sources.
14556 # Code to be used in simple compile tests
14557 lt_simple_compile_test_code="int some_variable = 0;"
14559 # Code to be used in simple link tests
14560 lt_simple_link_test_code='int main(){return(0);}'
14568 # If no C compiler was specified, use CC.
14571 # If no C compiler flags were specified, use CFLAGS.
14572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14574 # Allow CC to be a program name with arguments.
14577 # Save the default compiler, since it gets overwritten when the other
14578 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14579 compiler_DEFAULT=$CC
14581 # save warnings/boilerplate of simple test code
14582 ac_outfile=conftest.$ac_objext
14583 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14584 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14585 _lt_compiler_boilerplate=`cat conftest.err`
14588 ac_outfile=conftest.$ac_objext
14589 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14590 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14591 _lt_linker_boilerplate=`cat conftest.err`
14596 ## There is no encapsulation within the following macros, do not change
14597 ## the running order or otherwise move them around unless you know exactly
14598 ## what you are doing...
14599 if test -n "$compiler"; then
14601 lt_prog_compiler_no_builtin_flag=
14603 if test "$GCC" = yes; then
14604 case $cc_basename in
14606 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14608 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14612 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14613 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14616 lt_cv_prog_compiler_rtti_exceptions=no
14617 ac_outfile=conftest.$ac_objext
14618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14619 lt_compiler_flag="-fno-rtti -fno-exceptions"
14620 # Insert the option either (1) after the last *FLAGS variable, or
14621 # (2) before a word containing "conftest.", or (3) at the end.
14622 # Note that $ac_compile itself does not contain backslashes and begins
14623 # with a dollar sign (not a hyphen), so the echo should work correctly.
14624 # The option is referenced via a variable to avoid confusing sed.
14625 lt_compile=`echo "$ac_compile" | $SED \
14626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14628 -e 's:$: $lt_compiler_flag:'`
14629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14630 (eval "$lt_compile" 2>conftest.err)
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 if (exit $ac_status) && test -s "$ac_outfile"; then
14635 # The compiler can only warn and ignore the option if not recognized
14636 # So say no if there are warnings other than the usual output.
14637 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14640 lt_cv_prog_compiler_rtti_exceptions=yes
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14647 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14649 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14650 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14662 lt_prog_compiler_wl=
14663 lt_prog_compiler_pic=
14664 lt_prog_compiler_static=
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14667 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14669 if test "$GCC" = yes; then
14670 lt_prog_compiler_wl='-Wl,'
14671 lt_prog_compiler_static='-static'
14675 # All AIX code is PIC.
14676 if test "$host_cpu" = ia64; then
14677 # AIX 5 now supports IA64 processor
14678 lt_prog_compiler_static='-Bstatic'
14685 # see comment about AmigaOS4 .so support
14686 lt_prog_compiler_pic='-fPIC'
14689 # FIXME: we need at least 68020 code to build shared libraries, but
14690 # adding the `-m68020' flag to GCC prevents building anything better,
14692 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14697 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14698 # PIC is the default for these OSes.
14701 mingw* | cygwin* | pw32* | os2* | cegcc*)
14702 # This hack is so that the source file can tell whether it is being
14703 # built for inclusion in a dll (and should export symbols for example).
14704 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14705 # (--disable-auto-import) libraries
14706 lt_prog_compiler_pic='-DDLL_EXPORT'
14709 darwin* | rhapsody*)
14710 # PIC is the default on this platform
14711 # Common symbols not allowed in MH_DYLIB files
14712 lt_prog_compiler_pic='-fno-common'
14716 # PIC is the default for Haiku.
14717 # The "-static" flag exists, but is broken.
14718 lt_prog_compiler_static=
14722 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14723 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14724 # sets the default TLS model and affects inlining.
14730 lt_prog_compiler_pic='-fPIC'
14736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14737 # Instead, we relocate shared libraries at runtime.
14741 # Just because we use GCC doesn't mean we suddenly get shared libraries
14742 # on systems that don't support them.
14743 lt_prog_compiler_can_build_shared=no
14748 # QNX uses GNU C++, but need to define -shared option too, otherwise
14749 # it will coredump.
14750 lt_prog_compiler_pic='-fPIC -shared'
14754 if test -d /usr/nec; then
14755 lt_prog_compiler_pic=-Kconform_pic
14760 lt_prog_compiler_pic='-fPIC'
14764 case $cc_basename in
14765 nvcc*) # Cuda Compiler Driver 2.2
14766 lt_prog_compiler_wl='-Xlinker '
14767 lt_prog_compiler_pic='-Xcompiler -fPIC'
14771 # PORTME Check for flag to pass linker flags through the system compiler.
14774 lt_prog_compiler_wl='-Wl,'
14775 if test "$host_cpu" = ia64; then
14776 # AIX 5 now supports IA64 processor
14777 lt_prog_compiler_static='-Bstatic'
14779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14783 mingw* | cygwin* | pw32* | os2* | cegcc*)
14784 # This hack is so that the source file can tell whether it is being
14785 # built for inclusion in a dll (and should export symbols for example).
14786 lt_prog_compiler_pic='-DDLL_EXPORT'
14789 hpux9* | hpux10* | hpux11*)
14790 lt_prog_compiler_wl='-Wl,'
14791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14792 # not for PA HP-UX.
14798 lt_prog_compiler_pic='+Z'
14801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14802 lt_prog_compiler_static='${wl}-a ${wl}archive'
14805 irix5* | irix6* | nonstopux*)
14806 lt_prog_compiler_wl='-Wl,'
14807 # PIC (with -KPIC) is the default.
14808 lt_prog_compiler_static='-non_shared'
14811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14812 case $cc_basename in
14813 # old Intel for x86_64 which still supported -KPIC.
14815 lt_prog_compiler_wl='-Wl,'
14816 lt_prog_compiler_pic='-KPIC'
14817 lt_prog_compiler_static='-static'
14819 # icc used to be incompatible with GCC.
14820 # ICC 10 doesn't accept -KPIC any more.
14822 lt_prog_compiler_wl='-Wl,'
14823 lt_prog_compiler_pic='-fPIC'
14824 lt_prog_compiler_static='-static'
14826 # Lahey Fortran 8.1.
14828 lt_prog_compiler_wl='-Wl,'
14829 lt_prog_compiler_pic='--shared'
14830 lt_prog_compiler_static='--static'
14832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14833 # Portland Group compilers (*not* the Pentium gcc compiler,
14834 # which looks to be a dead project)
14835 lt_prog_compiler_wl='-Wl,'
14836 lt_prog_compiler_pic='-fpic'
14837 lt_prog_compiler_static='-Bstatic'
14840 lt_prog_compiler_wl='-Wl,'
14841 # All Alpha code is PIC.
14842 lt_prog_compiler_static='-non_shared'
14844 xl* | bgxl* | bgf* | mpixl*)
14845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14846 lt_prog_compiler_wl='-Wl,'
14847 lt_prog_compiler_pic='-qpic'
14848 lt_prog_compiler_static='-qstaticlink'
14851 case `$CC -V 2>&1 | sed 5q` in
14852 *Sun\ F* | *Sun*Fortran*)
14853 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14854 lt_prog_compiler_pic='-KPIC'
14855 lt_prog_compiler_static='-Bstatic'
14856 lt_prog_compiler_wl=''
14860 lt_prog_compiler_pic='-KPIC'
14861 lt_prog_compiler_static='-Bstatic'
14862 lt_prog_compiler_wl='-Wl,'
14870 lt_prog_compiler_pic='-KPIC'
14871 lt_prog_compiler_static='-Bstatic'
14875 # QNX uses GNU C++, but need to define -shared option too, otherwise
14876 # it will coredump.
14877 lt_prog_compiler_pic='-fPIC -shared'
14880 osf3* | osf4* | osf5*)
14881 lt_prog_compiler_wl='-Wl,'
14882 # All OSF/1 code is PIC.
14883 lt_prog_compiler_static='-non_shared'
14887 lt_prog_compiler_static='-non_shared'
14891 lt_prog_compiler_pic='-KPIC'
14892 lt_prog_compiler_static='-Bstatic'
14893 case $cc_basename in
14894 f77* | f90* | f95*)
14895 lt_prog_compiler_wl='-Qoption ld ';;
14897 lt_prog_compiler_wl='-Wl,';;
14902 lt_prog_compiler_wl='-Qoption ld '
14903 lt_prog_compiler_pic='-PIC'
14904 lt_prog_compiler_static='-Bstatic'
14907 sysv4 | sysv4.2uw2* | sysv4.3*)
14908 lt_prog_compiler_wl='-Wl,'
14909 lt_prog_compiler_pic='-KPIC'
14910 lt_prog_compiler_static='-Bstatic'
14914 if test -d /usr/nec ;then
14915 lt_prog_compiler_pic='-Kconform_pic'
14916 lt_prog_compiler_static='-Bstatic'
14920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14921 lt_prog_compiler_wl='-Wl,'
14922 lt_prog_compiler_pic='-KPIC'
14923 lt_prog_compiler_static='-Bstatic'
14927 lt_prog_compiler_wl='-Wl,'
14928 lt_prog_compiler_can_build_shared=no
14932 lt_prog_compiler_pic='-pic'
14933 lt_prog_compiler_static='-Bstatic'
14937 lt_prog_compiler_can_build_shared=no
14943 # For platforms which do not support PIC, -DPIC is meaningless:
14945 lt_prog_compiler_pic=
14948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14952 $as_echo "$lt_prog_compiler_pic" >&6; }
14960 # Check to make sure the PIC flag actually works.
14962 if test -n "$lt_prog_compiler_pic"; then
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14965 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14966 $as_echo_n "(cached) " >&6
14968 lt_cv_prog_compiler_pic_works=no
14969 ac_outfile=conftest.$ac_objext
14970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14972 # Insert the option either (1) after the last *FLAGS variable, or
14973 # (2) before a word containing "conftest.", or (3) at the end.
14974 # Note that $ac_compile itself does not contain backslashes and begins
14975 # with a dollar sign (not a hyphen), so the echo should work correctly.
14976 # The option is referenced via a variable to avoid confusing sed.
14977 lt_compile=`echo "$ac_compile" | $SED \
14978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14980 -e 's:$: $lt_compiler_flag:'`
14981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14982 (eval "$lt_compile" 2>conftest.err)
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 if (exit $ac_status) && test -s "$ac_outfile"; then
14987 # The compiler can only warn and ignore the option if not recognized
14988 # So say no if there are warnings other than the usual output.
14989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14992 lt_cv_prog_compiler_pic_works=yes
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15002 case $lt_prog_compiler_pic in
15004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15007 lt_prog_compiler_pic=
15008 lt_prog_compiler_can_build_shared=no
15019 # Check to make sure the static flag actually works.
15021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15024 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15025 $as_echo_n "(cached) " >&6
15027 lt_cv_prog_compiler_static_works=no
15028 save_LDFLAGS="$LDFLAGS"
15029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15032 # The linker can only warn and ignore the option if not recognized
15033 # So say no if there are warnings
15034 if test -s conftest.err; then
15035 # Append any errors to the config.log.
15036 cat conftest.err 1>&5
15037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15039 if diff conftest.exp conftest.er2 >/dev/null; then
15040 lt_cv_prog_compiler_static_works=yes
15043 lt_cv_prog_compiler_static_works=yes
15047 LDFLAGS="$save_LDFLAGS"
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15056 lt_prog_compiler_static=
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15067 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15068 $as_echo_n "(cached) " >&6
15070 lt_cv_prog_compiler_c_o=no
15071 $RM -r conftest 2>/dev/null
15075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15077 lt_compiler_flag="-o out/conftest2.$ac_objext"
15078 # Insert the option either (1) after the last *FLAGS variable, or
15079 # (2) before a word containing "conftest.", or (3) at the end.
15080 # Note that $ac_compile itself does not contain backslashes and begins
15081 # with a dollar sign (not a hyphen), so the echo should work correctly.
15082 lt_compile=`echo "$ac_compile" | $SED \
15083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15085 -e 's:$: $lt_compiler_flag:'`
15086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15087 (eval "$lt_compile" 2>out/conftest.err)
15089 cat out/conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15093 # The compiler can only warn and ignore the option if not recognized
15094 # So say no if there are warnings
15095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15098 lt_cv_prog_compiler_c_o=yes
15103 # SGI C++ compiler will create directory out/ii_files/ for
15104 # template instantiation
15105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15106 $RM out/* && rmdir out
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15122 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15125 lt_cv_prog_compiler_c_o=no
15126 $RM -r conftest 2>/dev/null
15130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15132 lt_compiler_flag="-o out/conftest2.$ac_objext"
15133 # Insert the option either (1) after the last *FLAGS variable, or
15134 # (2) before a word containing "conftest.", or (3) at the end.
15135 # Note that $ac_compile itself does not contain backslashes and begins
15136 # with a dollar sign (not a hyphen), so the echo should work correctly.
15137 lt_compile=`echo "$ac_compile" | $SED \
15138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15140 -e 's:$: $lt_compiler_flag:'`
15141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15142 (eval "$lt_compile" 2>out/conftest.err)
15144 cat out/conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15148 # The compiler can only warn and ignore the option if not recognized
15149 # So say no if there are warnings
15150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15153 lt_cv_prog_compiler_c_o=yes
15158 # SGI C++ compiler will create directory out/ii_files/ for
15159 # template instantiation
15160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15161 $RM out/* && rmdir out
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15173 hard_links="nottested"
15174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15175 # do not overwrite the value of need_locks provided by the user
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15177 $as_echo_n "checking if we can lock with hard links... " >&6; }
15180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15182 ln conftest.a conftest.b 2>&5 || hard_links=no
15183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15185 $as_echo "$hard_links" >&6; }
15186 if test "$hard_links" = no; then
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15204 allow_undefined_flag=
15205 always_export_symbols=no
15207 archive_expsym_cmds=
15208 compiler_needs_object=no
15209 enable_shared_with_static_runtimes=no
15210 export_dynamic_flag_spec=
15211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15212 hardcode_automatic=no
15214 hardcode_direct_absolute=no
15215 hardcode_libdir_flag_spec=
15216 hardcode_libdir_flag_spec_ld=
15217 hardcode_libdir_separator=
15218 hardcode_minus_L=no
15219 hardcode_shlibpath_var=unsupported
15221 link_all_deplibs=unknown
15223 module_expsym_cmds=
15224 old_archive_from_new_cmds=
15225 old_archive_from_expsyms_cmds=
15226 thread_safe_flag_spec=
15227 whole_archive_flag_spec=
15228 # include_expsyms should be a list of space-separated symbols to be *always*
15229 # included in the symbol list
15231 # exclude_expsyms can be an extended regexp of symbols to exclude
15232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15234 # as well as any symbol that contains `d'.
15235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15237 # platforms (ab)use it in PIC code, but their linkers get confused if
15238 # the symbol is explicitly referenced. Since portable code cannot
15239 # rely on this symbol name, it's probably fine to never include it in
15240 # preloaded symbol tables.
15241 # Exclude shared library initialization/finalization symbols.
15242 extract_expsyms_cmds=
15245 cygwin* | mingw* | pw32* | cegcc*)
15246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15247 # When not using gcc, we currently assume that we are using
15248 # Microsoft Visual C++.
15249 if test "$GCC" != yes; then
15254 # we just hope/assume this is gcc and not c89 (= MSVC++)
15264 # On some targets, GNU ld is compatible enough with the native linker
15265 # that we're better off using the native interface for both.
15266 lt_use_gnu_ld_interface=no
15267 if test "$with_gnu_ld" = yes; then
15270 # The AIX port of GNU ld has always aspired to compatibility
15271 # with the native linker. However, as the warning in the GNU ld
15272 # block says, versions before 2.19.5* couldn't really create working
15273 # shared libraries, regardless of the interface used.
15274 case `$LD -v 2>&1` in
15275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15277 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15279 lt_use_gnu_ld_interface=yes
15284 lt_use_gnu_ld_interface=yes
15289 if test "$lt_use_gnu_ld_interface" = yes; then
15290 # If archive_cmds runs LD, not CC, wlarc should be empty
15293 # Set some defaults for GNU ld with shared library support. These
15294 # are reset later if shared libraries are not supported. Putting them
15295 # here allows them to be overridden if necessary.
15296 runpath_var=LD_RUN_PATH
15297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15298 export_dynamic_flag_spec='${wl}--export-dynamic'
15299 # ancient GNU ld didn't support --whole-archive et. al.
15300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15301 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15303 whole_archive_flag_spec=
15305 supports_anon_versioning=no
15306 case `$LD -v 2>&1` in
15307 *GNU\ gold*) supports_anon_versioning=yes ;;
15308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15311 *\ 2.11.*) ;; # other 2.11 versions
15312 *) supports_anon_versioning=yes ;;
15315 # See if GNU ld supports shared libraries.
15318 # On AIX/PPC, the GNU linker is very broken
15319 if test "$host_cpu" != ia64; then
15323 *** Warning: the GNU linker, at least up to release 2.19, is reported
15324 *** to be unable to reliably create shared libraries on AIX.
15325 *** Therefore, libtool is disabling shared libraries support. If you
15326 *** really care for shared libraries, you may want to install binutils
15327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15328 *** You will then need to restart the configuration process.
15337 # see comment about AmigaOS4 .so support
15338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15339 archive_expsym_cmds=''
15342 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)'
15343 hardcode_libdir_flag_spec='-L$libdir'
15344 hardcode_minus_L=yes
15350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15351 allow_undefined_flag=unsupported
15352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15353 # support --undefined. This deserves some investigation. FIXME
15354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15360 cygwin* | mingw* | pw32* | cegcc*)
15361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15362 # as there is no search path for DLLs.
15363 hardcode_libdir_flag_spec='-L$libdir'
15364 export_dynamic_flag_spec='${wl}--export-all-symbols'
15365 allow_undefined_flag=unsupported
15366 always_export_symbols=no
15367 enable_shared_with_static_runtimes=yes
15368 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15370 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15372 # If the export-symbols file already is a .def file (1st line
15373 # is EXPORTS), use it as is; otherwise, prepend...
15374 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15375 cp $export_symbols $output_objdir/$soname.def;
15377 echo EXPORTS > $output_objdir/$soname.def;
15378 cat $export_symbols >> $output_objdir/$soname.def;
15380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15388 link_all_deplibs=yes
15393 hardcode_shlibpath_var=no
15394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15395 export_dynamic_flag_spec='${wl}-E'
15396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15397 # Instead, shared libraries are loaded at an image base (0x10000000 by
15398 # default) and relocated if they conflict, which is a slow very memory
15399 # consuming and fragmenting process. To avoid this, we pick a random,
15400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15403 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'
15406 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15408 if test "$host_os" = linux-dietlibc; then
15409 case $cc_basename in
15410 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15413 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15414 && test "$tmp_diet" = no
15417 tmp_sharedflag='-shared'
15418 case $cc_basename,$host_cpu in
15419 pgcc*) # Portland Group C compiler
15420 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'
15421 tmp_addflag=' $pic_flag'
15423 pgf77* | pgf90* | pgf95* | pgfortran*)
15424 # Portland Group f77 and f90 compilers
15425 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'
15426 tmp_addflag=' $pic_flag -Mnomain' ;;
15427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15428 tmp_addflag=' -i_dynamic' ;;
15429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15430 tmp_addflag=' -i_dynamic -nofor_main' ;;
15431 ifc* | ifort*) # Intel Fortran compiler
15432 tmp_addflag=' -nofor_main' ;;
15433 lf95*) # Lahey Fortran 8.1
15434 whole_archive_flag_spec=
15435 tmp_sharedflag='--shared' ;;
15436 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15437 tmp_sharedflag='-qmkshrobj'
15439 nvcc*) # Cuda Compiler Driver 2.2
15440 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'
15441 compiler_needs_object=yes
15444 case `$CC -V 2>&1 | sed 5q` in
15445 *Sun\ C*) # Sun C 5.9
15446 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'
15447 compiler_needs_object=yes
15448 tmp_sharedflag='-G' ;;
15449 *Sun\ F*) # Sun Fortran 8.3
15450 tmp_sharedflag='-G' ;;
15452 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15454 if test "x$supports_anon_versioning" = xyes; then
15455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15457 echo "local: *; };" >> $output_objdir/$libname.ver~
15458 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15461 case $cc_basename in
15462 xlf* | bgf* | bgxlf* | mpixlf*)
15463 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15464 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15465 hardcode_libdir_flag_spec=
15466 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15467 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15468 if test "x$supports_anon_versioning" = xyes; then
15469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15471 echo "local: *; };" >> $output_objdir/$libname.ver~
15472 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15492 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15497 *** create shared libraries on Solaris systems. Therefore, libtool
15498 *** is disabling shared libraries support. We urge you to upgrade GNU
15499 *** binutils to release 2.9.1 or newer. Another option is to modify
15500 *** your PATH or compiler configuration so that the native linker is
15501 *** used, and then restart.
15504 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15513 case `$LD -v 2>&1` in
15514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15519 *** reliably create shared libraries on SCO systems. Therefore, libtool
15520 *** is disabling shared libraries support. We urge you to upgrade GNU
15521 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15522 *** your PATH or compiler configuration so that the native linker is
15523 *** used, and then restart.
15528 # For security reasons, it is highly recommended that you always
15529 # use absolute paths for naming shared libraries, and exclude the
15530 # DT_RUNPATH tag from executables and libraries. But doing so
15531 # requires that you compile everything twice, which is a pain.
15532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_direct=yes
15547 hardcode_shlibpath_var=no
15551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560 if test "$ld_shlibs" = no; then
15562 hardcode_libdir_flag_spec=
15563 export_dynamic_flag_spec=
15564 whole_archive_flag_spec=
15567 # PORTME fill in a description of your system's linker (not GNU ld)
15570 allow_undefined_flag=unsupported
15571 always_export_symbols=yes
15572 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'
15573 # Note: this linker hardcodes the directories in LIBPATH if there
15574 # are no directories specified by -L.
15575 hardcode_minus_L=yes
15576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15577 # Neither direct hardcoding nor static linking is supported with a
15579 hardcode_direct=unsupported
15584 if test "$host_cpu" = ia64; then
15585 # On IA64, the linker does run time linking by default, so we don't
15586 # have to do anything special.
15587 aix_use_runtimelinking=no
15588 exp_sym_flag='-Bexport'
15591 # If we're using GNU nm, then we don't want the "-C" option.
15592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15593 # Also, AIX nm treats weak defined symbols like other global
15594 # defined symbols, whereas GNU nm marks them as "W".
15595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15596 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'
15598 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'
15600 aix_use_runtimelinking=no
15602 # Test if we are trying to use run time linking or normal
15603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15604 # need to do runtime linking.
15605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15606 for ld_flag in $LDFLAGS; do
15607 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15608 aix_use_runtimelinking=yes
15615 exp_sym_flag='-bexport'
15616 no_entry_flag='-bnoentry'
15619 # When large executables or shared objects are built, AIX ld can
15620 # have problems creating the table of contents. If linking a library
15621 # or program results in "error TOC overflow" add -mminimal-toc to
15622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15626 hardcode_direct=yes
15627 hardcode_direct_absolute=yes
15628 hardcode_libdir_separator=':'
15629 link_all_deplibs=yes
15630 file_list_spec='${wl}-f,'
15632 if test "$GCC" = yes; then
15633 case $host_os in aix4.[012]|aix4.[012].*)
15634 # We only want to do this on AIX 4.2 and lower, the check
15635 # below for broken collect2 doesn't work under 4.3+
15636 collect2name=`${CC} -print-prog-name=collect2`
15637 if test -f "$collect2name" &&
15638 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15640 # We have reworked collect2
15643 # We have old collect2
15644 hardcode_direct=unsupported
15645 # It fails to find uninstalled libraries when the uninstalled
15646 # path is not listed in the libpath. Setting hardcode_minus_L
15647 # to unsupported forces relinking
15648 hardcode_minus_L=yes
15649 hardcode_libdir_flag_spec='-L$libdir'
15650 hardcode_libdir_separator=
15654 shared_flag='-shared'
15655 if test "$aix_use_runtimelinking" = yes; then
15656 shared_flag="$shared_flag "'${wl}-G'
15660 if test "$host_cpu" = ia64; then
15661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15662 # chokes on -Wl,-G. The following line is correct:
15665 if test "$aix_use_runtimelinking" = yes; then
15666 shared_flag='${wl}-G'
15668 shared_flag='${wl}-bM:SRE'
15673 export_dynamic_flag_spec='${wl}-bexpall'
15674 # It seems that -bexpall does not export symbols beginning with
15675 # underscore (_), so it is better to generate a list of symbols to export.
15676 always_export_symbols=yes
15677 if test "$aix_use_runtimelinking" = yes; then
15678 # Warning - without using the other runtime loading flags (-brtl),
15679 # -berok will link without error, but may produce a broken library.
15680 allow_undefined_flag='-berok'
15681 # Determine the default libpath from the value encoded in an
15682 # empty executable.
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15694 if ac_fn_c_try_link "$LINENO"; then :
15696 lt_aix_libpath_sed='
15697 /Import File Strings/,/^$/ {
15703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15704 # Check for a 64-bit object if we didn't find anything.
15705 if test -z "$aix_libpath"; then
15706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15709 rm -f core conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15714 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"
15716 if test "$host_cpu" = ia64; then
15717 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15718 allow_undefined_flag="-z nodefs"
15719 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"
15721 # Determine the default libpath from the value encoded in an
15722 # empty executable.
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15734 if ac_fn_c_try_link "$LINENO"; then :
15736 lt_aix_libpath_sed='
15737 /Import File Strings/,/^$/ {
15743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15744 # Check for a 64-bit object if we didn't find anything.
15745 if test -z "$aix_libpath"; then
15746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15749 rm -f core conftest.err conftest.$ac_objext \
15750 conftest$ac_exeext conftest.$ac_ext
15751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15753 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15754 # Warning - without using the other run time loading flags,
15755 # -berok will link without error, but may produce a broken library.
15756 no_undefined_flag=' ${wl}-bernotok'
15757 allow_undefined_flag=' ${wl}-berok'
15758 if test "$with_gnu_ld" = yes; then
15759 # We only use this code for GNU lds that support --whole-archive.
15760 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15762 # Exported symbols can be pulled into shared objects from archives
15763 whole_archive_flag_spec='$convenience'
15765 archive_cmds_need_lc=yes
15766 # This is similar to how AIX traditionally builds its shared libraries.
15767 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'
15775 # see comment about AmigaOS4 .so support
15776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds=''
15780 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)'
15781 hardcode_libdir_flag_spec='-L$libdir'
15782 hardcode_minus_L=yes
15788 export_dynamic_flag_spec=-rdynamic
15791 cygwin* | mingw* | pw32* | cegcc*)
15792 # When not using gcc, we currently assume that we are using
15793 # Microsoft Visual C++.
15794 # hardcode_libdir_flag_spec is actually meaningless, as there is
15795 # no search path for DLLs.
15796 hardcode_libdir_flag_spec=' '
15797 allow_undefined_flag=unsupported
15798 # Tell ltmain to make .lib files, not .a files.
15800 # Tell ltmain to make .dll files, not .so files.
15802 # FIXME: Setting linknames here is a bad hack.
15803 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15804 # The linker will automatically build a .lib file if we build a DLL.
15805 old_archive_from_new_cmds='true'
15806 # FIXME: Should let the user specify the lib program.
15807 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15808 fix_srcfile_path='`cygpath -w "$srcfile"`'
15809 enable_shared_with_static_runtimes=yes
15812 darwin* | rhapsody*)
15815 archive_cmds_need_lc=no
15817 hardcode_automatic=yes
15818 hardcode_shlibpath_var=unsupported
15819 if test "$lt_cv_ld_force_load" = "yes"; then
15820 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\"`'
15822 whole_archive_flag_spec=''
15824 link_all_deplibs=yes
15825 allow_undefined_flag="$_lt_dar_allow_undefined"
15826 case $cc_basename in
15827 ifort*) _lt_dar_can_shared=yes ;;
15828 *) _lt_dar_can_shared=$GCC ;;
15830 if test "$_lt_dar_can_shared" = "yes"; then
15831 output_verbose_link_cmd=func_echo_all
15832 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15833 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15834 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}"
15835 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}"
15844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_libdir_flag_spec='-L$libdir'
15846 hardcode_shlibpath_var=no
15849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15850 # support. Future versions do this automatically, but an explicit c++rt0.o
15851 # does not break anything, and helps significantly (at the cost of a little
15854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15855 hardcode_libdir_flag_spec='-R$libdir'
15856 hardcode_direct=yes
15857 hardcode_shlibpath_var=no
15860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15863 hardcode_direct=yes
15864 hardcode_minus_L=yes
15865 hardcode_shlibpath_var=no
15868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15869 freebsd* | dragonfly*)
15870 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15871 hardcode_libdir_flag_spec='-R$libdir'
15872 hardcode_direct=yes
15873 hardcode_shlibpath_var=no
15877 if test "$GCC" = yes; then
15878 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'
15880 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'
15882 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15883 hardcode_libdir_separator=:
15884 hardcode_direct=yes
15886 # hardcode_minus_L: Not really in the search PATH,
15887 # but as the default location of the library.
15888 hardcode_minus_L=yes
15889 export_dynamic_flag_spec='${wl}-E'
15893 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15898 if test "$with_gnu_ld" = no; then
15899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15900 hardcode_libdir_flag_spec_ld='+b $libdir'
15901 hardcode_libdir_separator=:
15902 hardcode_direct=yes
15903 hardcode_direct_absolute=yes
15904 export_dynamic_flag_spec='${wl}-E'
15905 # hardcode_minus_L: Not really in the search PATH,
15906 # but as the default location of the library.
15907 hardcode_minus_L=yes
15912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15915 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15921 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15927 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15934 # Older versions of the 11.00 compiler do not understand -b yet
15935 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15937 $as_echo_n "checking if $CC understands -b... " >&6; }
15938 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15939 $as_echo_n "(cached) " >&6
15941 lt_cv_prog_compiler__b=no
15942 save_LDFLAGS="$LDFLAGS"
15943 LDFLAGS="$LDFLAGS -b"
15944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15946 # The linker can only warn and ignore the option if not recognized
15947 # So say no if there are warnings
15948 if test -s conftest.err; then
15949 # Append any errors to the config.log.
15950 cat conftest.err 1>&5
15951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15953 if diff conftest.exp conftest.er2 >/dev/null; then
15954 lt_cv_prog_compiler__b=yes
15957 lt_cv_prog_compiler__b=yes
15961 LDFLAGS="$save_LDFLAGS"
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15965 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15967 if test x"$lt_cv_prog_compiler__b" = xyes; then
15968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15976 if test "$with_gnu_ld" = no; then
15977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15978 hardcode_libdir_separator=:
15983 hardcode_shlibpath_var=no
15986 hardcode_direct=yes
15987 hardcode_direct_absolute=yes
15988 export_dynamic_flag_spec='${wl}-E'
15990 # hardcode_minus_L: Not really in the search PATH,
15991 # but as the default location of the library.
15992 hardcode_minus_L=yes
15998 irix5* | irix6* | nonstopux*)
15999 if test "$GCC" = yes; then
16000 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'
16001 # Try to use the -exported_symbol ld option, if it does not
16002 # work, assume that -exports_file does not work either and
16003 # implicitly export all symbols.
16004 save_LDFLAGS="$LDFLAGS"
16005 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16010 if ac_fn_c_try_link "$LINENO"; then :
16011 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'
16014 rm -f core conftest.err conftest.$ac_objext \
16015 conftest$ac_exeext conftest.$ac_ext
16016 LDFLAGS="$save_LDFLAGS"
16018 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'
16019 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'
16021 archive_cmds_need_lc='no'
16022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16023 hardcode_libdir_separator=:
16025 link_all_deplibs=yes
16029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16032 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16034 hardcode_libdir_flag_spec='-R$libdir'
16035 hardcode_direct=yes
16036 hardcode_shlibpath_var=no
16040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_direct=yes
16042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16043 hardcode_libdir_separator=:
16044 hardcode_shlibpath_var=no
16051 if test -f /usr/libexec/ld.so; then
16052 hardcode_direct=yes
16053 hardcode_shlibpath_var=no
16054 hardcode_direct_absolute=yes
16055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16056 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16059 export_dynamic_flag_spec='${wl}-E'
16062 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16064 hardcode_libdir_flag_spec='-R$libdir'
16067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16078 hardcode_libdir_flag_spec='-L$libdir'
16079 hardcode_minus_L=yes
16080 allow_undefined_flag=unsupported
16081 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'
16082 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16086 if test "$GCC" = yes; then
16087 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16088 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'
16090 allow_undefined_flag=' -expect_unresolved \*'
16091 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'
16093 archive_cmds_need_lc='no'
16094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16095 hardcode_libdir_separator=:
16098 osf4* | osf5*) # as osf3* with the addition of -msym flag
16099 if test "$GCC" = yes; then
16100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16101 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'
16102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16104 allow_undefined_flag=' -expect_unresolved \*'
16105 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'
16106 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~
16107 $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'
16109 # Both c and cxx compiler support -rpath directly
16110 hardcode_libdir_flag_spec='-rpath $libdir'
16112 archive_cmds_need_lc='no'
16113 hardcode_libdir_separator=:
16117 no_undefined_flag=' -z defs'
16118 if test "$GCC" = yes; then
16120 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16122 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16124 case `$CC -V 2>&1` in
16127 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16129 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16133 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16135 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16139 hardcode_libdir_flag_spec='-R$libdir'
16140 hardcode_shlibpath_var=no
16142 solaris2.[0-5] | solaris2.[0-5].*) ;;
16144 # The compiler driver will combine and reorder linker options,
16145 # but understands `-z linker_flag'. GCC discards it without `$wl',
16146 # but is careful enough not to reorder.
16147 # Supported since Solaris 2.6 (maybe 2.5.1?)
16148 if test "$GCC" = yes; then
16149 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16151 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16155 link_all_deplibs=yes
16159 if test "x$host_vendor" = xsequent; then
16160 # Use $CC to link under sequent, because it throws in some extra .o
16161 # files that make .init and .fini sections work.
16162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16166 hardcode_libdir_flag_spec='-L$libdir'
16167 hardcode_direct=yes
16168 hardcode_minus_L=yes
16169 hardcode_shlibpath_var=no
16173 case $host_vendor in
16175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_direct=yes # is this really true???
16179 ## LD is ld it makes a PLAMLIB
16180 ## CC just makes a GrossModule.
16181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16182 reload_cmds='$CC -r -o $output$reload_objs'
16186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16190 runpath_var='LD_RUN_PATH'
16191 hardcode_shlibpath_var=no
16195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_shlibpath_var=no
16197 export_dynamic_flag_spec='-Bexport'
16201 if test -d /usr/nec; then
16202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var=no
16204 runpath_var=LD_RUN_PATH
16205 hardcode_runpath_var=yes
16210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16211 no_undefined_flag='${wl}-z,text'
16212 archive_cmds_need_lc=no
16213 hardcode_shlibpath_var=no
16214 runpath_var='LD_RUN_PATH'
16216 if test "$GCC" = yes; then
16217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 sysv5* | sco3.2v5* | sco5v6*)
16226 # Note: We can NOT use -z defs as we might desire, because we do not
16227 # link with -lc, and that would cause any symbols used from libc to
16228 # always be unresolved, which means just about no library would
16229 # ever link correctly. If we're not using GNU ld we use -z text
16230 # though, which does catch some bad symbols but isn't as heavy-handed
16232 no_undefined_flag='${wl}-z,text'
16233 allow_undefined_flag='${wl}-z,nodefs'
16234 archive_cmds_need_lc=no
16235 hardcode_shlibpath_var=no
16236 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16237 hardcode_libdir_separator=':'
16238 link_all_deplibs=yes
16239 export_dynamic_flag_spec='${wl}-Bexport'
16240 runpath_var='LD_RUN_PATH'
16242 if test "$GCC" = yes; then
16243 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16246 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_libdir_flag_spec='-L$libdir'
16254 hardcode_shlibpath_var=no
16262 if test x$host_vendor = xsni; then
16264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16265 export_dynamic_flag_spec='${wl}-Blargedynsym'
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16272 $as_echo "$ld_shlibs" >&6; }
16273 test "$ld_shlibs" = no && can_build_shared=no
16275 with_gnu_ld=$with_gnu_ld
16292 # Do we need to explicitly link libc?
16294 case "x$archive_cmds_need_lc" in
16296 # Assume -lc should be added
16297 archive_cmds_need_lc=yes
16299 if test "$enable_shared" = yes && test "$GCC" = yes; then
16300 case $archive_cmds in
16302 # FIXME: we may have to deal with multi-command sequences.
16305 # Test whether the compiler implicitly links with -lc since on some
16306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16307 # to ld, don't add -lc before -lgcc.
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16309 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16310 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16311 $as_echo_n "(cached) " >&6
16314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16317 (eval $ac_compile) 2>&5
16319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16320 test $ac_status = 0; } 2>conftest.err; then
16323 libobjs=conftest.$ac_objext
16325 wl=$lt_prog_compiler_wl
16326 pic_flag=$lt_prog_compiler_pic
16332 lt_save_allow_undefined_flag=$allow_undefined_flag
16333 allow_undefined_flag=
16334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16335 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338 test $ac_status = 0; }
16340 lt_cv_archive_cmds_need_lc=no
16342 lt_cv_archive_cmds_need_lc=yes
16344 allow_undefined_flag=$lt_save_allow_undefined_flag
16346 cat conftest.err 1>&5
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16352 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16353 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16519 if test "$GCC" = yes; then
16521 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16522 *) lt_awk_arg="/^libraries:/" ;;
16525 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16526 *) lt_sed_strip_eq="s,=/,/,g" ;;
16528 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16529 case $lt_search_path_spec in
16531 # if the path contains ";" then we assume it to be the separator
16532 # otherwise default to the standard path separator (i.e. ":") - it is
16533 # assumed that no part of a normal pathname contains ";" but that should
16534 # okay in the real world where ";" in dirpaths is itself problematic.
16535 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16538 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16541 # Ok, now we have the path, separated by spaces, we can step through it
16542 # and add multilib dir if necessary.
16543 lt_tmp_lt_search_path_spec=
16544 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16545 for lt_sys_path in $lt_search_path_spec; do
16546 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16547 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16549 test -d "$lt_sys_path" && \
16550 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16553 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16554 BEGIN {RS=" "; FS="/|\n";} {
16557 for (lt_i = NF; lt_i > 0; lt_i--) {
16558 if ($lt_i != "" && $lt_i != ".") {
16559 if ($lt_i == "..") {
16562 if (lt_count == 0) {
16563 lt_foo="/" $lt_i lt_foo;
16570 if (lt_foo != "") { lt_freq[lt_foo]++; }
16571 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16573 # AWK program above erroneously prepends '/' to C:/dos/paths
16576 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16577 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16579 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16583 library_names_spec=
16584 libname_spec='lib$name'
16588 postuninstall_cmds=
16592 shlibpath_overrides_runpath=unknown
16594 dynamic_linker="$host_os ld.so"
16595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16596 need_lib_prefix=unknown
16597 hardcode_into_libs=no
16599 # when you set need_version to no, make sure it does not cause -set_version
16600 # flags to be left without arguments
16601 need_version=unknown
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16607 shlibpath_var=LIBPATH
16609 # AIX 3 has no versioning support, so we append a major version to the name.
16610 soname_spec='${libname}${release}${shared_ext}$major'
16617 hardcode_into_libs=yes
16618 if test "$host_cpu" = ia64; then
16619 # AIX 5 supports IA64
16620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16621 shlibpath_var=LD_LIBRARY_PATH
16623 # With GCC up to 2.95.x, collect2 would create an import file
16624 # for dependence libraries. The import file would start with
16625 # the line `#! .'. This would cause the generated library to
16626 # depend on `.', always an invalid library. This was fixed in
16627 # development snapshots of GCC prior to 3.0.
16629 aix4 | aix4.[01] | aix4.[01].*)
16630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16632 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16635 can_build_shared=no
16639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16640 # soname into executable. Probably we can add versioning support to
16641 # collect2, so additional links can be useful in future.
16642 if test "$aix_use_runtimelinking" = yes; then
16643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16644 # instead of lib<name>.a to let people know that these are not
16645 # typical AIX shared libraries.
16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 # We preserve .a as extension for shared libraries through AIX4.2
16649 # and later when we are not doing run time linking.
16650 library_names_spec='${libname}${release}.a $libname.a'
16651 soname_spec='${libname}${release}${shared_ext}$major'
16653 shlibpath_var=LIBPATH
16660 # Since July 2007 AmigaOS4 officially supports .so libraries.
16661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 library_names_spec='$libname.ixlibrary $libname.a'
16666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16667 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'
16673 library_names_spec='${libname}${shared_ext}'
16674 dynamic_linker="$host_os ld.so"
16675 shlibpath_var=LIBRARY_PATH
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16684 shlibpath_var=LD_LIBRARY_PATH
16685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16687 # the default ld.so.conf also contains /usr/contrib/lib and
16688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16689 # libtool to hard-code these into programs
16692 cygwin* | mingw* | pw32* | cegcc*)
16693 version_type=windows
16698 case $GCC,$host_os in
16699 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16700 library_names_spec='$libname.dll.a'
16701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16702 postinstall_cmds='base_file=`basename \${file}`~
16703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16704 dldir=$destdir/`dirname \$dlpath`~
16705 test -d \$dldir || mkdir -p \$dldir~
16706 $install_prog $dir/$dlname \$dldir/$dlname~
16707 chmod a+x \$dldir/$dlname~
16708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16712 dlpath=$dir/\$dldll~
16714 shlibpath_overrides_runpath=yes
16718 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16719 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16721 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16724 # MinGW DLLs use traditional 'lib' prefix
16725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16728 # pw32 DLLs use 'pw' prefix rather than 'lib'
16729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16738 dynamic_linker='Win32 ld.exe'
16739 # FIXME: first we should search . and the directory the executable is in
16743 darwin* | rhapsody*)
16744 dynamic_linker="$host_os dyld"
16745 version_type=darwin
16748 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16749 soname_spec='${libname}${release}${major}$shared_ext'
16750 shlibpath_overrides_runpath=yes
16751 shlibpath_var=DYLD_LIBRARY_PATH
16752 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 shlibpath_var=LD_LIBRARY_PATH
16767 freebsd* | dragonfly*)
16768 # DragonFly does not have aout. When/if they implement a new
16769 # versioning mechanism, adjust this.
16770 if test -x /usr/bin/objformat; then
16771 objformat=`/usr/bin/objformat`
16774 freebsd[123]*) objformat=aout ;;
16775 *) objformat=elf ;;
16778 version_type=freebsd-$objformat
16779 case $version_type in
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16790 shlibpath_var=LD_LIBRARY_PATH
16793 shlibpath_overrides_runpath=yes
16795 freebsd3.[01]* | freebsdelf3.[01]*)
16796 shlibpath_overrides_runpath=yes
16797 hardcode_into_libs=yes
16799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16801 shlibpath_overrides_runpath=no
16802 hardcode_into_libs=yes
16804 *) # from 4.6 on, and DragonFly
16805 shlibpath_overrides_runpath=yes
16806 hardcode_into_libs=yes
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 hardcode_into_libs=yes
16825 dynamic_linker="$host_os runtime_loader"
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 shlibpath_var=LIBRARY_PATH
16829 shlibpath_overrides_runpath=yes
16830 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16831 hardcode_into_libs=yes
16834 hpux9* | hpux10* | hpux11*)
16835 # Give a soname corresponding to the major version so that dld.sl refuses to
16836 # link against other versions.
16843 hardcode_into_libs=yes
16844 dynamic_linker="$host_os dld.so"
16845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 if test "X$HPUX_IA64_MODE" = X32; then
16850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16858 hardcode_into_libs=yes
16859 dynamic_linker="$host_os dld.sl"
16860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16863 soname_spec='${libname}${release}${shared_ext}$major'
16864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16869 dynamic_linker="$host_os dld.sl"
16870 shlibpath_var=SHLIB_PATH
16871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873 soname_spec='${libname}${release}${shared_ext}$major'
16876 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16877 postinstall_cmds='chmod 555 $lib'
16878 # or fails outright, so override atomically:
16879 install_override_mode=555
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16889 shlibpath_var=LD_LIBRARY_PATH
16890 shlibpath_overrides_runpath=no
16891 hardcode_into_libs=yes
16894 irix5* | irix6* | nonstopux*)
16896 nonstopux*) version_type=nonstopux ;;
16898 if test "$lt_cv_prog_gnu_ld" = yes; then
16906 soname_spec='${libname}${release}${shared_ext}$major'
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16909 irix5* | nonstopux*)
16910 libsuff= shlibsuff=
16913 case $LD in # libtool.m4 will add one of these switches to LD
16914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16915 libsuff= shlibsuff= libmagic=32-bit;;
16916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16917 libsuff=32 shlibsuff=N32 libmagic=N32;;
16918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16920 *) libsuff= shlibsuff= libmagic=never-match;;
16924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16925 shlibpath_overrides_runpath=no
16926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16928 hardcode_into_libs=yes
16931 # No shared lib support for Linux oldld, aout, or coff.
16932 linux*oldld* | linux*aout* | linux*coff*)
16936 # This must be Linux ELF.
16937 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 soname_spec='${libname}${release}${shared_ext}$major'
16943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 shlibpath_overrides_runpath=no
16947 # Some binutils ld are patched to set DT_RUNPATH
16948 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16951 lt_cv_shlibpath_overrides_runpath=no
16952 save_LDFLAGS=$LDFLAGS
16953 save_libdir=$libdir
16954 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16955 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16967 if ac_fn_c_try_link "$LINENO"; then :
16968 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16969 lt_cv_shlibpath_overrides_runpath=yes
16972 rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16974 LDFLAGS=$save_LDFLAGS
16975 libdir=$save_libdir
16979 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16981 # This implies no fast_install, which is unacceptable.
16982 # Some rework will be needed to allow for fast_install
16983 # before this can be enabled.
16984 hardcode_into_libs=yes
16986 # Append ld.so.conf contents to the search path
16987 if test -f /etc/ld.so.conf; then
16988 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' ' '`
16989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16992 # We used to test for /lib/ld.so.1 and disable shared libraries on
16993 # powerpc, because MkLinux only supported shared libraries with the
16994 # GNU dynamic linker. Since this was broken with cross compilers,
16995 # most powerpc-linux boxes support dynamic linking these days and
16996 # people can always --disable-shared, the test was removed, and we
16997 # assume the GNU/Linux dynamic linker is in use.
16998 dynamic_linker='GNU/Linux ld.so'
17005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17008 dynamic_linker='NetBSD (a.out) ld.so'
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 dynamic_linker='NetBSD ld.elf_so'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 shlibpath_overrides_runpath=yes
17016 hardcode_into_libs=yes
17021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=no
17034 hardcode_into_libs=yes
17035 dynamic_linker='ldqnx.so'
17040 sys_lib_dlsearch_path_spec="/usr/lib"
17042 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17044 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17045 *) need_version=no ;;
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17049 shlibpath_var=LD_LIBRARY_PATH
17050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052 openbsd2.[89] | openbsd2.[89].*)
17053 shlibpath_overrides_runpath=no
17056 shlibpath_overrides_runpath=yes
17060 shlibpath_overrides_runpath=yes
17065 libname_spec='$name'
17068 library_names_spec='$libname${shared_ext} $libname.a'
17069 dynamic_linker='OS/2 ld.exe'
17070 shlibpath_var=LIBPATH
17073 osf3* | osf4* | osf5*)
17077 soname_spec='${libname}${release}${shared_ext}$major'
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17079 shlibpath_var=LD_LIBRARY_PATH
17080 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17081 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 shlibpath_overrides_runpath=yes
17096 hardcode_into_libs=yes
17097 # ldd complains unless libraries are executable
17098 postinstall_cmds='chmod +x $lib'
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17104 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17105 shlibpath_var=LD_LIBRARY_PATH
17106 shlibpath_overrides_runpath=yes
17107 if test "$with_gnu_ld" = yes; then
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116 soname_spec='${libname}${release}${shared_ext}$major'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 case $host_vendor in
17120 shlibpath_overrides_runpath=no
17122 runpath_var=LD_RUN_PATH
17130 shlibpath_overrides_runpath=no
17131 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17137 if test -d /usr/nec ;then
17139 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17140 soname_spec='$libname${shared_ext}.$major'
17141 shlibpath_var=LD_LIBRARY_PATH
17145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17146 version_type=freebsd-elf
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=yes
17153 hardcode_into_libs=yes
17154 if test "$with_gnu_ld" = yes; then
17155 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17157 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17164 sys_lib_dlsearch_path_spec='/usr/lib'
17168 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 shlibpath_var=LD_LIBRARY_PATH
17174 shlibpath_overrides_runpath=no
17175 hardcode_into_libs=yes
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17190 $as_echo "$dynamic_linker" >&6; }
17191 test "$dynamic_linker" = no && can_build_shared=no
17193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17194 if test "$GCC" = yes; then
17195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17198 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17199 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17201 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17202 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17299 if test -n "$hardcode_libdir_flag_spec" ||
17300 test -n "$runpath_var" ||
17301 test "X$hardcode_automatic" = "Xyes" ; then
17303 # We can hardcode non-existent directories.
17304 if test "$hardcode_direct" != no &&
17305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17306 # have to relink, otherwise we might link with an installed library
17307 # when we should be linking with a yet-to-be-installed one
17308 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17309 test "$hardcode_minus_L" != no; then
17310 # Linking always hardcodes the temporary library directory.
17311 hardcode_action=relink
17313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17314 hardcode_action=immediate
17317 # We cannot hardcode anything, or else we can only hardcode existing
17319 hardcode_action=unsupported
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17322 $as_echo "$hardcode_action" >&6; }
17324 if test "$hardcode_action" = relink ||
17325 test "$inherit_rpath" = yes; then
17326 # Fast installation is not supported
17327 enable_fast_install=no
17328 elif test "$shlibpath_overrides_runpath" = yes ||
17329 test "$enable_shared" = no; then
17330 # Fast installation is not necessary
17331 enable_fast_install=needless
17339 if test "x$enable_dlopen" != xyes; then
17340 enable_dlopen=unknown
17341 enable_dlopen_self=unknown
17342 enable_dlopen_self_static=unknown
17349 lt_cv_dlopen="load_add_on"
17351 lt_cv_dlopen_self=yes
17354 mingw* | pw32* | cegcc*)
17355 lt_cv_dlopen="LoadLibrary"
17360 lt_cv_dlopen="dlopen"
17365 # if libdl is installed we need to link against it
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17367 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17369 $as_echo_n "(cached) " >&6
17371 ac_check_lib_save_LIBS=$LIBS
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17376 /* Override any GCC internal prototype to avoid an error.
17377 Use char because int might match the return type of a GCC
17378 builtin and then its argument prototype would still apply. */
17391 if ac_fn_c_try_link "$LINENO"; then :
17392 ac_cv_lib_dl_dlopen=yes
17394 ac_cv_lib_dl_dlopen=no
17396 rm -f core conftest.err conftest.$ac_objext \
17397 conftest$ac_exeext conftest.$ac_ext
17398 LIBS=$ac_check_lib_save_LIBS
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17401 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17402 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17406 lt_cv_dlopen="dyld"
17408 lt_cv_dlopen_self=yes
17415 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17416 if test "x$ac_cv_func_shl_load" = x""yes; then :
17417 lt_cv_dlopen="shl_load"
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17420 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17421 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17422 $as_echo_n "(cached) " >&6
17424 ac_check_lib_save_LIBS=$LIBS
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17429 /* Override any GCC internal prototype to avoid an error.
17430 Use char because int might match the return type of a GCC
17431 builtin and then its argument prototype would still apply. */
17439 return shl_load ();
17444 if ac_fn_c_try_link "$LINENO"; then :
17445 ac_cv_lib_dld_shl_load=yes
17447 ac_cv_lib_dld_shl_load=no
17449 rm -f core conftest.err conftest.$ac_objext \
17450 conftest$ac_exeext conftest.$ac_ext
17451 LIBS=$ac_check_lib_save_LIBS
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17454 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17455 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17456 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17458 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17459 if test "x$ac_cv_func_dlopen" = x""yes; then :
17460 lt_cv_dlopen="dlopen"
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17463 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17465 $as_echo_n "(cached) " >&6
17467 ac_check_lib_save_LIBS=$LIBS
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17487 if ac_fn_c_try_link "$LINENO"; then :
17488 ac_cv_lib_dl_dlopen=yes
17490 ac_cv_lib_dl_dlopen=no
17492 rm -f core conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17494 LIBS=$ac_check_lib_save_LIBS
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17497 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17498 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17502 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17503 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17504 $as_echo_n "(cached) " >&6
17506 ac_check_lib_save_LIBS=$LIBS
17507 LIBS="-lsvld $LIBS"
17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17511 /* Override any GCC internal prototype to avoid an error.
17512 Use char because int might match the return type of a GCC
17513 builtin and then its argument prototype would still apply. */
17526 if ac_fn_c_try_link "$LINENO"; then :
17527 ac_cv_lib_svld_dlopen=yes
17529 ac_cv_lib_svld_dlopen=no
17531 rm -f core conftest.err conftest.$ac_objext \
17532 conftest$ac_exeext conftest.$ac_ext
17533 LIBS=$ac_check_lib_save_LIBS
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17536 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17537 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17541 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17542 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17543 $as_echo_n "(cached) " >&6
17545 ac_check_lib_save_LIBS=$LIBS
17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17550 /* Override any GCC internal prototype to avoid an error.
17551 Use char because int might match the return type of a GCC
17552 builtin and then its argument prototype would still apply. */
17560 return dld_link ();
17565 if ac_fn_c_try_link "$LINENO"; then :
17566 ac_cv_lib_dld_dld_link=yes
17568 ac_cv_lib_dld_dld_link=no
17570 rm -f core conftest.err conftest.$ac_objext \
17571 conftest$ac_exeext conftest.$ac_ext
17572 LIBS=$ac_check_lib_save_LIBS
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17575 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17576 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17577 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17598 if test "x$lt_cv_dlopen" != xno; then
17604 case $lt_cv_dlopen in
17606 save_CPPFLAGS="$CPPFLAGS"
17607 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17609 save_LDFLAGS="$LDFLAGS"
17610 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17613 LIBS="$lt_cv_dlopen_libs $LIBS"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17616 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17617 if test "${lt_cv_dlopen_self+set}" = set; then :
17618 $as_echo_n "(cached) " >&6
17620 if test "$cross_compiling" = yes; then :
17621 lt_cv_dlopen_self=cross
17623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17624 lt_status=$lt_dlunknown
17625 cat > conftest.$ac_ext <<_LT_EOF
17626 #line 17626 "configure"
17627 #include "confdefs.h"
17636 # define LT_DLGLOBAL RTLD_GLOBAL
17639 # define LT_DLGLOBAL DL_GLOBAL
17641 # define LT_DLGLOBAL 0
17645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17646 find out it does not work in some platform. */
17647 #ifndef LT_DLLAZY_OR_NOW
17649 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17652 # define LT_DLLAZY_OR_NOW DL_LAZY
17655 # define LT_DLLAZY_OR_NOW RTLD_NOW
17658 # define LT_DLLAZY_OR_NOW DL_NOW
17660 # define LT_DLLAZY_OR_NOW 0
17667 /* When -fvisbility=hidden is used, assume the code has been annotated
17668 correspondingly for the symbols needed. */
17669 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17670 void fnord () __attribute__((visibility("default")));
17673 void fnord () { int i=42; }
17676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17677 int status = $lt_dlunknown;
17681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17684 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17685 else puts (dlerror ());
17687 /* dlclose (self); */
17695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17696 (eval $ac_link) 2>&5
17698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17699 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17700 (./conftest; exit; ) >&5 2>/dev/null
17702 case x$lt_status in
17703 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17704 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17705 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17708 # compilation failed
17709 lt_cv_dlopen_self=no
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17717 $as_echo "$lt_cv_dlopen_self" >&6; }
17719 if test "x$lt_cv_dlopen_self" = xyes; then
17720 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17722 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17723 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17724 $as_echo_n "(cached) " >&6
17726 if test "$cross_compiling" = yes; then :
17727 lt_cv_dlopen_self_static=cross
17729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17730 lt_status=$lt_dlunknown
17731 cat > conftest.$ac_ext <<_LT_EOF
17732 #line 17732 "configure"
17733 #include "confdefs.h"
17742 # define LT_DLGLOBAL RTLD_GLOBAL
17745 # define LT_DLGLOBAL DL_GLOBAL
17747 # define LT_DLGLOBAL 0
17751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17752 find out it does not work in some platform. */
17753 #ifndef LT_DLLAZY_OR_NOW
17755 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17758 # define LT_DLLAZY_OR_NOW DL_LAZY
17761 # define LT_DLLAZY_OR_NOW RTLD_NOW
17764 # define LT_DLLAZY_OR_NOW DL_NOW
17766 # define LT_DLLAZY_OR_NOW 0
17773 /* When -fvisbility=hidden is used, assume the code has been annotated
17774 correspondingly for the symbols needed. */
17775 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17776 void fnord () __attribute__((visibility("default")));
17779 void fnord () { int i=42; }
17782 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17783 int status = $lt_dlunknown;
17787 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17790 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17791 else puts (dlerror ());
17793 /* dlclose (self); */
17801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17802 (eval $ac_link) 2>&5
17804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17805 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17806 (./conftest; exit; ) >&5 2>/dev/null
17808 case x$lt_status in
17809 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17810 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17811 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17814 # compilation failed
17815 lt_cv_dlopen_self_static=no
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17823 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17826 CPPFLAGS="$save_CPPFLAGS"
17827 LDFLAGS="$save_LDFLAGS"
17832 case $lt_cv_dlopen_self in
17833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17834 *) enable_dlopen_self=unknown ;;
17837 case $lt_cv_dlopen_self_static in
17838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17839 *) enable_dlopen_self_static=unknown ;;
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17862 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17863 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17867 $as_echo "yes" >&6; }
17869 # FIXME - insert some real tests, host_os isn't really good enough
17872 if test -n "$STRIP" ; then
17873 striplib="$STRIP -x"
17874 old_striplib="$STRIP -S"
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17876 $as_echo "yes" >&6; }
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879 $as_echo "no" >&6; }
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17884 $as_echo "no" >&6; }
17900 # Report which library types will actually be built
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17902 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17904 $as_echo "$can_build_shared" >&6; }
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17907 $as_echo_n "checking whether to build shared libraries... " >&6; }
17908 test "$can_build_shared" = "no" && enable_shared=no
17910 # On AIX, shared libraries and static libraries use the same namespace, and
17911 # are all built from PIC.
17914 test "$enable_shared" = yes && enable_static=no
17915 if test -n "$RANLIB"; then
17916 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17917 postinstall_cmds='$RANLIB $lib'
17922 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17923 test "$enable_shared" = yes && enable_static=no
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17928 $as_echo "$enable_shared" >&6; }
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17931 $as_echo_n "checking whether to build static libraries... " >&6; }
17932 # Make sure either enable_shared or enable_static is yes.
17933 test "$enable_shared" = yes || enable_static=yes
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17935 $as_echo "$enable_static" >&6; }
17942 ac_cpp='$CPP $CPPFLAGS'
17943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17949 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17950 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17951 (test "X$CXX" != "Xg++"))) ; then
17953 ac_cpp='$CXXCPP $CPPFLAGS'
17954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17958 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17959 if test -z "$CXXCPP"; then
17960 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17961 $as_echo_n "(cached) " >&6
17963 # Double quotes because CXXCPP needs to be expanded
17964 for CXXCPP in "$CXX -E" "/lib/cpp"
17966 ac_preproc_ok=false
17967 for ac_cxx_preproc_warn_flag in '' yes
17969 # Use a header file that comes with gcc, so configuring glibc
17970 # with a fresh cross-compiler works.
17971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17972 # <limits.h> exists even on freestanding compilers.
17973 # On the NeXT, cc -E runs the code through the compiler's parser,
17974 # not just through cpp. "Syntax error" is here to catch this case.
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17978 # include <limits.h>
17980 # include <assert.h>
17984 if ac_fn_cxx_try_cpp "$LINENO"; then :
17987 # Broken: fails on valid input.
17990 rm -f conftest.err conftest.$ac_ext
17992 # OK, works on sane cases. Now check whether nonexistent headers
17993 # can be detected and how.
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 #include <ac_nonexistent.h>
17998 if ac_fn_cxx_try_cpp "$LINENO"; then :
17999 # Broken: success on invalid input.
18002 # Passes both tests.
18006 rm -f conftest.err conftest.$ac_ext
18009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18010 rm -f conftest.err conftest.$ac_ext
18011 if $ac_preproc_ok; then :
18016 ac_cv_prog_CXXCPP=$CXXCPP
18019 CXXCPP=$ac_cv_prog_CXXCPP
18021 ac_cv_prog_CXXCPP=$CXXCPP
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18024 $as_echo "$CXXCPP" >&6; }
18025 ac_preproc_ok=false
18026 for ac_cxx_preproc_warn_flag in '' yes
18028 # Use a header file that comes with gcc, so configuring glibc
18029 # with a fresh cross-compiler works.
18030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18031 # <limits.h> exists even on freestanding compilers.
18032 # On the NeXT, cc -E runs the code through the compiler's parser,
18033 # not just through cpp. "Syntax error" is here to catch this case.
18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18037 # include <limits.h>
18039 # include <assert.h>
18043 if ac_fn_cxx_try_cpp "$LINENO"; then :
18046 # Broken: fails on valid input.
18049 rm -f conftest.err conftest.$ac_ext
18051 # OK, works on sane cases. Now check whether nonexistent headers
18052 # can be detected and how.
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18055 #include <ac_nonexistent.h>
18057 if ac_fn_cxx_try_cpp "$LINENO"; then :
18058 # Broken: success on invalid input.
18061 # Passes both tests.
18065 rm -f conftest.err conftest.$ac_ext
18068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18069 rm -f conftest.err conftest.$ac_ext
18070 if $ac_preproc_ok; then :
18073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18075 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18076 See \`config.log' for more details." "$LINENO" 5; }
18080 ac_cpp='$CPP $CPPFLAGS'
18081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18086 _lt_caught_CXX_error=yes
18090 ac_cpp='$CXXCPP $CPPFLAGS'
18091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18095 archive_cmds_need_lc_CXX=no
18096 allow_undefined_flag_CXX=
18097 always_export_symbols_CXX=no
18098 archive_expsym_cmds_CXX=
18099 compiler_needs_object_CXX=no
18100 export_dynamic_flag_spec_CXX=
18101 hardcode_direct_CXX=no
18102 hardcode_direct_absolute_CXX=no
18103 hardcode_libdir_flag_spec_CXX=
18104 hardcode_libdir_flag_spec_ld_CXX=
18105 hardcode_libdir_separator_CXX=
18106 hardcode_minus_L_CXX=no
18107 hardcode_shlibpath_var_CXX=unsupported
18108 hardcode_automatic_CXX=no
18109 inherit_rpath_CXX=no
18111 module_expsym_cmds_CXX=
18112 link_all_deplibs_CXX=unknown
18113 old_archive_cmds_CXX=$old_archive_cmds
18114 reload_flag_CXX=$reload_flag
18115 reload_cmds_CXX=$reload_cmds
18116 no_undefined_flag_CXX=
18117 whole_archive_flag_spec_CXX=
18118 enable_shared_with_static_runtimes_CXX=no
18120 # Source file extension for C++ test sources.
18123 # Object file extension for compiled C++ test sources.
18127 # No sense in running all these tests if we already determined that
18128 # the CXX compiler isn't working. Some variables (like enable_shared)
18129 # are currently assumed to apply to all compilers on this platform,
18130 # and will be corrupted by setting them based on a non-working compiler.
18131 if test "$_lt_caught_CXX_error" != yes; then
18132 # Code to be used in simple compile tests
18133 lt_simple_compile_test_code="int some_variable = 0;"
18135 # Code to be used in simple link tests
18136 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18145 # If no C compiler was specified, use CC.
18148 # If no C compiler flags were specified, use CFLAGS.
18149 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18151 # Allow CC to be a program name with arguments.
18155 # save warnings/boilerplate of simple test code
18156 ac_outfile=conftest.$ac_objext
18157 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18158 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18159 _lt_compiler_boilerplate=`cat conftest.err`
18162 ac_outfile=conftest.$ac_objext
18163 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18164 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18165 _lt_linker_boilerplate=`cat conftest.err`
18169 # Allow CC to be a program name with arguments.
18174 lt_save_with_gnu_ld=$with_gnu_ld
18175 lt_save_path_LD=$lt_cv_path_LD
18176 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18177 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18179 $as_unset lt_cv_prog_gnu_ld
18181 if test -n "${lt_cv_path_LDCXX+set}"; then
18182 lt_cv_path_LD=$lt_cv_path_LDCXX
18184 $as_unset lt_cv_path_LD
18186 test -z "${LDCXX+set}" || LD=$LDCXX
18190 for cc_temp in $compiler""; do
18192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18198 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18201 if test -n "$compiler"; then
18202 # We don't want -fno-exception when compiling C++ code, so set the
18203 # no_builtin_flag separately
18204 if test "$GXX" = yes; then
18205 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18207 lt_prog_compiler_no_builtin_flag_CXX=
18210 if test "$GXX" = yes; then
18211 # Set up default GNU C++ configuration
18215 # Check whether --with-gnu-ld was given.
18216 if test "${with_gnu_ld+set}" = set; then :
18217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18223 if test "$GCC" = yes; then
18224 # Check if gcc -print-prog-name=ld gives a path.
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18226 $as_echo_n "checking for ld used by $CC... " >&6; }
18229 # gcc leaves a trailing carriage return which upsets mingw
18230 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18232 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18235 # Accept absolute paths.
18237 re_direlt='/[^/][^/]*/\.\./'
18238 # Canonicalize the pathname of ld
18239 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18240 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18241 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18243 test -z "$LD" && LD="$ac_prog"
18246 # If it fails, then pretend we aren't using GCC.
18250 # If it is relative, then search for the first ld in PATH.
18251 with_gnu_ld=unknown
18254 elif test "$with_gnu_ld" = yes; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18256 $as_echo_n "checking for GNU ld... " >&6; }
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18259 $as_echo_n "checking for non-GNU ld... " >&6; }
18261 if test "${lt_cv_path_LD+set}" = set; then :
18262 $as_echo_n "(cached) " >&6
18264 if test -z "$LD"; then
18265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18266 for ac_dir in $PATH; do
18268 test -z "$ac_dir" && ac_dir=.
18269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18270 lt_cv_path_LD="$ac_dir/$ac_prog"
18271 # Check to see if the program is GNU ld. I'd rather use --version,
18272 # but apparently some variants of GNU ld only accept -v.
18273 # Break only if it was the GNU/non-GNU ld that we prefer.
18274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18275 *GNU* | *'with BFD'*)
18276 test "$with_gnu_ld" != no && break
18279 test "$with_gnu_ld" != yes && break
18286 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18290 LD="$lt_cv_path_LD"
18291 if test -n "$LD"; then
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18293 $as_echo "$LD" >&6; }
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296 $as_echo "no" >&6; }
18298 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18301 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18302 $as_echo_n "(cached) " >&6
18304 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18305 case `$LD -v 2>&1 </dev/null` in
18306 *GNU* | *'with BFD'*)
18307 lt_cv_prog_gnu_ld=yes
18310 lt_cv_prog_gnu_ld=no
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18315 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18316 with_gnu_ld=$lt_cv_prog_gnu_ld
18324 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18325 # archiving commands below assume that GNU ld is being used.
18326 if test "$with_gnu_ld" = yes; then
18327 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18328 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'
18330 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18331 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18333 # If archive_cmds runs LD, not CC, wlarc should be empty
18334 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18335 # investigate it a little bit more. (MM)
18338 # ancient GNU ld didn't support --whole-archive et. al.
18339 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18340 $GREP 'no-whole-archive' > /dev/null; then
18341 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18343 whole_archive_flag_spec_CXX=
18349 # A generic and very simple default shared library creation
18350 # command for GNU C++ for the case where it uses the native
18351 # linker, instead of GNU ld. If possible, this setting should
18352 # overridden to take advantage of the native linker features on
18353 # the platform it is being used on.
18354 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18357 # Commands to make compiler produce verbose output that lists
18358 # what "hidden" libraries, object files and flags are used when
18359 # linking a shared library.
18360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18368 # PORTME: fill in a description of your system's C++ link characteristics
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18370 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18374 # FIXME: insert proper C++ library support
18378 if test "$host_cpu" = ia64; then
18379 # On IA64, the linker does run time linking by default, so we don't
18380 # have to do anything special.
18381 aix_use_runtimelinking=no
18382 exp_sym_flag='-Bexport'
18385 aix_use_runtimelinking=no
18387 # Test if we are trying to use run time linking or normal
18388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18389 # need to do runtime linking.
18390 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18391 for ld_flag in $LDFLAGS; do
18394 aix_use_runtimelinking=yes
18402 exp_sym_flag='-bexport'
18403 no_entry_flag='-bnoentry'
18406 # When large executables or shared objects are built, AIX ld can
18407 # have problems creating the table of contents. If linking a library
18408 # or program results in "error TOC overflow" add -mminimal-toc to
18409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18412 archive_cmds_CXX=''
18413 hardcode_direct_CXX=yes
18414 hardcode_direct_absolute_CXX=yes
18415 hardcode_libdir_separator_CXX=':'
18416 link_all_deplibs_CXX=yes
18417 file_list_spec_CXX='${wl}-f,'
18419 if test "$GXX" = yes; then
18420 case $host_os in aix4.[012]|aix4.[012].*)
18421 # We only want to do this on AIX 4.2 and lower, the check
18422 # below for broken collect2 doesn't work under 4.3+
18423 collect2name=`${CC} -print-prog-name=collect2`
18424 if test -f "$collect2name" &&
18425 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18427 # We have reworked collect2
18430 # We have old collect2
18431 hardcode_direct_CXX=unsupported
18432 # It fails to find uninstalled libraries when the uninstalled
18433 # path is not listed in the libpath. Setting hardcode_minus_L
18434 # to unsupported forces relinking
18435 hardcode_minus_L_CXX=yes
18436 hardcode_libdir_flag_spec_CXX='-L$libdir'
18437 hardcode_libdir_separator_CXX=
18440 shared_flag='-shared'
18441 if test "$aix_use_runtimelinking" = yes; then
18442 shared_flag="$shared_flag "'${wl}-G'
18446 if test "$host_cpu" = ia64; then
18447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18448 # chokes on -Wl,-G. The following line is correct:
18451 if test "$aix_use_runtimelinking" = yes; then
18452 shared_flag='${wl}-G'
18454 shared_flag='${wl}-bM:SRE'
18459 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18460 # It seems that -bexpall does not export symbols beginning with
18461 # underscore (_), so it is better to generate a list of symbols to
18463 always_export_symbols_CXX=yes
18464 if test "$aix_use_runtimelinking" = yes; then
18465 # Warning - without using the other runtime loading flags (-brtl),
18466 # -berok will link without error, but may produce a broken library.
18467 allow_undefined_flag_CXX='-berok'
18468 # Determine the default libpath from the value encoded in an empty
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18481 if ac_fn_cxx_try_link "$LINENO"; then :
18483 lt_aix_libpath_sed='
18484 /Import File Strings/,/^$/ {
18490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18491 # Check for a 64-bit object if we didn't find anything.
18492 if test -z "$aix_libpath"; then
18493 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18496 rm -f core conftest.err conftest.$ac_objext \
18497 conftest$ac_exeext conftest.$ac_ext
18498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18500 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18502 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"
18504 if test "$host_cpu" = ia64; then
18505 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18506 allow_undefined_flag_CXX="-z nodefs"
18507 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"
18509 # Determine the default libpath from the value encoded in an
18510 # empty executable.
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18522 if ac_fn_cxx_try_link "$LINENO"; then :
18524 lt_aix_libpath_sed='
18525 /Import File Strings/,/^$/ {
18531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18532 # Check for a 64-bit object if we didn't find anything.
18533 if test -z "$aix_libpath"; then
18534 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18537 rm -f core conftest.err conftest.$ac_objext \
18538 conftest$ac_exeext conftest.$ac_ext
18539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18541 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18542 # Warning - without using the other run time loading flags,
18543 # -berok will link without error, but may produce a broken library.
18544 no_undefined_flag_CXX=' ${wl}-bernotok'
18545 allow_undefined_flag_CXX=' ${wl}-berok'
18546 if test "$with_gnu_ld" = yes; then
18547 # We only use this code for GNU lds that support --whole-archive.
18548 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18550 # Exported symbols can be pulled into shared objects from archives
18551 whole_archive_flag_spec_CXX='$convenience'
18553 archive_cmds_need_lc_CXX=yes
18554 # This is similar to how AIX traditionally builds its shared
18556 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'
18562 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18563 allow_undefined_flag_CXX=unsupported
18564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18565 # support --undefined. This deserves some investigation. FIXME
18566 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18573 case $cc_basename in
18575 # FIXME: insert proper C++ library support
18581 cygwin* | mingw* | pw32* | cegcc*)
18582 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18583 # as there is no search path for DLLs.
18584 hardcode_libdir_flag_spec_CXX='-L$libdir'
18585 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18586 allow_undefined_flag_CXX=unsupported
18587 always_export_symbols_CXX=no
18588 enable_shared_with_static_runtimes_CXX=yes
18590 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18591 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'
18592 # If the export-symbols file already is a .def file (1st line
18593 # is EXPORTS), use it as is; otherwise, prepend...
18594 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18595 cp $export_symbols $output_objdir/$soname.def;
18597 echo EXPORTS > $output_objdir/$soname.def;
18598 cat $export_symbols >> $output_objdir/$soname.def;
18600 $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'
18605 darwin* | rhapsody*)
18608 archive_cmds_need_lc_CXX=no
18609 hardcode_direct_CXX=no
18610 hardcode_automatic_CXX=yes
18611 hardcode_shlibpath_var_CXX=unsupported
18612 if test "$lt_cv_ld_force_load" = "yes"; then
18613 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\"`'
18615 whole_archive_flag_spec_CXX=''
18617 link_all_deplibs_CXX=yes
18618 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18619 case $cc_basename in
18620 ifort*) _lt_dar_can_shared=yes ;;
18621 *) _lt_dar_can_shared=$GCC ;;
18623 if test "$_lt_dar_can_shared" = "yes"; then
18624 output_verbose_link_cmd=func_echo_all
18625 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}"
18626 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18627 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}"
18628 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}"
18629 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18630 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}"
18631 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}"
18641 case $cc_basename in
18643 # FIXME: insert proper C++ library support
18647 # Green Hills C++ Compiler
18648 # FIXME: insert proper C++ library support
18652 # FIXME: insert proper C++ library support
18659 # C++ shared libraries reported to be fairly broken before
18665 archive_cmds_need_lc_CXX=no
18668 freebsd* | dragonfly*)
18669 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18678 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18679 link_all_deplibs_CXX=yes
18683 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18684 hardcode_libdir_separator_CXX=:
18685 export_dynamic_flag_spec_CXX='${wl}-E'
18686 hardcode_direct_CXX=yes
18687 hardcode_minus_L_CXX=yes # Not in the search PATH,
18688 # but as the default
18689 # location of the library.
18691 case $cc_basename in
18693 # FIXME: insert proper C++ library support
18697 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'
18698 # Commands to make compiler produce verbose output that lists
18699 # what "hidden" libraries, object files and flags are used when
18700 # linking a shared library.
18702 # There doesn't appear to be a way to prevent this compiler from
18703 # explicitly linking system object files so we need to strip them
18704 # from the output so that they don't get included in the library
18706 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"'
18709 if test "$GXX" = yes; then
18710 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'
18712 # FIXME: insert proper C++ library support
18720 if test $with_gnu_ld = no; then
18721 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18722 hardcode_libdir_separator_CXX=:
18728 export_dynamic_flag_spec_CXX='${wl}-E'
18734 hardcode_direct_CXX=no
18735 hardcode_shlibpath_var_CXX=no
18738 hardcode_direct_CXX=yes
18739 hardcode_direct_absolute_CXX=yes
18740 hardcode_minus_L_CXX=yes # Not in the search PATH,
18741 # but as the default
18742 # location of the library.
18746 case $cc_basename in
18748 # FIXME: insert proper C++ library support
18754 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18763 # Commands to make compiler produce verbose output that lists
18764 # what "hidden" libraries, object files and flags are used when
18765 # linking a shared library.
18767 # There doesn't appear to be a way to prevent this compiler from
18768 # explicitly linking system object files so we need to strip them
18769 # from the output so that they don't get included in the library
18771 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"'
18774 if test "$GXX" = yes; then
18775 if test $with_gnu_ld = no; then
18778 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18784 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'
18789 # FIXME: insert proper C++ library support
18797 hardcode_direct_CXX=no
18798 hardcode_shlibpath_var_CXX=no
18799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800 export_dynamic_flag_spec_CXX='${wl}-E'
18801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18802 # Instead, shared libraries are loaded at an image base (0x10000000 by
18803 # default) and relocated if they conflict, which is a slow very memory
18804 # consuming and fragmenting process. To avoid this, we pick a random,
18805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18807 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'
18808 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'
18811 case $cc_basename in
18814 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'
18816 # Archives containing C++ object files must be created using
18817 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18818 # necessary to make sure instantiated templates are included
18820 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18823 if test "$GXX" = yes; then
18824 if test "$with_gnu_ld" = no; then
18825 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'
18827 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'
18830 link_all_deplibs_CXX=yes
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834 hardcode_libdir_separator_CXX=:
18835 inherit_rpath_CXX=yes
18838 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18839 case $cc_basename in
18841 # Kuck and Associates, Inc. (KAI) C++ Compiler
18843 # KCC will only create a shared library if the output file
18844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18845 # to its proper name (with version) after linking.
18846 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'
18847 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'
18848 # Commands to make compiler produce verbose output that lists
18849 # what "hidden" libraries, object files and flags are used when
18850 # linking a shared library.
18852 # There doesn't appear to be a way to prevent this compiler from
18853 # explicitly linking system object files so we need to strip them
18854 # from the output so that they don't get included in the library
18856 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"'
18858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18861 # Archives containing C++ object files must be created using
18862 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18863 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18868 # version 8.0 and above of icpc choke on multiply defined symbols
18869 # if we add $predep_objects and $postdep_objects, however 7.1 and
18870 # earlier do not add the objects themselves.
18871 case `$CC -V 2>&1` in
18873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18874 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'
18876 *) # Version 8.0 or newer
18879 ia64*) tmp_idyn=' -i_dynamic';;
18881 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18882 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'
18885 archive_cmds_need_lc_CXX=no
18886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18888 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18891 # Portland Group C++ compiler
18893 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18894 prelink_cmds_CXX='tpldir=Template.dir~
18896 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18897 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18898 old_archive_cmds_CXX='tpldir=Template.dir~
18900 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18901 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18903 archive_cmds_CXX='tpldir=Template.dir~
18905 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18906 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18907 archive_expsym_cmds_CXX='tpldir=Template.dir~
18909 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18910 $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'
18912 *) # Version 6 and above use weak symbols
18913 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18914 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'
18918 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18920 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'
18924 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18925 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'
18927 runpath_var=LD_RUN_PATH
18928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18929 hardcode_libdir_separator_CXX=:
18931 # Commands to make compiler produce verbose output that lists
18932 # what "hidden" libraries, object files and flags are used when
18933 # linking a shared library.
18935 # There doesn't appear to be a way to prevent this compiler from
18936 # explicitly linking system object files so we need to strip them
18937 # from the output so that they don't get included in the library
18939 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'
18941 xl* | mpixl* | bgxl*)
18942 # IBM XL 8.0 on PPC, with GNU ld
18943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18945 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18946 if test "x$supports_anon_versioning" = xyes; then
18947 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18949 echo "local: *; };" >> $output_objdir/$libname.ver~
18950 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18954 case `$CC -V 2>&1 | sed 5q` in
18957 no_undefined_flag_CXX=' -zdefs'
18958 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18959 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'
18960 hardcode_libdir_flag_spec_CXX='-R$libdir'
18961 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'
18962 compiler_needs_object_CXX=yes
18964 # Not sure whether something based on
18965 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18967 output_verbose_link_cmd='func_echo_all'
18969 # Archives containing C++ object files must be created using
18970 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18971 # necessary to make sure instantiated templates are included
18973 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18981 # FIXME: insert proper C++ library support
18986 # FIXME: insert proper C++ library support
18991 case $cc_basename in
18993 # FIXME: insert proper C++ library support
18997 # FIXME: insert proper C++ library support
19004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19005 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19007 hardcode_libdir_flag_spec_CXX='-R$libdir'
19008 hardcode_direct_CXX=yes
19009 hardcode_shlibpath_var_CXX=no
19011 # Workaround some broken pre-1.5 toolchains
19012 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19020 # C++ shared libraries are fairly broken
19025 if test -f /usr/libexec/ld.so; then
19026 hardcode_direct_CXX=yes
19027 hardcode_shlibpath_var_CXX=no
19028 hardcode_direct_absolute_CXX=yes
19029 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19030 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19032 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19033 export_dynamic_flag_spec_CXX='${wl}-E'
19034 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19036 output_verbose_link_cmd=func_echo_all
19042 osf3* | osf4* | osf5*)
19043 case $cc_basename in
19045 # Kuck and Associates, Inc. (KAI) C++ Compiler
19047 # KCC will only create a shared library if the output file
19048 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19049 # to its proper name (with version) after linking.
19050 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'
19052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19053 hardcode_libdir_separator_CXX=:
19055 # Archives containing C++ object files must be created using
19056 # the KAI C++ compiler.
19058 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19059 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19063 # Rational C++ 2.4.1
19064 # FIXME: insert proper C++ library support
19070 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19071 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'
19072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19075 allow_undefined_flag_CXX=' -expect_unresolved \*'
19076 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'
19077 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19078 echo "-hidden">> $lib.exp~
19079 $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~
19081 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19085 hardcode_libdir_separator_CXX=:
19087 # Commands to make compiler produce verbose output that lists
19088 # what "hidden" libraries, object files and flags are used when
19089 # linking a shared library.
19091 # There doesn't appear to be a way to prevent this compiler from
19092 # explicitly linking system object files so we need to strip them
19093 # from the output so that they don't get included in the library
19095 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"'
19098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19099 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19102 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'
19105 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'
19109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19110 hardcode_libdir_separator_CXX=:
19112 # Commands to make compiler produce verbose output that lists
19113 # what "hidden" libraries, object files and flags are used when
19114 # linking a shared library.
19115 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19118 # FIXME: insert proper C++ library support
19126 # FIXME: insert proper C++ library support
19131 case $cc_basename in
19134 # FIXME: insert proper C++ library support
19139 # FIXME: insert proper C++ library support
19143 # FIXME: insert proper C++ library support
19150 case $cc_basename in
19152 # Sun C++ 4.2, 5.x and Centerline C++
19153 archive_cmds_need_lc_CXX=yes
19154 no_undefined_flag_CXX=' -zdefs'
19155 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19156 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19157 $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'
19159 hardcode_libdir_flag_spec_CXX='-R$libdir'
19160 hardcode_shlibpath_var_CXX=no
19162 solaris2.[0-5] | solaris2.[0-5].*) ;;
19164 # The compiler driver will combine and reorder linker options,
19165 # but understands `-z linker_flag'.
19166 # Supported since Solaris 2.6 (maybe 2.5.1?)
19167 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19170 link_all_deplibs_CXX=yes
19172 output_verbose_link_cmd='func_echo_all'
19174 # Archives containing C++ object files must be created using
19175 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19176 # necessary to make sure instantiated templates are included
19178 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19181 # Green Hills C++ Compiler
19182 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19184 # The C++ compiler must be used to create the archive.
19185 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19188 # GNU C++ compiler with Solaris linker
19189 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19190 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19191 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19192 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19193 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19194 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19196 # Commands to make compiler produce verbose output that lists
19197 # what "hidden" libraries, object files and flags are used when
19198 # linking a shared library.
19199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19201 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19203 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19204 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19205 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19207 # Commands to make compiler produce verbose output that lists
19208 # what "hidden" libraries, object files and flags are used when
19209 # linking a shared library.
19210 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19213 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19215 solaris2.[0-5] | solaris2.[0-5].*) ;;
19217 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19225 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19226 no_undefined_flag_CXX='${wl}-z,text'
19227 archive_cmds_need_lc_CXX=no
19228 hardcode_shlibpath_var_CXX=no
19229 runpath_var='LD_RUN_PATH'
19231 case $cc_basename in
19233 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19237 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19243 sysv5* | sco3.2v5* | sco5v6*)
19244 # Note: We can NOT use -z defs as we might desire, because we do not
19245 # link with -lc, and that would cause any symbols used from libc to
19246 # always be unresolved, which means just about no library would
19247 # ever link correctly. If we're not using GNU ld we use -z text
19248 # though, which does catch some bad symbols but isn't as heavy-handed
19250 no_undefined_flag_CXX='${wl}-z,text'
19251 allow_undefined_flag_CXX='${wl}-z,nodefs'
19252 archive_cmds_need_lc_CXX=no
19253 hardcode_shlibpath_var_CXX=no
19254 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19255 hardcode_libdir_separator_CXX=':'
19256 link_all_deplibs_CXX=yes
19257 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19258 runpath_var='LD_RUN_PATH'
19260 case $cc_basename in
19262 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19263 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19264 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19265 '"$old_archive_cmds_CXX"
19266 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19267 '"$reload_cmds_CXX"
19270 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19271 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19277 case $cc_basename in
19279 # NonStop-UX NCC 3.20
19280 # FIXME: insert proper C++ library support
19284 # FIXME: insert proper C++ library support
19291 # FIXME: insert proper C++ library support
19296 # FIXME: insert proper C++ library support
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19302 $as_echo "$ld_shlibs_CXX" >&6; }
19303 test "$ld_shlibs_CXX" = no && can_build_shared=no
19309 ## There is no encapsulation within the following macros, do not change
19310 ## the running order or otherwise move them around unless you know exactly
19311 ## what you are doing...
19312 # Dependencies to place before and after the object being linked:
19313 predep_objects_CXX=
19314 postdep_objects_CXX=
19317 compiler_lib_search_path_CXX=
19319 cat > conftest.$ac_ext <<_LT_EOF
19323 Foo (void) { a = 0; }
19329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19330 (eval $ac_compile) 2>&5
19332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19333 test $ac_status = 0; }; then
19334 # Parse the compiler output and extract the necessary
19335 # objects, libraries and library flags.
19337 # Sentinel used to keep track of whether or not we are before
19338 # the conftest object file.
19339 pre_test_object_deps_done=no
19341 for p in `eval "$output_verbose_link_cmd"`; do
19345 # Some compilers place space between "-{L,R}" and the path.
19346 # Remove the space.
19347 if test $p = "-L" ||
19348 test $p = "-R"; then
19355 if test "$pre_test_object_deps_done" = no; then
19358 # Internal compiler library paths should come after those
19359 # provided the user. The postdeps already come after the
19360 # user supplied libs so there is no need to process them.
19361 if test -z "$compiler_lib_search_path_CXX"; then
19362 compiler_lib_search_path_CXX="${prev}${p}"
19364 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19367 # The "-l" case would never come before the object being
19368 # linked, so don't bother handling this case.
19371 if test -z "$postdeps_CXX"; then
19372 postdeps_CXX="${prev}${p}"
19374 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19380 # This assumes that the test object file only shows up
19381 # once in the compiler output.
19382 if test "$p" = "conftest.$objext"; then
19383 pre_test_object_deps_done=yes
19387 if test "$pre_test_object_deps_done" = no; then
19388 if test -z "$predep_objects_CXX"; then
19389 predep_objects_CXX="$p"
19391 predep_objects_CXX="$predep_objects_CXX $p"
19394 if test -z "$postdep_objects_CXX"; then
19395 postdep_objects_CXX="$p"
19397 postdep_objects_CXX="$postdep_objects_CXX $p"
19402 *) ;; # Ignore the rest.
19410 echo "libtool.m4: error: problem compiling CXX test program"
19413 $RM -f confest.$objext
19415 # PORTME: override above test on systems where it is broken
19418 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19419 # hack all around it, let's just trust "g++" to DTRT.
19420 predep_objects_CXX=
19421 postdep_objects_CXX=
19426 case `$CC -V 2>&1 | sed 5q` in
19430 # The more standards-conforming stlport4 library is
19431 # incompatible with the Cstd library. Avoid specifying
19432 # it if it's in CXXFLAGS. Ignore libCrun as
19433 # -library=stlport4 depends on it.
19434 case " $CXX $CXXFLAGS " in
19435 *" -library=stlport4 "*)
19436 solaris_use_stlport4=yes
19440 if test "$solaris_use_stlport4" != yes; then
19441 postdeps_CXX='-library=Cstd -library=Crun'
19448 case $cc_basename in
19450 # The more standards-conforming stlport4 library is
19451 # incompatible with the Cstd library. Avoid specifying
19452 # it if it's in CXXFLAGS. Ignore libCrun as
19453 # -library=stlport4 depends on it.
19454 case " $CXX $CXXFLAGS " in
19455 *" -library=stlport4 "*)
19456 solaris_use_stlport4=yes
19460 # Adding this requires a known-good setup of shared libraries for
19461 # Sun compiler versions before 5.6, else PIC objects from an old
19462 # archive will be linked into the output, leading to subtle bugs.
19463 if test "$solaris_use_stlport4" != yes; then
19464 postdeps_CXX='-library=Cstd -library=Crun'
19472 case " $postdeps_CXX " in
19473 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19475 compiler_lib_search_dirs_CXX=
19476 if test -n "${compiler_lib_search_path_CXX}"; then
19477 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19510 lt_prog_compiler_wl_CXX=
19511 lt_prog_compiler_pic_CXX=
19512 lt_prog_compiler_static_CXX=
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19515 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19517 # C++ specific cases for pic, static, wl, etc.
19518 if test "$GXX" = yes; then
19519 lt_prog_compiler_wl_CXX='-Wl,'
19520 lt_prog_compiler_static_CXX='-static'
19524 # All AIX code is PIC.
19525 if test "$host_cpu" = ia64; then
19526 # AIX 5 now supports IA64 processor
19527 lt_prog_compiler_static_CXX='-Bstatic'
19534 # see comment about AmigaOS4 .so support
19535 lt_prog_compiler_pic_CXX='-fPIC'
19538 # FIXME: we need at least 68020 code to build shared libraries, but
19539 # adding the `-m68020' flag to GCC prevents building anything better,
19541 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19547 # PIC is the default for these OSes.
19549 mingw* | cygwin* | os2* | pw32* | cegcc*)
19550 # This hack is so that the source file can tell whether it is being
19551 # built for inclusion in a dll (and should export symbols for example).
19552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19553 # (--disable-auto-import) libraries
19554 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19556 darwin* | rhapsody*)
19557 # PIC is the default on this platform
19558 # Common symbols not allowed in MH_DYLIB files
19559 lt_prog_compiler_pic_CXX='-fno-common'
19562 # DJGPP does not support shared libraries at all
19563 lt_prog_compiler_pic_CXX=
19566 # PIC is the default for Haiku.
19567 # The "-static" flag exists, but is broken.
19568 lt_prog_compiler_static_CXX=
19571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19572 # Instead, we relocate shared libraries at runtime.
19575 if test -d /usr/nec; then
19576 lt_prog_compiler_pic_CXX=-Kconform_pic
19580 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19581 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19582 # sets the default TLS model and affects inlining.
19587 lt_prog_compiler_pic_CXX='-fPIC'
19592 # QNX uses GNU C++, but need to define -shared option too, otherwise
19593 # it will coredump.
19594 lt_prog_compiler_pic_CXX='-fPIC -shared'
19597 lt_prog_compiler_pic_CXX='-fPIC'
19603 # All AIX code is PIC.
19604 if test "$host_cpu" = ia64; then
19605 # AIX 5 now supports IA64 processor
19606 lt_prog_compiler_static_CXX='-Bstatic'
19608 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19612 case $cc_basename in
19614 # Green Hills C++ Compiler
19615 # _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"
19620 case $cc_basename in
19622 lt_prog_compiler_pic_CXX='-KPIC'
19625 # Green Hills C++ Compiler
19626 lt_prog_compiler_pic_CXX='-pic'
19632 freebsd* | dragonfly*)
19633 # FreeBSD uses GNU C++
19635 hpux9* | hpux10* | hpux11*)
19636 case $cc_basename in
19638 lt_prog_compiler_wl_CXX='-Wl,'
19639 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19640 if test "$host_cpu" != ia64; then
19641 lt_prog_compiler_pic_CXX='+Z'
19645 lt_prog_compiler_wl_CXX='-Wl,'
19646 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19652 lt_prog_compiler_pic_CXX='+Z'
19661 # This is c89, which is MS Visual C++ (no shared libs)
19662 # Anyone wants to do a port?
19664 irix5* | irix6* | nonstopux*)
19665 case $cc_basename in
19667 lt_prog_compiler_wl_CXX='-Wl,'
19668 lt_prog_compiler_static_CXX='-non_shared'
19669 # CC pic flag -KPIC is the default.
19675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19676 case $cc_basename in
19679 lt_prog_compiler_wl_CXX='--backend -Wl,'
19680 lt_prog_compiler_pic_CXX='-fPIC'
19683 # old Intel C++ for x86_64 which still supported -KPIC.
19684 lt_prog_compiler_wl_CXX='-Wl,'
19685 lt_prog_compiler_pic_CXX='-KPIC'
19686 lt_prog_compiler_static_CXX='-static'
19689 # Intel C++, used to be incompatible with GCC.
19690 # ICC 10 doesn't accept -KPIC any more.
19691 lt_prog_compiler_wl_CXX='-Wl,'
19692 lt_prog_compiler_pic_CXX='-fPIC'
19693 lt_prog_compiler_static_CXX='-static'
19696 # Portland Group C++ compiler
19697 lt_prog_compiler_wl_CXX='-Wl,'
19698 lt_prog_compiler_pic_CXX='-fpic'
19699 lt_prog_compiler_static_CXX='-Bstatic'
19703 # Make sure the PIC flag is empty. It appears that all Alpha
19704 # Linux and Compaq Tru64 Unix objects are PIC.
19705 lt_prog_compiler_pic_CXX=
19706 lt_prog_compiler_static_CXX='-non_shared'
19708 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19709 # IBM XL 8.0, 9.0 on PPC and BlueGene
19710 lt_prog_compiler_wl_CXX='-Wl,'
19711 lt_prog_compiler_pic_CXX='-qpic'
19712 lt_prog_compiler_static_CXX='-qstaticlink'
19715 case `$CC -V 2>&1 | sed 5q` in
19718 lt_prog_compiler_pic_CXX='-KPIC'
19719 lt_prog_compiler_static_CXX='-Bstatic'
19720 lt_prog_compiler_wl_CXX='-Qoption ld '
19731 case $cc_basename in
19733 lt_prog_compiler_pic_CXX='-W c,exportall'
19742 # QNX uses GNU C++, but need to define -shared option too, otherwise
19743 # it will coredump.
19744 lt_prog_compiler_pic_CXX='-fPIC -shared'
19746 osf3* | osf4* | osf5*)
19747 case $cc_basename in
19749 lt_prog_compiler_wl_CXX='--backend -Wl,'
19752 # Rational C++ 2.4.1
19753 lt_prog_compiler_pic_CXX='-pic'
19756 # Digital/Compaq C++
19757 lt_prog_compiler_wl_CXX='-Wl,'
19758 # Make sure the PIC flag is empty. It appears that all Alpha
19759 # Linux and Compaq Tru64 Unix objects are PIC.
19760 lt_prog_compiler_pic_CXX=
19761 lt_prog_compiler_static_CXX='-non_shared'
19770 case $cc_basename in
19772 # Sun C++ 4.2, 5.x and Centerline C++
19773 lt_prog_compiler_pic_CXX='-KPIC'
19774 lt_prog_compiler_static_CXX='-Bstatic'
19775 lt_prog_compiler_wl_CXX='-Qoption ld '
19778 # Green Hills C++ Compiler
19779 lt_prog_compiler_pic_CXX='-PIC'
19786 case $cc_basename in
19789 lt_prog_compiler_pic_CXX='-pic'
19790 lt_prog_compiler_static_CXX='-Bstatic'
19794 lt_prog_compiler_pic_CXX='-pic'
19800 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19801 case $cc_basename in
19803 lt_prog_compiler_wl_CXX='-Wl,'
19804 lt_prog_compiler_pic_CXX='-KPIC'
19805 lt_prog_compiler_static_CXX='-Bstatic'
19810 case $cc_basename in
19812 # NonStop-UX NCC 3.20
19813 lt_prog_compiler_pic_CXX='-KPIC'
19822 lt_prog_compiler_can_build_shared_CXX=no
19828 # For platforms which do not support PIC, -DPIC is meaningless:
19830 lt_prog_compiler_pic_CXX=
19833 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19837 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19842 # Check to make sure the PIC flag actually works.
19844 if test -n "$lt_prog_compiler_pic_CXX"; then
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19846 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19847 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19848 $as_echo_n "(cached) " >&6
19850 lt_cv_prog_compiler_pic_works_CXX=no
19851 ac_outfile=conftest.$ac_objext
19852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19853 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19854 # Insert the option either (1) after the last *FLAGS variable, or
19855 # (2) before a word containing "conftest.", or (3) at the end.
19856 # Note that $ac_compile itself does not contain backslashes and begins
19857 # with a dollar sign (not a hyphen), so the echo should work correctly.
19858 # The option is referenced via a variable to avoid confusing sed.
19859 lt_compile=`echo "$ac_compile" | $SED \
19860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19862 -e 's:$: $lt_compiler_flag:'`
19863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19864 (eval "$lt_compile" 2>conftest.err)
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 if (exit $ac_status) && test -s "$ac_outfile"; then
19869 # The compiler can only warn and ignore the option if not recognized
19870 # So say no if there are warnings other than the usual output.
19871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19874 lt_cv_prog_compiler_pic_works_CXX=yes
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19881 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19883 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19884 case $lt_prog_compiler_pic_CXX in
19886 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19889 lt_prog_compiler_pic_CXX=
19890 lt_prog_compiler_can_build_shared_CXX=no
19898 # Check to make sure the static flag actually works.
19900 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19902 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19903 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19904 $as_echo_n "(cached) " >&6
19906 lt_cv_prog_compiler_static_works_CXX=no
19907 save_LDFLAGS="$LDFLAGS"
19908 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19909 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19911 # The linker can only warn and ignore the option if not recognized
19912 # So say no if there are warnings
19913 if test -s conftest.err; then
19914 # Append any errors to the config.log.
19915 cat conftest.err 1>&5
19916 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19918 if diff conftest.exp conftest.er2 >/dev/null; then
19919 lt_cv_prog_compiler_static_works_CXX=yes
19922 lt_cv_prog_compiler_static_works_CXX=yes
19926 LDFLAGS="$save_LDFLAGS"
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19930 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19932 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19935 lt_prog_compiler_static_CXX=
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19942 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19943 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19944 $as_echo_n "(cached) " >&6
19946 lt_cv_prog_compiler_c_o_CXX=no
19947 $RM -r conftest 2>/dev/null
19951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19953 lt_compiler_flag="-o out/conftest2.$ac_objext"
19954 # Insert the option either (1) after the last *FLAGS variable, or
19955 # (2) before a word containing "conftest.", or (3) at the end.
19956 # Note that $ac_compile itself does not contain backslashes and begins
19957 # with a dollar sign (not a hyphen), so the echo should work correctly.
19958 lt_compile=`echo "$ac_compile" | $SED \
19959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19961 -e 's:$: $lt_compiler_flag:'`
19962 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19963 (eval "$lt_compile" 2>out/conftest.err)
19965 cat out/conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19969 # The compiler can only warn and ignore the option if not recognized
19970 # So say no if there are warnings
19971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19972 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19973 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19974 lt_cv_prog_compiler_c_o_CXX=yes
19979 # SGI C++ compiler will create directory out/ii_files/ for
19980 # template instantiation
19981 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19982 $RM out/* && rmdir out
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19989 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19994 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19995 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19996 $as_echo_n "(cached) " >&6
19998 lt_cv_prog_compiler_c_o_CXX=no
19999 $RM -r conftest 2>/dev/null
20003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20005 lt_compiler_flag="-o out/conftest2.$ac_objext"
20006 # Insert the option either (1) after the last *FLAGS variable, or
20007 # (2) before a word containing "conftest.", or (3) at the end.
20008 # Note that $ac_compile itself does not contain backslashes and begins
20009 # with a dollar sign (not a hyphen), so the echo should work correctly.
20010 lt_compile=`echo "$ac_compile" | $SED \
20011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20013 -e 's:$: $lt_compiler_flag:'`
20014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20015 (eval "$lt_compile" 2>out/conftest.err)
20017 cat out/conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20021 # The compiler can only warn and ignore the option if not recognized
20022 # So say no if there are warnings
20023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20026 lt_cv_prog_compiler_c_o_CXX=yes
20031 # SGI C++ compiler will create directory out/ii_files/ for
20032 # template instantiation
20033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20034 $RM out/* && rmdir out
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20041 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20046 hard_links="nottested"
20047 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20048 # do not overwrite the value of need_locks provided by the user
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20050 $as_echo_n "checking if we can lock with hard links... " >&6; }
20053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20055 ln conftest.a conftest.b 2>&5 || hard_links=no
20056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20058 $as_echo "$hard_links" >&6; }
20059 if test "$hard_links" = no; then
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20061 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20071 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20076 # If we're using GNU nm, then we don't want the "-C" option.
20077 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20078 # Also, AIX nm treats weak defined symbols like other global defined
20079 # symbols, whereas GNU nm marks them as "W".
20080 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20081 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'
20083 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'
20087 export_symbols_cmds_CXX="$ltdll_cmds"
20089 cygwin* | mingw* | cegcc*)
20090 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'
20093 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20096 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20099 $as_echo "$ld_shlibs_CXX" >&6; }
20100 test "$ld_shlibs_CXX" = no && can_build_shared=no
20102 with_gnu_ld_CXX=$with_gnu_ld
20110 # Do we need to explicitly link libc?
20112 case "x$archive_cmds_need_lc_CXX" in
20114 # Assume -lc should be added
20115 archive_cmds_need_lc_CXX=yes
20117 if test "$enable_shared" = yes && test "$GCC" = yes; then
20118 case $archive_cmds_CXX in
20120 # FIXME: we may have to deal with multi-command sequences.
20123 # Test whether the compiler implicitly links with -lc since on some
20124 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20125 # to ld, don't add -lc before -lgcc.
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20127 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20128 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20129 $as_echo_n "(cached) " >&6
20132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20135 (eval $ac_compile) 2>&5
20137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20138 test $ac_status = 0; } 2>conftest.err; then
20141 libobjs=conftest.$ac_objext
20143 wl=$lt_prog_compiler_wl_CXX
20144 pic_flag=$lt_prog_compiler_pic_CXX
20150 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20151 allow_undefined_flag_CXX=
20152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20153 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20156 test $ac_status = 0; }
20158 lt_cv_archive_cmds_need_lc_CXX=no
20160 lt_cv_archive_cmds_need_lc_CXX=yes
20162 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20164 cat conftest.err 1>&5
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20170 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20171 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20242 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20244 library_names_spec=
20245 libname_spec='lib$name'
20249 postuninstall_cmds=
20253 shlibpath_overrides_runpath=unknown
20255 dynamic_linker="$host_os ld.so"
20256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20257 need_lib_prefix=unknown
20258 hardcode_into_libs=no
20260 # when you set need_version to no, make sure it does not cause -set_version
20261 # flags to be left without arguments
20262 need_version=unknown
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20268 shlibpath_var=LIBPATH
20270 # AIX 3 has no versioning support, so we append a major version to the name.
20271 soname_spec='${libname}${release}${shared_ext}$major'
20278 hardcode_into_libs=yes
20279 if test "$host_cpu" = ia64; then
20280 # AIX 5 supports IA64
20281 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20282 shlibpath_var=LD_LIBRARY_PATH
20284 # With GCC up to 2.95.x, collect2 would create an import file
20285 # for dependence libraries. The import file would start with
20286 # the line `#! .'. This would cause the generated library to
20287 # depend on `.', always an invalid library. This was fixed in
20288 # development snapshots of GCC prior to 3.0.
20290 aix4 | aix4.[01] | aix4.[01].*)
20291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20293 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20296 can_build_shared=no
20300 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20301 # soname into executable. Probably we can add versioning support to
20302 # collect2, so additional links can be useful in future.
20303 if test "$aix_use_runtimelinking" = yes; then
20304 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20305 # instead of lib<name>.a to let people know that these are not
20306 # typical AIX shared libraries.
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20309 # We preserve .a as extension for shared libraries through AIX4.2
20310 # and later when we are not doing run time linking.
20311 library_names_spec='${libname}${release}.a $libname.a'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LIBPATH
20321 # Since July 2007 AmigaOS4 officially supports .so libraries.
20322 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326 library_names_spec='$libname.ixlibrary $libname.a'
20327 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20328 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'
20334 library_names_spec='${libname}${shared_ext}'
20335 dynamic_linker="$host_os ld.so"
20336 shlibpath_var=LIBRARY_PATH
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20347 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20348 # the default ld.so.conf also contains /usr/contrib/lib and
20349 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20350 # libtool to hard-code these into programs
20353 cygwin* | mingw* | pw32* | cegcc*)
20354 version_type=windows
20359 case $GCC,$host_os in
20360 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20361 library_names_spec='$libname.dll.a'
20362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20363 postinstall_cmds='base_file=`basename \${file}`~
20364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20365 dldir=$destdir/`dirname \$dlpath`~
20366 test -d \$dldir || mkdir -p \$dldir~
20367 $install_prog $dir/$dlname \$dldir/$dlname~
20368 chmod a+x \$dldir/$dlname~
20369 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20370 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20373 dlpath=$dir/\$dldll~
20375 shlibpath_overrides_runpath=yes
20379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20380 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20384 # MinGW DLLs use traditional 'lib' prefix
20385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20388 # pw32 DLLs use 'pw' prefix rather than 'lib'
20389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20398 dynamic_linker='Win32 ld.exe'
20399 # FIXME: first we should search . and the directory the executable is in
20403 darwin* | rhapsody*)
20404 dynamic_linker="$host_os dyld"
20405 version_type=darwin
20408 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20409 soname_spec='${libname}${release}${major}$shared_ext'
20410 shlibpath_overrides_runpath=yes
20411 shlibpath_var=DYLD_LIBRARY_PATH
20412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20422 soname_spec='${libname}${release}${shared_ext}$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20426 freebsd* | dragonfly*)
20427 # DragonFly does not have aout. When/if they implement a new
20428 # versioning mechanism, adjust this.
20429 if test -x /usr/bin/objformat; then
20430 objformat=`/usr/bin/objformat`
20433 freebsd[123]*) objformat=aout ;;
20434 *) objformat=elf ;;
20437 version_type=freebsd-$objformat
20438 case $version_type in
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20449 shlibpath_var=LD_LIBRARY_PATH
20452 shlibpath_overrides_runpath=yes
20454 freebsd3.[01]* | freebsdelf3.[01]*)
20455 shlibpath_overrides_runpath=yes
20456 hardcode_into_libs=yes
20458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20460 shlibpath_overrides_runpath=no
20461 hardcode_into_libs=yes
20463 *) # from 4.6 on, and DragonFly
20464 shlibpath_overrides_runpath=yes
20465 hardcode_into_libs=yes
20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 shlibpath_var=LD_LIBRARY_PATH
20477 hardcode_into_libs=yes
20484 dynamic_linker="$host_os runtime_loader"
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20486 soname_spec='${libname}${release}${shared_ext}$major'
20487 shlibpath_var=LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20490 hardcode_into_libs=yes
20493 hpux9* | hpux10* | hpux11*)
20494 # Give a soname corresponding to the major version so that dld.sl refuses to
20495 # link against other versions.
20502 hardcode_into_libs=yes
20503 dynamic_linker="$host_os dld.so"
20504 shlibpath_var=LD_LIBRARY_PATH
20505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20507 soname_spec='${libname}${release}${shared_ext}$major'
20508 if test "X$HPUX_IA64_MODE" = X32; then
20509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20517 hardcode_into_libs=yes
20518 dynamic_linker="$host_os dld.sl"
20519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20528 dynamic_linker="$host_os dld.sl"
20529 shlibpath_var=SHLIB_PATH
20530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20532 soname_spec='${libname}${release}${shared_ext}$major'
20535 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20536 postinstall_cmds='chmod 555 $lib'
20537 # or fails outright, so override atomically:
20538 install_override_mode=555
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20546 soname_spec='${libname}${release}${shared_ext}$major'
20547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20548 shlibpath_var=LD_LIBRARY_PATH
20549 shlibpath_overrides_runpath=no
20550 hardcode_into_libs=yes
20553 irix5* | irix6* | nonstopux*)
20555 nonstopux*) version_type=nonstopux ;;
20557 if test "$lt_cv_prog_gnu_ld" = yes; then
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20568 irix5* | nonstopux*)
20569 libsuff= shlibsuff=
20572 case $LD in # libtool.m4 will add one of these switches to LD
20573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20574 libsuff= shlibsuff= libmagic=32-bit;;
20575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20576 libsuff=32 shlibsuff=N32 libmagic=N32;;
20577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20578 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20579 *) libsuff= shlibsuff= libmagic=never-match;;
20583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20584 shlibpath_overrides_runpath=no
20585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20587 hardcode_into_libs=yes
20590 # No shared lib support for Linux oldld, aout, or coff.
20591 linux*oldld* | linux*aout* | linux*coff*)
20595 # This must be Linux ELF.
20596 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20601 soname_spec='${libname}${release}${shared_ext}$major'
20602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20603 shlibpath_var=LD_LIBRARY_PATH
20604 shlibpath_overrides_runpath=no
20606 # Some binutils ld are patched to set DT_RUNPATH
20607 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20608 $as_echo_n "(cached) " >&6
20610 lt_cv_shlibpath_overrides_runpath=no
20611 save_LDFLAGS=$LDFLAGS
20612 save_libdir=$libdir
20613 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20614 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20626 if ac_fn_cxx_try_link "$LINENO"; then :
20627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20628 lt_cv_shlibpath_overrides_runpath=yes
20631 rm -f core conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20633 LDFLAGS=$save_LDFLAGS
20634 libdir=$save_libdir
20638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20640 # This implies no fast_install, which is unacceptable.
20641 # Some rework will be needed to allow for fast_install
20642 # before this can be enabled.
20643 hardcode_into_libs=yes
20645 # Append ld.so.conf contents to the search path
20646 if test -f /etc/ld.so.conf; then
20647 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' ' '`
20648 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20651 # We used to test for /lib/ld.so.1 and disable shared libraries on
20652 # powerpc, because MkLinux only supported shared libraries with the
20653 # GNU dynamic linker. Since this was broken with cross compilers,
20654 # most powerpc-linux boxes support dynamic linking these days and
20655 # people can always --disable-shared, the test was removed, and we
20656 # assume the GNU/Linux dynamic linker is in use.
20657 dynamic_linker='GNU/Linux ld.so'
20664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20667 dynamic_linker='NetBSD (a.out) ld.so'
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20670 soname_spec='${libname}${release}${shared_ext}$major'
20671 dynamic_linker='NetBSD ld.elf_so'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 shlibpath_overrides_runpath=yes
20675 hardcode_into_libs=yes
20680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20681 shlibpath_var=LD_LIBRARY_PATH
20682 shlibpath_overrides_runpath=yes
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20690 soname_spec='${libname}${release}${shared_ext}$major'
20691 shlibpath_var=LD_LIBRARY_PATH
20692 shlibpath_overrides_runpath=no
20693 hardcode_into_libs=yes
20694 dynamic_linker='ldqnx.so'
20699 sys_lib_dlsearch_path_spec="/usr/lib"
20701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20704 *) need_version=no ;;
20706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20708 shlibpath_var=LD_LIBRARY_PATH
20709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20711 openbsd2.[89] | openbsd2.[89].*)
20712 shlibpath_overrides_runpath=no
20715 shlibpath_overrides_runpath=yes
20719 shlibpath_overrides_runpath=yes
20724 libname_spec='$name'
20727 library_names_spec='$libname${shared_ext} $libname.a'
20728 dynamic_linker='OS/2 ld.exe'
20729 shlibpath_var=LIBPATH
20732 osf3* | osf4* | osf5*)
20736 soname_spec='${libname}${release}${shared_ext}$major'
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20738 shlibpath_var=LD_LIBRARY_PATH
20739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20752 soname_spec='${libname}${release}${shared_ext}$major'
20753 shlibpath_var=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath=yes
20755 hardcode_into_libs=yes
20756 # ldd complains unless libraries are executable
20757 postinstall_cmds='chmod +x $lib'
20762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20764 shlibpath_var=LD_LIBRARY_PATH
20765 shlibpath_overrides_runpath=yes
20766 if test "$with_gnu_ld" = yes; then
20774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20775 soname_spec='${libname}${release}${shared_ext}$major'
20776 shlibpath_var=LD_LIBRARY_PATH
20777 case $host_vendor in
20779 shlibpath_overrides_runpath=no
20781 runpath_var=LD_RUN_PATH
20789 shlibpath_overrides_runpath=no
20790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20796 if test -d /usr/nec ;then
20798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20799 soname_spec='$libname${shared_ext}.$major'
20800 shlibpath_var=LD_LIBRARY_PATH
20804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20805 version_type=freebsd-elf
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20809 soname_spec='${libname}${release}${shared_ext}$major'
20810 shlibpath_var=LD_LIBRARY_PATH
20811 shlibpath_overrides_runpath=yes
20812 hardcode_into_libs=yes
20813 if test "$with_gnu_ld" = yes; then
20814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20823 sys_lib_dlsearch_path_spec='/usr/lib'
20827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20832 shlibpath_var=LD_LIBRARY_PATH
20833 shlibpath_overrides_runpath=no
20834 hardcode_into_libs=yes
20839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840 soname_spec='${libname}${release}${shared_ext}$major'
20841 shlibpath_var=LD_LIBRARY_PATH
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20849 $as_echo "$dynamic_linker" >&6; }
20850 test "$dynamic_linker" = no && can_build_shared=no
20852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20853 if test "$GCC" = yes; then
20854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20857 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20858 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20860 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20861 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20902 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20903 hardcode_action_CXX=
20904 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20905 test -n "$runpath_var_CXX" ||
20906 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20908 # We can hardcode non-existent directories.
20909 if test "$hardcode_direct_CXX" != no &&
20910 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20911 # have to relink, otherwise we might link with an installed library
20912 # when we should be linking with a yet-to-be-installed one
20913 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20914 test "$hardcode_minus_L_CXX" != no; then
20915 # Linking always hardcodes the temporary library directory.
20916 hardcode_action_CXX=relink
20918 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20919 hardcode_action_CXX=immediate
20922 # We cannot hardcode anything, or else we can only hardcode existing
20924 hardcode_action_CXX=unsupported
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20927 $as_echo "$hardcode_action_CXX" >&6; }
20929 if test "$hardcode_action_CXX" = relink ||
20930 test "$inherit_rpath_CXX" = yes; then
20931 # Fast installation is not supported
20932 enable_fast_install=no
20933 elif test "$shlibpath_overrides_runpath" = yes ||
20934 test "$enable_shared" = no; then
20935 # Fast installation is not necessary
20936 enable_fast_install=needless
20945 fi # test -n "$compiler"
20951 with_gnu_ld=$lt_save_with_gnu_ld
20952 lt_cv_path_LDCXX=$lt_cv_path_LD
20953 lt_cv_path_LD=$lt_save_path_LD
20954 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20955 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20956 fi # test "$_lt_caught_CXX_error" != yes
20959 ac_cpp='$CPP $CPPFLAGS'
20960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20979 # Only expand once:
20985 # Identify the assembler which will work hand-in-glove with the newly
20986 # built GCC, so that we can examine its features. This is the assembler
20987 # which will be driven by the driver program.
20989 # If build != host, and we aren't building gas in-tree, we identify a
20990 # build->target assembler and hope that it will have the same features
20991 # as the host->target assembler we'll be using.
20992 gcc_cv_gas_major_version=
20993 gcc_cv_gas_minor_version=
20994 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20996 if test "${gcc_cv_as+set}" = set; then :
21000 if test -x "$DEFAULT_ASSEMBLER"; then
21001 gcc_cv_as="$DEFAULT_ASSEMBLER"
21002 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21003 && test -f ../gas/Makefile \
21004 && test x$build = x$host; then
21005 gcc_cv_as=../gas/as-new$build_exeext
21006 elif test -x as$build_exeext; then
21007 # Build using assembler in the current directory.
21008 gcc_cv_as=./as$build_exeext
21009 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21010 gcc_cv_as="$AS_FOR_TARGET"
21012 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21013 set dummy $AS_FOR_TARGET; ac_word=$2
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21015 $as_echo_n "checking for $ac_word... " >&6; }
21016 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21017 $as_echo_n "(cached) " >&6
21021 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21025 for as_dir in $PATH
21028 test -z "$as_dir" && as_dir=.
21029 for ac_exec_ext in '' $ac_executable_extensions; do
21030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21031 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21042 gcc_cv_as=$ac_cv_path_gcc_cv_as
21043 if test -n "$gcc_cv_as"; then
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21045 $as_echo "$gcc_cv_as" >&6; }
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21048 $as_echo "no" >&6; }
21055 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21057 case "$ORIGINAL_AS_FOR_TARGET" in
21058 ./as | ./as$build_exeext) ;;
21059 *) ac_config_files="$ac_config_files as:exec-tool.in"
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21064 $as_echo_n "checking what assembler to use... " >&6; }
21065 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21066 # Single tree build which includes gas. We want to prefer it
21067 # over whatever linker top-level may have detected, since
21068 # we'll use what we're building after installation anyway.
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21070 $as_echo "newly built gas" >&6; }
21072 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21073 for f in $gcc_cv_as_bfd_srcdir/configure \
21074 $gcc_cv_as_gas_srcdir/configure \
21075 $gcc_cv_as_gas_srcdir/configure.in \
21076 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21077 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21078 if test x$gcc_cv_gas_version != x; then
21082 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21083 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21084 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21085 case $gcc_cv_gas_patch_version in
21086 "") gcc_cv_gas_patch_version="0" ;;
21088 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21089 + $gcc_cv_gas_minor_version \) \* 1000 \
21090 + $gcc_cv_gas_patch_version`
21092 in_tree_gas_is_elf=no
21093 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21094 || (grep 'obj_format = multi' ../gas/Makefile \
21095 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21097 in_tree_gas_is_elf=yes
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21101 $as_echo "$gcc_cv_as" >&6; }
21105 # Identify the linker which will work hand-in-glove with the newly
21106 # built GCC, so that we can examine its features. This is the linker
21107 # which will be driven by the driver program.
21109 # If build != host, and we aren't building gas in-tree, we identify a
21110 # build->target linker and hope that it will have the same features
21111 # as the host->target linker we'll be using.
21112 gcc_cv_gld_major_version=
21113 gcc_cv_gld_minor_version=
21114 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21115 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21117 if test "${gcc_cv_ld+set}" = set; then :
21121 if test -x "$DEFAULT_LINKER"; then
21122 gcc_cv_ld="$DEFAULT_LINKER"
21123 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21124 && test -f ../ld/Makefile \
21125 && test x$build = x$host; then
21126 gcc_cv_ld=../ld/ld-new$build_exeext
21127 elif test -x collect-ld$build_exeext; then
21128 # Build using linker in the current directory.
21129 gcc_cv_ld=./collect-ld$build_exeext
21130 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21131 gcc_cv_ld="$LD_FOR_TARGET"
21133 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21134 set dummy $LD_FOR_TARGET; ac_word=$2
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21136 $as_echo_n "checking for $ac_word... " >&6; }
21137 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21138 $as_echo_n "(cached) " >&6
21142 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21146 for as_dir in $PATH
21149 test -z "$as_dir" && as_dir=.
21150 for ac_exec_ext in '' $ac_executable_extensions; do
21151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21152 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21163 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21164 if test -n "$gcc_cv_ld"; then
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21166 $as_echo "$gcc_cv_ld" >&6; }
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21169 $as_echo "no" >&6; }
21176 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21177 PLUGIN_LD=`basename $gcc_cv_ld`
21179 # Check whether --with-plugin-ld was given.
21180 if test "${with_plugin_ld+set}" = set; then :
21181 withval=$with_plugin_ld; if test x"$withval" != x; then
21182 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21183 PLUGIN_LD="$withval"
21189 cat >>confdefs.h <<_ACEOF
21190 #define PLUGIN_LD "$PLUGIN_LD"
21194 # Check to see if we are using gold instead of ld
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21196 $as_echo_n "checking whether we are using gold... " >&6; }
21198 if test x$gcc_cv_ld != x; then
21199 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21200 | grep "GNU gold" > /dev/null; then
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21205 $as_echo "$ld_is_gold" >&6; }
21207 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21209 case "$ORIGINAL_LD_FOR_TARGET" in
21210 ./collect-ld | ./collect-ld$build_exeext) ;;
21211 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21216 $as_echo_n "checking what linker to use... " >&6; }
21217 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21218 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21219 # Single tree build which includes ld. We want to prefer it
21220 # over whatever linker top-level may have detected, since
21221 # we'll use what we're building after installation anyway.
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21223 $as_echo "newly built ld" >&6; }
21225 in_tree_ld_is_elf=no
21226 if (grep 'EMUL = .*elf' ../ld/Makefile \
21227 || grep 'EMUL = .*linux' ../ld/Makefile \
21228 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21229 in_tree_ld_is_elf=yes
21230 elif test "$ld_is_gold" = yes; then
21231 in_tree_ld_is_elf=yes
21233 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
21235 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21236 if test x$gcc_cv_gld_version != x; then
21240 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21241 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21244 $as_echo "$gcc_cv_ld" >&6; }
21248 # Figure out what nm we will be using.
21249 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21250 if test "${gcc_cv_nm+set}" = set; then :
21254 if test -f $gcc_cv_binutils_srcdir/configure.in \
21255 && test -f ../binutils/Makefile \
21256 && test x$build = x$host; then
21257 gcc_cv_nm=../binutils/nm-new$build_exeext
21258 elif test -x nm$build_exeext; then
21259 gcc_cv_nm=./nm$build_exeext
21260 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21261 gcc_cv_nm="$NM_FOR_TARGET"
21263 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21264 set dummy $NM_FOR_TARGET; ac_word=$2
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21266 $as_echo_n "checking for $ac_word... " >&6; }
21267 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21268 $as_echo_n "(cached) " >&6
21272 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21276 for as_dir in $PATH
21279 test -z "$as_dir" && as_dir=.
21280 for ac_exec_ext in '' $ac_executable_extensions; do
21281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21282 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21293 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21294 if test -n "$gcc_cv_nm"; then
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21296 $as_echo "$gcc_cv_nm" >&6; }
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 $as_echo "no" >&6; }
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21307 $as_echo_n "checking what nm to use... " >&6; }
21308 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21309 # Single tree build which includes binutils.
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21311 $as_echo "newly built nm" >&6; }
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21315 $as_echo "$gcc_cv_nm" >&6; }
21319 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21321 case "$ORIGINAL_NM_FOR_TARGET" in
21322 ./nm | ./nm$build_exeext) ;;
21323 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21328 # Figure out what objdump we will be using.
21329 if test "${gcc_cv_objdump+set}" = set; then :
21333 if test -f $gcc_cv_binutils_srcdir/configure.in \
21334 && test -f ../binutils/Makefile \
21335 && test x$build = x$host; then
21336 # Single tree build which includes binutils.
21337 gcc_cv_objdump=../binutils/objdump$build_exeext
21338 elif test -x objdump$build_exeext; then
21339 gcc_cv_objdump=./objdump$build_exeext
21340 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21341 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21343 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21344 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21346 $as_echo_n "checking for $ac_word... " >&6; }
21347 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21348 $as_echo_n "(cached) " >&6
21350 case $gcc_cv_objdump in
21352 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21356 for as_dir in $PATH
21359 test -z "$as_dir" && as_dir=.
21360 for ac_exec_ext in '' $ac_executable_extensions; do
21361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21362 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21373 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21374 if test -n "$gcc_cv_objdump"; then
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21376 $as_echo "$gcc_cv_objdump" >&6; }
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21379 $as_echo "no" >&6; }
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21387 $as_echo_n "checking what objdump to use... " >&6; }
21388 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21389 # Single tree build which includes binutils.
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21391 $as_echo "newly built objdump" >&6; }
21392 elif test x$gcc_cv_objdump = x; then
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21394 $as_echo "not found" >&6; }
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21397 $as_echo "$gcc_cv_objdump" >&6; }
21400 # Figure out what readelf we will be using.
21401 if test "${gcc_cv_readelf+set}" = set; then :
21405 if test -f $gcc_cv_binutils_srcdir/configure.in \
21406 && test -f ../binutils/Makefile \
21407 && test x$build = x$host; then
21408 # Single tree build which includes binutils.
21409 gcc_cv_readelf=../binutils/readelf$build_exeext
21410 elif test -x readelf$build_exeext; then
21411 gcc_cv_readelf=./readelf$build_exeext
21413 # Extract the first word of "readelf", so it can be a program name with args.
21414 set dummy readelf; ac_word=$2
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21416 $as_echo_n "checking for $ac_word... " >&6; }
21417 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21418 $as_echo_n "(cached) " >&6
21420 case $gcc_cv_readelf in
21422 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21426 for as_dir in $PATH
21429 test -z "$as_dir" && as_dir=.
21430 for ac_exec_ext in '' $ac_executable_extensions; do
21431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21432 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21443 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21444 if test -n "$gcc_cv_readelf"; then
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21446 $as_echo "$gcc_cv_readelf" >&6; }
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21449 $as_echo "no" >&6; }
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21457 $as_echo_n "checking what readelf to use... " >&6; }
21458 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21459 # Single tree build which includes binutils.
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21461 $as_echo "newly built readelf" >&6; }
21462 elif test x$gcc_cv_readelf = x; then
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21464 $as_echo "not found" >&6; }
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21467 $as_echo "$gcc_cv_readelf" >&6; }
21470 # Figure out what assembler alignment features are present.
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21472 $as_echo_n "checking assembler flags... " >&6; }
21473 if test "${gcc_cv_as_flags+set}" = set; then :
21474 $as_echo_n "(cached) " >&6
21477 i[34567]86-*-linux*)
21478 gcc_cv_as_flags="--32"
21480 powerpc*-*-darwin*)
21481 gcc_cv_as_flags="-arch ppc"
21484 gcc_cv_as_flags=" "
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21489 $as_echo "$gcc_cv_as_flags" >&6; }
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21492 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21493 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21494 $as_echo_n "(cached) " >&6
21496 gcc_cv_as_balign_and_p2align=no
21497 if test $in_tree_gas = yes; then
21498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21499 then gcc_cv_as_balign_and_p2align=yes
21501 elif test x$gcc_cv_as != x; then
21503 .p2align 2' > conftest.s
21504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21506 (eval $ac_try) 2>&5
21508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21509 test $ac_status = 0; }; }
21511 gcc_cv_as_balign_and_p2align=yes
21513 echo "configure: failed program was" >&5
21516 rm -f conftest.o conftest.s
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21520 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21521 if test $gcc_cv_as_balign_and_p2align = yes; then
21523 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21528 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21529 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21530 $as_echo_n "(cached) " >&6
21532 gcc_cv_as_max_skip_p2align=no
21533 if test $in_tree_gas = yes; then
21534 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21535 then gcc_cv_as_max_skip_p2align=yes
21537 elif test x$gcc_cv_as != x; then
21538 echo '.p2align 4,,7' > conftest.s
21539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21541 (eval $ac_try) 2>&5
21543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21544 test $ac_status = 0; }; }
21546 gcc_cv_as_max_skip_p2align=yes
21548 echo "configure: failed program was" >&5
21551 rm -f conftest.o conftest.s
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21555 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21556 if test $gcc_cv_as_max_skip_p2align = yes; then
21558 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21563 $as_echo_n "checking assembler for .literal16... " >&6; }
21564 if test "${gcc_cv_as_literal16+set}" = set; then :
21565 $as_echo_n "(cached) " >&6
21567 gcc_cv_as_literal16=no
21568 if test $in_tree_gas = yes; then
21569 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21570 then gcc_cv_as_literal16=yes
21572 elif test x$gcc_cv_as != x; then
21573 echo '.literal16' > conftest.s
21574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21576 (eval $ac_try) 2>&5
21578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21579 test $ac_status = 0; }; }
21581 gcc_cv_as_literal16=yes
21583 echo "configure: failed program was" >&5
21586 rm -f conftest.o conftest.s
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21590 $as_echo "$gcc_cv_as_literal16" >&6; }
21591 if test $gcc_cv_as_literal16 = yes; then
21593 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21598 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21599 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21600 $as_echo_n "(cached) " >&6
21602 gcc_cv_as_subsection_m1=no
21603 if test $in_tree_gas = yes; then
21604 if test $in_tree_gas_is_elf = yes \
21605 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21606 then gcc_cv_as_subsection_m1=yes
21608 elif test x$gcc_cv_as != x; then
21609 echo 'conftest_label1: .word 0
21611 conftest_label2: .word 0
21612 .previous' > conftest.s
21613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21615 (eval $ac_try) 2>&5
21617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21618 test $ac_status = 0; }; }
21620 if test x$gcc_cv_nm != x; then
21621 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21622 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21623 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21625 else gcc_cv_as_subsection_m1=yes
21627 rm -f conftest.nm1 conftest.nm2
21630 echo "configure: failed program was" >&5
21633 rm -f conftest.o conftest.s
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21637 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21638 if test $gcc_cv_as_subsection_m1 = yes; then
21640 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21645 $as_echo_n "checking assembler for .weak... " >&6; }
21646 if test "${gcc_cv_as_weak+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21650 if test $in_tree_gas = yes; then
21651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21652 then gcc_cv_as_weak=yes
21654 elif test x$gcc_cv_as != x; then
21655 echo ' .weak foobar' > conftest.s
21656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21658 (eval $ac_try) 2>&5
21660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21661 test $ac_status = 0; }; }
21665 echo "configure: failed program was" >&5
21668 rm -f conftest.o conftest.s
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21672 $as_echo "$gcc_cv_as_weak" >&6; }
21673 if test $gcc_cv_as_weak = yes; then
21675 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21680 $as_echo_n "checking assembler for .weakref... " >&6; }
21681 if test "${gcc_cv_as_weakref+set}" = set; then :
21682 $as_echo_n "(cached) " >&6
21684 gcc_cv_as_weakref=no
21685 if test $in_tree_gas = yes; then
21686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21687 then gcc_cv_as_weakref=yes
21689 elif test x$gcc_cv_as != x; then
21690 echo ' .weakref foobar, barfnot' > conftest.s
21691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21693 (eval $ac_try) 2>&5
21695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21696 test $ac_status = 0; }; }
21698 gcc_cv_as_weakref=yes
21700 echo "configure: failed program was" >&5
21703 rm -f conftest.o conftest.s
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21707 $as_echo "$gcc_cv_as_weakref" >&6; }
21708 if test $gcc_cv_as_weakref = yes; then
21710 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21715 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21716 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21717 $as_echo_n "(cached) " >&6
21719 gcc_cv_as_nsubspa_comdat=no
21720 if test $in_tree_gas = yes; then
21721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21722 then gcc_cv_as_nsubspa_comdat=yes
21724 elif test x$gcc_cv_as != x; then
21725 echo ' .SPACE $TEXT$
21726 .NSUBSPA $CODE$,COMDAT' > conftest.s
21727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21729 (eval $ac_try) 2>&5
21731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21732 test $ac_status = 0; }; }
21734 gcc_cv_as_nsubspa_comdat=yes
21736 echo "configure: failed program was" >&5
21739 rm -f conftest.o conftest.s
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21743 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21744 if test $gcc_cv_as_nsubspa_comdat = yes; then
21746 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21750 # .hidden needs to be supported in both the assembler and the linker,
21751 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21752 # This is irritatingly difficult to feature test for; we have to check the
21753 # date string after the version number. If we've got an in-tree
21754 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21756 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21758 $as_echo_n "checking assembler for .hidden... " >&6; }
21759 if test "${gcc_cv_as_hidden+set}" = set; then :
21760 $as_echo_n "(cached) " >&6
21762 gcc_cv_as_hidden=no
21763 if test $in_tree_gas = yes; then
21764 if test $in_tree_gas_is_elf = yes \
21765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21766 then gcc_cv_as_hidden=yes
21768 elif test x$gcc_cv_as != x; then
21769 echo ' .hidden foobar
21770 foobar:' > conftest.s
21771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21773 (eval $ac_try) 2>&5
21775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21776 test $ac_status = 0; }; }
21779 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21780 # STV_HIDDEN, so disable .hidden support if so.
21781 case "${target}" in
21783 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21784 cat > conftest.s <<EOF
21789 .set default,hidden
21791 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21792 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21793 grep '\.hidden default' > /dev/null; then
21794 gcc_cv_as_hidden=no
21796 gcc_cv_as_hidden=yes
21799 # Assume bug is present if objdump is missing.
21800 gcc_cv_as_hidden=no
21804 gcc_cv_as_hidden=yes
21808 echo "configure: failed program was" >&5
21811 rm -f conftest.o conftest.s
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21815 $as_echo "$gcc_cv_as_hidden" >&6; }
21817 case "${target}" in
21819 # Darwin as has some visibility support, though with a different syntax.
21820 gcc_cv_as_hidden=yes
21824 # gnu_indirect_function type is an extension proposed at
21825 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21826 # selection of function implementation
21827 # Check whether --enable-gnu-indirect-function was given.
21828 if test "${enable_gnu_indirect_function+set}" = set; then :
21829 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21831 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21832 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21835 enable_gnu_indirect_function="$default_gnu_indirect_function"
21838 if test x$enable_gnu_indirect_function = xyes; then
21840 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21844 if test $in_tree_ld != yes ; then
21845 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21846 if echo "$ld_ver" | grep GNU > /dev/null; then
21847 if test x"$ld_is_gold" = xyes; then
21848 # GNU gold --version looks like this:
21850 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21852 # We extract the binutils version which is more familiar and specific
21853 # than the gold version.
21854 ld_vers=`echo $ld_ver | sed -n \
21855 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21857 # GNU ld --version looks like this:
21859 # GNU ld (GNU Binutils) 2.21.51.20110225
21860 ld_vers=`echo $ld_ver | sed -n \
21861 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21863 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'`
21864 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21865 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21866 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21868 case "${target}" in
21871 # Solaris 2 ld -V output looks like this for a regular version:
21873 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21875 # but test versions add stuff at the end:
21877 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21879 ld_ver=`$gcc_cv_ld -V 2>&1`
21880 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21881 ld_vers=`echo $ld_ver | sed -n \
21882 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21883 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21884 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21892 $as_echo_n "checking linker for .hidden support... " >&6; }
21893 if test "${gcc_cv_ld_hidden+set}" = set; then :
21894 $as_echo_n "(cached) " >&6
21896 if test $in_tree_ld = yes ; then
21897 gcc_cv_ld_hidden=no
21898 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 \
21899 && test $in_tree_ld_is_elf = yes; then
21900 gcc_cv_ld_hidden=yes
21903 gcc_cv_ld_hidden=yes
21904 if test x"$ld_is_gold" = xyes; then
21906 elif echo "$ld_ver" | grep GNU > /dev/null; then
21907 if test 0"$ld_date" -lt 20020404; then
21908 if test -n "$ld_date"; then
21909 # If there was date string, but was earlier than 2002-04-04, fail
21910 gcc_cv_ld_hidden=no
21911 elif test -z "$ld_vers"; then
21912 # If there was no date string nor ld version number, something is wrong
21913 gcc_cv_ld_hidden=no
21915 test -z "$ld_vers_patch" && ld_vers_patch=0
21916 if test "$ld_vers_major" -lt 2; then
21917 gcc_cv_ld_hidden=no
21918 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21919 gcc_cv_ld_hidden="no"
21920 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21921 gcc_cv_ld_hidden=no
21926 case "${target}" in
21928 # Darwin ld has some visibility support.
21929 gcc_cv_ld_hidden=yes
21931 hppa64*-*-hpux* | ia64*-*-hpux*)
21932 gcc_cv_ld_hidden=yes
21935 # .hidden support was backported to Solaris 8, starting with ld
21937 if test "$ld_vers_minor" -ge 276; then
21938 gcc_cv_ld_hidden=yes
21940 gcc_cv_ld_hidden=no
21943 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21944 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21945 # .symbolic was only added in Solaris 9 12/02.
21946 gcc_cv_ld_hidden=yes
21949 gcc_cv_ld_hidden=no
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21956 $as_echo "$gcc_cv_ld_hidden" >&6; }
21957 libgcc_visibility=no
21960 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21961 libgcc_visibility=yes
21963 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21968 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21969 gcc_cv_ld_ro_rw_mix=unknown
21970 if test $in_tree_ld = yes ; then
21971 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 \
21972 && test $in_tree_ld_is_elf = yes; then
21973 gcc_cv_ld_ro_rw_mix=read-write
21975 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21976 echo '.section myfoosect, "a"' > conftest1.s
21977 echo '.section myfoosect, "aw"' > conftest2.s
21978 echo '.byte 1' >> conftest2.s
21979 echo '.section myfoosect, "a"' > conftest3.s
21980 echo '.byte 0' >> conftest3.s
21981 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21982 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21983 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21984 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21985 conftest2.o conftest3.o > /dev/null 2>&1; then
21986 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21987 | sed -e '/myfoosect/!d' -e N`
21988 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21989 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21990 gcc_cv_ld_ro_rw_mix=read-only
21992 gcc_cv_ld_ro_rw_mix=read-write
21996 rm -f conftest.* conftest[123].*
21998 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22000 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22004 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22006 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22008 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22009 if test "${gcc_cv_as_leb128+set}" = set; then :
22010 $as_echo_n "(cached) " >&6
22012 gcc_cv_as_leb128=no
22013 if test $in_tree_gas = yes; then
22014 if test $in_tree_gas_is_elf = yes \
22015 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22016 then gcc_cv_as_leb128=yes
22018 elif test x$gcc_cv_as != x; then
22025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22027 (eval $ac_try) 2>&5
22029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22030 test $ac_status = 0; }; }
22032 # GAS versions before 2.11 do not support uleb128,
22033 # despite appearing to.
22034 # ??? There exists an elf-specific test that will crash
22035 # the assembler. Perhaps it's better to figure out whether
22036 # arbitrary sections are supported and try the test.
22037 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22038 if echo "$as_ver" | grep GNU > /dev/null; then
22039 as_vers=`echo $as_ver | sed -n \
22040 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22041 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22042 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22043 if test $as_major -eq 2 && test $as_minor -lt 11
22045 else gcc_cv_as_leb128=yes
22049 echo "configure: failed program was" >&5
22052 rm -f conftest.o conftest.s
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22056 $as_echo "$gcc_cv_as_leb128" >&6; }
22057 if test $gcc_cv_as_leb128 = yes; then
22059 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22063 # Check if we have assembler support for unwind directives.
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22065 $as_echo_n "checking assembler for cfi directives... " >&6; }
22066 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22069 gcc_cv_as_cfi_directive=no
22070 if test x$gcc_cv_as != x; then
22076 .cfi_escape 1, 2, 3, 4, 5
22077 .cfi_endproc' > conftest.s
22078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080 (eval $ac_try) 2>&5
22082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083 test $ac_status = 0; }; }
22087 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22088 # read-only and read-write sections, we need to make sure that the
22089 # assembler used emits read-write .eh_frame sections.
22090 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22091 if test "x$gcc_cv_objdump" != x; then
22092 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22093 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22094 gcc_cv_as_cfi_directive=no
22097 i?86-*-solaris2.1[0-9]*)
22098 # On Solaris/x86, make sure that GCC and gas agree on using
22099 # read-only .eh_frame sections for 64-bit.
22100 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22101 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22102 sed -e /.eh_frame/!d -e N | \
22103 grep READONLY > /dev/null; then
22104 gcc_cv_as_cfi_directive=yes
22106 gcc_cv_as_cfi_directive=no
22110 gcc_cv_as_cfi_directive=yes
22115 # no objdump, err on the side of caution
22116 gcc_cv_as_cfi_directive=no
22119 gcc_cv_as_cfi_directive=yes
22123 gcc_cv_as_cfi_directive=yes
22127 echo "configure: failed program was" >&5
22130 rm -f conftest.o conftest.s
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22134 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22136 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22138 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22139 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22140 $as_echo_n "(cached) " >&6
22142 gcc_cv_as_cfi_advance_working=no
22143 if test x$gcc_cv_as != x; then
22146 .cfi_adjust_cfa_offset 64
22148 .cfi_adjust_cfa_offset 128
22149 .cfi_endproc' > conftest.s
22150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22152 (eval $ac_try) 2>&5
22154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22155 test $ac_status = 0; }; }
22158 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22159 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22160 gcc_cv_as_cfi_advance_working=yes
22164 echo "configure: failed program was" >&5
22167 rm -f conftest.o conftest.s
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22171 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22174 # no objdump, err on the side of caution
22175 gcc_cv_as_cfi_advance_working=no
22179 cat >>confdefs.h <<_ACEOF
22180 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22181 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22187 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22188 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22189 $as_echo_n "(cached) " >&6
22191 gcc_cv_as_cfi_personality_directive=no
22192 if test x$gcc_cv_as != x; then
22195 .cfi_personality 0, symbol
22196 .cfi_endproc' > conftest.s
22197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22199 (eval $ac_try) 2>&5
22201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22202 test $ac_status = 0; }; }
22204 gcc_cv_as_cfi_personality_directive=yes
22206 echo "configure: failed program was" >&5
22209 rm -f conftest.o conftest.s
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22213 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22216 cat >>confdefs.h <<_ACEOF
22217 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22218 then echo 1; else echo 0; fi`
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22223 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22224 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22225 $as_echo_n "(cached) " >&6
22227 gcc_cv_as_cfi_sections_directive=no
22228 if test x$gcc_cv_as != x; then
22230 .cfi_sections .debug_frame, .eh_frame
22232 .cfi_endproc' > conftest.s
22233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22235 (eval $ac_try) 2>&5
22237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22238 test $ac_status = 0; }; }
22241 win32 | pe | cygwin* | mingw32* | uwin*)
22242 # Need to check that we generated the correct relocation for the
22243 # .debug_frame section. This was fixed for binutils 2.21.
22244 gcc_cv_as_cfi_sections_directive=no
22245 if test "x$gcc_cv_objdump" != x; then
22246 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22247 grep secrel > /dev/null; then
22248 gcc_cv_as_cfi_sections_directive=yes
22253 gcc_cv_as_cfi_sections_directive=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_cfi_sections_directive" >&5
22264 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22270 then echo 1; else echo 0; fi`
22274 # GAS versions up to and including 2.11.0 may mis-optimize
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22277 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22278 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22281 gcc_cv_as_eh_frame=no
22282 if test $in_tree_gas = yes; then
22283 if test $in_tree_gas_is_elf = yes \
22284 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22285 then gcc_cv_as_eh_frame=yes
22287 elif test x$gcc_cv_as != x; then
22294 .section .eh_frame,"aw",@progbits
22296 .4byte .LECIE1-.LSCIE1
22310 .4byte .LEFDE1-.LASFDE1
22312 .4byte .LASFDE1-__FRAME_BEGIN__
22319 .LEFDE1:' > conftest.s
22320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22322 (eval $ac_try) 2>&5
22324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22325 test $ac_status = 0; }; }
22327 cat > conftest.lit <<EOF
22328 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22329 0010 01000000 12000000 18000000 00000000 ................
22330 0020 08000000 04080000 0044 .........D
22332 cat > conftest.big <<EOF
22333 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22334 0010 00000001 00000012 00000018 00000000 ................
22335 0020 00000008 04000000 0844 .........D
22337 # If the assembler didn't choke, and we can objdump,
22338 # and we got the correct data, then succeed.
22339 # The text in the here-document typically retains its unix-style line
22340 # endings, while the output of objdump will use host line endings.
22341 # Therefore, use diff -b for the comparisons.
22342 if test x$gcc_cv_objdump != x \
22343 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22344 | tail -3 > conftest.got \
22345 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22346 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22348 gcc_cv_as_eh_frame=yes
22349 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22351 (eval $ac_try) 2>&5
22353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22354 test $ac_status = 0; }; }; then
22355 gcc_cv_as_eh_frame=buggy
22357 # Uh oh, what do we do now?
22358 gcc_cv_as_eh_frame=no
22361 echo "configure: failed program was" >&5
22364 rm -f conftest.o conftest.s
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22368 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22371 if test $gcc_cv_as_eh_frame = buggy; then
22373 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22378 $as_echo_n "checking assembler for section merging support... " >&6; }
22379 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22380 $as_echo_n "(cached) " >&6
22382 gcc_cv_as_shf_merge=no
22383 if test $in_tree_gas = yes; then
22384 if test $in_tree_gas_is_elf = yes \
22385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22386 then gcc_cv_as_shf_merge=yes
22388 elif test x$gcc_cv_as != x; then
22389 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22392 (eval $ac_try) 2>&5
22394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22395 test $ac_status = 0; }; }
22397 gcc_cv_as_shf_merge=yes
22399 echo "configure: failed program was" >&5
22402 rm -f conftest.o conftest.s
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22406 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22408 if test $gcc_cv_as_shf_merge = no; then
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22410 $as_echo_n "checking assembler for section merging support... " >&6; }
22411 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22414 gcc_cv_as_shf_merge=no
22415 if test $in_tree_gas = yes; then
22416 if test $in_tree_gas_is_elf = yes \
22417 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22418 then gcc_cv_as_shf_merge=yes
22420 elif test x$gcc_cv_as != x; then
22421 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22424 (eval $ac_try) 2>&5
22426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22427 test $ac_status = 0; }; }
22429 gcc_cv_as_shf_merge=yes
22431 echo "configure: failed program was" >&5
22434 rm -f conftest.o conftest.s
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22438 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22442 cat >>confdefs.h <<_ACEOF
22443 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22448 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22449 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22450 $as_echo_n "(cached) " >&6
22452 gcc_cv_as_comdat_group=no
22453 if test $in_tree_gas = yes; then
22454 if test $in_tree_gas_is_elf = yes \
22455 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22456 then gcc_cv_as_comdat_group=yes
22458 elif test x$gcc_cv_as != x; then
22459 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22462 (eval $ac_try) 2>&5
22464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22465 test $ac_status = 0; }; }
22467 gcc_cv_as_comdat_group=yes
22469 echo "configure: failed program was" >&5
22472 rm -f conftest.o conftest.s
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22476 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22478 if test $gcc_cv_as_comdat_group = yes; then
22479 gcc_cv_as_comdat_group_percent=no
22480 gcc_cv_as_comdat_group_group=no
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22483 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22484 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22485 $as_echo_n "(cached) " >&6
22487 gcc_cv_as_comdat_group_percent=no
22488 if test $in_tree_gas = yes; then
22489 if test $in_tree_gas_is_elf = yes \
22490 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22491 then gcc_cv_as_comdat_group_percent=yes
22493 elif test x$gcc_cv_as != x; then
22494 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497 (eval $ac_try) 2>&5
22499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500 test $ac_status = 0; }; }
22502 gcc_cv_as_comdat_group_percent=yes
22504 echo "configure: failed program was" >&5
22507 rm -f conftest.o conftest.s
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22511 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22513 if test $gcc_cv_as_comdat_group_percent = yes; then
22514 gcc_cv_as_comdat_group_group=no
22516 case "${target}" in
22517 # Sun as uses a completely different syntax.
22519 case "${target}" in
22520 sparc*-*-solaris2*)
22522 .group foo,".text%foo",#comdat
22523 .section ".text%foo", #alloc,#execinstr,#progbits
22530 .group foo,.text%foo,#comdat
22531 .section .text%foo, "ax", @progbits
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22538 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22539 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22540 $as_echo_n "(cached) " >&6
22542 gcc_cv_as_comdat_group_group=no
22543 if test x$gcc_cv_as != x; then
22544 echo "$conftest_s" > conftest.s
22545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22547 (eval $ac_try) 2>&5
22549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22550 test $ac_status = 0; }; }
22552 gcc_cv_as_comdat_group_group=yes
22554 echo "configure: failed program was" >&5
22557 rm -f conftest.o conftest.s
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22561 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22567 if test x"$ld_is_gold" = xyes; then
22569 elif test $in_tree_ld = yes ; then
22571 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 \
22572 && test $in_tree_ld_is_elf = yes; then
22575 elif echo "$ld_ver" | grep GNU > /dev/null; then
22577 if test 0"$ld_date" -lt 20050308; then
22578 if test -n "$ld_date"; then
22579 # If there was date string, but was earlier than 2005-03-08, fail
22581 elif test "$ld_vers_major" -lt 2; then
22583 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22588 case "${target}" in
22589 *-*-solaris2.1[1-9]*)
22591 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22592 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22595 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22596 # least ld version 1.2267.
22597 if test "$ld_vers_major" -gt 1; then
22599 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22601 elif test "$ld_vers_minor" -ge 2267; then
22606 # Assume linkers other than GNU ld don't support COMDAT group.
22611 # Allow overriding the automatic COMDAT group tests above.
22612 # Check whether --enable-comdat was given.
22613 if test "${enable_comdat+set}" = set; then :
22614 enableval=$enable_comdat; comdat_group="$enable_comdat"
22617 if test $comdat_group = no; then
22618 gcc_cv_as_comdat_group=no
22619 gcc_cv_as_comdat_group_percent=no
22620 gcc_cv_as_comdat_group_group=no
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22625 || test $gcc_cv_as_comdat_group_percent = yes \
22626 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22631 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22632 if test "${gcc_cv_as_discriminator+set}" = set; then :
22633 $as_echo_n "(cached) " >&6
22635 gcc_cv_as_discriminator=no
22636 if test $in_tree_gas = yes; then
22637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22638 then gcc_cv_as_discriminator=yes
22640 elif test x$gcc_cv_as != x; then
22643 .loc 1 1 0 discriminator 1' > conftest.s
22644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22646 (eval $ac_try) 2>&5
22648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22649 test $ac_status = 0; }; }
22651 gcc_cv_as_discriminator=yes
22653 echo "configure: failed program was" >&5
22656 rm -f conftest.o conftest.s
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22660 $as_echo "$gcc_cv_as_discriminator" >&6; }
22661 if test $gcc_cv_as_discriminator = yes; then
22663 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22667 # Thread-local storage - the check is heavily parameterized.
22675 .section ".tdata","awT",@progbits
22678 ldq $27,__tls_get_addr($29) !literal!1
22679 lda $16,foo($29) !tlsgd!1
22680 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22681 ldq $27,__tls_get_addr($29) !literal!2
22682 lda $16,foo($29) !tlsldm!2
22683 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22684 ldq $1,foo($29) !gotdtprel
22685 ldah $2,foo($29) !dtprelhi
22686 lda $3,foo($2) !dtprello
22687 lda $4,foo($29) !dtprel
22688 ldq $1,foo($29) !gottprel
22689 ldah $2,foo($29) !tprelhi
22690 lda $3,foo($2) !tprello
22691 lda $4,foo($29) !tprel'
22694 tls_as_opt=--fatal-warnings
22696 cris-*-*|crisv32-*-*)
22698 .section ".tdata","awT",@progbits
22705 tls_as_opt=--fatal-warnings
22709 .section ".tdata","awT",@progbits
22712 call #gettlsoff(x)'
22721 .section ".tdata","awT",@progbits
22725 addil LT%foo-$tls_gdidx$,gp
22726 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22729 addil LT%foo-$tls_ldidx$,gp
22731 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22732 addil LR%foo-$tls_dtpoff$,%ret0
22733 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22735 addil LT%foo-$tls_ieoff$,gp
22736 ldw RT%foo-$tls_ieoff$(%r1),%t2
22739 addil LR%foo-$tls_leoff$,%t1
22740 ldo RR%foo-$tls_leoff$(%r1),%t2'
22743 tls_as_opt=--fatal-warnings
22747 .section ".tdata","awT",%progbits
22750 .word foo(gottpoff)
22760 i[34567]86-*-solaris2.*)
22762 tga_func=___tls_get_addr
22768 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22770 .section .tdata,"awt",@progbits'
22774 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22778 .section ".tdata","awT",@progbits'
22781 tls_as_opt="--fatal-warnings"
22783 conftest_s="$conftest_s
22787 leal foo@tlsgd(,%ebx,1), %eax
22788 leal foo@tlsldm(%ebx), %eax
22789 leal foo@dtpoff(%eax), %edx
22790 movl foo@gottpoff(%ebx), %eax
22791 subl foo@gottpoff(%ebx), %eax
22792 addl foo@gotntpoff(%ebx), %eax
22793 movl foo@indntpoff, %eax
22794 movl \$foo@tpoff, %eax
22795 subl \$foo@tpoff, %eax
22796 leal foo@ntpoff(%ecx), %eax"
22800 .section ".tdata","awT",@progbits
22804 leaq foo@TLSGD(%rip), %rdi
22805 leaq foo@TLSLD(%rip), %rdi
22806 leaq foo@DTPOFF(%rax), %rdx
22807 movq foo@GOTTPOFF(%rip), %rax
22808 movq $foo@TPOFF, %rax'
22811 tls_as_opt=--fatal-warnings
22815 .section ".tdata","awT",@progbits
22818 addl r16 = @ltoff(@dtpmod(foo#)), gp
22819 addl r17 = @ltoff(@dtprel(foo#)), gp
22820 addl r18 = @ltoff(@tprel(foo#)), gp
22821 addl r19 = @dtprel(foo#), gp
22822 adds r21 = @dtprel(foo#), r13
22823 movl r23 = @dtprel(foo#)
22824 addl r20 = @tprel(foo#), gp
22825 adds r22 = @tprel(foo#), r13
22826 movl r24 = @tprel(foo#)'
22829 tls_as_opt=--fatal-warnings
22833 .section .tdata,"awT",@progbits
22837 addiu $4, $28, %tlsgd(x)
22838 addiu $4, $28, %tlsldm(x)
22839 lui $4, %dtprel_hi(x)
22840 addiu $4, $4, %dtprel_lo(x)
22841 lw $4, %gottprel(x)($28)
22842 lui $4, %tprel_hi(x)
22843 addiu $4, $4, %tprel_lo(x)'
22846 tls_as_opt='-32 --fatal-warnings'
22850 .section .tdata,"awT",@progbits
22855 move.l x@TLSGD(%a5),%a0
22856 move.l x@TLSLDM(%a5),%a0
22857 move.l x@TLSLDO(%a5),%a0
22858 move.l x@TLSIE(%a5),%a0
22859 move.l x@TLSLE(%a5),%a0'
22862 tls_as_opt='--fatal-warnings'
22866 .section ".tdata","awT",@progbits
22874 addi 3,31,ld0@got@tlsgd
22876 addi 3,31,x1@got@tlsld
22879 addis 9,3,x2@dtprel@ha
22880 addi 9,9,x2@dtprel@l
22881 lwz 9,x3@got@tprel(31)
22884 addis 9,2,x2@tprel@ha
22885 addi 9,9,x2@tprel@l'
22888 tls_as_opt="-a32 --fatal-warnings"
22892 .section ".tdata","awT",@progbits
22900 addi 3,2,ld0@got@tlsgd
22906 addi 3,2,x1@got@tlsld
22912 addis 9,3,x2@dtprel@ha
22913 addi 9,9,x2@dtprel@l
22916 ld 9,x3@got@dtprel(2)
22922 tls_as_opt="-a64 --fatal-warnings"
22926 .section ".tdata","awT",@progbits
22933 .long foo@GOTNTPOFF
22934 .long foo@INDNTPOFF
22935 l %r1,foo@GOTNTPOFF(%r12)
22936 l %r1,0(%r1):tls_load:foo
22937 bas %r14,0(%r1,%r13):tls_gdcall:foo
22938 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22941 tls_as_opt="-m31 --fatal-warnings"
22945 .section ".tdata","awT",@progbits
22952 .quad foo@GOTNTPOFF
22953 lg %r1,foo@GOTNTPOFF(%r12)
22954 larl %r1,foo@INDNTPOFF
22955 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22956 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22959 tls_as_opt="-m64 -Aesame --fatal-warnings"
22961 sh-*-* | sh[34]-*-*)
22963 .section ".tdata","awT",@progbits
22973 tls_as_opt=--fatal-warnings
22977 sparc*-sun-solaris2.*)
22979 tga_func=__tls_get_addr
22985 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22987 .section ".tdata",#alloc,#write,#tls'
22992 .section ".tdata","awT",@progbits'
22995 tls_as_opt="-32 --fatal-warnings"
22997 conftest_s="$conftest_s
23000 sethi %tgd_hi22(foo), %o0
23001 add %o0, %tgd_lo10(foo), %o1
23002 add %l7, %o1, %o0, %tgd_add(foo)
23003 call __tls_get_addr, %tgd_call(foo)
23004 sethi %tldm_hi22(foo), %l1
23005 add %l1, %tldm_lo10(foo), %l2
23006 add %l7, %l2, %o0, %tldm_add(foo)
23007 call __tls_get_addr, %tldm_call(foo)
23008 sethi %tldo_hix22(foo), %l3
23009 xor %l3, %tldo_lox10(foo), %l4
23010 add %o0, %l4, %l5, %tldo_add(foo)
23011 sethi %tie_hi22(foo), %o3
23012 add %o3, %tie_lo10(foo), %o3
23013 ld [%l7 + %o3], %o2, %tie_ld(foo)
23014 add %g7, %o2, %o4, %tie_add(foo)
23015 sethi %tle_hix22(foo), %l1
23016 xor %l1, %tle_lox10(foo), %o5
23017 ld [%g7 + %o5], %o1"
23021 .section ".tdata","awT",@progbits
23024 movi a8, foo@TLSFUNC
23025 movi a10, foo@TLSARG
23026 callx8.tls a8, foo@TLSCALL'
23032 if test "x$enable_tls" = xno ; then
23033 : # TLS explicitly disabled.
23034 elif test "x$enable_tls" = xyes ; then
23035 set_have_as_tls=yes # TLS explicitly enabled.
23036 elif test -z "$tls_first_major"; then
23037 : # If we don't have a check, assume no support.
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23040 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23041 if test "${gcc_cv_as_tls+set}" = set; then :
23042 $as_echo_n "(cached) " >&6
23045 if test $in_tree_gas = yes; then
23046 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23047 then gcc_cv_as_tls=yes
23049 elif test x$gcc_cv_as != x; then
23050 echo "$conftest_s" > conftest.s
23051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23053 (eval $ac_try) 2>&5
23055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23056 test $ac_status = 0; }; }
23060 echo "configure: failed program was" >&5
23063 rm -f conftest.o conftest.s
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23067 $as_echo "$gcc_cv_as_tls" >&6; }
23068 if test $gcc_cv_as_tls = yes; then
23069 set_have_as_tls=yes
23074 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23075 # with TLS support are in use, native TLS cannot work.
23079 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23080 # gld with TLS support are in use, native TLS cannot work.
23083 # TLS was introduced in the Solaris 9 FCS release and backported to
23084 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23085 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23086 # ld and GCC don't support any longer.
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23089 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23091 # Check ld and ld.so.1 TLS support.
23092 if echo "$ld_ver" | grep GNU > /dev/null; then
23093 # Assume all interesting versions of GNU ld have TLS support.
23094 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23098 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23100 min_tls_ld_vers_minor=280
23102 # Solaris 8/SPARC ld has TLS support since version 1.272.
23103 sparc*-*-solaris2.8)
23104 min_tls_ld_vers_minor=272
23106 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23108 min_tls_ld_vers_minor=374
23110 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23111 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23112 min_tls_ld_vers_minor=343
23115 if test "$ld_vers_major" -gt 1 || \
23116 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23123 $as_echo "$ld_tls_support" >&6; }
23126 save_LDFLAGS="$LDFLAGS"
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23131 $as_echo_n "checking alternate thread library... " >&6; }
23133 # TLS support was backported to Solaris 8 patches, but only lives in
23134 # the alternate thread library which became the default in Solaris 9.
23135 # We want to always use that, irrespective of TLS support.
23137 # Take multilib subdir into account. There's no spec to handle
23138 # this. The 64 symlink exists since Solaris 8.
23139 lwp_dir=/usr/lib/lwp
23140 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23141 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23148 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23150 cat >>confdefs.h <<_ACEOF
23151 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23155 $as_echo "$lwp_dir" >&6; }
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23158 $as_echo_n "checking library containing $tga_func... " >&6; }
23159 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23160 # (32-bit x86) only lived in libthread, so check for that. Keep
23161 # set_have_as_tls if found, disable if not.
23162 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23164 $as_echo_n "checking for library containing $tga_func... " >&6; }
23165 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23166 $as_echo_n "(cached) " >&6
23168 ac_func_search_save_LIBS=$LIBS
23169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23170 /* end confdefs.h. */
23172 /* Override any GCC internal prototype to avoid an error.
23173 Use char because int might match the return type of a GCC
23174 builtin and then its argument prototype would still apply. */
23182 return $tga_func ();
23187 for ac_lib in '' thread; do
23188 if test -z "$ac_lib"; then
23189 ac_res="none required"
23192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23194 if ac_fn_c_try_link "$LINENO"; then :
23195 eval "$as_ac_Search=\$ac_res"
23197 rm -f core conftest.err conftest.$ac_objext \
23199 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23203 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23206 eval "$as_ac_Search=no"
23208 rm conftest.$ac_ext
23209 LIBS=$ac_func_search_save_LIBS
23211 eval ac_res=\$$as_ac_Search
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23213 $as_echo "$ac_res" >&6; }
23214 eval ac_res=\$$as_ac_Search
23215 if test "$ac_res" != no; then :
23216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23222 # Clear LIBS if we cannot support TLS.
23223 if test $set_have_as_tls = no; then
23226 # Always define LIB_TLS_SPEC, even without TLS support.
23228 cat >>confdefs.h <<_ACEOF
23229 #define LIB_TLS_SPEC "$LIBS"
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23233 $as_echo "$LIBS" >&6; }
23236 LDFLAGS="$save_LDFLAGS"
23239 if test $set_have_as_tls = yes ; then
23241 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23245 # Target-specific assembler checks.
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23248 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23249 gcc_cv_ld_static_dynamic=no
23250 gcc_cv_ld_static_option='-Bstatic'
23251 gcc_cv_ld_dynamic_option='-Bdynamic'
23252 if test $in_tree_ld = yes ; then
23253 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
23254 gcc_cv_ld_static_dynamic=yes
23256 elif test x$gcc_cv_ld != x; then
23257 # Check if linker supports -Bstatic/-Bdynamic option
23258 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23259 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23260 gcc_cv_ld_static_dynamic=yes
23263 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23265 gcc_cv_ld_static_dynamic=yes
23266 gcc_cv_ld_static_option="-noso"
23267 gcc_cv_ld_dynamic_option="-so_archive"
23269 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23271 gcc_cv_ld_static_dynamic=yes
23273 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23275 gcc_cv_ld_static_dynamic=yes
23280 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23282 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23285 cat >>confdefs.h <<_ACEOF
23286 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23290 cat >>confdefs.h <<_ACEOF
23291 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23296 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23298 if test x"$demangler_in_ld" = xyes; then
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23300 $as_echo_n "checking linker --demangle support... " >&6; }
23301 gcc_cv_ld_demangle=no
23302 if test $in_tree_ld = yes; then
23303 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 \
23304 gcc_cv_ld_demangle=yes
23306 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23307 # Check if the GNU linker supports --demangle option
23308 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23309 gcc_cv_ld_demangle=yes
23312 if test x"$gcc_cv_ld_demangle" = xyes; then
23314 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23318 $as_echo "$gcc_cv_ld_demangle" >&6; }
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23322 $as_echo_n "checking linker plugin support... " >&6; }
23323 gcc_cv_lto_plugin=0
23324 if test -f liblto_plugin.la; then
23325 save_ld_ver="$ld_ver"
23326 save_ld_vers_major="$ld_vers_major"
23327 save_ld_vers_minor="$ld_vers_minor"
23328 save_ld_is_gold="$ld_is_gold"
23332 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23334 # FIXME: ld_is_gold?
23335 ld_vers_major="$gcc_cv_gld_major_version"
23336 ld_vers_minor="$gcc_cv_gld_minor_version"
23338 # Determine plugin linker version.
23339 # FIXME: Partial duplicate from above, generalize.
23340 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23341 if echo "$ld_ver" | grep GNU > /dev/null; then
23342 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23344 ld_vers=`echo $ld_ver | sed -n \
23345 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23347 ld_vers=`echo $ld_ver | sed -n \
23348 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23350 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23351 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23355 # Determine plugin support.
23356 if echo "$ld_ver" | grep GNU > /dev/null; then
23357 # Require GNU ld or gold 2.21+ for plugin support by default.
23358 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23359 gcc_cv_lto_plugin=2
23360 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23361 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23362 gcc_cv_lto_plugin=1
23366 ld_ver="$save_ld_ver"
23367 ld_vers_major="$save_ld_vers_major"
23368 ld_vers_minor="$save_ld_vers_minor"
23369 ld_is_gold="$save_ld_is_gold"
23372 cat >>confdefs.h <<_ACEOF
23373 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23377 $as_echo "$gcc_cv_lto_plugin" >&6; }
23380 # All TARGET_ABI_OSF targets.
23381 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23383 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23384 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23385 $as_echo_n "(cached) " >&6
23387 gcc_cv_as_alpha_explicit_relocs=no
23388 if test $in_tree_gas = yes; then
23389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23390 then gcc_cv_as_alpha_explicit_relocs=yes
23392 elif test x$gcc_cv_as != x; then
23393 echo ' .set nomacro
23395 extbl $3, $2, $3 !lituse_bytoff!1
23396 ldq $2, a($29) !literal!1
23397 ldq $4, b($29) !literal!2
23398 ldq_u $3, 0($2) !lituse_base!1
23399 ldq $27, f($29) !literal!5
23400 jsr $26, ($27), f !lituse_jsr!5
23401 ldah $29, 0($26) !gpdisp!3
23402 lda $0, c($29) !gprel
23403 ldah $1, d($29) !gprelhigh
23404 lda $1, d($1) !gprellow
23405 lda $29, 0($29) !gpdisp!3' > conftest.s
23406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23408 (eval $ac_try) 2>&5
23410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23411 test $ac_status = 0; }; }
23413 gcc_cv_as_alpha_explicit_relocs=yes
23415 echo "configure: failed program was" >&5
23418 rm -f conftest.o conftest.s
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23422 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23423 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23425 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23429 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23430 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23431 $as_echo_n "(cached) " >&6
23433 gcc_cv_as_alpha_jsrdirect_relocs=no
23434 if test $in_tree_gas = yes; then
23435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23436 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23438 elif test x$gcc_cv_as != x; then
23439 echo ' .set nomacro
23441 ldq $27, a($29) !literal!1
23442 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445 (eval $ac_try) 2>&5
23447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448 test $ac_status = 0; }; }
23450 gcc_cv_as_alpha_jsrdirect_relocs=yes
23452 echo "configure: failed program was" >&5
23455 rm -f conftest.o conftest.s
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23459 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23460 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23462 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23469 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23470 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23471 $as_echo_n "(cached) " >&6
23473 gcc_cv_as_cris_no_mul_bug=no
23474 if test $in_tree_gas = yes; then
23475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23476 then gcc_cv_as_cris_no_mul_bug=yes
23478 elif test x$gcc_cv_as != x; then
23479 echo '.text' > conftest.s
23480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23482 (eval $ac_try) 2>&5
23484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23485 test $ac_status = 0; }; }
23487 gcc_cv_as_cris_no_mul_bug=yes
23489 echo "configure: failed program was" >&5
23492 rm -f conftest.o conftest.s
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23496 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23497 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23499 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23506 $as_echo_n "checking assembler for .register... " >&6; }
23507 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23508 $as_echo_n "(cached) " >&6
23510 gcc_cv_as_sparc_register_op=no
23511 if test x$gcc_cv_as != x; then
23512 echo '.register %g2, #scratch' > conftest.s
23513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23515 (eval $ac_try) 2>&5
23517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23518 test $ac_status = 0; }; }
23520 gcc_cv_as_sparc_register_op=yes
23522 echo "configure: failed program was" >&5
23525 rm -f conftest.o conftest.s
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23529 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23530 if test $gcc_cv_as_sparc_register_op = yes; then
23532 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23537 $as_echo_n "checking assembler for -relax option... " >&6; }
23538 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23539 $as_echo_n "(cached) " >&6
23541 gcc_cv_as_sparc_relax=no
23542 if test x$gcc_cv_as != x; then
23543 echo '.text' > conftest.s
23544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23546 (eval $ac_try) 2>&5
23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549 test $ac_status = 0; }; }
23551 gcc_cv_as_sparc_relax=yes
23553 echo "configure: failed program was" >&5
23556 rm -f conftest.o conftest.s
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23560 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23561 if test $gcc_cv_as_sparc_relax = yes; then
23563 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23568 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23569 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23570 $as_echo_n "(cached) " >&6
23572 gcc_cv_as_sparc_gotdata_op=no
23573 if test x$gcc_cv_as != x; then
23579 sethi %gdop_hix22(foo), %g1
23580 xor %g1, %gdop_lox10(foo), %g1
23581 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23584 (eval $ac_try) 2>&5
23586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23587 test $ac_status = 0; }; }
23589 if test x$gcc_cv_ld != x \
23590 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23591 if test x$gcc_cv_objdump != x; then
23592 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23593 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23594 gcc_cv_as_sparc_gotdata_op=no
23596 gcc_cv_as_sparc_gotdata_op=yes
23602 echo "configure: failed program was" >&5
23605 rm -f conftest.o conftest.s
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23609 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23610 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23612 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23617 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23618 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23619 $as_echo_n "(cached) " >&6
23621 gcc_cv_as_sparc_ua_pcrel=no
23622 if test x$gcc_cv_as != x; then
23629 .uaword %r_disp32(foo)' > conftest.s
23630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23632 (eval $ac_try) 2>&5
23634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23635 test $ac_status = 0; }; }
23637 if test x$gcc_cv_ld != x \
23638 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23639 gcc_cv_as_sparc_ua_pcrel=yes
23643 echo "configure: failed program was" >&5
23646 rm -f conftest.o conftest.s
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23650 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23651 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23653 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23657 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23658 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23659 $as_echo_n "(cached) " >&6
23661 gcc_cv_as_sparc_ua_pcrel_hidden=no
23662 if test x$gcc_cv_as != x; then
23666 .uaword %r_disp32(foo)
23667 .byte 0x32, 0x33, 0x34
23671 .skip 4' > conftest.s
23672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23674 (eval $ac_try) 2>&5
23676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23677 test $ac_status = 0; }; }
23679 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23680 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23681 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23682 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23683 if $gcc_cv_objdump -R conftest 2> /dev/null \
23684 | grep 'DISP32' > /dev/null 2>&1; then
23687 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23692 echo "configure: failed program was" >&5
23695 rm -f conftest.o conftest.s
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23699 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23700 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23702 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23706 fi # unaligned pcrel relocs
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23709 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23710 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23711 $as_echo_n "(cached) " >&6
23713 gcc_cv_as_sparc_offsetable_lo10=no
23714 if test x$gcc_cv_as != x; then
23716 or %g1, %lo(ab) + 12, %g1
23717 or %g1, %lo(ab + 12), %g1' > conftest.s
23718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720 (eval $ac_try) 2>&5
23722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723 test $ac_status = 0; }; }
23725 if test x$gcc_cv_objdump != x \
23726 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23727 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23728 gcc_cv_as_sparc_offsetable_lo10=yes
23731 echo "configure: failed program was" >&5
23734 rm -f conftest.o conftest.s
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23738 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23739 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23741 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23746 i[34567]86-*-* | x86_64-*-*)
23749 # Full C++ conformance when using a shared libstdc++-v3 requires some
23750 # support from the Cygwin DLL, which in more recent versions exports
23751 # wrappers to aid in interposing and redirecting operators new, delete,
23752 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23753 # are configuring for a version of Cygwin that exports the wrappers.
23754 if test x$host = x$target; then
23755 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23756 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23757 gcc_ac_cygwin_dll_wrappers=yes
23759 gcc_ac_cygwin_dll_wrappers=no
23763 # Can't check presence of libc functions during cross-compile, so
23764 # we just have to assume we're building for an up-to-date target.
23765 gcc_ac_cygwin_dll_wrappers=yes
23768 cat >>confdefs.h <<_ACEOF
23769 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23774 cygwin* | pe | mingw32*)
23775 # Recent binutils allows the three-operand form of ".comm" on PE. This
23776 # definition is used unconditionally to initialise the default state of
23777 # the target option variable that governs usage of the feature.
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23779 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23780 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23781 $as_echo_n "(cached) " >&6
23783 gcc_cv_as_comm_has_align=no
23784 if test $in_tree_gas = yes; then
23785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23786 then gcc_cv_as_comm_has_align=yes
23788 elif test x$gcc_cv_as != x; then
23789 echo '.comm foo,1,32' > conftest.s
23790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23792 (eval $ac_try) 2>&5
23794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23795 test $ac_status = 0; }; }
23797 gcc_cv_as_comm_has_align=yes
23799 echo "configure: failed program was" >&5
23802 rm -f conftest.o conftest.s
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23806 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23809 cat >>confdefs.h <<_ACEOF
23810 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23813 # Used for DWARF 2 in PE
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23815 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23816 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23819 gcc_cv_as_ix86_pe_secrel32=no
23820 if test $in_tree_gas = yes; then
23821 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23822 then gcc_cv_as_ix86_pe_secrel32=yes
23824 elif test x$gcc_cv_as != x; then
23828 .secrel32 foo' > conftest.s
23829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23831 (eval $ac_try) 2>&5
23833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23834 test $ac_status = 0; }; }
23836 if test x$gcc_cv_ld != x \
23837 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23838 gcc_cv_as_ix86_pe_secrel32=yes
23842 echo "configure: failed program was" >&5
23845 rm -f conftest.o conftest.s
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23849 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23850 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23852 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23855 # Test if the assembler supports the extended form of the .section
23856 # directive that specifies section alignment. LTO support uses this,
23857 # but normally only after installation, so we warn but don't fail the
23858 # configure if LTO is enabled but the assembler does not support it.
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23860 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23861 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23864 gcc_cv_as_section_has_align=no
23865 if test $in_tree_gas = yes; then
23866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23867 then gcc_cv_as_section_has_align=yes
23869 elif test x$gcc_cv_as != x; then
23870 echo '.section lto_test,"dr0"' > conftest.s
23871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }
23878 gcc_cv_as_section_has_align=yes
23880 echo "configure: failed program was" >&5
23883 rm -f conftest.o conftest.s
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23887 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23889 if test x$gcc_cv_as_section_has_align != xyes; then
23890 case ",$enable_languages," in
23892 { $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
23893 $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;}
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23901 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23902 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23905 gcc_cv_as_ix86_filds=no
23906 if test x$gcc_cv_as != x; then
23907 echo 'filds mem; fists mem' > conftest.s
23908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23910 (eval $ac_try) 2>&5
23912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23913 test $ac_status = 0; }; }
23915 gcc_cv_as_ix86_filds=yes
23917 echo "configure: failed program was" >&5
23920 rm -f conftest.o conftest.s
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23924 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23925 if test $gcc_cv_as_ix86_filds = yes; then
23927 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23932 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23933 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23936 gcc_cv_as_ix86_fildq=no
23937 if test x$gcc_cv_as != x; then
23938 echo 'fildq mem; fistpq mem' > conftest.s
23939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23941 (eval $ac_try) 2>&5
23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944 test $ac_status = 0; }; }
23946 gcc_cv_as_ix86_fildq=yes
23948 echo "configure: failed program was" >&5
23951 rm -f conftest.o conftest.s
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23955 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23956 if test $gcc_cv_as_ix86_fildq = yes; then
23958 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23963 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23964 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23965 $as_echo_n "(cached) " >&6
23967 gcc_cv_as_ix86_cmov_sun_syntax=no
23968 if test x$gcc_cv_as != x; then
23969 echo 'cmovl.l %edx, %eax' > conftest.s
23970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23972 (eval $ac_try) 2>&5
23974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23975 test $ac_status = 0; }; }
23977 gcc_cv_as_ix86_cmov_sun_syntax=yes
23979 echo "configure: failed program was" >&5
23982 rm -f conftest.o conftest.s
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23986 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23987 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23989 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23994 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23995 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23996 $as_echo_n "(cached) " >&6
23998 gcc_cv_as_ix86_ffreep=no
23999 if test x$gcc_cv_as != x; then
24000 echo 'ffreep %st(1)' > conftest.s
24001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24003 (eval $ac_try) 2>&5
24005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24006 test $ac_status = 0; }; }
24008 gcc_cv_as_ix86_ffreep=yes
24010 echo "configure: failed program was" >&5
24013 rm -f conftest.o conftest.s
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24017 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24018 if test $gcc_cv_as_ix86_ffreep = yes; then
24020 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24025 $as_echo_n "checking assembler for .quad directive... " >&6; }
24026 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24027 $as_echo_n "(cached) " >&6
24029 gcc_cv_as_ix86_quad=no
24030 if test x$gcc_cv_as != x; then
24031 echo '.quad 0' > conftest.s
24032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24034 (eval $ac_try) 2>&5
24036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24037 test $ac_status = 0; }; }
24039 gcc_cv_as_ix86_quad=yes
24041 echo "configure: failed program was" >&5
24044 rm -f conftest.o conftest.s
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24048 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24049 if test $gcc_cv_as_ix86_quad = yes; then
24051 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24056 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24057 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24060 gcc_cv_as_ix86_sahf=no
24061 if test x$gcc_cv_as != x; then
24064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; }
24071 gcc_cv_as_ix86_sahf=yes
24073 echo "configure: failed program was" >&5
24076 rm -f conftest.o conftest.s
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24080 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24081 if test $gcc_cv_as_ix86_sahf = yes; then
24083 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24088 $as_echo_n "checking assembler for swap suffix... " >&6; }
24089 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24090 $as_echo_n "(cached) " >&6
24092 gcc_cv_as_ix86_swap=no
24093 if test x$gcc_cv_as != x; then
24094 echo 'movl.s %esp, %ebp' > conftest.s
24095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24097 (eval $ac_try) 2>&5
24099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24100 test $ac_status = 0; }; }
24102 gcc_cv_as_ix86_swap=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_ix86_swap" >&5
24111 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24112 if test $gcc_cv_as_ix86_swap = yes; then
24114 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24119 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24120 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24121 $as_echo_n "(cached) " >&6
24123 gcc_cv_as_ix86_diff_sect_delta=no
24124 if test x$gcc_cv_as != x; then
24125 echo '.section .rodata
24131 .L2: nop' > conftest.s
24132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24134 (eval $ac_try) 2>&5
24136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24137 test $ac_status = 0; }; }
24139 gcc_cv_as_ix86_diff_sect_delta=yes
24141 echo "configure: failed program was" >&5
24144 rm -f conftest.o conftest.s
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24148 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24149 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24151 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24155 # These two are used unconditionally by i386.[ch]; it is to be defined
24156 # to 1 if the feature is present, 0 otherwise.
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24158 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24159 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24162 gcc_cv_as_ix86_gotoff_in_data=no
24163 if test $in_tree_gas = yes; then
24164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24165 then gcc_cv_as_ix86_gotoff_in_data=yes
24167 elif test x$gcc_cv_as != x; then
24172 .long .L0@GOTOFF' > conftest.s
24173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24175 (eval $ac_try) 2>&5
24177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24178 test $ac_status = 0; }; }
24180 gcc_cv_as_ix86_gotoff_in_data=yes
24182 echo "configure: failed program was" >&5
24185 rm -f conftest.o conftest.s
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24189 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24192 cat >>confdefs.h <<_ACEOF
24193 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24198 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24199 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24200 $as_echo_n "(cached) " >&6
24202 gcc_cv_as_ix86_rep_lock_prefix=no
24203 if test x$gcc_cv_as != x; then
24205 lock addl %edi, (%eax,%esi)
24206 lock orl $0, (%esp)' > conftest.s
24207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24214 gcc_cv_as_ix86_rep_lock_prefix=yes
24216 echo "configure: failed program was" >&5
24219 rm -f conftest.o conftest.s
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24223 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24224 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24226 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24231 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24232 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24233 $as_echo_n "(cached) " >&6
24235 gcc_cv_as_ix86_tlsgdplt=no
24236 if test x$gcc_cv_as != x; then
24237 echo 'call tls_gd@tlsgdplt' > conftest.s
24238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240 (eval $ac_try) 2>&5
24242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243 test $ac_status = 0; }; }
24245 gcc_cv_as_ix86_tlsgdplt=yes
24247 echo "configure: failed program was" >&5
24250 rm -f conftest.o conftest.s
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24254 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24255 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24257 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24262 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24263 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24264 $as_echo_n "(cached) " >&6
24266 gcc_cv_as_ix86_tlsldmplt=no
24267 if test x$gcc_cv_as != x; then
24268 echo 'call tls_ld@tlsldmplt' > conftest.s
24269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24271 (eval $ac_try) 2>&5
24273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24274 test $ac_status = 0; }; }
24276 gcc_cv_as_ix86_tlsldmplt=yes
24278 echo "configure: failed program was" >&5
24281 rm -f conftest.o conftest.s
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24285 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24286 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24288 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24296 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24297 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24300 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24301 if test $in_tree_gas = yes; then
24302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24303 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24305 elif test x$gcc_cv_as != x; then
24307 addl r15 = @ltoffx(x#), gp
24309 ld8.mov r16 = [r15], x#' > conftest.s
24310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24312 (eval $ac_try) 2>&5
24314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24315 test $ac_status = 0; }; }
24317 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24319 echo "configure: failed program was" >&5
24322 rm -f conftest.o conftest.s
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24326 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24327 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24329 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24337 *-*-aix*) conftest_s=' .machine "pwr5"
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24342 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24343 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24344 $as_echo_n "(cached) " >&6
24346 gcc_cv_as_machine_directive=no
24347 if test x$gcc_cv_as != x; then
24348 echo ' .machine ppc7400' > conftest.s
24349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }
24356 gcc_cv_as_machine_directive=yes
24358 echo "configure: failed program was" >&5
24361 rm -f conftest.o conftest.s
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24365 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24367 if test x$gcc_cv_as_machine_directive != xyes; then
24368 echo "*** This target requires an assembler supporting \".machine\"" >&2
24369 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24370 test x$build = x$target && exit 1
24374 *) conftest_s=' .machine power4
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24380 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24381 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24382 $as_echo_n "(cached) " >&6
24384 gcc_cv_as_powerpc_mfcrf=no
24385 if test $in_tree_gas = yes; then
24386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24387 then gcc_cv_as_powerpc_mfcrf=yes
24389 elif test x$gcc_cv_as != x; then
24390 echo "$conftest_s" > conftest.s
24391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24393 (eval $ac_try) 2>&5
24395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24396 test $ac_status = 0; }; }
24398 gcc_cv_as_powerpc_mfcrf=yes
24400 echo "configure: failed program was" >&5
24403 rm -f conftest.o conftest.s
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24407 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24408 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24410 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24415 *-*-aix*) conftest_s=' .machine "pwr5"
24418 *) conftest_s=' .machine power5
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24424 $as_echo_n "checking assembler for popcntb support... " >&6; }
24425 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24426 $as_echo_n "(cached) " >&6
24428 gcc_cv_as_powerpc_popcntb=no
24429 if test $in_tree_gas = yes; then
24430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24431 then gcc_cv_as_powerpc_popcntb=yes
24433 elif test x$gcc_cv_as != x; then
24434 echo "$conftest_s" > conftest.s
24435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24437 (eval $ac_try) 2>&5
24439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24440 test $ac_status = 0; }; }
24442 gcc_cv_as_powerpc_popcntb=yes
24444 echo "configure: failed program was" >&5
24447 rm -f conftest.o conftest.s
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24451 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24452 if test $gcc_cv_as_powerpc_popcntb = yes; then
24454 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24459 *-*-aix*) conftest_s=' .machine "pwr5x"
24462 *) conftest_s=' .machine power5
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24468 $as_echo_n "checking assembler for fp round support... " >&6; }
24469 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24472 gcc_cv_as_powerpc_fprnd=no
24473 if test $in_tree_gas = yes; then
24474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24475 then gcc_cv_as_powerpc_fprnd=yes
24477 elif test x$gcc_cv_as != x; then
24478 echo "$conftest_s" > conftest.s
24479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481 (eval $ac_try) 2>&5
24483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484 test $ac_status = 0; }; }
24486 gcc_cv_as_powerpc_fprnd=yes
24488 echo "configure: failed program was" >&5
24491 rm -f conftest.o conftest.s
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24495 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24496 if test $gcc_cv_as_powerpc_fprnd = yes; then
24498 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24503 *-*-aix*) conftest_s=' .machine "pwr6"
24506 *) conftest_s=' .machine power6
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24512 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24513 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24514 $as_echo_n "(cached) " >&6
24516 gcc_cv_as_powerpc_mfpgpr=no
24517 if test $in_tree_gas = yes; then
24518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24519 then gcc_cv_as_powerpc_mfpgpr=yes
24521 elif test x$gcc_cv_as != x; then
24522 echo "$conftest_s" > conftest.s
24523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24525 (eval $ac_try) 2>&5
24527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528 test $ac_status = 0; }; }
24530 gcc_cv_as_powerpc_mfpgpr=yes
24532 echo "configure: failed program was" >&5
24535 rm -f conftest.o conftest.s
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24539 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24540 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24542 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24547 *-*-aix*) conftest_s=' .csect .text[PR]
24549 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24553 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24554 *) conftest_s=' .text
24556 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24560 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24561 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24562 $as_echo_n "(cached) " >&6
24564 gcc_cv_as_powerpc_rel16=no
24565 if test $in_tree_gas = yes; then
24566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24567 then gcc_cv_as_powerpc_rel16=yes
24569 elif test x$gcc_cv_as != x; then
24570 echo "$conftest_s" > conftest.s
24571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; }
24578 gcc_cv_as_powerpc_rel16=yes
24580 echo "configure: failed program was" >&5
24583 rm -f conftest.o conftest.s
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24587 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24588 if test $gcc_cv_as_powerpc_rel16 = yes; then
24590 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24595 *-*-aix*) conftest_s=' .machine "pwr6"
24598 *) conftest_s=' .machine power6
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24604 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24605 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24606 $as_echo_n "(cached) " >&6
24608 gcc_cv_as_powerpc_cmpb=no
24609 if test $in_tree_gas = yes; then
24610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24611 then gcc_cv_as_powerpc_cmpb=yes
24613 elif test x$gcc_cv_as != x; then
24614 echo "$conftest_s" > conftest.s
24615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24617 (eval $ac_try) 2>&5
24619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24620 test $ac_status = 0; }; }
24622 gcc_cv_as_powerpc_cmpb=yes
24624 echo "configure: failed program was" >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24631 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24632 if test $gcc_cv_as_powerpc_cmpb = yes; then
24634 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24639 *-*-aix*) conftest_s=' .machine "pwr6"
24642 *) conftest_s=' .machine power6
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24648 $as_echo_n "checking assembler for decimal float support... " >&6; }
24649 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24650 $as_echo_n "(cached) " >&6
24652 gcc_cv_as_powerpc_dfp=no
24653 if test $in_tree_gas = yes; then
24654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24655 then gcc_cv_as_powerpc_dfp=yes
24657 elif test x$gcc_cv_as != x; then
24658 echo "$conftest_s" > conftest.s
24659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24661 (eval $ac_try) 2>&5
24663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664 test $ac_status = 0; }; }
24666 gcc_cv_as_powerpc_dfp=yes
24668 echo "configure: failed program was" >&5
24671 rm -f conftest.o conftest.s
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24675 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24676 if test $gcc_cv_as_powerpc_dfp = yes; then
24678 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24683 *-*-aix*) conftest_s=' .machine "pwr7"
24686 *) conftest_s=' .machine power7
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24692 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24693 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24694 $as_echo_n "(cached) " >&6
24696 gcc_cv_as_powerpc_vsx=no
24697 if test $in_tree_gas = yes; then
24698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24699 then gcc_cv_as_powerpc_vsx=yes
24701 elif test x$gcc_cv_as != x; then
24702 echo "$conftest_s" > conftest.s
24703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24705 (eval $ac_try) 2>&5
24707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24708 test $ac_status = 0; }; }
24710 gcc_cv_as_powerpc_vsx=yes
24712 echo "configure: failed program was" >&5
24715 rm -f conftest.o conftest.s
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24719 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24720 if test $gcc_cv_as_powerpc_vsx = yes; then
24722 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24727 *-*-aix*) conftest_s=' .machine "pwr7"
24730 *) conftest_s=' .machine power7
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24736 $as_echo_n "checking assembler for popcntd support... " >&6; }
24737 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24738 $as_echo_n "(cached) " >&6
24740 gcc_cv_as_powerpc_popcntd=no
24741 if test $in_tree_gas = yes; then
24742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24743 then gcc_cv_as_powerpc_popcntd=yes
24745 elif test x$gcc_cv_as != x; then
24746 echo "$conftest_s" > conftest.s
24747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24754 gcc_cv_as_powerpc_popcntd=yes
24756 echo "configure: failed program was" >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24763 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24764 if test $gcc_cv_as_powerpc_popcntd = yes; then
24766 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24771 *-*-aix*) conftest_s=' .csect .text[PR]
24773 *) conftest_s=' .text
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24778 $as_echo_n "checking assembler for lwsync support... " >&6; }
24779 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24780 $as_echo_n "(cached) " >&6
24782 gcc_cv_as_powerpc_lwsync=no
24783 if test $in_tree_gas = yes; then
24784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24785 then gcc_cv_as_powerpc_lwsync=yes
24787 elif test x$gcc_cv_as != x; then
24788 echo "$conftest_s" > conftest.s
24789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24791 (eval $ac_try) 2>&5
24793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24794 test $ac_status = 0; }; }
24796 gcc_cv_as_powerpc_lwsync=yes
24798 echo "configure: failed program was" >&5
24801 rm -f conftest.o conftest.s
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24805 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24806 if test $gcc_cv_as_powerpc_lwsync = yes; then
24808 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24813 *-*-aix*) conftest_s=' .machine "476"
24816 *) conftest_s=' .machine "476"
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24822 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24823 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24826 gcc_cv_as_powerpc_dci=no
24827 if test $in_tree_gas = yes; then
24828 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24829 then gcc_cv_as_powerpc_dci=yes
24831 elif test x$gcc_cv_as != x; then
24832 echo "$conftest_s" > conftest.s
24833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24835 (eval $ac_try) 2>&5
24837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24838 test $ac_status = 0; }; }
24840 gcc_cv_as_powerpc_dci=yes
24842 echo "configure: failed program was" >&5
24845 rm -f conftest.o conftest.s
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24849 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24850 if test $gcc_cv_as_powerpc_dci = yes; then
24852 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24857 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24858 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24859 $as_echo_n "(cached) " >&6
24861 gcc_cv_as_powerpc_gnu_attribute=no
24862 if test $in_tree_gas = yes; then
24863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24864 then gcc_cv_as_powerpc_gnu_attribute=yes
24866 elif test x$gcc_cv_as != x; then
24867 echo '.gnu_attribute 4,1' > conftest.s
24868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870 (eval $ac_try) 2>&5
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; }
24875 gcc_cv_as_powerpc_gnu_attribute=yes
24877 echo "configure: failed program was" >&5
24880 rm -f conftest.o conftest.s
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24884 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24885 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24887 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24892 $as_echo_n "checking assembler for tls marker support... " >&6; }
24893 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24894 $as_echo_n "(cached) " >&6
24896 gcc_cv_as_powerpc_tls_markers=no
24897 if test $in_tree_gas = yes; then
24898 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24899 then gcc_cv_as_powerpc_tls_markers=yes
24901 elif test x$gcc_cv_as != x; then
24902 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24905 (eval $ac_try) 2>&5
24907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24908 test $ac_status = 0; }; }
24910 gcc_cv_as_powerpc_tls_markers=yes
24912 echo "configure: failed program was" >&5
24915 rm -f conftest.o conftest.s
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24919 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24920 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24922 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24929 $as_echo_n "checking assembler for .ref support... " >&6; }
24930 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24933 gcc_cv_as_aix_ref=no
24934 if test $in_tree_gas = yes; then
24935 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24938 elif test x$gcc_cv_as != x; then
24939 echo ' .csect stuff[rw]
24945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24947 (eval $ac_try) 2>&5
24949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24950 test $ac_status = 0; }; }
24952 gcc_cv_as_aix_ref=yes
24954 echo "configure: failed program was" >&5
24957 rm -f conftest.o conftest.s
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24961 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24962 if test $gcc_cv_as_aix_ref = yes; then
24964 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24973 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24974 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24977 gcc_cv_as_mips_explicit_relocs=no
24978 if test $in_tree_gas = yes; then
24979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24980 then gcc_cv_as_mips_explicit_relocs=yes
24982 elif test x$gcc_cv_as != x; then
24983 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24991 gcc_cv_as_mips_explicit_relocs=yes
24993 echo "configure: failed program was" >&5
24996 rm -f conftest.o conftest.s
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25000 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25001 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25002 if test x$target_cpu_default = x
25003 then target_cpu_default=MASK_EXPLICIT_RELOCS
25004 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25008 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25009 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25012 gcc_cv_as_mips_no_shared=no
25013 if test $in_tree_gas = yes; then
25014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25015 then gcc_cv_as_mips_no_shared=yes
25017 elif test x$gcc_cv_as != x; then
25018 echo 'nop' > conftest.s
25019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25021 (eval $ac_try) 2>&5
25023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25024 test $ac_status = 0; }; }
25026 gcc_cv_as_mips_no_shared=yes
25028 echo "configure: failed program was" >&5
25031 rm -f conftest.o conftest.s
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25035 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25036 if test $gcc_cv_as_mips_no_shared = yes; then
25038 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25043 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25044 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25045 $as_echo_n "(cached) " >&6
25047 gcc_cv_as_mips_gnu_attribute=no
25048 if test $in_tree_gas = yes; then
25049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25050 then gcc_cv_as_mips_gnu_attribute=yes
25052 elif test x$gcc_cv_as != x; then
25053 echo '.gnu_attribute 4,1' > conftest.s
25054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25056 (eval $ac_try) 2>&5
25058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25059 test $ac_status = 0; }; }
25061 gcc_cv_as_mips_gnu_attribute=yes
25063 echo "configure: failed program was" >&5
25066 rm -f conftest.o conftest.s
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25070 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25071 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25073 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25078 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25079 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25080 $as_echo_n "(cached) " >&6
25082 gcc_cv_as_mips_dtprelword=no
25083 if test $in_tree_gas = yes; then
25084 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25085 then gcc_cv_as_mips_dtprelword=yes
25087 elif test x$gcc_cv_as != x; then
25088 echo '.section .tdata,"awT",@progbits
25092 .dtprelword x+0x8000' > conftest.s
25093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25095 (eval $ac_try) 2>&5
25097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25098 test $ac_status = 0; }; }
25100 gcc_cv_as_mips_dtprelword=yes
25102 echo "configure: failed program was" >&5
25105 rm -f conftest.o conftest.s
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25109 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25110 if test $gcc_cv_as_mips_dtprelword = yes; then
25112 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25117 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25118 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25119 $as_echo_n "(cached) " >&6
25121 gcc_cv_as_mips_dspr1_mult=no
25122 if test x$gcc_cv_as != x; then
25123 echo ' .set mips32r2
25131 multu $ac3,$4,$5' > conftest.s
25132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }
25139 gcc_cv_as_mips_dspr1_mult=yes
25141 echo "configure: failed program was" >&5
25144 rm -f conftest.o conftest.s
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25148 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25149 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25151 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25156 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25157 gcc_cv_as_ld_jalr_reloc=no
25158 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25159 if test $in_tree_ld = yes ; then
25160 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 \
25161 && test $in_tree_ld_is_elf = yes; then
25162 gcc_cv_as_ld_jalr_reloc=yes
25164 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25165 echo ' .ent x' > conftest.s
25166 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25167 echo ' ld $25,%call16(y)($28)' >> conftest.s
25168 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25169 echo '1: jalr $25' >> conftest.s
25170 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25171 echo '1: jalr $25' >> conftest.s
25172 echo ' .end x' >> conftest.s
25173 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25174 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25175 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25176 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25177 gcc_cv_as_ld_jalr_reloc=yes
25183 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25184 if test x$target_cpu_default = x; then
25185 target_cpu_default=MASK_RELAX_PIC_CALLS
25187 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25191 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25194 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25195 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25196 $as_echo_n "(cached) " >&6
25198 gcc_cv_ld_mips_personality_relaxation=no
25199 if test $in_tree_ld = yes ; then
25200 if test "$gcc_cv_gld_major_version" -eq 2 \
25201 -a "$gcc_cv_gld_minor_version" -ge 21 \
25202 -o "$gcc_cv_gld_major_version" -gt 2; then
25203 gcc_cv_ld_mips_personality_relaxation=yes
25205 elif test x$gcc_cv_as != x \
25206 -a x$gcc_cv_ld != x \
25207 -a x$gcc_cv_readelf != x ; then
25208 cat > conftest.s <<EOF
25210 .cfi_personality 0x80,indirect_ptr
25217 .section .data,"aw",@progbits
25221 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25222 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25223 if $gcc_cv_readelf -d conftest 2>&1 \
25224 | grep TEXTREL > /dev/null 2>&1; then
25226 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25227 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25230 gcc_cv_ld_mips_personality_relaxation=yes
25234 rm -f conftest.s conftest.o conftest
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25237 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25238 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25240 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25246 # Mips and HP-UX need the GNU assembler.
25247 # Linux on IA64 might be able to use the Intel assembler.
25250 mips*-*-* | *-*-hpux* )
25251 if test x$gas_flag = xyes \
25252 || test x"$host" != x"$build" \
25253 || test ! -x "$gcc_cv_as" \
25254 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25257 echo "*** This configuration requires the GNU assembler" >&2
25263 # ??? Not all targets support dwarf2 debug_line, even within a version
25264 # of gas. Moreover, we need to emit a valid instruction to trigger any
25265 # info to the output file. So, as supported targets are added to gas 2.11,
25266 # add some instruction here to (also) show we expect this might work.
25267 # ??? Once 2.11 is released, probably need to add first known working
25268 # version to the per-target configury.
25269 case "$cpu_type" in
25270 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25271 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25281 if test x"$insn" != x; then
25283 .file 1 \"conftest.s\"
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25287 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25288 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25291 gcc_cv_as_dwarf2_debug_line=no
25292 if test $in_tree_gas = yes; then
25293 if test $in_tree_gas_is_elf = yes \
25294 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25295 then gcc_cv_as_dwarf2_debug_line=yes
25297 elif test x$gcc_cv_as != x; then
25298 echo "$conftest_s" > conftest.s
25299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301 (eval $ac_try) 2>&5
25303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304 test $ac_status = 0; }; }
25306 if test x$gcc_cv_objdump != x \
25307 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25308 | grep debug_line > /dev/null 2>&1; then
25309 gcc_cv_as_dwarf2_debug_line=yes
25312 echo "configure: failed program was" >&5
25315 rm -f conftest.o conftest.s
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25319 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25322 # The .debug_line file table must be in the exact order that
25323 # we specified the files, since these indices are also used
25324 # by DW_AT_decl_file. Approximate this test by testing if
25325 # the assembler bitches if the same index is assigned twice.
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25327 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25328 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25329 $as_echo_n "(cached) " >&6
25331 gcc_cv_as_dwarf2_file_buggy=no
25332 if test x$gcc_cv_as != x; then
25333 echo ' .file 1 "foo.s"
25334 .file 1 "bar.s"' > conftest.s
25335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25337 (eval $ac_try) 2>&5
25339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25340 test $ac_status = 0; }; }
25342 gcc_cv_as_dwarf2_file_buggy=yes
25344 echo "configure: failed program was" >&5
25347 rm -f conftest.o conftest.s
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25351 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25354 if test $gcc_cv_as_dwarf2_debug_line = yes \
25355 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25357 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25362 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25363 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25366 gcc_cv_as_gdwarf2_flag=no
25367 if test $in_tree_gas = yes; then
25368 if test $in_tree_gas_is_elf = yes \
25369 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25370 then gcc_cv_as_gdwarf2_flag=yes
25372 elif test x$gcc_cv_as != x; then
25373 echo "$insn" > conftest.s
25374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25376 (eval $ac_try) 2>&5
25378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25379 test $ac_status = 0; }; }
25381 gcc_cv_as_gdwarf2_flag=yes
25383 echo "configure: failed program was" >&5
25386 rm -f conftest.o conftest.s
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25390 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25391 if test $gcc_cv_as_gdwarf2_flag = yes; then
25393 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25398 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25399 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25400 $as_echo_n "(cached) " >&6
25402 gcc_cv_as_gstabs_flag=no
25403 if test $in_tree_gas = yes; then
25404 if test $in_tree_gas_is_elf = yes \
25405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25406 then gcc_cv_as_gstabs_flag=yes
25408 elif test x$gcc_cv_as != x; then
25409 echo "$insn" > conftest.s
25410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25412 (eval $ac_try) 2>&5
25414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25415 test $ac_status = 0; }; }
25417 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25418 # and warns about it, but still exits successfully. So check for
25420 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25422 (eval $ac_try) 2>&5
25424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25425 test $ac_status = 0; }; }
25427 else gcc_cv_as_gstabs_flag=yes
25430 echo "configure: failed program was" >&5
25433 rm -f conftest.o conftest.s
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25437 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25438 if test $gcc_cv_as_gstabs_flag = yes; then
25440 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25445 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25446 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25447 $as_echo_n "(cached) " >&6
25449 gcc_cv_as_debug_prefix_map_flag=no
25450 if test $in_tree_gas = yes; then
25451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25452 then gcc_cv_as_debug_prefix_map_flag=yes
25454 elif test x$gcc_cv_as != x; then
25455 echo "$insn" > conftest.s
25456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25458 (eval $ac_try) 2>&5
25460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25461 test $ac_status = 0; }; }
25463 gcc_cv_as_debug_prefix_map_flag=yes
25465 echo "configure: failed program was" >&5
25468 rm -f conftest.o conftest.s
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25472 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25473 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25475 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25481 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25482 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25483 $as_echo_n "(cached) " >&6
25485 gcc_cv_as_lcomm_with_alignment=no
25486 if test x$gcc_cv_as != x; then
25487 echo '.lcomm bar,4,16' > conftest.s
25488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; }
25495 gcc_cv_as_lcomm_with_alignment=yes
25497 echo "configure: failed program was" >&5
25500 rm -f conftest.o conftest.s
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25504 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25505 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25507 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25511 # Check whether --enable-gnu-unique-object was given.
25512 if test "${enable_gnu_unique_object+set}" = set; then :
25513 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25515 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25516 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25520 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25521 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25522 $as_echo_n "(cached) " >&6
25524 gcc_cv_as_gnu_unique_object=no
25525 if test $in_tree_gas = yes; then
25526 if test $in_tree_gas_is_elf = yes \
25527 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25528 then gcc_cv_as_gnu_unique_object=yes
25530 elif test x$gcc_cv_as != x; then
25531 echo '.type foo, @gnu_unique_object' > conftest.s
25532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25534 (eval $ac_try) 2>&5
25536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25537 test $ac_status = 0; }; }
25539 gcc_cv_as_gnu_unique_object=yes
25541 echo "configure: failed program was" >&5
25544 rm -f conftest.o conftest.s
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25548 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25549 if test $gcc_cv_as_gnu_unique_object = yes; then
25550 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25551 if test x$host = x$build -a x$host = x$target &&
25552 ldd --version 2>/dev/null &&
25553 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25554 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25555 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25556 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25557 if test "$glibcnum" -ge 2011 ; then
25558 enable_gnu_unique_object=yes
25564 if test x$enable_gnu_unique_object = xyes; then
25566 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25571 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25572 if test "${gcc_cv_as_line_zero+set}" = set; then :
25573 $as_echo_n "(cached) " >&6
25575 gcc_cv_as_line_zero=no
25576 if test $in_tree_gas = yes; then
25577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25578 then gcc_cv_as_line_zero=yes
25580 elif test "x$gcc_cv_as" != x; then
25581 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25582 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; } &&
25588 test "x`cat conftest.out`" = x
25590 gcc_cv_as_line_zero=yes
25592 echo "configure: failed program was" >&5
25594 echo "configure: error output was" >&5
25595 cat conftest.out >&5
25597 rm -f conftest.o conftest.s conftest.out
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25601 $as_echo "$gcc_cv_as_line_zero" >&6; }
25602 if test "x$gcc_cv_as_line_zero" = xyes; then
25604 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25609 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25610 gcc_cv_ld_eh_frame_hdr=no
25611 if test $in_tree_ld = yes ; then
25612 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 \
25613 && test $in_tree_ld_is_elf = yes; then
25614 gcc_cv_ld_eh_frame_hdr=yes
25616 elif test x$gcc_cv_ld != x; then
25617 if echo "$ld_ver" | grep GNU > /dev/null; then
25618 # Check if linker supports --eh-frame-hdr option
25619 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25620 gcc_cv_ld_eh_frame_hdr=yes
25625 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25626 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25627 gcc_cv_ld_eh_frame_hdr=yes
25634 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25636 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25640 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25643 $as_echo_n "checking linker position independent executable support... " >&6; }
25645 if test $in_tree_ld = yes ; then
25646 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 \
25647 && test $in_tree_ld_is_elf = yes; then
25650 elif test x$gcc_cv_ld != x; then
25651 # Check if linker supports -pie option
25652 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25656 if test x"$gcc_cv_ld_pie" = xyes; then
25658 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25662 $as_echo "$gcc_cv_ld_pie" >&6; }
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25665 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25666 gcc_cv_ld_eh_gc_sections=no
25667 if test $in_tree_ld = yes ; then
25668 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 \
25669 && test $in_tree_ld_is_elf = yes; then
25670 gcc_cv_ld_eh_gc_sections=yes
25672 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25673 cat > conftest.s <<EOF
25676 .type _start, @function
25679 .size _start, .-_start
25680 .section .text.foo,"ax",@progbits
25681 .type foo, @function
25685 .section .gcc_except_table.foo,"a",@progbits
25688 .section .eh_frame,"a",@progbits
25691 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25692 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25693 | grep "gc-sections option ignored" > /dev/null; then
25694 gcc_cv_ld_eh_gc_sections=no
25695 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25696 | grep gcc_except_table > /dev/null; then
25697 gcc_cv_ld_eh_gc_sections=yes
25698 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25699 if test x$gcc_cv_as_comdat_group != xyes; then
25700 gcc_cv_ld_eh_gc_sections=no
25701 cat > conftest.s <<EOF
25704 .type _start, @function
25707 .size _start, .-_start
25708 .section .gnu.linkonce.t.foo,"ax",@progbits
25709 .type foo, @function
25713 .section .gcc_except_table.foo,"a",@progbits
25716 .section .eh_frame,"a",@progbits
25719 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25720 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25721 | grep "gc-sections option ignored" > /dev/null; then
25722 gcc_cv_ld_eh_gc_sections=no
25723 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25724 | grep gcc_except_table > /dev/null; then
25725 gcc_cv_ld_eh_gc_sections=yes
25731 rm -f conftest.s conftest.o conftest
25735 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25736 gcc_cv_ld_eh_gc_sections=no
25739 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25741 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25745 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25748 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25749 gcc_cv_ld_eh_gc_sections_bug=no
25750 if test $in_tree_ld = yes ; then
25751 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 \
25752 && test $in_tree_ld_is_elf = yes; then
25753 gcc_cv_ld_eh_gc_sections_bug=yes
25755 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
25756 gcc_cv_ld_eh_gc_sections_bug=yes
25757 cat > conftest.s <<EOF
25760 .type _start, @function
25763 .size _start, .-_start
25764 .section .text.startup.foo,"ax",@progbits
25765 .type foo, @function
25769 .section .gcc_except_table.foo,"a",@progbits
25772 .section .eh_frame,"a",@progbits
25775 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25776 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25777 | grep "gc-sections option ignored" > /dev/null; then
25779 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25780 | grep gcc_except_table > /dev/null; then
25781 gcc_cv_ld_eh_gc_sections_bug=no
25784 rm -f conftest.s conftest.o conftest
25786 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25788 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25792 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25799 $as_echo_n "checking linker --as-needed support... " >&6; }
25800 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25801 $as_echo_n "(cached) " >&6
25803 gcc_cv_ld_as_needed=no
25804 if test $in_tree_ld = yes ; then
25805 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 \
25806 && test $in_tree_ld_is_elf = yes; then
25807 gcc_cv_ld_as_needed=yes
25809 elif test x$gcc_cv_ld != x; then
25810 # Check if linker supports --as-needed and --no-as-needed options
25811 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25812 gcc_cv_ld_as_needed=yes
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25818 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25819 if test x"$gcc_cv_ld_as_needed" = xyes; then
25821 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25825 case "$target:$tm_file" in
25826 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25828 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25829 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25832 gcc_cv_ld_no_dot_syms=no
25833 if test $in_tree_ld = yes ; then
25834 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
25835 gcc_cv_ld_no_dot_syms=yes
25837 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25838 cat > conftest1.s <<EOF
25842 cat > conftest2.s <<EOF
25843 .section ".opd","aw"
25846 .type foo,@function
25848 .quad .LEfoo,.TOC.@tocbase,0
25854 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25855 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25856 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25857 gcc_cv_ld_no_dot_syms=yes
25859 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25864 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25865 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25867 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25872 $as_echo_n "checking linker large toc support... " >&6; }
25873 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25876 gcc_cv_ld_large_toc=no
25877 if test $in_tree_ld = yes ; then
25878 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
25879 gcc_cv_ld_large_toc=yes
25881 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25882 cat > conftest.s <<EOF
25883 .section ".tbss","awT",@nobits
25889 addis 9,13,ie0@got@tprel@ha
25890 ld 9,ie0@got@tprel@l(9)
25892 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25893 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25894 gcc_cv_ld_large_toc=yes
25896 rm -f conftest conftest.o conftest.s
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25901 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25902 if test x"$gcc_cv_ld_large_toc" = xyes; then
25904 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25911 $as_echo_n "checking linker --build-id support... " >&6; }
25912 if test "${gcc_cv_ld_buildid+set}" = set; then :
25913 $as_echo_n "(cached) " >&6
25915 gcc_cv_ld_buildid=no
25916 if test $in_tree_ld = yes ; then
25917 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25918 "$gcc_cv_gld_minor_version" -ge 18 -o \
25919 "$gcc_cv_gld_major_version" -gt 2 \
25920 && test $in_tree_ld_is_elf = yes; then
25921 gcc_cv_ld_buildid=yes
25923 elif test x$gcc_cv_ld != x; then
25924 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25925 gcc_cv_ld_buildid=yes
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25930 $as_echo "$gcc_cv_ld_buildid" >&6; }
25931 if test x"$gcc_cv_ld_buildid" = xyes; then
25933 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25937 # Check whether --enable-linker-build-id was given.
25938 if test "${enable_linker_build_id+set}" = set; then :
25939 enableval=$enable_linker_build_id;
25941 enable_linker_build_id=no
25945 if test x"$enable_linker_build_id" = xyes; then
25946 if test x"$gcc_cv_ld_buildid" = xyes; then
25948 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25952 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25956 # In binutils 2.21, GNU ld gained support for new emulations fully
25957 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25959 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25960 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25961 $as_echo_n "(cached) " >&6
25963 gcc_cv_ld_sol2_emulation=no
25964 if test $in_tree_ld = yes ; then
25965 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25966 "$gcc_cv_gld_minor_version" -ge 21 -o \
25967 "$gcc_cv_gld_major_version" -gt 2 \
25968 && test $in_tree_ld_is_elf = yes; then
25969 gcc_cv_ld_sol2_emulation=yes
25971 elif test x$gcc_cv_ld != x; then
25972 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25973 grep _sol2 > /dev/null; then
25974 gcc_cv_ld_sol2_emulation=yes
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25979 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25980 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25982 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25987 $as_echo_n "checking linker --sysroot support... " >&6; }
25988 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25989 $as_echo_n "(cached) " >&6
25991 gcc_cv_ld_sysroot=no
25992 if test $in_tree_ld = yes ; then
25993 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
25994 gcc_cv_ld_sysroot=yes
25996 elif test x$gcc_cv_ld != x; then
25997 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25998 gcc_cv_ld_sysroot=yes
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26003 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26004 if test x"$gcc_cv_ld_sysroot" = xyes; then
26006 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26010 if test x$with_sysroot = x && test x$host = x$target \
26011 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26012 && test "$prefix" != "NONE"; then
26014 cat >>confdefs.h <<_ACEOF
26015 #define PREFIX_INCLUDE_DIR "$prefix/include"
26020 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26021 if test "x$with_headers" != x; then
26022 target_header_dir=$with_headers
26023 elif test "x$with_sysroot" = x; then
26024 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26025 elif test "x$with_build_sysroot" != "x"; then
26026 target_header_dir="${with_build_sysroot}/usr/include"
26027 elif test "x$with_sysroot" = xyes; then
26028 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26030 target_header_dir="${with_sysroot}/usr/include"
26033 target_header_dir=/usr/include
26036 # Test for stack protector support in target C library.
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26038 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26039 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26040 $as_echo_n "(cached) " >&6
26042 gcc_cv_libc_provides_ssp=no
26044 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26045 # glibc 2.4 and later provides __stack_chk_fail and
26046 # either __stack_chk_guard, or TLS access to stack guard canary.
26047 if test -f $target_header_dir/features.h \
26048 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26049 $target_header_dir/features.h > /dev/null; then
26050 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26051 $target_header_dir/features.h > /dev/null; then
26052 gcc_cv_libc_provides_ssp=yes
26053 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26054 $target_header_dir/features.h > /dev/null \
26055 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26056 $target_header_dir/features.h > /dev/null; then
26057 gcc_cv_libc_provides_ssp=yes
26058 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26059 $target_header_dir/features.h > /dev/null && \
26060 test -f $target_header_dir/bits/uClibc_config.h && \
26061 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26062 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26063 gcc_cv_libc_provides_ssp=yes
26068 # Avoid complicated tests (see
26069 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26070 # simply assert that glibc does provide this, which is true for all
26071 # realistically usable GNU/Hurd configurations.
26072 gcc_cv_libc_provides_ssp=yes;;
26073 *-*-darwin* | *-*-freebsd*)
26074 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26075 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26076 gcc_cv_libc_provides_ssp=yes
26078 echo "no __stack_chk_fail on this target"
26082 *) gcc_cv_libc_provides_ssp=no ;;
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26086 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26088 if test x$gcc_cv_libc_provides_ssp = xyes; then
26090 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26094 # Test for <sys/sdt.h> on the target.
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26097 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26099 if test -f $target_header_dir/sys/sdt.h; then
26101 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26105 $as_echo "$have_sys_sdt_h" >&6; }
26107 # Check if TFmode long double should be used by default or not.
26108 # Some glibc targets used DFmode long double, but with glibc 2.4
26109 # and later they can use TFmode.
26111 powerpc*-*-linux* | \
26112 sparc*-*-linux* | \
26116 # Check whether --with-long-double-128 was given.
26117 if test "${with_long_double_128+set}" = set; then :
26118 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26120 gcc_cv_target_ldbl128=no
26121 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26122 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26123 && gcc_cv_target_ldbl128=yes
26129 if test x$gcc_cv_target_ldbl128 = xyes; then
26131 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26136 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26137 gcc_cv_target_dl_iterate_phdr=unknown
26140 # <link.h> needs both a dl_iterate_phdr declaration and support for
26141 # compilation with largefile support.
26142 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26143 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26144 gcc_cv_target_dl_iterate_phdr=yes
26146 gcc_cv_target_dl_iterate_phdr=no
26151 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26153 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26157 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26159 # Find out what GC implementation we want, or may, use.
26161 # Check whether --with-gc was given.
26162 if test "${with_gc+set}" = set; then :
26163 withval=$with_gc; case "$withval" in
26170 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26174 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26182 echo "Using $GGC for garbage collection."
26184 # Libraries to use on the host. This will normally be set by the top
26185 # level Makefile. Here we simply capture the value for our Makefile.
26186 if test -z "${HOST_LIBS+set}"; then
26191 # Use the system's zlib library.
26193 zlibinc="-I\$(srcdir)/../zlib"
26195 # Check whether --with-system-zlib was given.
26196 if test "${with_system_zlib+set}" = set; then :
26197 withval=$with_system_zlib; zlibdir=
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26207 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26208 # Check whether --enable-maintainer-mode was given.
26209 if test "${enable_maintainer_mode+set}" = set; then :
26210 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26217 $as_echo "$maintainer_mode" >&6; }
26219 if test "$maintainer_mode" = "yes"; then
26229 # Make empty files to contain the specs and options for each language.
26230 # Then add #include lines to for a compiler that has specs and/or options.
26236 # These (without "all_") are set in each config-lang.in.
26237 # `language' must be a single word so is spelled singularly.
26240 all_outputs='Makefile'
26241 # List of language makefile fragments.
26242 all_lang_makefrags=
26243 # Additional files for gengtype
26244 all_gtfiles="$target_gtfiles"
26246 # These are the languages that are set in --enable-languages,
26247 # and are available in the GCC tree.
26248 all_selected_languages=
26250 # Add the language fragments.
26251 # Languages are added via two mechanisms. Some information must be
26252 # recorded in makefile variables, these are defined in config-lang.in.
26253 # We accumulate them and plug them into the main Makefile.
26254 # The other mechanism is a set of hooks for each of the main targets
26255 # like `clean', `install', etc.
26257 language_hooks="Make-hooks"
26259 for lang in ${srcdir}/*/config-lang.in
26261 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26263 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26264 if test "x$lang_alias" = x
26266 echo "$lang doesn't set \$language." 1>&2
26269 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26270 subdirs="$subdirs $subdir"
26272 # $gcc_subdir is where the gcc integration files are to be found
26273 # for a language, both for internal compiler purposes (compiler
26274 # sources implementing front-end to GCC tree converters), and for
26275 # build infrastructure purposes (Make-lang.in, etc.)
26277 # This will be <subdir> (relative to $srcdir) if a line like
26278 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26279 # is found in <langdir>/config-lang.in, and will remain <langdir>
26282 # Except for the language alias (fetched above), the regular
26283 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26284 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26285 # only this and the language alias.
26287 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26288 if [ "$gcc_subdir" = "" ]; then
26289 gcc_subdir="$subdir"
26292 case ",$enable_languages," in
26294 all_selected_languages="$all_selected_languages $lang_alias"
26295 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26296 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26307 . ${srcdir}/$gcc_subdir/config-lang.in
26308 if test "x$language" = x
26310 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26315 case ",$enable_languages," in
26316 *,$lang_alias,*) ;;
26318 for i in $subdir_requires; do
26319 test -f "${srcdir}/$i/config-lang.in" && continue
26327 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26328 if test -f $srcdir/$gcc_subdir/lang.opt; then
26329 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26330 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26332 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26333 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26335 all_languages="$all_languages $language"
26336 all_compilers="$all_compilers $compilers"
26337 all_outputs="$all_outputs $outputs"
26338 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26339 case ",$enable_languages," in
26342 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26351 # Pick up gtfiles for c
26353 . ${srcdir}/c-config-lang.in
26354 all_gtfiles="$all_gtfiles [c] $gtfiles"
26357 for language in $all_selected_languages
26359 check_languages="$check_languages check-$language"
26362 # We link each language in with a set of hooks, reached indirectly via
26363 # lang.${target}. Only do so for selected languages.
26367 target_list="all.cross start.encap rest.encap tags \
26368 install-common install-man install-info install-pdf install-html dvi \
26369 pdf html uninstall info man srcextra srcman srcinfo \
26370 mostlyclean clean distclean maintainer-clean install-plugin"
26372 for t in $target_list
26375 for lang in $all_selected_languages
26379 echo "lang.$t: $x" >> Make-hooks
26383 # Option include files
26386 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26387 option_includes="option-includes.mk"
26396 echo "dir ." > .gdbinit
26397 echo "dir ${srcdir}" >> .gdbinit
26398 if test x$gdb_needs_out_file_path = xyes
26400 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26402 if test "x$subdirs" != x; then
26405 echo "dir ${srcdir}/$s" >> .gdbinit
26408 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26410 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26414 # Find a directory in which to install a shared libgcc.
26416 # Check whether --enable-version-specific-runtime-libs was given.
26417 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26418 enableval=$enable_version_specific_runtime_libs;
26423 # Check whether --with-slibdir was given.
26424 if test "${with_slibdir+set}" = set; then :
26425 withval=$with_slibdir; slibdir="$with_slibdir"
26427 if test "${enable_version_specific_runtime_libs+set}" = set; then
26428 slibdir='$(libsubdir)'
26429 elif test "$host" != "$target"; then
26430 slibdir='$(build_tooldir)/lib'
26432 slibdir='$(libdir)'
26438 # Substitute configuration variables
26506 if test x${build} = x${host} ; then
26507 if test x${host} = x${target} ; then
26508 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26510 echo "Links are now set up to build a cross-compiler" 1>&2
26511 echo " from ${host} to ${target}." 1>&2
26514 if test x${host} = x${target} ; then
26515 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26516 echo " for ${target}." 1>&2
26518 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26519 echo " from ${host} to ${target}." 1>&2
26531 if test "x${CLOOGLIBS}" != "x" ; then
26533 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26537 # Check for plugin support
26538 # Check whether --enable-plugin was given.
26539 if test "${enable_plugin+set}" = set; then :
26540 enableval=$enable_plugin; enable_plugin=$enableval
26542 enable_plugin=yes; default_plugin=yes
26550 if test x$build = x$host; then
26551 export_sym_check="nm${exeext} -g"
26552 elif test x$host = x$target; then
26553 export_sym_check="$gcc_cv_nm -g"
26559 if test x$build = x$host; then
26560 export_sym_check="objdump${exeext} -T"
26561 elif test x$host = x$target; then
26562 export_sym_check="$gcc_cv_objdump -T"
26569 if test x"$enable_plugin" = x"yes"; then
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26572 $as_echo_n "checking for exported symbols... " >&6; }
26573 if test "x$export_sym_check" != x; then
26574 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26575 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26576 if $export_sym_check conftest | grep foobar > /dev/null; then
26577 : # No need to use a flag
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26579 $as_echo "yes" >&6; }
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26582 $as_echo "yes" >&6; }
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26584 $as_echo_n "checking for -rdynamic... " >&6; }
26585 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26586 if $export_sym_check conftest | grep foobar > /dev/null; then
26587 plugin_rdynamic=yes
26588 pluginlibs="-rdynamic"
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26594 $as_echo "$plugin_rdynamic" >&6; }
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26598 $as_echo "unable to check" >&6; }
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26604 $as_echo_n "checking for library containing dlopen... " >&6; }
26605 if test "${ac_cv_search_dlopen+set}" = set; then :
26606 $as_echo_n "(cached) " >&6
26608 ac_func_search_save_LIBS=$LIBS
26609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26610 /* end confdefs.h. */
26612 /* Override any GCC internal prototype to avoid an error.
26613 Use char because int might match the return type of a GCC
26614 builtin and then its argument prototype would still apply. */
26627 for ac_lib in '' dl; do
26628 if test -z "$ac_lib"; then
26629 ac_res="none required"
26632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26634 if ac_fn_c_try_link "$LINENO"; then :
26635 ac_cv_search_dlopen=$ac_res
26637 rm -f core conftest.err conftest.$ac_objext \
26639 if test "${ac_cv_search_dlopen+set}" = set; then :
26643 if test "${ac_cv_search_dlopen+set}" = set; then :
26646 ac_cv_search_dlopen=no
26648 rm conftest.$ac_ext
26649 LIBS=$ac_func_search_save_LIBS
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26652 $as_echo "$ac_cv_search_dlopen" >&6; }
26653 ac_res=$ac_cv_search_dlopen
26654 if test "$ac_res" != no; then :
26655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26659 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26660 pluginlibs="$pluginlibs -ldl"
26664 # Check that we can build shared objects with -fPIC -shared
26665 saved_LDFLAGS="$LDFLAGS"
26666 saved_CFLAGS="$CFLAGS"
26669 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26670 CFLAGS="$CFLAGS -fPIC"
26671 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26674 CFLAGS="$CFLAGS -fPIC"
26675 LDFLAGS="$LDFLAGS -fPIC -shared"
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26679 $as_echo_n "checking for -fPIC -shared... " >&6; }
26680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26681 /* end confdefs.h. */
26691 if ac_fn_c_try_link "$LINENO"; then :
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26693 $as_echo "yes" >&6; }; have_pic_shared=yes
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26696 $as_echo "no" >&6; }; have_pic_shared=no
26698 rm -f core conftest.err conftest.$ac_objext \
26699 conftest$ac_exeext conftest.$ac_ext
26700 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26704 LDFLAGS="$saved_LDFLAGS"
26705 CFLAGS="$saved_CFLAGS"
26707 # If plugin support had been requested but not available, fail.
26708 if test x"$enable_plugin" = x"no" ; then
26709 if test x"$default_plugin" != x"yes"; then
26711 Building GCC with plugin support requires a host that supports
26712 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26719 if test x"$enable_plugin" = x"yes"; then
26721 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26726 # Check whether --enable-libquadmath-support was given.
26727 if test "${enable_libquadmath_support+set}" = set; then :
26728 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26730 ENABLE_LIBQUADMATH_SUPPORT=yes
26733 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26735 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26740 # Specify what hash style to use by default.
26742 # Check whether --with-linker-hash-style was given.
26743 if test "${with_linker_hash_style+set}" = set; then :
26744 withval=$with_linker_hash_style; case x"$withval" in
26746 LINKER_HASH_STYLE=sysv
26749 LINKER_HASH_STYLE=gnu
26752 LINKER_HASH_STYLE=both
26755 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26759 LINKER_HASH_STYLE=''
26762 if test x"${LINKER_HASH_STYLE}" != x; then
26764 cat >>confdefs.h <<_ACEOF
26765 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26770 # Configure the subdirectories
26771 # AC_CONFIG_SUBDIRS($subdirs)
26773 # Create the Makefile
26774 # and configure language subdirectories
26775 ac_config_files="$ac_config_files $all_outputs"
26778 ac_config_commands="$ac_config_commands default"
26780 cat >confcache <<\_ACEOF
26781 # This file is a shell script that caches the results of configure
26782 # tests run on this system so they can be shared between configure
26783 # scripts and configure runs, see configure's option --config-cache.
26784 # It is not useful on other systems. If it contains results you don't
26785 # want to keep, you may remove or edit it.
26787 # config.status only pays attention to the cache file if you give it
26788 # the --recheck option to rerun configure.
26790 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26792 # following values.
26796 # The following way of writing the cache mishandles newlines in values,
26797 # but we know of no workaround that is simple, portable, and efficient.
26798 # So, we kill variables containing newlines.
26799 # Ultrix sh set writes to stderr and can't be redirected directly,
26800 # and sets the high bit in the cache file unless we assign to the vars.
26802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26803 eval ac_val=\$$ac_var
26807 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26811 _ | IFS | as_nl) ;; #(
26812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26813 *) { eval $ac_var=; unset $ac_var;} ;;
26819 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26820 *${as_nl}ac_space=\ *)
26821 # `set' does not quote correctly, so add quotes: double-quote
26822 # substitution turns \\\\ into \\, and sed turns \\ into \.
26825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26828 # `set' quotes correctly as required by POSIX, so do not add quotes.
26829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26842 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26843 if test -w "$cache_file"; then
26844 test "x$cache_file" != "x/dev/null" &&
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26846 $as_echo "$as_me: updating cache $cache_file" >&6;}
26847 cat confcache >$cache_file
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26856 # Let make expand exec_prefix.
26857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26859 DEFS=-DHAVE_CONFIG_H
26863 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26864 # 1. Remove the extension, and $U if already installed.
26865 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26866 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26867 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26868 # will be set to the directory where LIBOBJS objects are built.
26869 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26870 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26872 LIBOBJS=$ac_libobjs
26874 LTLIBOBJS=$ac_ltlibobjs
26879 : ${CONFIG_STATUS=./config.status}
26881 ac_clean_files_save=$ac_clean_files
26882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26884 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26886 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26888 # Generated by $as_me.
26889 # Run this file to recreate the current configuration.
26890 # Compiler output produced by configure, useful for debugging
26891 # configure, is in config.log if it exists.
26894 ac_cs_recheck=false
26897 SHELL=\${CONFIG_SHELL-$SHELL}
26900 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26901 ## -------------------- ##
26902 ## M4sh Initialization. ##
26903 ## -------------------- ##
26905 # Be more Bourne compatible
26906 DUALCASE=1; export DUALCASE # for MKS sh
26907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26910 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26911 # is contrary to our usage. Disable this feature.
26912 alias -g '${1+"$@"}'='"$@"'
26913 setopt NO_GLOB_SUBST
26915 case `(set -o) 2>/dev/null` in #(
26927 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26928 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26930 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26931 # Prefer a ksh shell builtin over an external printf program on Solaris,
26932 # but without wasting forks for bash or zsh.
26933 if test -z "$BASH_VERSION$ZSH_VERSION" \
26934 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26935 as_echo='print -r --'
26936 as_echo_n='print -rn --'
26937 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26938 as_echo='printf %s\n'
26939 as_echo_n='printf %s'
26941 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26942 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26943 as_echo_n='/usr/ucb/echo -n'
26945 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26946 as_echo_n_body='eval
26950 expr "X$arg" : "X\\(.*\\)$as_nl";
26951 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26953 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26955 export as_echo_n_body
26956 as_echo_n='sh -c $as_echo_n_body as_echo'
26958 export as_echo_body
26959 as_echo='sh -c $as_echo_body as_echo'
26962 # The user is always right.
26963 if test "${PATH_SEPARATOR+set}" != set; then
26965 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26966 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26973 # We need space, tab and new line, in precisely that order. Quoting is
26974 # there to prevent editors from complaining about space-tab.
26975 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26976 # splitting by setting IFS to empty value.)
26979 # Find who we are. Look in the path if we contain no directory separator.
26981 *[\\/]* ) as_myself=$0 ;;
26982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26983 for as_dir in $PATH
26986 test -z "$as_dir" && as_dir=.
26987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26993 # We did not find ourselves, most probably we were run as `sh COMMAND'
26994 # in which case we are not to be found in the path.
26995 if test "x$as_myself" = x; then
26998 if test ! -f "$as_myself"; then
26999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27003 # Unset variables that we do not need and which cause bugs (e.g. in
27004 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27005 # suppresses any "Segmentation fault" message there. '((' could
27006 # trigger a bug in pdksh 5.2.14.
27007 for as_var in BASH_ENV ENV MAIL MAILPATH
27008 do eval test x\${$as_var+set} = xset \
27009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27025 # as_fn_error ERROR [LINENO LOG_FD]
27026 # ---------------------------------
27027 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27028 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27029 # script with status $?, using 1 if that was 0.
27032 as_status=$?; test $as_status -eq 0 && as_status=1
27034 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27037 $as_echo "$as_me: error: $1" >&2
27038 as_fn_exit $as_status
27042 # as_fn_set_status STATUS
27043 # -----------------------
27044 # Set $? to STATUS, without forking.
27045 as_fn_set_status ()
27048 } # as_fn_set_status
27050 # as_fn_exit STATUS
27051 # -----------------
27052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27056 as_fn_set_status $1
27062 # Portably unset VAR.
27065 { eval $1=; unset $1;}
27067 as_unset=as_fn_unset
27068 # as_fn_append VAR VALUE
27069 # ----------------------
27070 # Append the text in VALUE to the end of the definition contained in VAR. Take
27071 # advantage of any shell optimizations that allow amortized linear growth over
27072 # repeated appends, instead of the typical quadratic growth present in naive
27074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27075 eval 'as_fn_append ()
27086 # as_fn_arith ARG...
27087 # ------------------
27088 # Perform arithmetic evaluation on the ARGs, and store the result in the
27089 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27090 # must be portable across $(()) and expr.
27091 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27092 eval 'as_fn_arith ()
27099 as_val=`expr "$@" || test $? -eq 1`
27104 if expr a : '\(a\)' >/dev/null 2>&1 &&
27105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27112 as_basename=basename
27117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27123 as_me=`$as_basename -- "$0" ||
27124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27125 X"$0" : 'X\(//\)$' \| \
27126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27128 sed '/^.*\/\([^/][^/]*\)\/*$/{
27142 # Avoid depending upon Character Ranges.
27143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27146 as_cr_digits='0123456789'
27147 as_cr_alnum=$as_cr_Letters$as_cr_digits
27149 ECHO_C= ECHO_N= ECHO_T=
27150 case `echo -n x` in #(((((
27152 case `echo 'xy\c'` in
27153 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27162 rm -f conf$$ conf$$.exe conf$$.file
27163 if test -d conf$$.dir; then
27164 rm -f conf$$.dir/conf$$.file
27167 mkdir conf$$.dir 2>/dev/null
27169 if (echo >conf$$.file) 2>/dev/null; then
27170 if ln -s conf$$.file conf$$ 2>/dev/null; then
27172 # ... but there are two gotchas:
27173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27175 # In both cases, we have to default to `cp -p'.
27176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27178 elif ln conf$$.file conf$$ 2>/dev/null; then
27186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27187 rmdir conf$$.dir 2>/dev/null
27192 # Create "$as_dir" as a directory, including parents if necessary.
27197 -*) as_dir=./$as_dir;;
27199 test -d "$as_dir" || eval $as_mkdir_p || {
27203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27204 *) as_qdir=$as_dir;;
27206 as_dirs="'$as_qdir' $as_dirs"
27207 as_dir=`$as_dirname -- "$as_dir" ||
27208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27209 X"$as_dir" : 'X\(//\)[^/]' \| \
27210 X"$as_dir" : 'X\(//\)$' \| \
27211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27212 $as_echo X"$as_dir" |
27213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27217 /^X\(\/\/\)[^/].*/{
27230 test -d "$as_dir" && break
27232 test -z "$as_dirs" || eval "mkdir $as_dirs"
27233 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27237 if mkdir -p . 2>/dev/null; then
27238 as_mkdir_p='mkdir -p "$as_dir"'
27240 test -d ./-p && rmdir ./-p
27244 if test -x / >/dev/null 2>&1; then
27245 as_test_x='test -x'
27247 if ls -dL / >/dev/null 2>&1; then
27254 if test -d "$1"; then
27260 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27261 ???[sx]*):;;*)false;;esac;fi
27265 as_executable_p=$as_test_x
27267 # Sed expression to map a string onto a valid CPP name.
27268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27270 # Sed expression to map a string onto a valid variable name.
27271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27275 ## ----------------------------------- ##
27276 ## Main body of $CONFIG_STATUS script. ##
27277 ## ----------------------------------- ##
27279 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27282 # Save the log message, to keep $0 and so on meaningful, and to
27283 # report actual input values of CONFIG_FILES etc. instead of their
27284 # values after options handling.
27286 This file was extended by $as_me, which was
27287 generated by GNU Autoconf 2.64. Invocation command line was
27289 CONFIG_FILES = $CONFIG_FILES
27290 CONFIG_HEADERS = $CONFIG_HEADERS
27291 CONFIG_LINKS = $CONFIG_LINKS
27292 CONFIG_COMMANDS = $CONFIG_COMMANDS
27295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27300 case $ac_config_files in *"
27301 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27304 case $ac_config_headers in *"
27305 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27310 # Files that config.status was made for.
27311 config_files="$ac_config_files"
27312 config_headers="$ac_config_headers"
27313 config_commands="$ac_config_commands"
27317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27319 \`$as_me' instantiates files and other configuration actions
27320 from templates according to the current configuration. Unless the files
27321 and actions are specified as TAGs, all are instantiated by default.
27323 Usage: $0 [OPTION]... [TAG]...
27325 -h, --help print this help, then exit
27326 -V, --version print version number and configuration settings, then exit
27327 -q, --quiet, --silent
27328 do not print progress messages
27329 -d, --debug don't remove temporary files
27330 --recheck update $as_me by reconfiguring in the same conditions
27331 --file=FILE[:TEMPLATE]
27332 instantiate the configuration file FILE
27333 --header=FILE[:TEMPLATE]
27334 instantiate the configuration header FILE
27336 Configuration files:
27339 Configuration headers:
27342 Configuration commands:
27345 Report bugs to the package provider."
27348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27351 configured by $0, generated by GNU Autoconf 2.64,
27352 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27354 Copyright (C) 2009 Free Software Foundation, Inc.
27355 This config.status script is free software; the Free Software Foundation
27356 gives unlimited permission to copy, distribute and modify it."
27361 test -n "\$AWK" || AWK=awk
27364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27365 # The default lists apply if the user does not specify any file.
27371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27383 # Handling of the options.
27384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27387 $as_echo "$ac_cs_version"; exit ;;
27388 --debug | --debu | --deb | --de | --d | -d )
27390 --file | --fil | --fi | --f )
27393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27395 as_fn_append CONFIG_FILES " '$ac_optarg'"
27396 ac_need_defaults=false;;
27397 --header | --heade | --head | --hea )
27400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27402 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27403 ac_need_defaults=false;;
27405 # Conflict between --help and --header
27406 as_fn_error "ambiguous option: \`$1'
27407 Try \`$0 --help' for more information.";;
27408 --help | --hel | -h )
27409 $as_echo "$ac_cs_usage"; exit ;;
27410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27411 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27414 # This is an error.
27415 -*) as_fn_error "unrecognized option: \`$1'
27416 Try \`$0 --help' for more information." ;;
27418 *) as_fn_append ac_config_targets " $1"
27419 ac_need_defaults=false ;;
27425 ac_configure_extra_args=
27427 if $ac_cs_silent; then
27429 ac_configure_extra_args="$ac_configure_extra_args --silent"
27433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27434 if \$ac_cs_recheck; then
27435 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27437 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27438 CONFIG_SHELL='$SHELL'
27439 export CONFIG_SHELL
27444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27449 ## Running $as_me. ##
27455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27465 # Handling of arguments.
27466 for ac_config_target in $ac_config_targets
27468 case $ac_config_target in
27469 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27470 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27471 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27472 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27473 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27474 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27476 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27481 # If the user did not use the arguments to specify the items to instantiate,
27482 # then the envvar interface is used. Set only those that are not.
27483 # We use the long form for the default assignment because of an extremely
27484 # bizarre bug on SunOS 4.1.3.
27485 if $ac_need_defaults; then
27486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27491 # Have a temporary directory for convenience. Make it in the build tree
27492 # simply because there is no reason against having it here, and in addition,
27493 # creating and moving files from /tmp can sometimes cause problems.
27494 # Hook for its removal unless debugging.
27495 # Note that there is a small window in which the directory will not be cleaned:
27496 # after its creation but before its name has been assigned to `$tmp'.
27500 trap 'exit_status=$?
27501 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27503 trap 'as_fn_exit 1' 1 2 13 15
27505 # Create a (secure) tmp directory for tmp files.
27508 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27509 test -n "$tmp" && test -d "$tmp"
27512 tmp=./conf$$-$RANDOM
27513 (umask 077 && mkdir "$tmp")
27514 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27516 # Set up the scripts for CONFIG_FILES section.
27517 # No need to generate them if there are no CONFIG_FILES.
27518 # This happens for instance with `./config.status config.h'.
27519 if test -n "$CONFIG_FILES"; then
27521 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27522 ac_cs_awk_getline=:
27523 ac_cs_awk_pipe_init=
27524 ac_cs_awk_read_file='
27525 while ((getline aline < (F[key])) > 0)
27528 ac_cs_awk_pipe_fini=
27530 ac_cs_awk_getline=false
27531 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27532 ac_cs_awk_read_file='
27534 print "cat " F[key] " &&"
27535 '$ac_cs_awk_pipe_init
27536 # The final `:' finishes the AND list.
27537 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27539 ac_cr=`echo X | tr X '\015'`
27540 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27541 # But we know of no other shell where ac_cr would be empty at this
27542 # point, so we can use a bashism as a fallback.
27543 if test "x$ac_cr" = x; then
27544 eval ac_cr=\$\'\\r\'
27546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27550 ac_cs_awk_cr=$ac_cr
27553 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27556 # Create commands to substitute file output variables.
27558 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27559 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27560 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27563 } >conf$$files.sh &&
27564 . ./conf$$files.sh ||
27565 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27566 rm -f conf$$files.sh
27569 echo "cat >conf$$subs.awk <<_ACEOF" &&
27570 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27572 } >conf$$subs.sh ||
27573 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27574 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27576 for ac_last_try in false false false false false :; do
27577 . ./conf$$subs.sh ||
27578 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27580 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27581 if test $ac_delim_n = $ac_delim_num; then
27583 elif $ac_last_try; then
27584 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27589 rm -f conf$$subs.sh
27591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27592 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27596 s/^/S["/; s/!.*/"]=/
27606 s/\(.\{148\}\).*/\1/
27608 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27613 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27620 s/\(.\{148\}\).*/\1/
27622 s/["\\]/\\&/g; s/^/"/; s/$/"/
27626 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27631 ' <conf$$subs.awk | sed '
27636 ' >>$CONFIG_STATUS || ac_write_fail=1
27637 rm -f conf$$subs.awk
27638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27640 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27641 for (key in S) S_is_set[key] = 1
27643 \$ac_cs_awk_pipe_init
27647 nfields = split(line, field, "@")
27649 len = length(field[1])
27650 for (i = 2; i < nfields; i++) {
27652 keylen = length(key)
27653 if (S_is_set[key]) {
27655 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27656 len += length(value) + length(field[++i])
27661 if (nfields == 3 && !substed) {
27663 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27664 \$ac_cs_awk_read_file
27670 \$ac_cs_awk_pipe_fini
27673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27674 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27678 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27679 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27684 # trailing colons and then remove the whole line if VPATH becomes empty
27685 # (actually we leave an empty line to preserve line numbers).
27686 if test "x$srcdir" = x.; then
27687 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27688 s/:*\$(srcdir):*/:/
27689 s/:*\${srcdir}:*/:/
27691 s/^\([^=]*=[ ]*\):*/\1/
27697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27698 fi # test -n "$CONFIG_FILES"
27700 # Set up the scripts for CONFIG_HEADERS section.
27701 # No need to generate them if there are no CONFIG_HEADERS.
27702 # This happens for instance with `./config.status Makefile'.
27703 if test -n "$CONFIG_HEADERS"; then
27704 cat >"$tmp/defines.awk" <<\_ACAWK ||
27708 # Transform confdefs.h into an awk script `defines.awk', embedded as
27709 # here-document in config.status, that substitutes the proper values into
27710 # config.h.in to produce config.h.
27712 # Create a delimiter string that does not exist in confdefs.h, to ease
27713 # handling of long lines.
27715 for ac_last_try in false false :; do
27716 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27717 if test -z "$ac_t"; then
27719 elif $ac_last_try; then
27720 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27726 # For the awk script, D is an array of macro values keyed by name,
27727 # likewise P contains macro parameters if any. Preserve backslash
27728 # newline sequences.
27730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27732 s/.\{148\}/&'"$ac_delim"'/g
27735 s/^[ ]*#[ ]*define[ ][ ]*/ /
27742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27744 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27749 D["\1"]=" \3\\\\\\n"\\/p
27751 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27756 s/.\{148\}/&'"$ac_delim"'/g
27761 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27764 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27766 ' <confdefs.h | sed '
27767 s/'"$ac_delim"'/"\\\
27768 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27771 for (key in D) D_is_set[key] = 1
27774 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27776 split(line, arg, " ")
27777 if (arg[1] == "#") {
27781 defundef = substr(arg[1], 2)
27784 split(mac1, mac2, "(") #)
27786 prefix = substr(line, 1, index(line, defundef) - 1)
27787 if (D_is_set[macro]) {
27788 # Preserve the white space surrounding the "#".
27789 print prefix "define", macro P[macro] D[macro]
27792 # Replace #undef with comments. This is necessary, for example,
27793 # in the case of _POSIX_SOURCE, which is predefined and required
27794 # on some systems where configure will not decide to define it.
27795 if (defundef == "undef") {
27796 print "/*", prefix defundef, macro, "*/"
27804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27805 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27806 fi # test -n "$CONFIG_HEADERS"
27809 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27814 :[FHLC]) ac_mode=$ac_tag; continue;;
27816 case $ac_mode$ac_tag in
27818 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27819 :[FH]-) ac_tag=-:-;;
27820 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27837 -) ac_f="$tmp/stdin";;
27838 *) # Look for the file first in the build tree, then in the source tree
27839 # (if the path is not absolute). The absolute path cannot be DOS-style,
27840 # because $ac_f cannot contain `:'.
27844 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27846 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27848 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27849 as_fn_append ac_file_inputs " '$ac_f'"
27852 # Let's still pretend it is `configure' which instantiates (i.e., don't
27853 # use $as_me), people would be surprised to read:
27854 # /* config.h. Generated by config.status. */
27855 configure_input='Generated from '`
27856 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27858 if test x"$ac_file" != x-; then
27859 configure_input="$ac_file. $configure_input"
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27861 $as_echo "$as_me: creating $ac_file" >&6;}
27863 # Neutralize special characters interpreted by sed in replacement strings.
27864 case $configure_input in #(
27865 *\&* | *\|* | *\\* )
27866 ac_sed_conf_input=`$as_echo "$configure_input" |
27867 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27868 *) ac_sed_conf_input=$configure_input;;
27872 *:-:* | *:-) cat >"$tmp/stdin" \
27873 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27878 ac_dir=`$as_dirname -- "$ac_file" ||
27879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27880 X"$ac_file" : 'X\(//\)[^/]' \| \
27881 X"$ac_file" : 'X\(//\)$' \| \
27882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27883 $as_echo X"$ac_file" |
27884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27888 /^X\(\/\/\)[^/].*/{
27901 as_dir="$ac_dir"; as_fn_mkdir_p
27905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27907 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27908 # A ".." for each directory in $ac_dir_suffix.
27909 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27910 case $ac_top_builddir_sub in
27911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27915 ac_abs_top_builddir=$ac_pwd
27916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27917 # for backward compatibility:
27918 ac_top_builddir=$ac_top_build_prefix
27921 .) # We are building in place.
27923 ac_top_srcdir=$ac_top_builddir_sub
27924 ac_abs_top_srcdir=$ac_pwd ;;
27925 [\\/]* | ?:[\\/]* ) # Absolute name.
27926 ac_srcdir=$srcdir$ac_dir_suffix;
27927 ac_top_srcdir=$srcdir
27928 ac_abs_top_srcdir=$srcdir ;;
27929 *) # Relative name.
27930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27931 ac_top_srcdir=$ac_top_build_prefix$srcdir
27932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27946 # If the template does not know about datarootdir, expand it.
27947 # FIXME: This hack should be removed a few years after 2.60.
27948 ac_datarootdir_hack=; ac_datarootdir_seen=
27959 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27960 *datarootdir*) ac_datarootdir_seen=yes;;
27961 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27963 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27966 ac_datarootdir_hack='
27967 s&@datadir@&$datadir&g
27968 s&@docdir@&$docdir&g
27969 s&@infodir@&$infodir&g
27970 s&@localedir@&$localedir&g
27971 s&@mandir@&$mandir&g
27972 s&\\\${datarootdir}&$datarootdir&g' ;;
27976 # Neutralize VPATH when `$srcdir' = `.'.
27977 # Shell code in configure.ac might set extrasub.
27978 # FIXME: do we really want to maintain this feature?
27979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27980 ac_sed_extra="$ac_vpsub
27983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27986 s|@configure_input@|$ac_sed_conf_input|;t t
27987 s&@top_builddir@&$ac_top_builddir_sub&;t t
27988 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27989 s&@srcdir@&$ac_srcdir&;t t
27990 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27991 s&@top_srcdir@&$ac_top_srcdir&;t t
27992 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27993 s&@builddir@&$ac_builddir&;t t
27994 s&@abs_builddir@&$ac_abs_builddir&;t t
27995 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27996 $ac_datarootdir_hack
27998 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27999 if $ac_cs_awk_getline; then
28000 $AWK -f "$tmp/subs.awk"
28002 $AWK -f "$tmp/subs.awk" | $SHELL
28004 || as_fn_error "could not create $ac_file" "$LINENO" 5
28006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28007 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28008 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28010 which seems to be undefined. Please make sure it is defined." >&5
28011 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28012 which seems to be undefined. Please make sure it is defined." >&2;}
28016 -) cat "$tmp/out" && rm -f "$tmp/out";;
28017 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28019 || as_fn_error "could not create $ac_file" "$LINENO" 5
28025 if test x"$ac_file" != x-; then
28027 $as_echo "/* $configure_input */" \
28028 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28029 } >"$tmp/config.h" \
28030 || as_fn_error "could not create $ac_file" "$LINENO" 5
28031 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28033 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28036 mv "$tmp/config.h" "$ac_file" \
28037 || as_fn_error "could not create $ac_file" "$LINENO" 5
28040 $as_echo "/* $configure_input */" \
28041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28042 || as_fn_error "could not create -" "$LINENO" 5
28046 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28047 $as_echo "$as_me: executing $ac_file commands" >&6;}
28052 case $ac_file$ac_mode in
28053 "as":F) chmod +x as ;;
28054 "collect-ld":F) chmod +x collect-ld ;;
28055 "nm":F) chmod +x nm ;;
28057 case ${CONFIG_HEADERS} in
28058 *auto-host.h:config.in*)
28061 # Make sure all the subdirs exist.
28062 for d in $subdirs doc build common c-family
28064 test -d $d || mkdir $d
28074 ac_clean_files=$ac_clean_files_save
28076 test $ac_write_fail = 0 ||
28077 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28080 # configure is writing to config.log, and then calls config.status.
28081 # config.status does its own redirection, appending to config.log.
28082 # Unfortunately, on DOS this fails, as config.log is still kept open
28083 # by configure, so config.status won't be able to write to it; its
28084 # output is simply discarded. So we exec the FD to /dev/null,
28085 # effectively closing config.log, so it can be properly (re)opened and
28086 # appended to by config.status. When coming back to configure, we
28087 # need to make the FD available again.
28088 if test "$no_create" != yes; then
28090 ac_config_status_args=
28091 test "$silent" = yes &&
28092 ac_config_status_args="$ac_config_status_args --quiet"
28094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28097 # would make configure fail if this is the last instruction.
28098 $ac_cs_success || as_fn_exit $?
28100 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28102 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}