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
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
648 user_headers_inc_next_post
649 user_headers_inc_next_pre
651 TM_MULTILIB_EXCEPTIONS_CONFIG
660 build_xm_include_list
662 build_install_headers_dir
664 all_selected_languages
682 ORIGINAL_NM_FOR_TARGET
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 SYSROOT_CFLAGS_FOR_TARGET
771 ENABLE_BUILD_WITH_CXX
774 valgrind_path_defines
848 program_transform_name
859 ac_subst_files='option_includes
862 enable_option_checking
867 enable_generated_files_in_srcdir
877 enable_gather_detailed_mem_stats
878 enable_build_with_cxx
890 with_native_system_header_dir
900 enable_sjlj_exceptions
902 enable_leading_mingw64_underscores
905 enable_win32_registry
911 enable_gnu_indirect_function
912 enable_initfini_array
914 enable_gnu_unique_object
915 enable_linker_build_id
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
922 enable_libquadmath_support
923 with_linker_hash_style
925 ac_precious_vars='build_alias
946 # Initialize some variables set by options.
948 ac_init_version=false
949 ac_unrecognized_opts=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
960 program_transform_name=s,x,x,
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_$ac_useropt"
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1062 eval enable_$ac_useropt=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error "invalid feature name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1083 "enable_$ac_useropt"
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1088 eval enable_$ac_useropt=\$ac_optarg ;;
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 htmldir=$ac_optarg ;;
1121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1133 -libdir | --libdir | --libdi | --libd)
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1150 -localstatedir | --localstatedir | --localstatedi | --localstated \
1151 | --localstate | --localstat | --localsta | --localst | --locals)
1152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155 localstatedir=$ac_optarg ;;
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1224 -psdir | --psdir | --psdi | --psd | --ps)
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1252 -site=* | --site=* | --sit=*)
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1292 eval with_$ac_useropt=\$ac_optarg ;;
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) as_fn_error "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information."
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error "missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1361 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1379 # Be sure to have absolute directory names.
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1399 If a cross compiler is detected then cross compile mode will be used." >&2
1400 elif test "x$build_alias" != "x$host_alias"; then
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408 test "$silent" = yes && exec 6>/dev/null
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error "pwd does not report name of working directory"
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 # Report the --help message.
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1485 \`configure' configures this package to adapt to many kinds of systems.
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1492 Defaults for the options are specified in brackets.
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1516 For better control, use the options below.
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 --target=TARGET configure for building compilers for TARGET [HOST]
1554 if test -n "$ac_init_help"; then
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-generated-files-in-srcdir
1563 put copies of generated files in source dir intended
1564 for creating source tarballs for users without
1565 texinfo bison or flex
1566 --disable-largefile omit support for large files
1567 --enable-werror-always enable -Werror despite compiler version
1568 --enable-checking[=LIST]
1569 enable expensive run-time checks. With LIST, enable
1570 only specific categories of checks. Categories are:
1571 yes,no,all,none,release. Flags are:
1572 assert,df,fold,gc,gcac,gimple,misc,
1573 rtlflag,rtl,runtime,tree,valgrind,types
1574 --enable-coverage[=LEVEL]
1575 enable compiler's code coverage collection. Use to
1576 measure compiler performance and locate unused parts
1577 of the compiler. With LEVEL, specify optimization.
1578 Values are opt, noopt, default is noopt
1579 --enable-gather-detailed-mem-stats
1580 enable detailed memory allocation stats gathering
1581 --enable-build-with-cxx build with C++ compiler instead of C compiler
1582 --enable-multilib enable library support for multiple ABIs
1583 --enable-multiarch enable support for multiarch paths
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid'
1587 or 'dpd' choses which decimal floating point format
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-sjlj-exceptions
1600 arrange to use setjmp/longjmp exception handling
1601 --enable-secureplt enable -msecure-plt by default for PowerPC
1602 --enable-leading-mingw64-underscores
1603 enable leading underscores on 64 bit mingw targets
1604 --enable-cld enable -mcld by default for 32bit x86
1605 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1607 --disable-win32-registry
1608 disable lookup of installation paths in the Registry
1610 --enable-win32-registry enable registry lookup (default)
1611 --enable-win32-registry=KEY
1612 use KEY instead of GCC version as the last portion
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --enable-gnu-indirect-function
1620 enable the use of the @gnu_indirect_function to
1622 --enable-initfini-array use .init_array/.fini_array sections
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-version-specific-runtime-libs
1633 specify that runtime libraries should be installed
1634 in a compiler-specific directory
1635 --enable-plugin enable plugin support
1636 --disable-libquadmath-support
1637 disable libquadmath support for Fortran
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-build-libsubdir=DIR Directory where to find libraries for build system
1643 --with-local-prefix=DIR specifies directory to put local include
1644 --with-gxx-include-dir=DIR
1645 specifies directory to put g++ header files
1646 --with-cpp-install-dir=DIR
1647 install the user visible C preprocessor in DIR
1648 (relative to PREFIX) as well as PREFIX/bin
1649 --with-gnu-ld arrange to work with GNU ld
1650 --with-ld arrange to use the specified ld (full pathname)
1651 --with-demangler-in-ld try to use demangler in GNU ld
1652 --with-gnu-as arrange to work with GNU as
1653 --with-as arrange to use the specified as (full pathname)
1654 --with-stabs arrange to use stabs instead of host debug format
1655 --with-dwarf2 force the default debug format to be DWARF 2
1656 --with-native-system-header-dir=dir
1657 use dir as the directory to look for standard
1658 system header files in. Defaults to /usr/include.
1659 --with-build-sysroot=sysroot
1660 use sysroot as the system root during the build
1661 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1662 --with-specs=SPECS add SPECS to driver command-line processing
1663 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1664 --with-bugurl=URL Direct users to URL to report a bug
1665 --with-multilib-list select multilibs (SH and x86-64 only)
1666 --with-gnu-ld assume the C compiler uses GNU ld default=no
1667 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1668 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1669 --with-pic try to use only PIC/non-PIC objects [default=use
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-plugin-ld=[ARG] specify the plugin linker
1673 --with-long-double-128 use 128-bit long double by default
1674 --with-gc={page,zone} choose the garbage collection mechanism to use with
1676 --with-system-zlib use installed libz
1677 --with-linker-hash-style={sysv,gnu,both}
1678 specify the linker hash style
1680 Some influential environment variables:
1681 CC C compiler command
1682 CFLAGS C compiler flags
1683 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1684 nonstandard directory <lib dir>
1685 LIBS libraries to pass to the linker, e.g. -l<library>
1686 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1687 you have headers in a nonstandard directory <include dir>
1688 CXX C++ compiler command
1689 CXXFLAGS C++ compiler flags
1691 CXXCPP C++ preprocessor
1692 GMPLIBS How to link GMP
1693 GMPINC How to find GMP include files
1694 PPLLIBS How to link PPL
1695 PPLINC How to find PPL include files
1696 CLOOGLIBS How to link CLOOG
1697 CLOOGINC How to find CLOOG include files
1699 Use these variables to override the choices made by `configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1702 Report bugs to the package provider.
1707 if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1732 .) # We are building in place.
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1737 ac_srcdir=$srcdir$ac_dir_suffix;
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for guested configure.
1749 if test -f "$ac_srcdir/configure.gnu"; then
1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752 elif test -f "$ac_srcdir/configure"; then
1754 $SHELL "$ac_srcdir/configure" --help=recursive
1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758 cd "$ac_pwd" || { ac_status=$?; break; }
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1766 generated by GNU Autoconf 2.64
1768 Copyright (C) 2009 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.$ac_objext; then :
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 } # ac_fn_c_try_compile
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 } # ac_fn_cxx_try_compile
1855 # ac_fn_c_try_cpp LINENO
1856 # ----------------------
1857 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_cpp conftest.$ac_ext"
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } >/dev/null && {
1877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1893 # -------------------------------------------------------
1894 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1895 # the include files in INCLUDES and setting the cache variable VAR
1897 ac_fn_c_check_header_mongrel ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1910 # Is the header compilable?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1912 $as_echo_n "checking $2 usability... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 ac_header_compiler=yes
1921 ac_header_compiler=no
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1925 $as_echo "$ac_header_compiler" >&6; }
1927 # Is the header present?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1929 $as_echo_n "checking $2 presence... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 if ac_fn_c_try_cpp "$LINENO"; then :
1935 ac_header_preproc=yes
1937 ac_header_preproc=no
1939 rm -f conftest.err conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1941 $as_echo "$ac_header_preproc" >&6; }
1943 # So? What about this header?
1944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1947 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1953 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1955 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1957 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1959 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1969 eval "$3=\$ac_header_compiler"
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 } # ac_fn_c_check_header_mongrel
1979 # ac_fn_c_try_run LINENO
1980 # ----------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1982 # that executables *can* be run.
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if { { ac_try="$ac_link"
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>&5
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1997 { { case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_try") 2>&5
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; }; }; then :
2009 $as_echo "$as_me: program exited with status $ac_status" >&5
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 ac_retval=$ac_status
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2022 # -------------------------------------------------------
2023 # Tests whether HEADER exists and can be compiled using the include files in
2024 # INCLUDES, setting the cache variable VAR accordingly.
2025 ac_fn_c_check_header_compile ()
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2038 if ac_fn_c_try_compile "$LINENO"; then :
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 } # ac_fn_c_check_header_compile
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 ac_fn_c_compute_int ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2075 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_hi=$ac_mid; break
2094 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2095 if test $ac_lo -le $ac_mid; then
2099 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) < 0)];
2117 if ac_fn_c_try_compile "$LINENO"; then :
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2126 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_lo=$ac_mid; break
2136 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2137 if test $ac_mid -le $ac_hi; then
2141 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 # Binary search between lo and hi bounds.
2152 while test "x$ac_lo" != "x$ac_hi"; do
2153 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2167 if ac_fn_c_try_compile "$LINENO"; then :
2170 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2190 FILE *f = fopen ("conftest.val", "w");
2195 long int i = longval ();
2198 fprintf (f, "%ld", i);
2202 unsigned long int i = ulongval ();
2205 fprintf (f, "%lu", i);
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2215 if ac_fn_c_try_run "$LINENO"; then :
2216 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2221 conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 } # ac_fn_c_compute_int
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2268 if ac_fn_c_try_compile "$LINENO"; then :
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282 } # ac_fn_c_check_type
2284 # ac_fn_c_find_intX_t LINENO BITS VAR
2285 # -----------------------------------
2286 # Finds a signed integer type with width BITS, setting cache variable VAR
2288 ac_fn_c_find_intX_t ()
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2292 $as_echo_n "checking for int$2_t... " >&6; }
2293 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2294 $as_echo_n "(cached) " >&6
2297 for ac_type in int$2_t 'int' 'long int' \
2298 'long long int' 'short int' 'signed char'; do
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2301 $ac_includes_default
2305 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $ac_includes_default
2319 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2320 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2327 if ac_fn_c_try_compile "$LINENO"; then :
2334 eval "$3=\$ac_type" ;;
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 if test "x$as_val" = x""no; then :
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353 } # ac_fn_c_find_intX_t
2355 # ac_fn_c_try_link LINENO
2356 # -----------------------
2357 # Try to link conftest.$ac_ext, and return whether this succeeded.
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 rm -f conftest.$ac_objext conftest$ac_exeext
2362 if { { ac_try="$ac_link"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_link") 2>conftest.err
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_c_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest$ac_exeext && {
2381 test "$cross_compiling" = yes ||
2382 $as_test_x conftest$ac_exeext
2386 $as_echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2391 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2392 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2393 # interfere with the next link command; also delete a directory that is
2394 # left behind by Apple's compiler. We do this before executing the actions.
2395 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 } # ac_fn_c_try_link
2401 # ac_fn_c_find_uintX_t LINENO BITS VAR
2402 # ------------------------------------
2403 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2405 ac_fn_c_find_uintX_t ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2409 $as_echo_n "checking for uint$2_t... " >&6; }
2410 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2411 $as_echo_n "(cached) " >&6
2414 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2415 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $ac_includes_default
2422 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2429 if ac_fn_c_try_compile "$LINENO"; then :
2434 eval "$3=\$ac_type" ;;
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 if test "x$as_val" = x""no; then :
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 } # ac_fn_c_find_uintX_t
2453 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2454 # ----------------------------------------------
2455 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2456 ac_fn_c_check_header_preproc ()
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 $as_echo_n "(cached) " >&6
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2468 if ac_fn_c_try_cpp "$LINENO"; then :
2473 rm -f conftest.err conftest.$ac_ext
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2480 } # ac_fn_c_check_header_preproc
2482 # ac_fn_cxx_try_cpp LINENO
2483 # ------------------------
2484 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2485 ac_fn_cxx_try_cpp ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if { { ac_try="$ac_cpp conftest.$ac_ext"
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494 $as_echo "$ac_try_echo"; } >&5
2495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2497 if test -s conftest.err; then
2498 grep -v '^ *+' conftest.err >conftest.er1
2499 cat conftest.er1 >&5
2500 mv -f conftest.er1 conftest.err
2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503 test $ac_status = 0; } >/dev/null && {
2504 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2505 test ! -s conftest.err
2509 $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2517 } # ac_fn_cxx_try_cpp
2519 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2520 # ------------------------------------------------
2521 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2522 ac_fn_cxx_check_header_preproc ()
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2534 if ac_fn_cxx_try_cpp "$LINENO"; then :
2539 rm -f conftest.err conftest.$ac_ext
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546 } # ac_fn_cxx_check_header_preproc
2548 # ac_fn_c_check_func LINENO FUNC VAR
2549 # ----------------------------------
2550 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2551 ac_fn_c_check_func ()
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557 $as_echo_n "(cached) " >&6
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2561 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2563 #define $2 innocuous_$2
2565 /* System header to define __stub macros and hopefully few prototypes,
2566 which can conflict with char $2 (); below.
2567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2568 <limits.h> exists even on freestanding compilers. */
2571 # include <limits.h>
2573 # include <assert.h>
2578 /* Override any GCC internal prototype to avoid an error.
2579 Use char because int might match the return type of a GCC
2580 builtin and then its argument prototype would still apply. */
2585 /* The GNU C library defines this for functions which it implements
2586 to always fail with ENOSYS. Some functions are actually named
2587 something starting with __ and the normal name is an alias. */
2588 #if defined __stub_$2 || defined __stub___$2
2600 if ac_fn_c_try_link "$LINENO"; then :
2605 rm -f core conftest.err conftest.$ac_objext \
2606 conftest$ac_exeext conftest.$ac_ext
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2610 $as_echo "$ac_res" >&6; }
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613 } # ac_fn_c_check_func
2615 # ac_fn_cxx_try_link LINENO
2616 # -------------------------
2617 # Try to link conftest.$ac_ext, and return whether this succeeded.
2618 ac_fn_cxx_try_link ()
2620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2621 rm -f conftest.$ac_objext conftest$ac_exeext
2622 if { { ac_try="$ac_link"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link") 2>conftest.err
2631 if test -s conftest.err; then
2632 grep -v '^ *+' conftest.err >conftest.er1
2633 cat conftest.er1 >&5
2634 mv -f conftest.er1 conftest.err
2636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2637 test $ac_status = 0; } && {
2638 test -z "$ac_cxx_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest$ac_exeext && {
2641 test "$cross_compiling" = yes ||
2642 $as_test_x conftest$ac_exeext
2646 $as_echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2653 # interfere with the next link command; also delete a directory that is
2654 # left behind by Apple's compiler. We do this before executing the actions.
2655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 } # ac_fn_cxx_try_link
2660 cat >config.log <<_ACEOF
2661 This file contains any messages produced by compilers while
2662 running configure, to aid debugging if configure makes a mistake.
2664 It was created by $as_me, which was
2665 generated by GNU Autoconf 2.64. Invocation command line was
2677 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2678 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2679 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2680 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2681 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2683 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2684 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2686 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2687 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2688 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2689 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2690 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2691 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2692 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir=.
2701 $as_echo "PATH: $as_dir"
2717 # Keep a trace of the command line.
2718 # Strip out --no-create and --no-recursion so they do not pile up.
2719 # Strip out --silent because we don't want to record it for future runs.
2720 # Also quote any args containing shell meta-characters.
2721 # Make two passes to allow for proper duplicate-argument suppression.
2725 ac_must_keep_next=false
2731 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2733 | -silent | --silent | --silen | --sile | --sil)
2736 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2739 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2741 as_fn_append ac_configure_args1 " '$ac_arg'"
2742 if test $ac_must_keep_next = true; then
2743 ac_must_keep_next=false # Got value, back to normal.
2746 *=* | --config-cache | -C | -disable-* | --disable-* \
2747 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2748 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2749 | -with-* | --with-* | -without-* | --without-* | --x)
2750 case "$ac_configure_args0 " in
2751 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2754 -* ) ac_must_keep_next=true ;;
2757 as_fn_append ac_configure_args " '$ac_arg'"
2762 { ac_configure_args0=; unset ac_configure_args0;}
2763 { ac_configure_args1=; unset ac_configure_args1;}
2765 # When interrupted or exit'd, cleanup temporary files, and complete
2766 # config.log. We remove comments because anyway the quotes in there
2767 # would cause problems or look ugly.
2768 # WARNING: Use '\'' to represent an apostrophe within the trap.
2769 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2770 trap 'exit_status=$?
2771 # Save into config.log some information that might help in debugging.
2776 ## ---------------- ##
2777 ## Cache variables. ##
2778 ## ---------------- ##
2781 # The following way of writing the cache mishandles newlines in values,
2783 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2784 eval ac_val=\$$ac_var
2788 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2792 _ | IFS | as_nl) ;; #(
2793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2794 *) { eval $ac_var=; unset $ac_var;} ;;
2799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2800 *${as_nl}ac_space=\ *)
2802 "s/'\''/'\''\\\\'\'''\''/g;
2803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2814 ## ----------------- ##
2815 ## Output variables. ##
2816 ## ----------------- ##
2819 for ac_var in $ac_subst_vars
2821 eval ac_val=\$$ac_var
2823 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2825 $as_echo "$ac_var='\''$ac_val'\''"
2829 if test -n "$ac_subst_files"; then
2831 ## ------------------- ##
2832 ## File substitutions. ##
2833 ## ------------------- ##
2836 for ac_var in $ac_subst_files
2838 eval ac_val=\$$ac_var
2840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2842 $as_echo "$ac_var='\''$ac_val'\''"
2847 if test -s confdefs.h; then
2857 test "$ac_signal" != 0 &&
2858 $as_echo "$as_me: caught signal $ac_signal"
2859 $as_echo "$as_me: exit $exit_status"
2861 rm -f core *.core core.conftest.* &&
2862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2865 for ac_signal in 1 2 13 15; do
2866 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2871 rm -f -r conftest* confdefs.h
2873 $as_echo "/* confdefs.h */" > confdefs.h
2875 # Predefined preprocessor variables.
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_NAME "$PACKAGE_NAME"
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_STRING "$PACKAGE_STRING"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_URL "$PACKAGE_URL"
2902 # Let the site file select an alternate cache file if it wants to.
2903 # Prefer an explicitly selected file to automatically selected ones.
2906 if test -n "$CONFIG_SITE"; then
2907 ac_site_file1=$CONFIG_SITE
2908 elif test "x$prefix" != xNONE; then
2909 ac_site_file1=$prefix/share/config.site
2910 ac_site_file2=$prefix/etc/config.site
2912 ac_site_file1=$ac_default_prefix/share/config.site
2913 ac_site_file2=$ac_default_prefix/etc/config.site
2915 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2917 test "x$ac_site_file" = xNONE && continue
2918 if test -r "$ac_site_file"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2920 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2921 sed 's/^/| /' "$ac_site_file" >&5
2926 if test -r "$cache_file"; then
2927 # Some versions of bash will fail to source /dev/null (special
2928 # files actually), so we avoid doing that.
2929 if test -f "$cache_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2931 $as_echo "$as_me: loading cache $cache_file" >&6;}
2933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2934 *) . "./$cache_file";;
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2939 $as_echo "$as_me: creating cache $cache_file" >&6;}
2943 # Check that the precious variables saved in the cache have kept the same
2945 ac_cache_corrupted=false
2946 for ac_var in $ac_precious_vars; do
2947 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2948 eval ac_new_set=\$ac_env_${ac_var}_set
2949 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2950 eval ac_new_val=\$ac_env_${ac_var}_value
2951 case $ac_old_set,$ac_new_set in
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2958 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2959 ac_cache_corrupted=: ;;
2962 if test "x$ac_old_val" != "x$ac_new_val"; then
2963 # differences in whitespace do not lead to failure.
2964 ac_old_val_w=`echo x $ac_old_val`
2965 ac_new_val_w=`echo x $ac_new_val`
2966 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2968 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2969 ac_cache_corrupted=:
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2972 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2973 eval $ac_var=\$ac_old_val
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2976 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2978 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2981 # Pass precious variables to config.status.
2982 if test "$ac_new_set" = set; then
2984 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2985 *) ac_arg=$ac_var=$ac_new_val ;;
2987 case " $ac_configure_args " in
2988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2989 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2993 if $ac_cache_corrupted; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2997 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2998 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3000 ## -------------------- ##
3001 ## Main body of script. ##
3002 ## -------------------- ##
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3018 gcc_version=`cat $srcdir/BASE-VER`
3020 # Determine the host, build, and target systems
3022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3023 for ac_t in install-sh install.sh shtool; do
3024 if test -f "$ac_dir/$ac_t"; then
3026 ac_install_sh="$ac_aux_dir/$ac_t -c"
3031 if test -z "$ac_aux_dir"; then
3032 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3035 # These three variables are undocumented and unsupported,
3036 # and are intended to be withdrawn in a future Autoconf release.
3037 # They can cause serious problems if a builder's source tree is in a directory
3038 # whose full name contains unusual characters.
3039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3044 # Make sure we can run config.sub.
3045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3046 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3049 $as_echo_n "checking build system type... " >&6; }
3050 if test "${ac_cv_build+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3053 ac_build_alias=$build_alias
3054 test "x$ac_build_alias" = x &&
3055 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3056 test "x$ac_build_alias" = x &&
3057 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3059 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3063 $as_echo "$ac_cv_build" >&6; }
3064 case $ac_cv_build in
3066 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3069 ac_save_IFS=$IFS; IFS='-'
3075 # Remember, the first character of IFS is used to create $*,
3076 # except with old shells:
3079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3083 $as_echo_n "checking host system type... " >&6; }
3084 if test "${ac_cv_host+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
3087 if test "x$host_alias" = x; then
3088 ac_cv_host=$ac_cv_build
3090 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3091 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3096 $as_echo "$ac_cv_host" >&6; }
3099 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3102 ac_save_IFS=$IFS; IFS='-'
3108 # Remember, the first character of IFS is used to create $*,
3109 # except with old shells:
3112 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3116 $as_echo_n "checking target system type... " >&6; }
3117 if test "${ac_cv_target+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3120 if test "x$target_alias" = x; then
3121 ac_cv_target=$ac_cv_host
3123 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3124 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3129 $as_echo "$ac_cv_target" >&6; }
3130 case $ac_cv_target in
3132 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3134 target=$ac_cv_target
3135 ac_save_IFS=$IFS; IFS='-'
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3145 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3148 # The aliases save the names the user supplied, while $host etc.
3149 # will get canonicalized.
3150 test -n "$target_alias" &&
3151 test "$program_prefix$program_suffix$program_transform_name" = \
3153 program_prefix=${target_alias}-
3155 # Determine the noncanonical target name, for directory use.
3156 case ${build_alias} in
3157 "") build_noncanonical=${build} ;;
3158 *) build_noncanonical=${build_alias} ;;
3161 case ${host_alias} in
3162 "") host_noncanonical=${build_noncanonical} ;;
3163 *) host_noncanonical=${host_alias} ;;
3166 case ${target_alias} in
3167 "") target_noncanonical=${host_noncanonical} ;;
3168 *) target_noncanonical=${target_alias} ;;
3174 # Determine the target- and build-specific subdirectories
3176 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3177 # have matching libraries, they should use host libraries: Makefile.tpl
3178 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3179 # However, they still use the build modules, because the corresponding
3180 # host modules (e.g. bison) are only built for the host when bootstrap
3182 # - build_subdir is where we find build modules, and never changes.
3183 # - build_libsubdir is where we find build libraries, and can be overridden.
3185 # Prefix 'build-' so this never conflicts with target_subdir.
3186 build_subdir="build-${build_noncanonical}"
3188 # Check whether --with-build-libsubdir was given.
3189 if test "${with_build_libsubdir+set}" = set; then :
3190 withval=$with_build_libsubdir; build_libsubdir="$withval"
3192 build_libsubdir="$build_subdir"
3195 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3196 if ( test $srcdir = . && test -d gcc ) \
3197 || test -d $srcdir/../host-${host_noncanonical}; then
3198 host_subdir="host-${host_noncanonical}"
3203 target_subdir=${target_noncanonical}
3206 # Set program_transform_name
3207 test "$program_prefix" != NONE &&
3208 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3209 # Use a double $ so make ignores it.
3210 test "$program_suffix" != NONE &&
3211 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3212 # Double any \ or $.
3213 # By default was `s,x,x', remove it if useless.
3214 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3215 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3218 # Check for bogus environment variables.
3219 # Test if LIBRARY_PATH contains the notation for the current directory
3220 # since this would lead to problems installing/building glibc.
3221 # LIBRARY_PATH contains the current directory if one of the following
3223 # - one of the terminals (":" and ";") is the first or last sign
3224 # - two terminals occur directly after each other
3225 # - the path contains an element with a dot in it
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3227 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3228 case ${LIBRARY_PATH} in
3229 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3230 library_path_setting="contains current directory"
3233 library_path_setting="ok"
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3237 $as_echo "$library_path_setting" >&6; }
3238 if test "$library_path_setting" != "ok"; then
3240 *** LIBRARY_PATH shouldn't contain the current directory when
3241 *** building gcc. Please change the environment variable
3242 *** and run configure again." "$LINENO" 5
3245 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3246 # since this would lead to problems installing/building glibc.
3247 # GCC_EXEC_PREFIX contains the current directory if one of the following
3249 # - one of the terminals (":" and ";") is the first or last sign
3250 # - two terminals occur directly after each other
3251 # - the path contains an element with a dot in it
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3253 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3254 case ${GCC_EXEC_PREFIX} in
3255 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3256 gcc_exec_prefix_setting="contains current directory"
3259 gcc_exec_prefix_setting="ok"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3263 $as_echo "$gcc_exec_prefix_setting" >&6; }
3264 if test "$gcc_exec_prefix_setting" != "ok"; then
3266 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3267 *** building gcc. Please change the environment variable
3268 *** and run configure again." "$LINENO" 5
3275 # Specify the local prefix
3278 # Check whether --with-local-prefix was given.
3279 if test "${with_local_prefix+set}" = set; then :
3280 withval=$with_local_prefix; case "${withval}" in
3281 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3283 *) local_prefix=$with_local_prefix ;;
3288 # Default local prefix if it is empty
3289 if test x$local_prefix = x; then
3290 local_prefix=/usr/local
3293 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3294 # passed in by the toplevel make and thus we'd get different behavior
3295 # depending on where we built the sources.
3296 gcc_gxx_include_dir=
3297 # Specify the g++ header file directory
3299 # Check whether --with-gxx-include-dir was given.
3300 if test "${with_gxx_include_dir+set}" = set; then :
3301 withval=$with_gxx_include_dir; case "${withval}" in
3302 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3304 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3309 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3310 if test x${gcc_gxx_include_dir} = x; then
3311 if test x${enable_version_specific_runtime_libs} = xyes; then
3312 gcc_gxx_include_dir='${libsubdir}/include/c++'
3314 libstdcxx_incdir='include/c++/$(version)'
3315 if test x$host != x$target; then
3316 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3318 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3322 gcc_gxx_include_dir_add_sysroot=0
3323 if test "${with_sysroot+set}" = set; then
3324 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3325 if test "${gcc_gxx_without_sysroot}"; then
3326 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3327 gcc_gxx_include_dir_add_sysroot=1
3332 # Check whether --with-cpp_install_dir was given.
3333 if test "${with_cpp_install_dir+set}" = set; then :
3334 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3335 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3336 elif test x$withval != xno; then
3337 cpp_install_dir=$withval
3342 # We would like to our source tree to be readonly. However when releases or
3343 # pre-releases are generated, the flex/bison generated files as well as the
3344 # various formats of manuals need to be included along with the rest of the
3345 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3349 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3350 # Check whether --enable-generated-files-in-srcdir was given.
3351 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3352 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3354 generated_files_in_srcdir=no
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3359 $as_echo "$generated_files_in_srcdir" >&6; }
3361 if test "$generated_files_in_srcdir" = "yes"; then
3368 # -------------------
3369 # Find default linker
3370 # -------------------
3374 # Check whether --with-gnu-ld was given.
3375 if test "${with_gnu_ld+set}" = set; then :
3376 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3382 # With pre-defined ld
3384 # Check whether --with-ld was given.
3385 if test "${with_ld+set}" = set; then :
3386 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3389 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3390 if test ! -x "$DEFAULT_LINKER"; then
3391 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3392 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3396 cat >>confdefs.h <<_ACEOF
3397 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3403 $as_echo_n "checking whether a default linker was specified... " >&6; }
3404 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3405 if test x"$gnu_ld_flag" = x"no"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3417 # With demangler in GNU ld
3419 # Check whether --with-demangler-in-ld was given.
3420 if test "${with_demangler_in_ld+set}" = set; then :
3421 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3427 # ----------------------
3428 # Find default assembler
3429 # ----------------------
3433 # Check whether --with-gnu-as was given.
3434 if test "${with_gnu_as+set}" = set; then :
3435 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3442 # Check whether --with-as was given.
3443 if test "${with_as+set}" = set; then :
3444 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3447 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3448 if test ! -x "$DEFAULT_ASSEMBLER"; then
3449 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3450 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3454 cat >>confdefs.h <<_ACEOF
3455 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
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 # Determine PICFLAG for target gnatlib.
4883 # PIC is the default on some targets or must not be used.
4885 # PIC is the default on this platform
4886 # Common symbols not allowed in MH_DYLIB files
4887 PICFLAG_FOR_TARGET=-fno-common
4890 # PIC is the default.
4893 # PIC is the default for 64-bit PA HP-UX.
4895 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4897 i[34567]86-*-interix[3-9]*)
4898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4899 # Instead, we relocate shared libraries at runtime.
4901 i[34567]86-*-nto-qnx*)
4902 # QNX uses GNU C++, but need to define -shared option too, otherwise
4904 PICFLAG_FOR_TARGET='-fPIC -shared'
4906 i[34567]86-pc-msdosdjgpp*)
4907 # DJGPP does not support shared libraries at all.
4910 # On IA64 HP-UX, PIC is the default but the pic flag
4911 # sets the default TLS model and affects inlining.
4912 PICFLAG_FOR_TARGET=-fPIC
4915 # PIC is the default.
4917 rs6000-ibm-aix* | powerpc-ibm-aix*)
4918 # All AIX code is PIC.
4921 # Some targets support both -fPIC and -fpic, but prefer the latter.
4923 i[34567]86-*-* | x86_64-*-*)
4924 PICFLAG_FOR_TARGET=-fpic
4927 PICFLAG_FOR_TARGET=-fpic
4929 # FIXME: Override -fPIC default in libgcc only?
4930 sh-*-linux* | sh[2346lbe]*-*-linux*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 # FIXME: Simplify to sh*-*-netbsd*?
4934 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4935 sh64-*-netbsd* | sh64l*-*-netbsd*)
4936 PICFLAG_FOR_TARGET=-fpic
4938 # Default to -fPIC unless specified otherwise.
4940 PICFLAG_FOR_TARGET=-fPIC
4944 # If the user explicitly uses -fpic/-fPIC, keep that.
4945 case "${CFLAGS_FOR_TARGET}" in
4947 PICFLAG_FOR_TARGET=-fpic
4950 PICFLAG_FOR_TARGET=-fPIC
4956 # -------------------------
4957 # Check C compiler features
4958 # -------------------------
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4968 # On Suns, sometimes $CPP names a directory.
4969 if test -n "$CPP" && test -d "$CPP"; then
4972 if test -z "$CPP"; then
4973 if test "${ac_cv_prog_CPP+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 # Double quotes because CPP needs to be expanded
4977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980 for ac_c_preproc_warn_flag in '' yes
4982 # Use a header file that comes with gcc, so configuring glibc
4983 # with a fresh cross-compiler works.
4984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 # <limits.h> exists even on freestanding compilers.
4986 # On the NeXT, cc -E runs the code through the compiler's parser,
4987 # not just through cpp. "Syntax error" is here to catch this case.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4991 # include <limits.h>
4993 # include <assert.h>
4997 if ac_fn_c_try_cpp "$LINENO"; then :
5000 # Broken: fails on valid input.
5003 rm -f conftest.err conftest.$ac_ext
5005 # OK, works on sane cases. Now check whether nonexistent headers
5006 # can be detected and how.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <ac_nonexistent.h>
5011 if ac_fn_c_try_cpp "$LINENO"; then :
5012 # Broken: success on invalid input.
5015 # Passes both tests.
5019 rm -f conftest.err conftest.$ac_ext
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then :
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5037 $as_echo "$CPP" >&6; }
5039 for ac_c_preproc_warn_flag in '' yes
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5050 # include <limits.h>
5052 # include <assert.h>
5056 if ac_fn_c_try_cpp "$LINENO"; then :
5059 # Broken: fails on valid input.
5062 rm -f conftest.err conftest.$ac_ext
5064 # OK, works on sane cases. Now check whether nonexistent headers
5065 # can be detected and how.
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 #include <ac_nonexistent.h>
5070 if ac_fn_c_try_cpp "$LINENO"; then :
5071 # Broken: success on invalid input.
5074 # Passes both tests.
5078 rm -f conftest.err conftest.$ac_ext
5081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082 rm -f conftest.err conftest.$ac_ext
5083 if $ac_preproc_ok; then :
5086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5088 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5089 See \`config.log' for more details." "$LINENO" 5; }
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5101 if test "${ac_cv_path_GREP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -z "$GREP"; then
5105 ac_path_GREP_found=false
5106 # Loop through the user's path and test for each of PROGNAME-LIST
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 test -z "$as_dir" && as_dir=.
5112 for ac_prog in grep ggrep; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5115 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117 # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in
5120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 $as_echo_n 0123456789 >"conftest.in"
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
5129 $as_echo 'GREP' >> "conftest.nl"
5130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132 as_fn_arith $ac_count + 1 && ac_count=$as_val
5133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_GREP="$ac_path_GREP"
5136 ac_path_GREP_max=$ac_count
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 $ac_path_GREP_found && break 3
5149 if test -z "$ac_cv_path_GREP"; then
5150 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153 ac_cv_path_GREP=$GREP
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5158 $as_echo "$ac_cv_path_GREP" >&6; }
5159 GREP="$ac_cv_path_GREP"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5163 $as_echo_n "checking for egrep... " >&6; }
5164 if test "${ac_cv_path_EGREP+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5168 then ac_cv_path_EGREP="$GREP -E"
5170 if test -z "$EGREP"; then
5171 ac_path_EGREP_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in egrep; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5181 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5182 # Check for GNU ac_path_EGREP and select it if it is found.
5183 # Check for GNU $ac_path_EGREP
5184 case `"$ac_path_EGREP" --version 2>&1` in
5186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189 $as_echo_n 0123456789 >"conftest.in"
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo 'EGREP' >> "conftest.nl"
5196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_EGREP="$ac_path_EGREP"
5202 ac_path_EGREP_max=$ac_count
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 $ac_path_EGREP_found && break 3
5215 if test -z "$ac_cv_path_EGREP"; then
5216 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219 ac_cv_path_EGREP=$EGREP
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5225 $as_echo "$ac_cv_path_EGREP" >&6; }
5226 EGREP="$ac_cv_path_EGREP"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5230 $as_echo_n "checking for ANSI C header files... " >&6; }
5231 if test "${ac_cv_header_stdc+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 ac_cv_header_stdc=yes
5252 ac_cv_header_stdc=no
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 if test $ac_cv_header_stdc = yes; then
5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264 $EGREP "memchr" >/dev/null 2>&1; then :
5267 ac_cv_header_stdc=no
5273 if test $ac_cv_header_stdc = yes; then
5274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "free" >/dev/null 2>&1; then :
5284 ac_cv_header_stdc=no
5290 if test $ac_cv_header_stdc = yes; then
5291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292 if test "$cross_compiling" = yes; then :
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5299 #if ((' ' & 0x0FF) == 0x020)
5300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 # define ISLOWER(c) \
5304 (('a' <= (c) && (c) <= 'i') \
5305 || ('j' <= (c) && (c) <= 'r') \
5306 || ('s' <= (c) && (c) <= 'z'))
5307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5315 for (i = 0; i < 256; i++)
5316 if (XOR (islower (i), ISLOWER (i))
5317 || toupper (i) != TOUPPER (i))
5322 if ac_fn_c_try_run "$LINENO"; then :
5325 ac_cv_header_stdc=no
5327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5328 conftest.$ac_objext conftest.beam conftest.$ac_ext
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5334 $as_echo "$ac_cv_header_stdc" >&6; }
5335 if test $ac_cv_header_stdc = yes; then
5337 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5343 inttypes.h stdint.h unistd.h
5345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5348 eval as_val=\$$as_ac_Header
5349 if test "x$as_val" = x""yes; then :
5350 cat >>confdefs.h <<_ACEOF
5351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5368 if test "$MINIX" = yes; then
5370 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5373 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5376 $as_echo "#define _MINIX 1" >>confdefs.h
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5382 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5383 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 # define __EXTENSIONS__ 1
5390 $ac_includes_default
5399 if ac_fn_c_try_compile "$LINENO"; then :
5400 ac_cv_safe_to_define___extensions__=yes
5402 ac_cv_safe_to_define___extensions__=no
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5407 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5408 test $ac_cv_safe_to_define___extensions__ = yes &&
5409 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5411 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5413 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5415 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5417 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5426 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5427 # On Suns, sometimes $CPP names a directory.
5428 if test -n "$CPP" && test -d "$CPP"; then
5431 if test -z "$CPP"; then
5432 if test "${ac_cv_prog_CPP+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5435 # Double quotes because CPP needs to be expanded
5436 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5439 for ac_c_preproc_warn_flag in '' yes
5441 # Use a header file that comes with gcc, so configuring glibc
5442 # with a fresh cross-compiler works.
5443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5444 # <limits.h> exists even on freestanding compilers.
5445 # On the NeXT, cc -E runs the code through the compiler's parser,
5446 # not just through cpp. "Syntax error" is here to catch this case.
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5450 # include <limits.h>
5452 # include <assert.h>
5456 if ac_fn_c_try_cpp "$LINENO"; then :
5459 # Broken: fails on valid input.
5462 rm -f conftest.err conftest.$ac_ext
5464 # OK, works on sane cases. Now check whether nonexistent headers
5465 # can be detected and how.
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <ac_nonexistent.h>
5470 if ac_fn_c_try_cpp "$LINENO"; then :
5471 # Broken: success on invalid input.
5474 # Passes both tests.
5478 rm -f conftest.err conftest.$ac_ext
5481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5482 rm -f conftest.err conftest.$ac_ext
5483 if $ac_preproc_ok; then :
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5496 $as_echo "$CPP" >&6; }
5498 for ac_c_preproc_warn_flag in '' yes
5500 # Use a header file that comes with gcc, so configuring glibc
5501 # with a fresh cross-compiler works.
5502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503 # <limits.h> exists even on freestanding compilers.
5504 # On the NeXT, cc -E runs the code through the compiler's parser,
5505 # not just through cpp. "Syntax error" is here to catch this case.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5509 # include <limits.h>
5511 # include <assert.h>
5515 if ac_fn_c_try_cpp "$LINENO"; then :
5518 # Broken: fails on valid input.
5521 rm -f conftest.err conftest.$ac_ext
5523 # OK, works on sane cases. Now check whether nonexistent headers
5524 # can be detected and how.
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 #include <ac_nonexistent.h>
5529 if ac_fn_c_try_cpp "$LINENO"; then :
5530 # Broken: success on invalid input.
5533 # Passes both tests.
5537 rm -f conftest.err conftest.$ac_ext
5540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5541 rm -f conftest.err conftest.$ac_ext
5542 if $ac_preproc_ok; then :
5545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5547 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5548 See \`config.log' for more details." "$LINENO" 5; }
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5558 $as_echo_n "checking for inline... " >&6; }
5559 if test "${ac_cv_c_inline+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5563 for ac_kw in inline __inline__ __inline; do
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5568 static $ac_kw foo_t static_foo () {return 0; }
5569 $ac_kw foo_t foo () {return 0; }
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_c_inline=$ac_kw
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 test "$ac_cv_c_inline" != no && break
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5582 $as_echo "$ac_cv_c_inline" >&6; }
5584 case $ac_cv_c_inline in
5587 case $ac_cv_c_inline in
5589 *) ac_val=$ac_cv_c_inline;;
5591 cat >>confdefs.h <<_ACEOF
5593 #define inline $ac_val
5600 # Check whether --enable-largefile was given.
5601 if test "${enable_largefile+set}" = set; then :
5602 enableval=$enable_largefile;
5605 if test "$enable_largefile" != no; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5608 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5609 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5612 ac_cv_sys_largefile_CC=no
5613 if test "$GCC" != yes; then
5616 # IRIX 6.2 and later do not support large files by default,
5617 # so use the C compiler's -n32 option if that helps.
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <sys/types.h>
5621 /* Check that off_t can represent 2**63 - 1 correctly.
5622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5623 since some C++ compilers masquerading as C compilers
5624 incorrectly reject 9223372036854775807. */
5625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5627 && LARGE_OFF_T % 2147483647 == 1)
5637 if ac_fn_c_try_compile "$LINENO"; then :
5640 rm -f core conftest.err conftest.$ac_objext
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 ac_cv_sys_largefile_CC=' -n32'; break
5645 rm -f core conftest.err conftest.$ac_objext
5649 rm -f conftest.$ac_ext
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5653 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5654 if test "$ac_cv_sys_largefile_CC" != no; then
5655 CC=$CC$ac_cv_sys_largefile_CC
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5659 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5660 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5661 $as_echo_n "(cached) " >&6
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #include <sys/types.h>
5667 /* Check that off_t can represent 2**63 - 1 correctly.
5668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5669 since some C++ compilers masquerading as C compilers
5670 incorrectly reject 9223372036854775807. */
5671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5673 && LARGE_OFF_T % 2147483647 == 1)
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684 ac_cv_sys_file_offset_bits=no; break
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #define _FILE_OFFSET_BITS 64
5690 #include <sys/types.h>
5691 /* Check that off_t can represent 2**63 - 1 correctly.
5692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5693 since some C++ compilers masquerading as C compilers
5694 incorrectly reject 9223372036854775807. */
5695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5697 && LARGE_OFF_T % 2147483647 == 1)
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_sys_file_offset_bits=64; break
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 ac_cv_sys_file_offset_bits=unknown
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5716 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5717 case $ac_cv_sys_file_offset_bits in #(
5720 cat >>confdefs.h <<_ACEOF
5721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5726 if test $ac_cv_sys_file_offset_bits = unknown; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5728 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5729 if test "${ac_cv_sys_large_files+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <sys/types.h>
5736 /* Check that off_t can represent 2**63 - 1 correctly.
5737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5738 since some C++ compilers masquerading as C compilers
5739 incorrectly reject 9223372036854775807. */
5740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5742 && LARGE_OFF_T % 2147483647 == 1)
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 ac_cv_sys_large_files=no; break
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #define _LARGE_FILES 1
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 ac_cv_sys_large_files=1; break
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cv_sys_large_files=unknown
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5785 $as_echo "$ac_cv_sys_large_files" >&6; }
5786 case $ac_cv_sys_large_files in #(
5789 cat >>confdefs.h <<_ACEOF
5790 #define _LARGE_FILES $ac_cv_sys_large_files
5799 # sizeof(char) is 1 by definition.
5800 # The cast to long int works around a bug in the HP C Compiler
5801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5803 # This bug is HP SR number 8606223364.
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5805 $as_echo_n "checking size of void *... " >&6; }
5806 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5809 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5812 if test "$ac_cv_type_void_p" = yes; then
5813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5815 { as_fn_set_status 77
5816 as_fn_error "cannot compute sizeof (void *)
5817 See \`config.log' for more details." "$LINENO" 5; }; }
5819 ac_cv_sizeof_void_p=0
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5825 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5829 cat >>confdefs.h <<_ACEOF
5830 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5834 # The cast to long int works around a bug in the HP C Compiler
5835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5837 # This bug is HP SR number 8606223364.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5839 $as_echo_n "checking size of short... " >&6; }
5840 if test "${ac_cv_sizeof_short+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5843 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5846 if test "$ac_cv_type_short" = yes; then
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 { as_fn_set_status 77
5850 as_fn_error "cannot compute sizeof (short)
5851 See \`config.log' for more details." "$LINENO" 5; }; }
5853 ac_cv_sizeof_short=0
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5859 $as_echo "$ac_cv_sizeof_short" >&6; }
5863 cat >>confdefs.h <<_ACEOF
5864 #define SIZEOF_SHORT $ac_cv_sizeof_short
5868 # The cast to long int works around a bug in the HP C Compiler
5869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5871 # This bug is HP SR number 8606223364.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5873 $as_echo_n "checking size of int... " >&6; }
5874 if test "${ac_cv_sizeof_int+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5880 if test "$ac_cv_type_int" = yes; then
5881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5883 { as_fn_set_status 77
5884 as_fn_error "cannot compute sizeof (int)
5885 See \`config.log' for more details." "$LINENO" 5; }; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5893 $as_echo "$ac_cv_sizeof_int" >&6; }
5897 cat >>confdefs.h <<_ACEOF
5898 #define SIZEOF_INT $ac_cv_sizeof_int
5902 # The cast to long int works around a bug in the HP C Compiler
5903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5905 # This bug is HP SR number 8606223364.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5907 $as_echo_n "checking size of long... " >&6; }
5908 if test "${ac_cv_sizeof_long+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5911 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5914 if test "$ac_cv_type_long" = yes; then
5915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5917 { as_fn_set_status 77
5918 as_fn_error "cannot compute sizeof (long)
5919 See \`config.log' for more details." "$LINENO" 5; }; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5927 $as_echo "$ac_cv_sizeof_long" >&6; }
5931 cat >>confdefs.h <<_ACEOF
5932 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5937 if test "x$ac_cv_type_long_long" = x""yes; then :
5939 cat >>confdefs.h <<_ACEOF
5940 #define HAVE_LONG_LONG 1
5943 # The cast to long int works around a bug in the HP C Compiler
5944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5946 # This bug is HP SR number 8606223364.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5948 $as_echo_n "checking size of long long... " >&6; }
5949 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5955 if test "$ac_cv_type_long_long" = yes; then
5956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5958 { as_fn_set_status 77
5959 as_fn_error "cannot compute sizeof (long long)
5960 See \`config.log' for more details." "$LINENO" 5; }; }
5962 ac_cv_sizeof_long_long=0
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5968 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5972 cat >>confdefs.h <<_ACEOF
5973 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5979 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5980 if test "x$ac_cv_type___int64" = x""yes; then :
5982 cat >>confdefs.h <<_ACEOF
5983 #define HAVE___INT64 1
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5991 $as_echo_n "checking size of __int64... " >&6; }
5992 if test "${ac_cv_sizeof___int64+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5998 if test "$ac_cv_type___int64" = yes; then
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status 77
6002 as_fn_error "cannot compute sizeof (__int64)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6005 ac_cv_sizeof___int64=0
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6011 $as_echo "$ac_cv_sizeof___int64" >&6; }
6015 cat >>confdefs.h <<_ACEOF
6016 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6022 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6023 case $ac_cv_c_int8_t in #(
6027 cat >>confdefs.h <<_ACEOF
6028 #define int8_t $ac_cv_c_int8_t
6033 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6034 case $ac_cv_c_int16_t in #(
6038 cat >>confdefs.h <<_ACEOF
6039 #define int16_t $ac_cv_c_int16_t
6044 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6045 case $ac_cv_c_int32_t in #(
6049 cat >>confdefs.h <<_ACEOF
6050 #define int32_t $ac_cv_c_int32_t
6055 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6056 case $ac_cv_c_int64_t in #(
6060 cat >>confdefs.h <<_ACEOF
6061 #define int64_t $ac_cv_c_int64_t
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6068 $as_echo_n "checking for long long int... " >&6; }
6069 if test "${ac_cv_type_long_long_int+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6075 /* For now, do not test the preprocessor; as of 2007 there are too many
6076 implementations with broken preprocessors. Perhaps this can
6077 be revisited in 2012. In the meantime, code should not expect
6078 #if to work with literals wider than 32 bits. */
6079 /* Test literals. */
6080 long long int ll = 9223372036854775807ll;
6081 long long int nll = -9223372036854775807LL;
6082 unsigned long long int ull = 18446744073709551615ULL;
6083 /* Test constant expressions. */
6084 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6086 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6092 /* Test availability of runtime routines for shift and division. */
6093 long long int llmax = 9223372036854775807ll;
6094 unsigned long long int ullmax = 18446744073709551615ull;
6095 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6096 | (llmax / ll) | (llmax % ll)
6097 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6098 | (ullmax / ull) | (ullmax % ull));
6104 if ac_fn_c_try_link "$LINENO"; then :
6105 if test "$cross_compiling" = yes; then :
6106 ac_cv_type_long_long_int=yes
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6113 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6114 # define LLONG_MAX (HALF - 1 + HALF)
6119 long long int n = 1;
6123 long long int m = n << i;
6126 if (LLONG_MAX / 2 < m)
6134 if ac_fn_c_try_run "$LINENO"; then :
6135 ac_cv_type_long_long_int=yes
6137 ac_cv_type_long_long_int=no
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6140 conftest.$ac_objext conftest.beam conftest.$ac_ext
6144 ac_cv_type_long_long_int=no
6146 rm -f core conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6150 $as_echo "$ac_cv_type_long_long_int" >&6; }
6151 if test $ac_cv_type_long_long_int = yes; then
6153 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6159 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6160 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6162 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6165 test $ac_cv_type_long_long_int = yes \
6166 && ac_type='long long int' \
6167 || ac_type='long int'
6169 cat >>confdefs.h <<_ACEOF
6170 #define intmax_t $ac_type
6177 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6178 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6180 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6183 for ac_type in 'int' 'long int' 'long long int'; do
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 $ac_includes_default
6190 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6197 if ac_fn_c_try_compile "$LINENO"; then :
6199 cat >>confdefs.h <<_ACEOF
6200 #define intptr_t $ac_type
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 test -z "$ac_type" && break
6211 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6212 case $ac_cv_c_uint8_t in #(
6216 $as_echo "#define _UINT8_T 1" >>confdefs.h
6219 cat >>confdefs.h <<_ACEOF
6220 #define uint8_t $ac_cv_c_uint8_t
6225 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6226 case $ac_cv_c_uint16_t in #(
6231 cat >>confdefs.h <<_ACEOF
6232 #define uint16_t $ac_cv_c_uint16_t
6237 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6238 case $ac_cv_c_uint32_t in #(
6242 $as_echo "#define _UINT32_T 1" >>confdefs.h
6245 cat >>confdefs.h <<_ACEOF
6246 #define uint32_t $ac_cv_c_uint32_t
6251 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6252 case $ac_cv_c_uint64_t in #(
6256 $as_echo "#define _UINT64_T 1" >>confdefs.h
6259 cat >>confdefs.h <<_ACEOF
6260 #define uint64_t $ac_cv_c_uint64_t
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6267 $as_echo_n "checking for unsigned long long int... " >&6; }
6268 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6274 /* For now, do not test the preprocessor; as of 2007 there are too many
6275 implementations with broken preprocessors. Perhaps this can
6276 be revisited in 2012. In the meantime, code should not expect
6277 #if to work with literals wider than 32 bits. */
6278 /* Test literals. */
6279 long long int ll = 9223372036854775807ll;
6280 long long int nll = -9223372036854775807LL;
6281 unsigned long long int ull = 18446744073709551615ULL;
6282 /* Test constant expressions. */
6283 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6285 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6291 /* Test availability of runtime routines for shift and division. */
6292 long long int llmax = 9223372036854775807ll;
6293 unsigned long long int ullmax = 18446744073709551615ull;
6294 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6295 | (llmax / ll) | (llmax % ll)
6296 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6297 | (ullmax / ull) | (ullmax % ull));
6303 if ac_fn_c_try_link "$LINENO"; then :
6304 ac_cv_type_unsigned_long_long_int=yes
6306 ac_cv_type_unsigned_long_long_int=no
6308 rm -f core conftest.err conftest.$ac_objext \
6309 conftest$ac_exeext conftest.$ac_ext
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6312 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6313 if test $ac_cv_type_unsigned_long_long_int = yes; then
6315 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6321 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6322 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6324 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6327 test $ac_cv_type_unsigned_long_long_int = yes \
6328 && ac_type='unsigned long long int' \
6329 || ac_type='unsigned long int'
6331 cat >>confdefs.h <<_ACEOF
6332 #define uintmax_t $ac_type
6339 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6340 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6342 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6345 for ac_type in 'unsigned int' 'unsigned long int' \
6346 'unsigned long long int'; do
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 $ac_includes_default
6353 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6360 if ac_fn_c_try_compile "$LINENO"; then :
6362 cat >>confdefs.h <<_ACEOF
6363 #define uintptr_t $ac_type
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 test -z "$ac_type" && break
6387 # ---------------------
6388 # Warnings and checking
6389 # ---------------------
6391 # Check $CC warning features (if it's GCC).
6392 # We want to use -pedantic, but we don't want warnings about
6395 # * overlong strings
6396 # * C++11 narrowing conversions in { }
6397 # So, we only use -pedantic if we can disable those warnings.
6400 save_CFLAGS="$CFLAGS"
6401 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6402 # Do the check with the no- prefix removed since gcc silently
6403 # accepts any -Wno-* option on purpose
6404 case $real_option in
6405 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6406 *) option=$real_option ;;
6408 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6411 $as_echo_n "checking whether $CC supports $option... " >&6; }
6412 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6413 $as_echo_n "(cached) " >&6
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6427 if ac_fn_c_try_compile "$LINENO"; then :
6428 eval "$as_acx_Woption=yes"
6430 eval "$as_acx_Woption=no"
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 eval ac_res=\$$as_acx_Woption
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6437 $as_echo "$ac_res" >&6; }
6438 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6439 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6442 CFLAGS="$save_CFLAGS"
6445 save_CFLAGS="$CFLAGS"
6446 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6447 # Do the check with the no- prefix removed since gcc silently
6448 # accepts any -Wno-* option on purpose
6449 case $real_option in
6450 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6451 *) option=$real_option ;;
6453 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6456 $as_echo_n "checking whether $CC supports $option... " >&6; }
6457 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6458 $as_echo_n "(cached) " >&6
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 eval "$as_acx_Woption=yes"
6475 eval "$as_acx_Woption=no"
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 eval ac_res=\$$as_acx_Woption
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6482 $as_echo "$ac_res" >&6; }
6483 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6484 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6487 CFLAGS="$save_CFLAGS"
6490 save_CFLAGS="$CFLAGS"
6491 for real_option in -Wmissing-format-attribute; do
6492 # Do the check with the no- prefix removed since gcc silently
6493 # accepts any -Wno-* option on purpose
6494 case $real_option in
6495 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6496 *) option=$real_option ;;
6498 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6501 $as_echo_n "checking whether $CC supports $option... " >&6; }
6502 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6503 $as_echo_n "(cached) " >&6
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518 eval "$as_acx_Woption=yes"
6520 eval "$as_acx_Woption=no"
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 eval ac_res=\$$as_acx_Woption
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6527 $as_echo "$ac_res" >&6; }
6528 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6529 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6532 CFLAGS="$save_CFLAGS"
6535 save_CFLAGS="$CFLAGS"
6536 for real_option in -Wold-style-definition -Wc++-compat; do
6537 # Do the check with the no- prefix removed since gcc silently
6538 # accepts any -Wno-* option on purpose
6539 case $real_option in
6540 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6541 *) option=$real_option ;;
6543 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6546 $as_echo_n "checking whether $CC supports $option... " >&6; }
6547 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6548 $as_echo_n "(cached) " >&6
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 eval "$as_acx_Woption=yes"
6565 eval "$as_acx_Woption=no"
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 eval ac_res=\$$as_acx_Woption
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6572 $as_echo "$ac_res" >&6; }
6573 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6574 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6577 CFLAGS="$save_CFLAGS"
6579 # Do the check with the no- prefix removed from the warning options
6580 # since gcc silently accepts any -Wno-* option on purpose
6581 if test "$GCC" = yes; then :
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6583 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6584 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6587 save_CFLAGS="$CFLAGS"
6588 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6600 if ac_fn_c_try_compile "$LINENO"; then :
6601 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6603 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 CFLAGS="$save_CFLAGS"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6609 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6610 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6611 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6616 # Check whether --enable-werror-always was given.
6617 if test "${enable_werror_always+set}" = set; then :
6618 enableval=$enable_werror_always;
6620 enable_werror_always=no
6623 if test $enable_werror_always = yes; then :
6624 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6629 # The above macros do nothing if the compiler is not GCC. However, the
6630 # Makefile has more goo to add other flags, so these variables are used
6631 # to enable warnings only for GCC.
6634 if test "x$GCC" = "xyes"; then
6635 warn_cflags='$(GCC_WARN_CFLAGS)'
6636 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6641 # Disable exceptions and RTTI if building with g++
6643 save_CFLAGS="$CFLAGS"
6644 for real_option in -fno-exceptions -fno-rtti; do
6645 # Do the check with the no- prefix removed since gcc silently
6646 # accepts any -Wno-* option on purpose
6647 case $real_option in
6648 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6649 *) option=$real_option ;;
6651 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6654 $as_echo_n "checking whether $CC supports $option... " >&6; }
6655 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6656 $as_echo_n "(cached) " >&6
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671 eval "$as_acx_Woption=yes"
6673 eval "$as_acx_Woption=no"
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 eval ac_res=\$$as_acx_Woption
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6680 $as_echo "$ac_res" >&6; }
6681 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6682 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6685 CFLAGS="$save_CFLAGS"
6688 # Enable expensive internal checks
6690 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6694 # Check whether --enable-checking was given.
6695 if test "${enable_checking+set}" = set; then :
6696 enableval=$enable_checking; ac_checking_flags="${enableval}"
6699 # Determine the default checks.
6700 if test x$is_release = x ; then
6701 ac_checking_flags=yes
6703 ac_checking_flags=release
6707 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6708 for check in release $ac_checking_flags
6711 # these set all the flags to specific states
6712 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6713 ac_fold_checking= ; ac_gc_checking=1 ;
6714 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6715 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6716 ac_tree_checking=1 ; ac_valgrind_checking= ;
6717 ac_types_checking=1 ;;
6718 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6719 ac_fold_checking= ; ac_gc_checking= ;
6720 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6721 ac_rtlflag_checking= ; ac_runtime_checking= ;
6722 ac_tree_checking= ; ac_valgrind_checking= ;
6723 ac_types_checking= ;;
6724 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6725 ac_fold_checking=1 ; ac_gc_checking=1 ;
6726 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6727 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6728 ac_tree_checking=1 ; ac_valgrind_checking= ;
6729 ac_types_checking=1 ;;
6730 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6731 ac_fold_checking= ; ac_gc_checking= ;
6732 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6733 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6734 ac_tree_checking= ; ac_valgrind_checking= ;
6735 ac_types_checking= ;;
6736 # these enable particular checks
6737 assert) ac_assert_checking=1 ;;
6738 df) ac_df_checking=1 ;;
6739 fold) ac_fold_checking=1 ;;
6740 gc) ac_gc_checking=1 ;;
6741 gcac) ac_gc_always_collect=1 ;;
6742 gimple) ac_gimple_checking=1 ;;
6743 misc) ac_checking=1 ;;
6744 rtl) ac_rtl_checking=1 ;;
6745 rtlflag) ac_rtlflag_checking=1 ;;
6746 runtime) ac_runtime_checking=1 ;;
6747 tree) ac_tree_checking=1 ;;
6748 types) ac_types_checking=1 ;;
6749 valgrind) ac_valgrind_checking=1 ;;
6750 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6756 if test x$ac_checking != x ; then
6758 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6760 nocommon_flag=-fno-common
6763 if test x$ac_df_checking != x ; then
6765 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6768 if test x$ac_assert_checking != x ; then
6770 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6773 if test x$ac_gimple_checking != x ; then
6775 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6779 if test x$ac_runtime_checking != x ; then
6781 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6784 if test x$ac_tree_checking != x ; then
6786 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6788 TREEBROWSER=tree-browser.o
6790 if test x$ac_types_checking != x ; then
6792 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6796 if test x$ac_rtl_checking != x ; then
6798 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6801 if test x$ac_rtlflag_checking != x ; then
6803 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6806 if test x$ac_gc_checking != x ; then
6808 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6811 if test x$ac_gc_always_collect != x ; then
6813 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6816 if test x$ac_fold_checking != x ; then
6818 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6821 valgrind_path_defines=
6824 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6825 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6833 if test x$ac_valgrind_checking != x ; then
6834 # It is certainly possible that there's valgrind but no valgrind.h.
6835 # GCC relies on making annotations so we must have both.
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6837 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #include <valgrind/memcheck.h>
6841 #ifndef VALGRIND_DISCARD
6842 #error VALGRIND_DISCARD not defined
6845 if ac_fn_c_try_cpp "$LINENO"; then :
6846 gcc_cv_header_valgrind_memcheck_h=yes
6848 gcc_cv_header_valgrind_memcheck_h=no
6850 rm -f conftest.err conftest.$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6852 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6854 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <memcheck.h>
6858 #ifndef VALGRIND_DISCARD
6859 #error VALGRIND_DISCARD not defined
6862 if ac_fn_c_try_cpp "$LINENO"; then :
6863 gcc_cv_header_memcheck_h=yes
6865 gcc_cv_header_memcheck_h=no
6867 rm -f conftest.err conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6869 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6871 # Prepare PATH_SEPARATOR.
6872 # The user is always right.
6873 if test "${PATH_SEPARATOR+set}" != set; then
6874 echo "#! /bin/sh" >conf$$.sh
6875 echo "exit 0" >>conf$$.sh
6877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6885 # Find out how to test for executable files. Don't use a zero-byte file,
6886 # as systems may use methods other than mode bits to determine executability.
6887 cat >conf$$.file <<_ASEOF
6891 chmod +x conf$$.file
6892 if test -x conf$$.file >/dev/null 2>&1; then
6893 ac_executable_p="test -x"
6895 ac_executable_p="test -f"
6899 # Extract the first word of "valgrind", so it can be a program name with args.
6900 set dummy valgrind; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6906 case "$valgrind_path" in
6908 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6911 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6912 for ac_dir in $PATH; do
6914 test -z "$ac_dir" && ac_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6917 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6918 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6928 valgrind_path="$ac_cv_path_valgrind_path"
6929 if test -n "$valgrind_path"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6931 $as_echo "$valgrind_path" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$valgrind_path" = "x" \
6938 || (test $have_valgrind_h = no \
6939 && test $gcc_cv_header_memcheck_h = no \
6940 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6941 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6943 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6944 valgrind_command="$valgrind_path -q"
6946 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6948 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6950 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6953 if test $gcc_cv_header_memcheck_h = yes; then
6955 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6962 # Enable code coverage collection
6963 # Check whether --enable-coverage was given.
6964 if test "${enable_coverage+set}" = set; then :
6965 enableval=$enable_coverage; case "${enableval}" in
6967 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6970 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6973 # a.k.a. --disable-coverage
6977 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6986 # Check whether --enable-gather-detailed-mem-stats was given.
6987 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6988 enableval=$enable_gather_detailed_mem_stats;
6990 enable_gather_detailed_mem_stats=no
6993 if test x$enable_gather_detailed_mem_stats = xyes ; then
6995 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6999 # -------------------------------
7000 # Miscenalleous configure options
7001 # -------------------------------
7003 # See if we are building gcc with C++.
7004 # Check whether --enable-build-with-cxx was given.
7005 if test "${enable_build_with_cxx+set}" = set; then :
7006 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7008 ENABLE_BUILD_WITH_CXX=no
7012 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7014 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7020 # Check whether --with-stabs was given.
7021 if test "${with_stabs+set}" = set; then :
7022 withval=$with_stabs; stabs="$with_stabs"
7028 # Determine whether or not multilibs are enabled.
7029 # Check whether --enable-multilib was given.
7030 if test "${enable_multilib+set}" = set; then :
7031 enableval=$enable_multilib;
7038 # Determine whether or not multiarch is enabled.
7039 # Check whether --enable-multiarch was given.
7040 if test "${enable_multiarch+set}" = set; then :
7041 enableval=$enable_multiarch; case "${enableval}" in
7042 yes|no|auto) enable_multiarch=$enableval;;
7043 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7046 enable_multiarch=auto
7049 if test x${enable_multiarch} = xauto; then
7050 if test x${with_native_system_header_dir} != x; then
7051 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7054 if test x$host != x$target && test "x$with_sysroot" = x; then
7055 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7060 $as_echo_n "checking for multiarch configuration... " >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7063 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7065 # needed for setting the multiarch name for soft-float/hard-float ABIs
7069 # Enable __cxa_atexit for C++.
7070 # Check whether --enable-__cxa_atexit was given.
7071 if test "${enable___cxa_atexit+set}" = set; then :
7072 enableval=$enable___cxa_atexit;
7076 # Enable C extension for decimal float if target supports it.
7078 # Check whether --enable-decimal-float was given.
7079 if test "${enable_decimal_float+set}" = set; then :
7080 enableval=$enable_decimal_float;
7081 case $enable_decimal_float in
7082 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7083 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7084 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7090 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7091 i?86*-*-mingw* | x86_64*-*-mingw* | \
7093 enable_decimal_float=yes
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7097 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7098 enable_decimal_float=no
7105 # x86's use BID format instead of DPD
7106 case x$enable_decimal_float in
7109 i?86*-*-* | x86_64*-*-*)
7110 enable_decimal_float=bid
7113 enable_decimal_float=dpd
7116 default_decimal_float=$enable_decimal_float
7119 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7120 # dependency on libdecnumber.
7121 default_decimal_float=dpd
7128 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7130 cat >>confdefs.h <<_ACEOF
7131 #define ENABLE_DECIMAL_FLOAT $dfp
7135 # Use default_decimal_float for dependency.
7136 enable_decimal_float=$default_decimal_float
7138 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h <<_ACEOF
7141 #define ENABLE_DECIMAL_BID_FORMAT $bid
7145 # Enable C extension for fixed-point arithmetic.
7146 # Check whether --enable-fixed-point was given.
7147 if test "${enable_fixed_point+set}" = set; then :
7148 enableval=$enable_fixed_point;
7153 enable_fixed_point=yes
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7160 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7161 enable_fixed_point=no
7164 enable_fixed_point=yes
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7170 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7171 enable_fixed_point=no
7179 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7181 cat >>confdefs.h <<_ACEOF
7182 #define ENABLE_FIXED_POINT $fixedpoint
7187 # Pass with no value to take the default
7188 # Pass with a value to specify a thread package
7189 # Check whether --enable-threads was given.
7190 if test "${enable_threads+set}" = set; then :
7191 enableval=$enable_threads;
7197 # Check whether --enable-tls was given.
7198 if test "${enable_tls+set}" = set; then :
7199 enableval=$enable_tls;
7202 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7203 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7211 # Check whether --enable-objc-gc was given.
7212 if test "${enable_objc_gc+set}" = set; then :
7213 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7224 # Check whether --with-dwarf2 was given.
7225 if test "${with_dwarf2+set}" = set; then :
7226 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7232 # Check whether --enable-shared was given.
7233 if test "${enable_shared+set}" = set; then :
7234 enableval=$enable_shared;
7235 case $enable_shared in
7239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7240 for pkg in $enableval; do
7241 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7256 # Check whether --with-native-system-header-dir was given.
7257 if test "${with_native_system_header_dir+set}" = set; then :
7258 withval=$with_native_system_header_dir;
7259 case ${with_native_system_header_dir} in
7260 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7261 /* | [A-Za-z]:[\\/]*) ;;
7262 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7264 configured_native_system_header_dir="${withval}"
7267 configured_native_system_header_dir=
7272 # Check whether --with-build-sysroot was given.
7273 if test "${with_build_sysroot+set}" = set; then :
7274 withval=$with_build_sysroot; if test x"$withval" != x ; then
7275 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7278 SYSROOT_CFLAGS_FOR_TARGET=
7284 # Check whether --with-sysroot was given.
7285 if test "${with_sysroot+set}" = set; then :
7286 withval=$with_sysroot;
7287 case ${with_sysroot} in
7288 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7289 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7292 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7293 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7295 if test "x$prefix" = xNONE; then
7296 test_prefix=/usr/local
7300 if test "x$exec_prefix" = xNONE; then
7301 test_exec_prefix=$test_prefix
7303 test_exec_prefix=$exec_prefix
7305 case ${TARGET_SYSTEM_ROOT} in
7306 "${test_prefix}"|"${test_prefix}/"*|\
7307 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7308 '${prefix}'|'${prefix}/'*|\
7309 '${exec_prefix}'|'${exec_prefix}/'*)
7310 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7311 TARGET_SYSTEM_ROOT_DEFINE="$t"
7318 TARGET_SYSTEM_ROOT_DEFINE=
7319 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7328 # Check whether --with-specs was given.
7329 if test "${with_specs+set}" = set; then :
7330 withval=$with_specs; CONFIGURE_SPECS=$withval
7340 # Check whether --with-pkgversion was given.
7341 if test "${with_pkgversion+set}" = set; then :
7342 withval=$with_pkgversion; case "$withval" in
7343 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7345 *) PKGVERSION="($withval) " ;;
7356 # Check whether --with-bugurl was given.
7357 if test "${with_bugurl+set}" = set; then :
7358 withval=$with_bugurl; case "$withval" in
7359 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7362 *) BUGURL="$withval"
7366 BUGURL="http://gcc.gnu.org/bugs.html"
7376 REPORT_BUGS_TO="<$BUGURL>"
7377 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7384 # Sanity check enable_languages in case someone does not run the toplevel
7385 # configure # script.
7386 # Check whether --enable-languages was given.
7387 if test "${enable_languages+set}" = set; then :
7388 enableval=$enable_languages; case ,${enable_languages}, in
7390 # go safe -- we cannot be much sure without the toplevel
7392 # analysis of which target libs are present and usable
7396 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7401 enable_languages=c,${enable_languages}
7410 # Check whether --with-multilib-list was given.
7411 if test "${with_multilib_list+set}" = set; then :
7412 withval=$with_multilib_list; :
7414 with_multilib_list=default
7418 # -------------------------
7419 # Checks for other programs
7420 # -------------------------
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7423 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7425 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7426 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7427 $as_echo_n "(cached) " >&6
7429 cat >conftest.make <<\_ACEOF
7432 @echo '@@@%%%=$(MAKE)=@@@%%%'
7434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7435 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7437 eval ac_cv_prog_make_${ac_make}_set=yes;;
7439 eval ac_cv_prog_make_${ac_make}_set=no;;
7443 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7445 $as_echo "yes" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 SET_MAKE="MAKE=${MAKE-make}"
7454 # Find some useful tools
7455 for ac_prog in gawk mawk nawk awk
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if test "${ac_cv_prog_AWK+set}" = set; then :
7462 $as_echo_n "(cached) " >&6
7464 if test -n "$AWK"; then
7465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_prog_AWK="$ac_prog"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 if test -n "$AWK"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7487 $as_echo "$AWK" >&6; }
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7494 test -n "$AWK" && break
7497 # We need awk to create options.c and options.h.
7498 # Bail out if it's missing.
7500 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7504 $as_echo_n "checking whether ln -s works... " >&6; }
7505 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7508 rm -f conftestdata_t
7509 echo >conftestdata_f
7510 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7512 gcc_cv_prog_LN_S="ln -s"
7514 if ln conftestdata_f conftestdata_t 2>/dev/null
7518 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7520 gcc_cv_prog_LN_S="cp -p"
7526 rm -f conftestdata_f conftestdata_t
7529 LN_S="$gcc_cv_prog_LN_S"
7530 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7532 $as_echo "yes" >&6; }
7534 if test "$gcc_cv_prog_LN_S" = "ln"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7536 $as_echo "no, using ln" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7539 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7544 $as_echo_n "checking whether ln works... " >&6; }
7545 if test "${acx_cv_prog_LN+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7548 rm -f conftestdata_t
7549 echo >conftestdata_f
7550 if ln conftestdata_f conftestdata_t 2>/dev/null
7556 rm -f conftestdata_f conftestdata_t
7559 if test $acx_cv_prog_LN = no; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7562 $as_echo "no, using $LN" >&6; }
7564 LN="$acx_cv_prog_LN"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 $as_echo "yes" >&6; }
7569 if test -n "$ac_tool_prefix"; then
7570 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7577 if test -n "$RANLIB"; then
7578 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 RANLIB=$ac_cv_prog_RANLIB
7598 if test -n "$RANLIB"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7600 $as_echo "$RANLIB" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7608 if test -z "$ac_cv_prog_RANLIB"; then
7609 ac_ct_RANLIB=$RANLIB
7610 # Extract the first word of "ranlib", so it can be a program name with args.
7611 set dummy ranlib; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$ac_ct_RANLIB"; then
7618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_prog_ac_ct_RANLIB="ranlib"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7638 if test -n "$ac_ct_RANLIB"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7640 $as_echo "$ac_ct_RANLIB" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7646 if test "x$ac_ct_RANLIB" = x; then
7649 case $cross_compiling:$ac_tool_warned in
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7655 RANLIB=$ac_ct_RANLIB
7658 RANLIB="$ac_cv_prog_RANLIB"
7664 # Find a good install program. We prefer a C program (faster),
7665 # so one script is as good as another. But avoid the broken or
7666 # incompatible versions:
7667 # SysV /etc/install, /usr/sbin/install
7668 # SunOS /usr/etc/install
7669 # IRIX /sbin/install
7671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7673 # ./install, which can be erroneously created by make from ./install.sh.
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7675 $as_echo_n "checking for a BSD compatible install... " >&6; }
7676 if test -z "$INSTALL"; then
7677 if test "${ac_cv_path_install+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7680 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7681 for ac_dir in $PATH; do
7682 # Account for people who put trailing slashes in PATH elements.
7684 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7686 # OSF1 and SCO ODT 3.0 have their own names for install.
7687 for ac_prog in ginstall scoinst install; do
7688 if test -f $ac_dir/$ac_prog; then
7689 if test $ac_prog = install &&
7690 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7691 # AIX install. It has an incompatible calling convention.
7692 # OSF/1 installbsd also uses dspmsg, but is usable.
7695 ac_cv_path_install="$ac_dir/$ac_prog -c"
7706 if test "${ac_cv_path_install+set}" = set; then
7707 INSTALL="$ac_cv_path_install"
7709 # As a last resort, use the slow shell script. We don't cache a
7710 # path for INSTALL within a source directory, because that will
7711 # break other packages using the cache if that directory is
7712 # removed, or if the path is relative.
7713 INSTALL="$ac_install_sh"
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7717 $as_echo "$INSTALL" >&6; }
7719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7720 # It thinks the first close brace ends the variable substitution.
7721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7726 # See if cmp has --ignore-initial.
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7728 $as_echo_n "checking for cmp's capabilities... " >&6; }
7729 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
7734 gcc_cv_prog_cmp_skip=slowcompare
7735 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7736 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7739 gcc_cv_prog_cmp_skip=gnucompare
7742 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7743 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7744 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7747 gcc_cv_prog_cmp_skip=fastcompare
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7755 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7756 make_compare_target=$gcc_cv_prog_cmp_skip
7760 # See if we have the mktemp command.
7761 # Extract the first word of "mktemp", so it can be a program name with args.
7762 set dummy mktemp; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 if test -n "$have_mktemp_command"; then
7769 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_have_mktemp_command="yes"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7789 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7790 if test -n "$have_mktemp_command"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7792 $as_echo "$have_mktemp_command" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7800 # See if makeinfo has been installed and is modern enough
7801 # that we can use it.
7803 # Extract the first word of "makeinfo", so it can be a program name with args.
7804 set dummy makeinfo; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7810 if test -n "$MAKEINFO"; then
7811 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7820 ac_cv_prog_MAKEINFO="makeinfo"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 MAKEINFO=$ac_cv_prog_MAKEINFO
7831 if test -n "$MAKEINFO"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7833 $as_echo "$MAKEINFO" >&6; }
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7840 if test -n "$MAKEINFO"; then
7841 # Found it, now check the version.
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7843 $as_echo_n "checking for modern makeinfo... " >&6; }
7844 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7847 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7848 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7850 case $ac_prog_version in
7851 '') gcc_cv_prog_makeinfo_modern=no;;
7852 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7853 *) gcc_cv_prog_makeinfo_modern=no;;
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7858 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7860 gcc_cv_prog_makeinfo_modern=no
7862 if test $gcc_cv_prog_makeinfo_modern = no; then
7863 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7866 if test $gcc_cv_prog_makeinfo_modern = no; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7868 *** Makeinfo is missing or too old.
7869 *** Info documentation will not be built." >&5
7870 $as_echo "$as_me: WARNING:
7871 *** Makeinfo is missing or too old.
7872 *** Info documentation will not be built." >&2;}
7879 # Is pod2man recent enough to regenerate manpages?
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7881 $as_echo_n "checking for recent Pod::Man... " >&6; }
7882 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884 $as_echo "yes" >&6; }
7885 GENERATED_MANPAGES=generated-manpages
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7893 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7898 # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_FLEX+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7905 if test -n "$FLEX"; then
7906 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_FLEX="$ac_prog"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 FLEX=$ac_cv_prog_FLEX
7926 if test -n "$FLEX"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7928 $as_echo "$FLEX" >&6; }
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7935 test -n "$FLEX" && break
7937 test -n "$FLEX" || FLEX="$MISSING flex"
7941 for ac_prog in bison
7943 # Extract the first word of "$ac_prog", so it can be a program name with args.
7944 set dummy $ac_prog; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if test "${ac_cv_prog_BISON+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$BISON"; then
7951 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_prog_BISON="$ac_prog"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 BISON=$ac_cv_prog_BISON
7971 if test -n "$BISON"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7973 $as_echo "$BISON" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7980 test -n "$BISON" && break
7982 test -n "$BISON" || BISON="$MISSING bison"
7985 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7986 # check for build == host before using them.
7989 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7990 && test -d ../binutils ; then
7991 NM='${objdir}/../binutils/nm-new'
7993 # Extract the first word of "nm", so it can be a program name with args.
7994 set dummy nm; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if test "${ac_cv_prog_NM+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
8000 if test -n "$NM"; then
8001 ac_cv_prog_NM="$NM" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8022 if test -n "$NM"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8024 $as_echo "$NM" >&6; }
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8034 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8035 && test -d ../binutils ; then
8036 AR='${objdir}/../binutils/ar'
8038 # Extract the first word of "ar", so it can be a program name with args.
8039 set dummy ar; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_AR+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8045 if test -n "$AR"; then
8046 ac_cv_prog_AR="$AR" # Let the user override the test.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8067 if test -n "$AR"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8069 $as_echo "$AR" >&6; }
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8079 # --------------------
8080 # Checks for C headers
8081 # --------------------
8083 # Need to reject headers which give warnings, so that the -Werror bootstrap
8084 # works later. *sigh* This needs to come before all header checks.
8086 ac_c_preproc_warn_flag=yes
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8089 $as_echo_n "checking for ANSI C header files... " >&6; }
8090 if test "${ac_cv_header_stdc+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8108 if ac_fn_c_try_compile "$LINENO"; then :
8109 ac_cv_header_stdc=yes
8111 ac_cv_header_stdc=no
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 if test $ac_cv_header_stdc = yes; then
8116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123 $EGREP "memchr" >/dev/null 2>&1; then :
8126 ac_cv_header_stdc=no
8132 if test $ac_cv_header_stdc = yes; then
8133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8140 $EGREP "free" >/dev/null 2>&1; then :
8143 ac_cv_header_stdc=no
8149 if test $ac_cv_header_stdc = yes; then
8150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8151 if test "$cross_compiling" = yes; then :
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8158 #if ((' ' & 0x0FF) == 0x020)
8159 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8160 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8162 # define ISLOWER(c) \
8163 (('a' <= (c) && (c) <= 'i') \
8164 || ('j' <= (c) && (c) <= 'r') \
8165 || ('s' <= (c) && (c) <= 'z'))
8166 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8174 for (i = 0; i < 256; i++)
8175 if (XOR (islower (i), ISLOWER (i))
8176 || toupper (i) != TOUPPER (i))
8181 if ac_fn_c_try_run "$LINENO"; then :
8184 ac_cv_header_stdc=no
8186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8187 conftest.$ac_objext conftest.beam conftest.$ac_ext
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8193 $as_echo "$ac_cv_header_stdc" >&6; }
8194 if test $ac_cv_header_stdc = yes; then
8196 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8201 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8202 if test "${ac_cv_header_time+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 #include <sys/types.h>
8208 #include <sys/time.h>
8214 if ((struct tm *) 0)
8220 if ac_fn_c_try_compile "$LINENO"; then :
8221 ac_cv_header_time=yes
8223 ac_cv_header_time=no
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8228 $as_echo "$ac_cv_header_time" >&6; }
8229 if test $ac_cv_header_time = yes; then
8231 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8236 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8237 if test "${gcc_cv_header_string+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8243 #include <strings.h>
8252 if ac_fn_c_try_compile "$LINENO"; then :
8253 gcc_cv_header_string=yes
8255 gcc_cv_header_string=no
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8260 $as_echo "$gcc_cv_header_string" >&6; }
8261 if test $gcc_cv_header_string = yes; then
8263 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8268 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8269 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 #include <sys/types.h>
8275 #include <sys/wait.h>
8277 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8280 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8288 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8293 if ac_fn_c_try_compile "$LINENO"; then :
8294 ac_cv_header_sys_wait_h=yes
8296 ac_cv_header_sys_wait_h=no
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8301 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8302 if test $ac_cv_header_sys_wait_h = yes; then
8304 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8308 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8309 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8310 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8311 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8314 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8315 eval as_val=\$$as_ac_Header
8316 if test "x$as_val" = x""yes; then :
8317 cat >>confdefs.h <<_ACEOF
8318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8325 # Check for thread headers.
8326 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8327 if test "x$ac_cv_header_thread_h" = x""yes; then :
8333 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8334 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8341 # These tests can't be done till we know if we have limits.h.
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8343 $as_echo_n "checking for CHAR_BIT... " >&6; }
8344 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 #ifdef HAVE_LIMITS_H
8356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357 $EGREP "found" >/dev/null 2>&1; then :
8358 gcc_cv_decl_char_bit=yes
8360 gcc_cv_decl_char_bit=no
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8367 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8368 if test $gcc_cv_decl_char_bit = no; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8370 $as_echo_n "checking number of bits in a byte... " >&6; }
8371 if test "${gcc_cv_c_nbby+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8376 while test $i -lt 65; do
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8384 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8385 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392 gcc_cv_c_nbby=$i; break
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8401 $as_echo "$gcc_cv_c_nbby" >&6; }
8402 if test $gcc_cv_c_nbby = failed; then
8403 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8406 cat >>confdefs.h <<_ACEOF
8407 #define CHAR_BIT $gcc_cv_c_nbby
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8413 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8414 if test "${ac_cv_c_bigendian+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8417 ac_cv_c_bigendian=unknown
8418 # See if we're dealing with a universal compiler.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 #ifndef __APPLE_CC__
8422 not a universal capable compiler
8427 if ac_fn_c_try_compile "$LINENO"; then :
8429 # Check for potential -arch flags. It is not universal unless
8430 # there are at least two -arch flags with different values.
8433 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8434 if test -n "$ac_prev"; then
8436 i?86 | x86_64 | ppc | ppc64)
8437 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8440 ac_cv_c_bigendian=universal
8446 elif test "x$ac_word" = "x-arch"; then
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 if test $ac_cv_c_bigendian = unknown; then
8453 # See if sys/param.h defines the BYTE_ORDER macro.
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456 #include <sys/types.h>
8457 #include <sys/param.h>
8462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8463 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 # It does; now see whether it defined to BIG_ENDIAN or not.
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <sys/types.h>
8477 #include <sys/param.h>
8482 #if BYTE_ORDER != BIG_ENDIAN
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 ac_cv_c_bigendian=yes
8493 ac_cv_c_bigendian=no
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 if test $ac_cv_c_bigendian = unknown; then
8500 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8508 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517 # It does; now see whether it defined to _BIG_ENDIAN or not.
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8533 if ac_fn_c_try_compile "$LINENO"; then :
8534 ac_cv_c_bigendian=yes
8536 ac_cv_c_bigendian=no
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 if test $ac_cv_c_bigendian = unknown; then
8543 # Compile a test program.
8544 if test "$cross_compiling" = yes; then :
8545 # Try to guess by grepping values from an object file.
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 short int ascii_mm[] =
8549 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8550 short int ascii_ii[] =
8551 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8552 int use_ascii (int i) {
8553 return ascii_mm[i] + ascii_ii[i];
8555 short int ebcdic_ii[] =
8556 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8557 short int ebcdic_mm[] =
8558 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8559 int use_ebcdic (int i) {
8560 return ebcdic_mm[i] + ebcdic_ii[i];
8567 return use_ascii (foo) == use_ebcdic (foo);
8572 if ac_fn_c_try_compile "$LINENO"; then :
8573 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8574 ac_cv_c_bigendian=yes
8576 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8577 if test "$ac_cv_c_bigendian" = unknown; then
8578 ac_cv_c_bigendian=no
8580 # finding both strings is unlikely to happen, but who knows?
8581 ac_cv_c_bigendian=unknown
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8589 $ac_includes_default
8594 /* Are we little or big endian? From Harbison&Steele. */
8598 char c[sizeof (long int)];
8601 return u.c[sizeof (long int) - 1] == 1;
8607 if ac_fn_c_try_run "$LINENO"; then :
8608 ac_cv_c_bigendian=no
8610 ac_cv_c_bigendian=yes
8612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8613 conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8619 $as_echo "$ac_cv_c_bigendian" >&6; }
8620 case $ac_cv_c_bigendian in #(
8622 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8628 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8632 as_fn_error "unknown endianness
8633 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8637 # ----------------------
8638 # Checks for C++ headers
8639 # ----------------------
8642 ac_cpp='$CXXCPP $CPPFLAGS'
8643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8647 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8648 if test -z "$CXXCPP"; then
8649 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8652 # Double quotes because CXXCPP needs to be expanded
8653 for CXXCPP in "$CXX -E" "/lib/cpp"
8656 for ac_cxx_preproc_warn_flag in '' yes
8658 # Use a header file that comes with gcc, so configuring glibc
8659 # with a fresh cross-compiler works.
8660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 # <limits.h> exists even on freestanding compilers.
8662 # On the NeXT, cc -E runs the code through the compiler's parser,
8663 # not just through cpp. "Syntax error" is here to catch this case.
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8667 # include <limits.h>
8669 # include <assert.h>
8673 if ac_fn_cxx_try_cpp "$LINENO"; then :
8676 # Broken: fails on valid input.
8679 rm -f conftest.err conftest.$ac_ext
8681 # OK, works on sane cases. Now check whether nonexistent headers
8682 # can be detected and how.
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 #include <ac_nonexistent.h>
8687 if ac_fn_cxx_try_cpp "$LINENO"; then :
8688 # Broken: success on invalid input.
8691 # Passes both tests.
8695 rm -f conftest.err conftest.$ac_ext
8698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8699 rm -f conftest.err conftest.$ac_ext
8700 if $ac_preproc_ok; then :
8705 ac_cv_prog_CXXCPP=$CXXCPP
8708 CXXCPP=$ac_cv_prog_CXXCPP
8710 ac_cv_prog_CXXCPP=$CXXCPP
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8713 $as_echo "$CXXCPP" >&6; }
8715 for ac_cxx_preproc_warn_flag in '' yes
8717 # Use a header file that comes with gcc, so configuring glibc
8718 # with a fresh cross-compiler works.
8719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 # <limits.h> exists even on freestanding compilers.
8721 # On the NeXT, cc -E runs the code through the compiler's parser,
8722 # not just through cpp. "Syntax error" is here to catch this case.
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8726 # include <limits.h>
8728 # include <assert.h>
8732 if ac_fn_cxx_try_cpp "$LINENO"; then :
8735 # Broken: fails on valid input.
8738 rm -f conftest.err conftest.$ac_ext
8740 # OK, works on sane cases. Now check whether nonexistent headers
8741 # can be detected and how.
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <ac_nonexistent.h>
8746 if ac_fn_cxx_try_cpp "$LINENO"; then :
8747 # Broken: success on invalid input.
8750 # Passes both tests.
8754 rm -f conftest.err conftest.$ac_ext
8757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8758 rm -f conftest.err conftest.$ac_ext
8759 if $ac_preproc_ok; then :
8762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8765 See \`config.log' for more details." >&5
8766 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8767 See \`config.log' for more details." >&2;}; }
8771 ac_cpp='$CPP $CPPFLAGS'
8772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8778 ac_cpp='$CXXCPP $CPPFLAGS'
8779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8786 for ac_header in unordered_map
8788 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8789 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE_UNORDERED_MAP 1
8797 for ac_header in tr1/unordered_map
8799 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8800 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8801 cat >>confdefs.h <<_ACEOF
8802 #define HAVE_TR1_UNORDERED_MAP 1
8808 for ac_header in ext/hash_map
8810 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8811 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_EXT_HASH_MAP 1
8821 ac_cpp='$CPP $CPPFLAGS'
8822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8832 # These libraries may be used by collect2.
8833 # We may need a special search path to get them linked.
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8835 $as_echo_n "checking for collect2 libraries... " >&6; }
8836 if test "${gcc_cv_collect2_libs+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8840 for libs in '' -lld -lmld \
8841 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8842 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8848 /* Override any GCC internal prototype to avoid an error.
8849 Use char because int might match the return type of a GCC
8850 builtin and then its argument prototype would still apply. */
8863 if ac_fn_c_try_link "$LINENO"; then :
8864 gcc_cv_collect2_libs="$libs"; break
8866 rm -f core conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
8870 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8873 $as_echo "$gcc_cv_collect2_libs" >&6; }
8874 case $gcc_cv_collect2_libs in
8876 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8880 # When building Ada code on Alpha, we need exc_resume which is usually in
8881 # -lexc. So test for it.
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8885 $as_echo_n "checking for library containing exc_resume... " >&6; }
8886 if test "${ac_cv_search_exc_resume+set}" = set; then :
8887 $as_echo_n "(cached) " >&6
8889 ac_func_search_save_LIBS=$LIBS
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8903 return exc_resume ();
8908 for ac_lib in '' exc; do
8909 if test -z "$ac_lib"; then
8910 ac_res="none required"
8913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8915 if ac_fn_c_try_link "$LINENO"; then :
8916 ac_cv_search_exc_resume=$ac_res
8918 rm -f core conftest.err conftest.$ac_objext \
8920 if test "${ac_cv_search_exc_resume+set}" = set; then :
8924 if test "${ac_cv_search_exc_resume+set}" = set; then :
8927 ac_cv_search_exc_resume=no
8930 LIBS=$ac_func_search_save_LIBS
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8933 $as_echo "$ac_cv_search_exc_resume" >&6; }
8934 ac_res=$ac_cv_search_exc_resume
8935 if test "$ac_res" != no; then :
8936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8944 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8948 $as_echo_n "checking for library containing kstat_open... " >&6; }
8949 if test "${ac_cv_search_kstat_open+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8952 ac_func_search_save_LIBS=$LIBS
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8956 /* Override any GCC internal prototype to avoid an error.
8957 Use char because int might match the return type of a GCC
8958 builtin and then its argument prototype would still apply. */
8966 return kstat_open ();
8971 for ac_lib in '' kstat; do
8972 if test -z "$ac_lib"; then
8973 ac_res="none required"
8976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8978 if ac_fn_c_try_link "$LINENO"; then :
8979 ac_cv_search_kstat_open=$ac_res
8981 rm -f core conftest.err conftest.$ac_objext \
8983 if test "${ac_cv_search_kstat_open+set}" = set; then :
8987 if test "${ac_cv_search_kstat_open+set}" = set; then :
8990 ac_cv_search_kstat_open=no
8993 LIBS=$ac_func_search_save_LIBS
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8996 $as_echo "$ac_cv_search_kstat_open" >&6; }
8997 ac_res=$ac_cv_search_kstat_open
8998 if test "$ac_res" != no; then :
8999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9003 EXTRA_GCC_LIBS="$LIBS"
9007 # Some systems put ldexp and frexp in libm instead of libc; assume
9008 # they're both in the same place. jcf-dump needs them.
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9012 $as_echo_n "checking for library containing ldexp... " >&6; }
9013 if test "${ac_cv_search_ldexp+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9016 ac_func_search_save_LIBS=$LIBS
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9035 for ac_lib in '' m; do
9036 if test -z "$ac_lib"; then
9037 ac_res="none required"
9040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 ac_cv_search_ldexp=$ac_res
9045 rm -f core conftest.err conftest.$ac_objext \
9047 if test "${ac_cv_search_ldexp+set}" = set; then :
9051 if test "${ac_cv_search_ldexp+set}" = set; then :
9054 ac_cv_search_ldexp=no
9057 LIBS=$ac_func_search_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9060 $as_echo "$ac_cv_search_ldexp" >&6; }
9061 ac_res=$ac_cv_search_ldexp
9062 if test "$ac_res" != no; then :
9063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9071 # Use <inttypes.h> only if it exists,
9072 # doesn't clash with <sys/types.h>, and declares intmax_t.
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9074 $as_echo_n "checking for inttypes.h... " >&6; }
9075 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #include <sys/types.h>
9081 #include <inttypes.h>
9090 if ac_fn_c_try_compile "$LINENO"; then :
9091 gcc_cv_header_inttypes_h=yes
9093 gcc_cv_header_inttypes_h=no
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9099 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9100 if test $gcc_cv_header_inttypes_h = yes; then
9102 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9108 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9109 sysconf strsignal getrusage nl_langinfo \
9110 gettimeofday mbstowcs wcswidth mmap setlocale \
9111 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9115 eval as_val=\$$as_ac_var
9116 if test "x$as_val" = x""yes; then :
9117 cat >>confdefs.h <<_ACEOF
9118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9125 if test x$ac_cv_func_mbstowcs = xyes; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9127 $as_echo_n "checking whether mbstowcs works... " >&6; }
9128 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9131 if test "$cross_compiling" = yes; then :
9132 gcc_cv_func_mbstowcs_works=yes
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9143 if ac_fn_c_try_run "$LINENO"; then :
9144 gcc_cv_func_mbstowcs_works=yes
9146 gcc_cv_func_mbstowcs_works=no
9148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9149 conftest.$ac_objext conftest.beam conftest.$ac_ext
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9154 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9155 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9157 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9162 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9163 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9167 cat >>confdefs.h <<_ACEOF
9173 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9174 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define caddr_t char *
9186 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9187 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9188 gcc_header_sys_mman_h=yes
9190 gcc_header_sys_mman_h=no
9193 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9194 if test "x$ac_cv_func_mmap" = x""yes; then :
9200 if test "$gcc_header_sys_mman_h" != yes \
9201 || test "$gcc_func_mmap" != yes; then
9202 gcc_cv_func_mmap_file=no
9203 gcc_cv_func_mmap_dev_zero=no
9204 gcc_cv_func_mmap_anon=no
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9207 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9208 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9211 # Add a system to this blacklist if
9212 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9213 # memory area containing the same data that you'd get if you applied
9214 # read() to the same fd. The only system known to have a problem here
9215 # is VMS, where text files have record structure.
9218 gcc_cv_func_mmap_file=no ;;
9220 gcc_cv_func_mmap_file=yes;;
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9224 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9226 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9227 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9230 # Add a system to this blacklist if it has mmap() but /dev/zero
9231 # does not exist, or if mmapping /dev/zero does not give anonymous
9232 # zeroed pages with both the following properties:
9233 # 1. If you map N consecutive pages in with one call, and then
9234 # unmap any subset of those pages, the pages that were not
9235 # explicitly unmapped remain accessible.
9236 # 2. If you map two adjacent blocks of memory and then unmap them
9237 # both at once, they must both go away.
9238 # Systems known to be in this category are Windows (all variants),
9241 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9242 gcc_cv_func_mmap_dev_zero=no ;;
9244 gcc_cv_func_mmap_dev_zero=yes;;
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9248 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9250 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9252 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9253 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258 #include <sys/types.h>
9259 #include <sys/mman.h>
9262 #ifndef MAP_ANONYMOUS
9263 #define MAP_ANONYMOUS MAP_ANON
9269 int n = MAP_ANONYMOUS;
9274 if ac_fn_c_try_compile "$LINENO"; then :
9275 gcc_cv_decl_map_anon=yes
9277 gcc_cv_decl_map_anon=no
9279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9282 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9284 if test $gcc_cv_decl_map_anon = no; then
9285 gcc_cv_func_mmap_anon=no
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9288 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9289 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
9292 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9293 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9294 # doesn't give anonymous zeroed pages with the same properties listed
9295 # above for use of /dev/zero.
9296 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9298 vms* | cygwin* | pe | mingw* | sco* | udk* )
9299 gcc_cv_func_mmap_anon=no ;;
9301 gcc_cv_func_mmap_anon=yes;;
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9305 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9309 if test $gcc_cv_func_mmap_file = yes; then
9311 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9314 if test $gcc_cv_func_mmap_dev_zero = yes; then
9316 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9319 if test $gcc_cv_func_mmap_anon = yes; then
9321 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9328 # Under VMS, vfork works very differently than on Unix. The standard test
9329 # won't work, and it isn't easily adaptable. It makes more sense to
9331 ac_cv_func_vfork_works=yes
9334 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9335 if test "x$ac_cv_type_pid_t" = x""yes; then :
9339 cat >>confdefs.h <<_ACEOF
9345 for ac_header in vfork.h
9347 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9348 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_VFORK_H 1
9356 for ac_func in fork vfork
9358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9360 eval as_val=\$$as_ac_var
9361 if test "x$as_val" = x""yes; then :
9362 cat >>confdefs.h <<_ACEOF
9363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9369 if test "x$ac_cv_func_fork" = xyes; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9371 $as_echo_n "checking for working fork... " >&6; }
9372 if test "${ac_cv_func_fork_works+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9375 if test "$cross_compiling" = yes; then :
9376 ac_cv_func_fork_works=cross
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 $ac_includes_default
9385 /* By Ruediger Kuhlmann. */
9392 if ac_fn_c_try_run "$LINENO"; then :
9393 ac_cv_func_fork_works=yes
9395 ac_cv_func_fork_works=no
9397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9398 conftest.$ac_objext conftest.beam conftest.$ac_ext
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9403 $as_echo "$ac_cv_func_fork_works" >&6; }
9406 ac_cv_func_fork_works=$ac_cv_func_fork
9408 if test "x$ac_cv_func_fork_works" = xcross; then
9410 *-*-amigaos* | *-*-msdosdjgpp*)
9411 # Override, as these systems have only a dummy fork() stub
9412 ac_cv_func_fork_works=no
9415 ac_cv_func_fork_works=yes
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9419 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9421 ac_cv_func_vfork_works=$ac_cv_func_vfork
9422 if test "x$ac_cv_func_vfork" = xyes; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9424 $as_echo_n "checking for working vfork... " >&6; }
9425 if test "${ac_cv_func_vfork_works+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
9428 if test "$cross_compiling" = yes; then :
9429 ac_cv_func_vfork_works=cross
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 /* Thanks to Paul Eggert for this test. */
9434 $ac_includes_default
9435 #include <sys/wait.h>
9439 /* On some sparc systems, changes by the child to local and incoming
9440 argument registers are propagated back to the parent. The compiler
9441 is told about this with #include <vfork.h>, but some compilers
9442 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9443 static variable whose address is put into a register that is
9444 clobbered by the vfork. */
9447 sparc_address_test (int arg)
9449 sparc_address_test (arg) int arg;
9470 pid_t parent = getpid ();
9473 sparc_address_test (0);
9478 /* Here is another test for sparc vfork register problems. This
9479 test uses lots of local variables, at least as many local
9480 variables as main has allocated so far including compiler
9481 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9482 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9483 reuse the register of parent for one of the local variables,
9484 since it will think that parent can't possibly be used any more
9485 in this routine. Assigning to the local variable will thus
9486 munge parent in the parent process. */
9488 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9489 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9490 /* Convince the compiler that p..p7 are live; otherwise, it might
9491 use the same hardware register for all 8 local variables. */
9492 if (p != p1 || p != p2 || p != p3 || p != p4
9493 || p != p5 || p != p6 || p != p7)
9496 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9497 from child file descriptors. If the child closes a descriptor
9498 before it execs or exits, this munges the parent's descriptor
9499 as well. Test for this by closing stdout in the child. */
9500 _exit(close(fileno(stdout)) != 0);
9505 while (wait(&status) != child)
9508 /* Was there some problem with vforking? */
9511 /* Did the child fail? (This shouldn't happen.) */
9514 /* Did the vfork/compiler bug occur? */
9515 || parent != getpid()
9517 /* Did the file descriptor bug occur? */
9518 || fstat(fileno(stdout), &st) != 0
9523 if ac_fn_c_try_run "$LINENO"; then :
9524 ac_cv_func_vfork_works=yes
9526 ac_cv_func_vfork_works=no
9528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9529 conftest.$ac_objext conftest.beam conftest.$ac_ext
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9534 $as_echo "$ac_cv_func_vfork_works" >&6; }
9537 if test "x$ac_cv_func_fork_works" = xcross; then
9538 ac_cv_func_vfork_works=$ac_cv_func_vfork
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9540 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9543 if test "x$ac_cv_func_vfork_works" = xyes; then
9545 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9549 $as_echo "#define vfork fork" >>confdefs.h
9552 if test "x$ac_cv_func_fork_works" = xyes; then
9554 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9559 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9560 # iconv() prototype.
9562 if test "X$prefix" = "XNONE"; then
9563 acl_final_prefix="$ac_default_prefix"
9565 acl_final_prefix="$prefix"
9567 if test "X$exec_prefix" = "XNONE"; then
9568 acl_final_exec_prefix='${prefix}'
9570 acl_final_exec_prefix="$exec_prefix"
9572 acl_save_prefix="$prefix"
9573 prefix="$acl_final_prefix"
9574 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9575 prefix="$acl_save_prefix"
9578 # Check whether --with-gnu-ld was given.
9579 if test "${with_gnu_ld+set}" = set; then :
9580 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9585 # Prepare PATH_SEPARATOR.
9586 # The user is always right.
9587 if test "${PATH_SEPARATOR+set}" != set; then
9588 echo "#! /bin/sh" >conf$$.sh
9589 echo "exit 0" >>conf$$.sh
9591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9599 if test "$GCC" = yes; then
9600 # Check if gcc -print-prog-name=ld gives a path.
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9602 $as_echo_n "checking for ld used by GCC... " >&6; }
9605 # gcc leaves a trailing carriage return which upsets mingw
9606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9611 # Accept absolute paths.
9612 [\\/]* | [A-Za-z]:[\\/]*)
9613 re_direlt='/[^/][^/]*/\.\./'
9614 # Canonicalize the path of ld
9615 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9616 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9617 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9619 test -z "$LD" && LD="$ac_prog"
9622 # If it fails, then pretend we aren't using GCC.
9626 # If it is relative, then search for the first ld in PATH.
9630 elif test "$with_gnu_ld" = yes; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9632 $as_echo_n "checking for GNU ld... " >&6; }
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9635 $as_echo_n "checking for non-GNU ld... " >&6; }
9637 if test "${acl_cv_path_LD+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9640 if test -z "$LD"; then
9641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9642 for ac_dir in $PATH; do
9643 test -z "$ac_dir" && ac_dir=.
9644 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9645 acl_cv_path_LD="$ac_dir/$ac_prog"
9646 # Check to see if the program is GNU ld. I'd rather use --version,
9647 # but apparently some GNU ld's only accept -v.
9648 # Break only if it was the GNU/non-GNU ld that we prefer.
9649 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9650 test "$with_gnu_ld" != no && break
9652 test "$with_gnu_ld" != yes && break
9658 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9662 LD="$acl_cv_path_LD"
9663 if test -n "$LD"; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9665 $as_echo "$LD" >&6; }
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 $as_echo "no" >&6; }
9670 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9672 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9673 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9676 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9677 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9678 acl_cv_prog_gnu_ld=yes
9680 acl_cv_prog_gnu_ld=no
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9684 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9685 with_gnu_ld=$acl_cv_prog_gnu_ld
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9690 $as_echo_n "checking for shared library run path origin... " >&6; }
9691 if test "${acl_cv_rpath+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9695 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9696 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9703 $as_echo "$acl_cv_rpath" >&6; }
9705 libext="$acl_cv_libext"
9706 shlibext="$acl_cv_shlibext"
9707 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9708 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9709 hardcode_direct="$acl_cv_hardcode_direct"
9710 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9711 # Check whether --enable-rpath was given.
9712 if test "${enable_rpath+set}" = set; then :
9713 enableval=$enable_rpath; :
9727 acl_save_prefix="$prefix"
9728 prefix="$acl_final_prefix"
9729 acl_save_exec_prefix="$exec_prefix"
9730 exec_prefix="$acl_final_exec_prefix"
9732 eval additional_includedir=\"$includedir\"
9733 eval additional_libdir=\"$libdir\"
9735 exec_prefix="$acl_save_exec_prefix"
9736 prefix="$acl_save_prefix"
9739 # Check whether --with-libiconv-prefix was given.
9740 if test "${with_libiconv_prefix+set}" = set; then :
9741 withval=$with_libiconv_prefix;
9742 if test "X$withval" = "Xno"; then
9745 if test "X$withval" = "X"; then
9747 acl_save_prefix="$prefix"
9748 prefix="$acl_final_prefix"
9749 acl_save_exec_prefix="$exec_prefix"
9750 exec_prefix="$acl_final_exec_prefix"
9752 eval additional_includedir=\"$includedir\"
9753 eval additional_libdir=\"$libdir\"
9755 exec_prefix="$acl_save_exec_prefix"
9756 prefix="$acl_save_prefix"
9759 additional_includedir="$withval/include"
9760 additional_libdir="$withval/lib"
9771 names_already_handled=
9772 names_next_round='iconv '
9773 while test -n "$names_next_round"; do
9774 names_this_round="$names_next_round"
9776 for name in $names_this_round; do
9778 for n in $names_already_handled; do
9779 if test "$n" = "$name"; then
9784 if test -z "$already_handled"; then
9785 names_already_handled="$names_already_handled $name"
9786 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9787 eval value=\"\$HAVE_LIB$uppername\"
9788 if test -n "$value"; then
9789 if test "$value" = yes; then
9790 eval value=\"\$LIB$uppername\"
9791 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9792 eval value=\"\$LTLIB$uppername\"
9793 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9802 if test $use_additional = yes; then
9803 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9804 found_dir="$additional_libdir"
9805 found_so="$additional_libdir/lib$name.$shlibext"
9806 if test -f "$additional_libdir/lib$name.la"; then
9807 found_la="$additional_libdir/lib$name.la"
9810 if test -f "$additional_libdir/lib$name.$libext"; then
9811 found_dir="$additional_libdir"
9812 found_a="$additional_libdir/lib$name.$libext"
9813 if test -f "$additional_libdir/lib$name.la"; then
9814 found_la="$additional_libdir/lib$name.la"
9819 if test "X$found_dir" = "X"; then
9820 for x in $LDFLAGS $LTLIBICONV; do
9822 acl_save_prefix="$prefix"
9823 prefix="$acl_final_prefix"
9824 acl_save_exec_prefix="$exec_prefix"
9825 exec_prefix="$acl_final_exec_prefix"
9827 exec_prefix="$acl_save_exec_prefix"
9828 prefix="$acl_save_prefix"
9832 dir=`echo "X$x" | sed -e 's/^X-L//'`
9833 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9835 found_so="$dir/lib$name.$shlibext"
9836 if test -f "$dir/lib$name.la"; then
9837 found_la="$dir/lib$name.la"
9840 if test -f "$dir/lib$name.$libext"; then
9842 found_a="$dir/lib$name.$libext"
9843 if test -f "$dir/lib$name.la"; then
9844 found_la="$dir/lib$name.la"
9850 if test "X$found_dir" != "X"; then
9855 if test "X$found_dir" != "X"; then
9856 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9857 if test "X$found_so" != "X"; then
9858 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9859 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9862 for x in $ltrpathdirs; do
9863 if test "X$x" = "X$found_dir"; then
9868 if test -z "$haveit"; then
9869 ltrpathdirs="$ltrpathdirs $found_dir"
9871 if test "$hardcode_direct" = yes; then
9872 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9874 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9877 for x in $rpathdirs; do
9878 if test "X$x" = "X$found_dir"; then
9883 if test -z "$haveit"; then
9884 rpathdirs="$rpathdirs $found_dir"
9888 for x in $LDFLAGS $LIBICONV; do
9890 acl_save_prefix="$prefix"
9891 prefix="$acl_final_prefix"
9892 acl_save_exec_prefix="$exec_prefix"
9893 exec_prefix="$acl_final_exec_prefix"
9895 exec_prefix="$acl_save_exec_prefix"
9896 prefix="$acl_save_prefix"
9898 if test "X$x" = "X-L$found_dir"; then
9903 if test -z "$haveit"; then
9904 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9906 if test "$hardcode_minus_L" != no; then
9907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9909 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9915 if test "X$found_a" != "X"; then
9916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9918 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9921 additional_includedir=
9922 case "$found_dir" in
9924 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9925 additional_includedir="$basedir/include"
9928 if test "X$additional_includedir" != "X"; then
9929 if test "X$additional_includedir" != "X/usr/include"; then
9931 if test "X$additional_includedir" = "X/usr/local/include"; then
9932 if test -n "$GCC"; then
9934 linux*) haveit=yes;;
9938 if test -z "$haveit"; then
9939 for x in $CPPFLAGS $INCICONV; do
9941 acl_save_prefix="$prefix"
9942 prefix="$acl_final_prefix"
9943 acl_save_exec_prefix="$exec_prefix"
9944 exec_prefix="$acl_final_exec_prefix"
9946 exec_prefix="$acl_save_exec_prefix"
9947 prefix="$acl_save_prefix"
9949 if test "X$x" = "X-I$additional_includedir"; then
9954 if test -z "$haveit"; then
9955 if test -d "$additional_includedir"; then
9956 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9962 if test -n "$found_la"; then
9963 save_libdir="$libdir"
9965 */* | *\\*) . "$found_la" ;;
9966 *) . "./$found_la" ;;
9968 libdir="$save_libdir"
9969 for dep in $dependency_libs; do
9972 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9973 if test "X$additional_libdir" != "X/usr/lib"; then
9975 if test "X$additional_libdir" = "X/usr/local/lib"; then
9976 if test -n "$GCC"; then
9978 linux*) haveit=yes;;
9982 if test -z "$haveit"; then
9984 for x in $LDFLAGS $LIBICONV; do
9986 acl_save_prefix="$prefix"
9987 prefix="$acl_final_prefix"
9988 acl_save_exec_prefix="$exec_prefix"
9989 exec_prefix="$acl_final_exec_prefix"
9991 exec_prefix="$acl_save_exec_prefix"
9992 prefix="$acl_save_prefix"
9994 if test "X$x" = "X-L$additional_libdir"; then
9999 if test -z "$haveit"; then
10000 if test -d "$additional_libdir"; then
10001 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10005 for x in $LDFLAGS $LTLIBICONV; do
10007 acl_save_prefix="$prefix"
10008 prefix="$acl_final_prefix"
10009 acl_save_exec_prefix="$exec_prefix"
10010 exec_prefix="$acl_final_exec_prefix"
10012 exec_prefix="$acl_save_exec_prefix"
10013 prefix="$acl_save_prefix"
10015 if test "X$x" = "X-L$additional_libdir"; then
10020 if test -z "$haveit"; then
10021 if test -d "$additional_libdir"; then
10022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10029 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10030 if test "$enable_rpath" != no; then
10032 for x in $rpathdirs; do
10033 if test "X$x" = "X$dir"; then
10038 if test -z "$haveit"; then
10039 rpathdirs="$rpathdirs $dir"
10042 for x in $ltrpathdirs; do
10043 if test "X$x" = "X$dir"; then
10048 if test -z "$haveit"; then
10049 ltrpathdirs="$ltrpathdirs $dir"
10054 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10057 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10060 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10067 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10068 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10074 if test "X$rpathdirs" != "X"; then
10075 if test -n "$hardcode_libdir_separator"; then
10077 for found_dir in $rpathdirs; do
10078 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10080 acl_save_libdir="$libdir"
10082 eval flag=\"$hardcode_libdir_flag_spec\"
10083 libdir="$acl_save_libdir"
10084 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10086 for found_dir in $rpathdirs; do
10087 acl_save_libdir="$libdir"
10088 libdir="$found_dir"
10089 eval flag=\"$hardcode_libdir_flag_spec\"
10090 libdir="$acl_save_libdir"
10091 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10095 if test "X$ltrpathdirs" != "X"; then
10096 for found_dir in $ltrpathdirs; do
10097 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10102 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10104 ac_cpp='$CXXCPP $CPPFLAGS'
10105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10114 am_save_CPPFLAGS="$CPPFLAGS"
10116 for element in $INCICONV; do
10118 for x in $CPPFLAGS; do
10120 acl_save_prefix="$prefix"
10121 prefix="$acl_final_prefix"
10122 acl_save_exec_prefix="$exec_prefix"
10123 exec_prefix="$acl_final_exec_prefix"
10125 exec_prefix="$acl_save_exec_prefix"
10126 prefix="$acl_save_prefix"
10128 if test "X$x" = "X$element"; then
10133 if test -z "$haveit"; then
10134 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10140 $as_echo_n "checking for iconv... " >&6; }
10141 if test "${am_cv_func_iconv+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10145 am_cv_func_iconv="no, consider installing GNU libiconv"
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 #include <stdlib.h>
10154 iconv_t cd = iconv_open("","");
10155 iconv(cd,NULL,NULL,NULL,NULL);
10161 if ac_fn_cxx_try_link "$LINENO"; then :
10162 am_cv_func_iconv=yes
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 if test "$am_cv_func_iconv" != yes; then
10167 am_save_LIBS="$LIBS"
10168 LIBS="$LIBS $LIBICONV"
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 #include <stdlib.h>
10176 iconv_t cd = iconv_open("","");
10177 iconv(cd,NULL,NULL,NULL,NULL);
10183 if ac_fn_cxx_try_link "$LINENO"; then :
10184 am_cv_lib_iconv=yes
10185 am_cv_func_iconv=yes
10187 rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS="$am_save_LIBS"
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10194 $as_echo "$am_cv_func_iconv" >&6; }
10195 if test "$am_cv_func_iconv" = yes; then
10197 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10200 if test "$am_cv_lib_iconv" = yes; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10202 $as_echo_n "checking how to link with libiconv... " >&6; }
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10204 $as_echo "$LIBICONV" >&6; }
10206 CPPFLAGS="$am_save_CPPFLAGS"
10213 if test "$am_cv_func_iconv" = yes; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10215 $as_echo_n "checking for iconv declaration... " >&6; }
10216 if test "${am_cv_proto_iconv+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10223 #include <stdlib.h>
10229 #if defined(__STDC__) || defined(__cplusplus)
10230 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10243 if ac_fn_cxx_try_compile "$LINENO"; then :
10244 am_cv_proto_iconv_arg1=""
10246 am_cv_proto_iconv_arg1="const"
10248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249 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);"
10252 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10254 }$am_cv_proto_iconv" >&5
10256 }$am_cv_proto_iconv" >&6; }
10258 cat >>confdefs.h <<_ACEOF
10259 #define ICONV_CONST $am_cv_proto_iconv_arg1
10265 ac_cpp='$CPP $CPPFLAGS'
10266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10276 am_save_CPPFLAGS="$CPPFLAGS"
10278 for element in $INCICONV; do
10280 for x in $CPPFLAGS; do
10282 acl_save_prefix="$prefix"
10283 prefix="$acl_final_prefix"
10284 acl_save_exec_prefix="$exec_prefix"
10285 exec_prefix="$acl_final_exec_prefix"
10287 exec_prefix="$acl_save_exec_prefix"
10288 prefix="$acl_save_prefix"
10290 if test "X$x" = "X$element"; then
10295 if test -z "$haveit"; then
10296 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10302 $as_echo_n "checking for iconv... " >&6; }
10303 if test "${am_cv_func_iconv+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10307 am_cv_func_iconv="no, consider installing GNU libiconv"
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 #include <stdlib.h>
10316 iconv_t cd = iconv_open("","");
10317 iconv(cd,NULL,NULL,NULL,NULL);
10323 if ac_fn_c_try_link "$LINENO"; then :
10324 am_cv_func_iconv=yes
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 if test "$am_cv_func_iconv" != yes; then
10329 am_save_LIBS="$LIBS"
10330 LIBS="$LIBS $LIBICONV"
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 #include <stdlib.h>
10338 iconv_t cd = iconv_open("","");
10339 iconv(cd,NULL,NULL,NULL,NULL);
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 am_cv_lib_iconv=yes
10347 am_cv_func_iconv=yes
10349 rm -f core conftest.err conftest.$ac_objext \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS="$am_save_LIBS"
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10356 $as_echo "$am_cv_func_iconv" >&6; }
10357 if test "$am_cv_func_iconv" = yes; then
10359 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10362 if test "$am_cv_lib_iconv" = yes; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10364 $as_echo_n "checking how to link with libiconv... " >&6; }
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10366 $as_echo "$LIBICONV" >&6; }
10368 CPPFLAGS="$am_save_CPPFLAGS"
10375 if test "$am_cv_func_iconv" = yes; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10377 $as_echo_n "checking for iconv declaration... " >&6; }
10378 if test "${am_cv_proto_iconv+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 #include <stdlib.h>
10391 #if defined(__STDC__) || defined(__cplusplus)
10392 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 am_cv_proto_iconv_arg1=""
10408 am_cv_proto_iconv_arg1="const"
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 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);"
10414 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10416 }$am_cv_proto_iconv" >&5
10418 }$am_cv_proto_iconv" >&6; }
10420 cat >>confdefs.h <<_ACEOF
10421 #define ICONV_CONST $am_cv_proto_iconv_arg1
10428 # Until we have in-tree GNU iconv:
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10434 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10435 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440 #include <locale.h>
10449 if ac_fn_c_try_link "$LINENO"; then :
10450 am_cv_val_LC_MESSAGES=yes
10452 am_cv_val_LC_MESSAGES=no
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10458 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10459 if test $am_cv_val_LC_MESSAGES = yes; then
10461 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10468 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10469 if test "${am_cv_langinfo_codeset+set}" = set; then :
10470 $as_echo_n "(cached) " >&6
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10474 #include <langinfo.h>
10478 char* cs = nl_langinfo(CODESET);
10483 if ac_fn_c_try_link "$LINENO"; then :
10484 am_cv_langinfo_codeset=yes
10486 am_cv_langinfo_codeset=no
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10493 $as_echo "$am_cv_langinfo_codeset" >&6; }
10494 if test $am_cv_langinfo_codeset = yes; then
10496 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10501 # We will need to find libiberty.h and ansidecl.h
10502 saved_CFLAGS="$CFLAGS"
10503 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10504 saved_CXXFLAGS="$CXXFLAGS"
10505 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10506 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10507 strsignal strstr stpcpy strverscmp \
10508 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10509 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
10511 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10513 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10514 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10515 $as_echo_n "(cached) " >&6
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10520 #define $ac_tr_decl 1
10522 #include "ansidecl.h"
10523 #include "system.h"
10529 char *(*pfn) = (char *(*)) $ac_func ;
10535 if ac_fn_c_try_compile "$LINENO"; then :
10536 eval "gcc_cv_have_decl_$ac_func=yes"
10538 eval "gcc_cv_have_decl_$ac_func=no"
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10546 #define $ac_tr_decl 1
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10552 #define $ac_tr_decl 0
10560 for ac_func in getrlimit setrlimit getrusage
10562 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10564 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10565 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10566 $as_echo_n "(cached) " >&6
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10571 #define $ac_tr_decl 1
10573 #include "ansidecl.h"
10574 #include "system.h"
10575 #ifdef HAVE_SYS_RESOURCE_H
10576 #include <sys/resource.h>
10584 char *(*pfn) = (char *(*)) $ac_func ;
10590 if ac_fn_c_try_compile "$LINENO"; then :
10591 eval "gcc_cv_have_decl_$ac_func=yes"
10593 eval "gcc_cv_have_decl_$ac_func=no"
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10601 #define $ac_tr_decl 1
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10607 #define $ac_tr_decl 0
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10618 #include "ansidecl.h"
10619 #include "system.h"
10620 #ifdef HAVE_SYS_RESOURCE_H
10621 #include <sys/resource.h>
10632 if ac_fn_c_try_compile "$LINENO"; then :
10636 $as_echo "#define rlim_t long" >>confdefs.h
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10642 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10643 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10644 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10645 for ac_func in ldgetname
10647 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10649 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10650 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10651 $as_echo_n "(cached) " >&6
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10656 #define $ac_tr_decl 1
10658 #include "ansidecl.h"
10659 #include "system.h"
10660 #ifdef HAVE_LDFCN_H
10671 char *(*pfn) = (char *(*)) $ac_func ;
10677 if ac_fn_c_try_compile "$LINENO"; then :
10678 eval "gcc_cv_have_decl_$ac_func=yes"
10680 eval "gcc_cv_have_decl_$ac_func=no"
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10688 #define $ac_tr_decl 1
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10694 #define $ac_tr_decl 0
10702 for ac_func in times
10704 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10706 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10707 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10708 $as_echo_n "(cached) " >&6
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10713 #define $ac_tr_decl 1
10715 #include "ansidecl.h"
10716 #include "system.h"
10717 #ifdef HAVE_SYS_TIMES_H
10718 #include <sys/times.h>
10726 char *(*pfn) = (char *(*)) $ac_func ;
10732 if ac_fn_c_try_compile "$LINENO"; then :
10733 eval "gcc_cv_have_decl_$ac_func=yes"
10735 eval "gcc_cv_have_decl_$ac_func=no"
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10743 #define $ac_tr_decl 1
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10749 #define $ac_tr_decl 0
10757 for ac_func in sigaltstack
10759 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10761 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10762 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10763 $as_echo_n "(cached) " >&6
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10768 #define $ac_tr_decl 1
10770 #include "ansidecl.h"
10771 #include "system.h"
10772 #include <signal.h>
10779 char *(*pfn) = (char *(*)) $ac_func ;
10785 if ac_fn_c_try_compile "$LINENO"; then :
10786 eval "gcc_cv_have_decl_$ac_func=yes"
10788 eval "gcc_cv_have_decl_$ac_func=no"
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10796 #define $ac_tr_decl 1
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10802 #define $ac_tr_decl 0
10810 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10812 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10814 ac_cpp='$CXXCPP $CPPFLAGS'
10815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10819 for ac_func in madvise
10821 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10823 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10824 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10825 $as_echo_n "(cached) " >&6
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10830 #define $ac_tr_decl 1
10832 #include "ansidecl.h"
10833 #include "system.h"
10840 char *(*pfn) = (char *(*)) $ac_func ;
10846 if ac_fn_cxx_try_compile "$LINENO"; then :
10847 eval "gcc_cv_have_decl_$ac_func=yes"
10849 eval "gcc_cv_have_decl_$ac_func=no"
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10856 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10857 #define $ac_tr_decl 1
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10863 #define $ac_tr_decl 0
10871 ac_cpp='$CPP $CPPFLAGS'
10872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10877 for ac_func in madvise
10879 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10881 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10882 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10883 $as_echo_n "(cached) " >&6
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 #define $ac_tr_decl 1
10890 #include "ansidecl.h"
10891 #include "system.h"
10898 char *(*pfn) = (char *(*)) $ac_func ;
10904 if ac_fn_c_try_compile "$LINENO"; then :
10905 eval "gcc_cv_have_decl_$ac_func=yes"
10907 eval "gcc_cv_have_decl_$ac_func=no"
10909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10912 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10914 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10915 #define $ac_tr_decl 1
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10921 #define $ac_tr_decl 0
10931 # More time-related stuff.
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10933 $as_echo_n "checking for struct tms... " >&6; }
10934 if test "${ac_cv_struct_tms+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10941 #include "ansidecl.h"
10942 #include "system.h"
10943 #ifdef HAVE_SYS_TIMES_H
10944 #include <sys/times.h>
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956 ac_cv_struct_tms=yes
10958 ac_cv_struct_tms=no
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10963 $as_echo "$ac_cv_struct_tms" >&6; }
10964 if test $ac_cv_struct_tms = yes; then
10966 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10970 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10971 # revisit after autoconf 2.50.
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10973 $as_echo_n "checking for clock_t... " >&6; }
10974 if test "${gcc_cv_type_clock_t+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10981 #include "ansidecl.h"
10982 #include "system.h"
10992 if ac_fn_c_try_compile "$LINENO"; then :
10993 gcc_cv_type_clock_t=yes
10995 gcc_cv_type_clock_t=no
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11000 $as_echo "$gcc_cv_type_clock_t" >&6; }
11001 if test $gcc_cv_type_clock_t = yes; then
11003 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11007 # Check if F_SETLKW is supported by fcntl.
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11009 $as_echo_n "checking for F_SETLKW... " >&6; }
11010 if test "${ac_cv_f_setlkw+set}" = set; then :
11011 $as_echo_n "(cached) " >&6
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11027 return fcntl (1, F_SETLKW, &fl);
11032 if ac_fn_c_try_compile "$LINENO"; then :
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11040 $as_echo "$ac_cv_f_setlkw" >&6; }
11041 if test $ac_cv_f_setlkw = yes; then
11043 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11047 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11048 CFLAGS="$saved_CFLAGS"
11049 CXXFLAGS="$saved_CXXFLAGS"
11051 # mkdir takes a single argument on some systems.
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11053 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11054 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11060 #include <sys/types.h>
11061 #ifdef HAVE_SYS_STAT_H
11062 # include <sys/stat.h>
11064 #ifdef HAVE_UNISTD_H
11065 # include <unistd.h>
11067 #ifdef HAVE_DIRECT_H
11068 # include <direct.h>
11078 if ac_fn_c_try_compile "$LINENO"; then :
11079 gcc_cv_mkdir_takes_one_arg=no
11081 gcc_cv_mkdir_takes_one_arg=yes
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11086 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11087 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11089 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11100 # With Setjmp/Longjmp based exception handling.
11101 # Check whether --enable-sjlj-exceptions was given.
11102 if test "${enable_sjlj_exceptions+set}" = set; then :
11103 enableval=$enable_sjlj_exceptions; case $target in
11105 if test $enableval != yes; then
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11107 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11112 force_sjlj_exceptions=yes
11116 force_sjlj_exceptions=yes
11120 force_sjlj_exceptions=no
11125 if test $force_sjlj_exceptions = yes; then
11126 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11128 cat >>confdefs.h <<_ACEOF
11129 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11134 # --------------------------------------------------------
11135 # Build, host, and target specific configuration fragments
11136 # --------------------------------------------------------
11138 # Collect build-machine-specific information.
11139 . ${srcdir}/config.build
11141 # Collect host-machine-specific information.
11142 . ${srcdir}/config.host
11146 # Collect target-machine-specific information.
11147 . ${srcdir}/config.gcc
11149 extra_objs="${host_extra_objs} ${extra_objs}"
11150 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11152 # Default the target-machine variables that were not explicitly set.
11153 if test x"$tm_file" = x
11154 then tm_file=$cpu_type/$cpu_type.h; fi
11156 if test x"$extra_headers" = x
11157 then extra_headers=; fi
11159 if test x$md_file = x
11160 then md_file=$cpu_type/$cpu_type.md; fi
11162 if test x$out_file = x
11163 then out_file=$cpu_type/$cpu_type.c; fi
11165 if test x"$tmake_file" = x
11166 then tmake_file=$cpu_type/t-$cpu_type
11169 # Support --enable-initfini-array.
11170 if test x$enable_initfini_array != xno; then
11171 tm_file="${tm_file} initfini-array.h"
11174 if test x"$dwarf2" = xyes
11175 then tm_file="$tm_file tm-dwarf2.h"
11178 # Say what files are being used for the output code and MD file.
11179 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11180 echo "Using \`$srcdir/config/$md_file' as machine description file."
11182 # If any of the xm_file variables contain nonexistent files, warn
11183 # about them and drop them.
11186 for x in $build_xm_file; do
11187 if test -f $srcdir/config/$x
11189 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11190 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11193 build_xm_file="$bx"
11196 for x in $host_xm_file; do
11197 if test -f $srcdir/config/$x
11199 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11200 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11206 for x in $xm_file; do
11207 if test -f $srcdir/config/$x
11209 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11210 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11216 for f in $tm_file; do
11219 if test $count = ax; then
11220 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11222 echo "Using the following target machine macro files:"
11223 for f in $tm_file; do
11224 echo " $srcdir/config/$f"
11228 if test x$need_64bit_hwint = xyes; then
11230 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11234 if test x$use_long_long_for_widest_fast_int = xyes; then
11236 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11240 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11242 cat >>confdefs.h <<_ACEOF
11243 #define HAVE_GNU_LD $gnu_ld_bool
11247 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11249 cat >>confdefs.h <<_ACEOF
11250 #define HAVE_GNU_AS $gnu_as_bool
11255 for f in $host_xm_file; do
11258 if test $count = a; then
11260 elif test $count = ax; then
11261 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11263 echo "Using the following host machine macro files:"
11264 for f in $host_xm_file; do
11265 echo " $srcdir/config/$f"
11268 echo "Using ${out_host_hook_obj} for host machine hooks."
11270 if test "$host_xm_file" != "$build_xm_file"; then
11272 for f in $build_xm_file; do
11275 if test $count = a; then
11277 elif test $count = ax; then
11278 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11280 echo "Using the following build machine macro files:"
11281 for f in $build_xm_file; do
11282 echo " $srcdir/config/$f"
11287 if test -n "$configured_native_system_header_dir"; then
11288 native_system_header_dir=$configured_native_system_header_dir
11290 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11294 powerpc*-*-darwin*)
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11296 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11297 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11303 #include <sys/cdefs.h>
11304 #include <sys/signal.h>
11305 #include <ucontext.h>
11306 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11309 if ac_fn_c_try_compile "$LINENO"; then :
11310 gcc_cv_mcontext_underscores=no
11312 gcc_cv_mcontext_underscores=yes
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11317 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11318 if test $gcc_cv_mcontext_underscores = yes; then
11320 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11330 # Check if a valid thread package
11331 case ${enable_threads} in
11334 target_thread_file='single'
11338 target_thread_file='single'
11340 aix | dce | lynx | mipssde | posix | rtems | \
11341 single | tpf | vxworks | win32)
11342 target_thread_file=${enable_threads}
11345 echo "${enable_threads} is an unknown thread package" 1>&2
11350 if test x${thread_file} = x; then
11351 # No thread file set by target-specific clauses in config.gcc,
11352 # so use file chosen by default logic above
11353 thread_file=${target_thread_file}
11361 if test x$enable___cxa_atexit = xyes || \
11362 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11363 if test x$host = x$target; then
11365 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11366 # keyed to flag_use_cxa_atexit
11371 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11372 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11375 echo "__cxa_atexit can't be enabled on this target"
11381 # We can't check for __cxa_atexit when building a cross, so assume
11385 if test x$use_cxa_atexit = xyes; then
11387 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11392 # Look for a file containing extra machine modes.
11393 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11394 extra_modes_file='$(srcdir)'/config/${extra_modes}
11397 cat >>confdefs.h <<_ACEOF
11398 #define EXTRA_MODES_FILE "config/$extra_modes"
11403 # Convert extra_options into a form suitable for Makefile use.
11406 for f in $extra_options; do
11407 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11408 all_opt_files="$all_opt_files $srcdir/config/$f"
11412 # auto-host.h is the file containing items generated by autoconf and is
11413 # the first file included by config.h.
11414 # If host=build, it is correct to have bconfig include auto-host.h
11415 # as well. If host!=build, we are in error and need to do more
11416 # work to find out the build config parameters.
11417 if test x$host = x$build
11419 build_auto=auto-host.h
11421 # We create a subdir, then run autoconf in the subdir.
11422 # To prevent recursion we set host and build for the new
11423 # invocation of configure to the build for this invocation
11430 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11431 *) realsrcdir=../${srcdir};;
11433 saved_CFLAGS="${CFLAGS}"
11434 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11435 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11436 ${realsrcdir}/configure \
11437 --enable-languages=${enable_languages-all} \
11438 --target=$target_alias --host=$build_alias --build=$build_alias
11439 CFLAGS="${saved_CFLAGS}"
11441 # We just finished tests for the build machine, so rename
11442 # the file auto-build.h in the gcc directory.
11443 mv auto-host.h ../auto-build.h
11446 build_auto=auto-build.h
11450 tm_file="${tm_file} defaults.h"
11451 tm_p_file="${tm_p_file} tm-preds.h"
11452 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11453 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11454 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11455 # put this back in temporarily.
11456 xm_file="auto-host.h ansidecl.h ${xm_file}"
11462 # Compile in configure arguments.
11463 if test -f configargs.h ; then
11464 # Being re-configured.
11465 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11466 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11468 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11471 # Double all backslashes and backslash all quotes to turn
11472 # gcc_config_arguments into a C string.
11473 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11474 $gcc_config_arguments
11476 gcc_config_arguments_str=`cat conftest.out`
11479 cat > configargs.h <<EOF
11480 /* Generated automatically. */
11481 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11482 static const char thread_model[] = "$thread_file";
11484 static const struct {
11485 const char *name, *value;
11486 } configure_default_options[] = $configure_default_options;
11489 gcc_BASEVER=`cat $srcdir/BASE-VER`
11490 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11491 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11492 if test -f $srcdir/REVISION ; then
11493 gcc_REVISION=`cat $srcdir/REVISION`
11497 cat > plugin-version.h <<EOF
11498 #include "configargs.h"
11500 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11501 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11502 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11503 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11505 static char basever[] = "$gcc_BASEVER";
11506 static char datestamp[] = "$gcc_DATESTAMP";
11507 static char devphase[] = "$gcc_DEVPHASE";
11508 static char revision[] = "$gcc_REVISION";
11510 /* FIXME plugins: We should make the version information more precise.
11511 One way to do is to add a checksum. */
11513 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11514 devphase, revision,
11515 configuration_arguments};
11518 # Internationalization
11519 # If we haven't got the data from the intl directory,
11520 # assume NLS is disabled.
11529 if test -f ../intl/config.intl; then
11530 . ../intl/config.intl
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11533 $as_echo_n "checking whether NLS is requested... " >&6; }
11534 if test x"$USE_NLS" != xyes; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539 $as_echo "yes" >&6; }
11541 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11545 $as_echo_n "checking for catalogs to be installed... " >&6; }
11546 # Look for .po and .gmo files in the source directory.
11549 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11550 # If there aren't any .gmo files the shell will give us the
11551 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11553 case "$cat" in *\**)
11556 # The quadruple backslash is collapsed to a double backslash
11557 # by the backticks, then collapsed again by the double quotes,
11558 # leaving us with one backslash in the sed expression (right
11559 # before the dot that mustn't act as a wildcard).
11560 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11561 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11562 # The user is allowed to set LINGUAS to a list of languages to
11563 # install catalogs for. If it's empty that means "all of them."
11564 if test "x$LINGUAS" = x; then
11565 CATALOGS="$CATALOGS $cat"
11566 XLINGUAS="$XLINGUAS $lang"
11568 case "$LINGUAS" in *$lang*)
11569 CATALOGS="$CATALOGS $cat"
11570 XLINGUAS="$XLINGUAS $lang"
11575 LINGUAS="$XLINGUAS"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11577 $as_echo "$LINGUAS" >&6; }
11590 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11591 # -liconv on the link line twice.
11592 case "$LIBINTL" in *$LIBICONV*)
11596 # Check whether --enable-secureplt was given.
11597 if test "${enable_secureplt+set}" = set; then :
11598 enableval=$enable_secureplt;
11602 # Check whether --enable-leading-mingw64-underscores was given.
11603 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11604 enableval=$enable_leading_mingw64_underscores;
11607 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11609 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11613 # Check whether --enable-cld was given.
11614 if test "${enable_cld+set}" = set; then :
11615 enableval=$enable_cld;
11621 # Check whether --enable-frame-pointer was given.
11622 if test "${enable_frame_pointer+set}" = set; then :
11623 enableval=$enable_frame_pointer;
11627 linux* | darwin[8912]*)
11628 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11630 enable_frame_pointer=no
11633 enable_frame_pointer=yes
11640 # Windows32 Registry support for specifying GCC installation paths.
11641 # Check whether --enable-win32-registry was given.
11642 if test "${enable_win32_registry+set}" = set; then :
11643 enableval=$enable_win32_registry;
11648 win32 | pe | cygwin* | mingw32* | uwin*)
11649 if test "x$enable_win32_registry" != xno; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11651 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11652 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11655 ac_func_search_save_LIBS=$LIBS
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11665 char RegOpenKeyExA ();
11669 return RegOpenKeyExA ();
11674 for ac_lib in '' advapi32; do
11675 if test -z "$ac_lib"; then
11676 ac_res="none required"
11679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11681 if ac_fn_c_try_link "$LINENO"; then :
11682 ac_cv_search_RegOpenKeyExA=$ac_res
11684 rm -f core conftest.err conftest.$ac_objext \
11686 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11690 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11693 ac_cv_search_RegOpenKeyExA=no
11695 rm conftest.$ac_ext
11696 LIBS=$ac_func_search_save_LIBS
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11699 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11700 ac_res=$ac_cv_search_RegOpenKeyExA
11701 if test "$ac_res" != no; then :
11702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11705 enable_win32_registry=no
11710 if test "x$enable_win32_registry" != xno; then
11712 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11715 if test "x$enable_win32_registry" != xyes \
11716 && test "x$enable_win32_registry" != x; then
11718 cat >>confdefs.h <<_ACEOF
11719 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11727 # Get an absolute path to the GCC top-level source directory
11728 holddir=`${PWDCMD-pwd}`
11730 topdir=`${PWDCMD-pwd}`
11733 # Conditionalize the makefile for this host machine.
11735 for f in ${host_xmake_file}
11737 if test -f ${srcdir}/config/$f
11739 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11743 # Conditionalize the makefile for this target machine.
11745 for f in ${tmake_file}
11747 if test -f ${srcdir}/config/$f
11749 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11752 tmake_file="${tmake_file_}"
11754 out_object_file=`basename $out_file .c`.o
11755 common_out_object_file=`basename $common_out_file .c`.o
11757 tm_file_list="options.h"
11758 tm_include_list="options.h insn-constants.h"
11759 for f in $tm_file; do
11762 f=`echo $f | sed 's/^..//'`
11763 tm_file_list="${tm_file_list} $f"
11764 tm_include_list="${tm_include_list} $f"
11767 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11768 tm_include_list="${tm_include_list} $f"
11771 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11772 tm_include_list="${tm_include_list} config/$f"
11779 for f in $tm_p_file; do
11782 tm_p_file_list="${tm_p_file_list} $f"
11783 tm_p_include_list="${tm_p_include_list} $f"
11786 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11787 tm_p_include_list="${tm_p_include_list} config/$f"
11793 for f in $xm_file; do
11796 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11797 xm_include_list="${xm_include_list} $f"
11800 xm_file_list="${xm_file_list} $f"
11801 xm_include_list="${xm_include_list} $f"
11804 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11805 xm_include_list="${xm_include_list} config/$f"
11811 host_xm_include_list=
11812 for f in $host_xm_file; do
11815 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11816 host_xm_include_list="${host_xm_include_list} $f"
11819 host_xm_file_list="${host_xm_file_list} $f"
11820 host_xm_include_list="${host_xm_include_list} $f"
11823 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11824 host_xm_include_list="${host_xm_include_list} config/$f"
11829 build_xm_file_list=
11830 for f in $build_xm_file; do
11833 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11834 build_xm_include_list="${build_xm_include_list} $f"
11836 auto-build.h | auto-host.h )
11837 build_xm_file_list="${build_xm_file_list} $f"
11838 build_xm_include_list="${build_xm_include_list} $f"
11841 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11842 build_xm_include_list="${build_xm_include_list} config/$f"
11847 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11848 # cross-compiler which does not use the native headers and libraries.
11849 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11852 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11854 if test "x$with_build_sysroot" != x; then
11855 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11857 # This value is used, even on a native system, because
11858 # CROSS_SYSTEM_HEADER_DIR is just
11859 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11860 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11863 if test x$host != x$target
11865 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11867 SYSTEM_HEADER_DIR=$build_system_header_dir
11868 case "$host","$target" in
11869 # Darwin crosses can use the host system's libraries and headers,
11870 # because of the fat library support. Of course, it must be the
11871 # same version of Darwin on both sides. Allow the user to
11872 # just say --target=foo-darwin without a version number to mean
11873 # "the version on this system".
11874 *-*-darwin*,*-*-darwin*)
11875 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11876 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11877 if test $hostos = $targetos -o $targetos = darwin ; then
11879 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11884 i?86-*-*,x86_64-*-* \
11885 | powerpc*-*-*,powerpc64*-*-*)
11886 CROSS="$CROSS -DNATIVE_CROSS" ;;
11891 if test "x$with_headers" = x; then
11898 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11899 SYSTEM_HEADER_DIR=$build_system_header_dir
11902 # If this is a cross-compiler that does not
11903 # have its own set of headers then define
11906 # If this is using newlib, without having the headers available now,
11907 # then define inhibit_libc in LIBGCC2_CFLAGS.
11908 # This prevents libgcc2 from containing any code which requires libc
11910 : ${inhibit_libc=false}
11911 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11912 test x$with_newlib = xyes ; } &&
11913 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11918 # When building gcc with a cross-compiler, we need to adjust things so
11919 # that the generator programs are still built with the native compiler.
11920 # Also, we cannot run fixincludes.
11922 # These are the normal (build=host) settings:
11923 CC_FOR_BUILD='$(CC)'
11924 BUILD_CFLAGS='$(ALL_CFLAGS)'
11925 BUILD_LDFLAGS='$(LDFLAGS)'
11926 STMP_FIXINC=stmp-fixinc
11928 # And these apply if build != host, or we are generating coverage data
11929 if test x$build != x$host || test "x$coverage_flags" != x
11931 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11932 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11935 # Expand extra_headers to include complete path.
11936 # This substitutes for lots of t-* files.
11937 extra_headers_list=
11938 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11939 for file in ${extra_headers} ; do
11940 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11943 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11944 if test x"$use_gcc_tgmath" = xyes
11945 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11948 # Define collect2 in Makefile.
11949 case $host_can_use_collect2 in
11951 *) collect2='collect2$(exeext)' ;;
11955 # Add a definition of USE_COLLECT2 if system wants one.
11956 case $use_collect2 in
11957 no) use_collect2= ;;
11960 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11961 xm_defines="${xm_defines} USE_COLLECT2"
11962 case $host_can_use_collect2 in
11964 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11971 cat >>confdefs.h <<_ACEOF
11972 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11976 # ---------------------------
11977 # Assembler & linker features
11978 # ---------------------------
11980 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11981 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11982 # However when ld-new is first executed from the build tree, libtool will
11983 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11984 # to the build tree. While doing this we need to use the previous-stage
11985 # linker, or we have an infinite loop. The presence of a shell script as
11986 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11987 # the gcc/collect-ld script. So we need to know how libtool works, or
11988 # exec-tool will fail.
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11994 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11999 macro_version='2.2.7a'
12000 macro_revision='1.3134'
12014 ltmain="$ac_aux_dir/ltmain.sh"
12016 # Backslashify metacharacters that are still active within
12017 # double-quoted strings.
12018 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12020 # Same as above, but do not quote variable references.
12021 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12023 # Sed substitution to delay expansion of an escaped shell variable in a
12024 # double_quote_subst'ed string.
12025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12027 # Sed substitution to delay expansion of an escaped single quote.
12028 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12030 # Sed substitution to avoid accidental globbing in evaled expressions
12031 no_glob_subst='s/\*/\\\*/g'
12033 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12035 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12038 $as_echo_n "checking how to print strings... " >&6; }
12039 # Test print first, because it will be a builtin if present.
12040 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12041 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12043 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12046 # Use this function as a fallback that always works.
12047 func_fallback_echo ()
12049 eval 'cat <<_LTECHO_EOF
12053 ECHO='func_fallback_echo'
12056 # func_echo_all arg...
12057 # Invoke $ECHO with all args, space-separated.
12064 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12065 $as_echo "printf" >&6; } ;;
12066 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12067 $as_echo "print -r" >&6; } ;;
12068 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12069 $as_echo "cat" >&6; } ;;
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12086 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12087 if test "${ac_cv_path_SED+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12090 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12091 for ac_i in 1 2 3 4 5 6 7; do
12092 ac_script="$ac_script$as_nl$ac_script"
12094 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12095 { ac_script=; unset ac_script;}
12096 if test -z "$SED"; then
12097 ac_path_SED_found=false
12098 # Loop through the user's path and test for each of PROGNAME-LIST
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12103 test -z "$as_dir" && as_dir=.
12104 for ac_prog in sed gsed; do
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12107 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12108 # Check for GNU ac_path_SED and select it if it is found.
12109 # Check for GNU $ac_path_SED
12110 case `"$ac_path_SED" --version 2>&1` in
12112 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12115 $as_echo_n 0123456789 >"conftest.in"
12118 cat "conftest.in" "conftest.in" >"conftest.tmp"
12119 mv "conftest.tmp" "conftest.in"
12120 cp "conftest.in" "conftest.nl"
12121 $as_echo '' >> "conftest.nl"
12122 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12124 as_fn_arith $ac_count + 1 && ac_count=$as_val
12125 if test $ac_count -gt ${ac_path_SED_max-0}; then
12126 # Best one so far, save it but keep looking for a better one
12127 ac_cv_path_SED="$ac_path_SED"
12128 ac_path_SED_max=$ac_count
12130 # 10*(2^10) chars as input seems more than enough
12131 test $ac_count -gt 10 && break
12133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12136 $ac_path_SED_found && break 3
12141 if test -z "$ac_cv_path_SED"; then
12142 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12145 ac_cv_path_SED=$SED
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12150 $as_echo "$ac_cv_path_SED" >&6; }
12151 SED="$ac_cv_path_SED"
12154 test -z "$SED" && SED=sed
12155 Xsed="$SED -e 1s/^X//"
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12168 $as_echo_n "checking for fgrep... " >&6; }
12169 if test "${ac_cv_path_FGREP+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12172 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12173 then ac_cv_path_FGREP="$GREP -F"
12175 if test -z "$FGREP"; then
12176 ac_path_FGREP_found=false
12177 # Loop through the user's path and test for each of PROGNAME-LIST
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12182 test -z "$as_dir" && as_dir=.
12183 for ac_prog in fgrep; do
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12186 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12187 # Check for GNU ac_path_FGREP and select it if it is found.
12188 # Check for GNU $ac_path_FGREP
12189 case `"$ac_path_FGREP" --version 2>&1` in
12191 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12194 $as_echo_n 0123456789 >"conftest.in"
12197 cat "conftest.in" "conftest.in" >"conftest.tmp"
12198 mv "conftest.tmp" "conftest.in"
12199 cp "conftest.in" "conftest.nl"
12200 $as_echo 'FGREP' >> "conftest.nl"
12201 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12203 as_fn_arith $ac_count + 1 && ac_count=$as_val
12204 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12205 # Best one so far, save it but keep looking for a better one
12206 ac_cv_path_FGREP="$ac_path_FGREP"
12207 ac_path_FGREP_max=$ac_count
12209 # 10*(2^10) chars as input seems more than enough
12210 test $ac_count -gt 10 && break
12212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12215 $ac_path_FGREP_found && break 3
12220 if test -z "$ac_cv_path_FGREP"; then
12221 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12224 ac_cv_path_FGREP=$FGREP
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12230 $as_echo "$ac_cv_path_FGREP" >&6; }
12231 FGREP="$ac_cv_path_FGREP"
12234 test -z "$GREP" && GREP=grep
12254 # Check whether --with-gnu-ld was given.
12255 if test "${with_gnu_ld+set}" = set; then :
12256 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12262 if test "$GCC" = yes; then
12263 # Check if gcc -print-prog-name=ld gives a path.
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12265 $as_echo_n "checking for ld used by $CC... " >&6; }
12268 # gcc leaves a trailing carriage return which upsets mingw
12269 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12271 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12274 # Accept absolute paths.
12276 re_direlt='/[^/][^/]*/\.\./'
12277 # Canonicalize the pathname of ld
12278 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12279 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12280 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12282 test -z "$LD" && LD="$ac_prog"
12285 # If it fails, then pretend we aren't using GCC.
12289 # If it is relative, then search for the first ld in PATH.
12290 with_gnu_ld=unknown
12293 elif test "$with_gnu_ld" = yes; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12295 $as_echo_n "checking for GNU ld... " >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12298 $as_echo_n "checking for non-GNU ld... " >&6; }
12300 if test "${lt_cv_path_LD+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12303 if test -z "$LD"; then
12304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12305 for ac_dir in $PATH; do
12307 test -z "$ac_dir" && ac_dir=.
12308 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12309 lt_cv_path_LD="$ac_dir/$ac_prog"
12310 # Check to see if the program is GNU ld. I'd rather use --version,
12311 # but apparently some variants of GNU ld only accept -v.
12312 # Break only if it was the GNU/non-GNU ld that we prefer.
12313 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12314 *GNU* | *'with BFD'*)
12315 test "$with_gnu_ld" != no && break
12318 test "$with_gnu_ld" != yes && break
12325 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12329 LD="$lt_cv_path_LD"
12330 if test -n "$LD"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12332 $as_echo "$LD" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12337 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12339 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12340 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12343 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12344 case `$LD -v 2>&1 </dev/null` in
12345 *GNU* | *'with BFD'*)
12346 lt_cv_prog_gnu_ld=yes
12349 lt_cv_prog_gnu_ld=no
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12354 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12355 with_gnu_ld=$lt_cv_prog_gnu_ld
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12366 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12367 if test "${lt_cv_path_NM+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12370 if test -n "$NM"; then
12371 # Let the user override the test.
12372 lt_cv_path_NM="$NM"
12374 lt_nm_to_check="${ac_tool_prefix}nm"
12375 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12376 lt_nm_to_check="$lt_nm_to_check nm"
12378 for lt_tmp_nm in $lt_nm_to_check; do
12379 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12380 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12382 test -z "$ac_dir" && ac_dir=.
12383 tmp_nm="$ac_dir/$lt_tmp_nm"
12384 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12385 # Check to see if the nm accepts a BSD-compat flag.
12386 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12387 # nm: unknown option "B" ignored
12388 # Tru64's nm complains that /dev/null is an invalid object file
12389 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12390 */dev/null* | *'Invalid file or object type'*)
12391 lt_cv_path_NM="$tmp_nm -B"
12395 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12397 lt_cv_path_NM="$tmp_nm -p"
12401 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12402 continue # so that we can try to find one that supports BSD flags
12411 : ${lt_cv_path_NM=no}
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12415 $as_echo "$lt_cv_path_NM" >&6; }
12416 if test "$lt_cv_path_NM" != "no"; then
12417 NM="$lt_cv_path_NM"
12419 # Didn't find any BSD compatible name lister, look for dumpbin.
12420 if test -n "$DUMPBIN"; then :
12421 # Let the user override the test.
12423 if test -n "$ac_tool_prefix"; then
12424 for ac_prog in dumpbin "link -dump"
12426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12433 if test -n "$DUMPBIN"; then
12434 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 DUMPBIN=$ac_cv_prog_DUMPBIN
12454 if test -n "$DUMPBIN"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12456 $as_echo "$DUMPBIN" >&6; }
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12463 test -n "$DUMPBIN" && break
12466 if test -z "$DUMPBIN"; then
12467 ac_ct_DUMPBIN=$DUMPBIN
12468 for ac_prog in dumpbin "link -dump"
12470 # Extract the first word of "$ac_prog", so it can be a program name with args.
12471 set dummy $ac_prog; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12477 if test -n "$ac_ct_DUMPBIN"; then
12478 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12498 if test -n "$ac_ct_DUMPBIN"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12500 $as_echo "$ac_ct_DUMPBIN" >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12507 test -n "$ac_ct_DUMPBIN" && break
12510 if test "x$ac_ct_DUMPBIN" = x; then
12513 case $cross_compiling:$ac_tool_warned in
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12517 ac_tool_warned=yes ;;
12519 DUMPBIN=$ac_ct_DUMPBIN
12523 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12525 DUMPBIN="$DUMPBIN -symbols"
12533 if test "$DUMPBIN" != ":"; then
12537 test -z "$NM" && NM=nm
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12545 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12546 if test "${lt_cv_nm_interface+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12549 lt_cv_nm_interface="BSD nm"
12550 echo "int some_variable = 0;" > conftest.$ac_ext
12551 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12552 (eval "$ac_compile" 2>conftest.err)
12553 cat conftest.err >&5
12554 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12555 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12556 cat conftest.err >&5
12557 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12558 cat conftest.out >&5
12559 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12560 lt_cv_nm_interface="MS dumpbin"
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12565 $as_echo "$lt_cv_nm_interface" >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12568 $as_echo_n "checking whether ln -s works... " >&6; }
12570 if test "$LN_S" = "ln -s"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12572 $as_echo "yes" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12575 $as_echo "no, using $LN_S" >&6; }
12578 # find the maximum length of command line arguments
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12580 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12581 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12589 # On DJGPP, this test can blow up pretty badly due to problems in libc
12590 # (any single argument exceeding 2000 bytes causes a buffer overrun
12591 # during glob expansion). Even if it were fixed, the result of this
12592 # check would be larger than it should be.
12593 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12597 # Under GNU Hurd, this test is not required because there is
12598 # no limit to the length of command line arguments.
12599 # Libtool will interpret -1 as no limit whatsoever
12600 lt_cv_sys_max_cmd_len=-1;
12603 cygwin* | mingw* | cegcc*)
12604 # On Win9x/ME, this test blows up -- it succeeds, but takes
12605 # about 5 minutes as the teststring grows exponentially.
12606 # Worse, since 9x/ME are not pre-emptively multitasking,
12607 # you end up with a "frozen" computer, even though with patience
12608 # the test eventually succeeds (with a max line length of 256k).
12609 # Instead, let's just punt: use the minimum linelength reported by
12610 # all of the supported platforms: 8192 (on NT/2K/XP).
12611 lt_cv_sys_max_cmd_len=8192;
12615 # On MiNT this can take a long time and run out of memory.
12616 lt_cv_sys_max_cmd_len=8192;
12620 # On AmigaOS with pdksh, this test takes hours, literally.
12621 # So we just punt and use a minimum line length of 8192.
12622 lt_cv_sys_max_cmd_len=8192;
12625 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12626 # This has been around since 386BSD, at least. Likely further.
12627 if test -x /sbin/sysctl; then
12628 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12629 elif test -x /usr/sbin/sysctl; then
12630 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12632 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12634 # And add a safety zone
12635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12640 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12641 lt_cv_sys_max_cmd_len=196608
12645 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12646 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12647 # nice to cause kernel panics so lets avoid the loop below.
12648 # First set a reasonable default.
12649 lt_cv_sys_max_cmd_len=16384
12651 if test -x /sbin/sysconfig; then
12652 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12653 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12658 lt_cv_sys_max_cmd_len=102400
12660 sysv5* | sco5v6* | sysv4.2uw2*)
12661 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12662 if test -n "$kargmax"; then
12663 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12665 lt_cv_sys_max_cmd_len=32768
12669 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12670 if test -n "$lt_cv_sys_max_cmd_len"; then
12671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12674 # Make teststring a little bigger before we do anything with it.
12675 # a 1K string should be a reasonable start.
12676 for i in 1 2 3 4 5 6 7 8 ; do
12677 teststring=$teststring$teststring
12679 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12680 # If test is not a shell built-in, we'll probably end up computing a
12681 # maximum length that is only half of the actual maximum length, but
12683 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12684 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12685 test $i != 17 # 1/2 MB should be enough
12688 teststring=$teststring$teststring
12690 # Only check the string length outside the loop.
12691 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12693 # Add a significant safety factor because C++ compilers can tack on
12694 # massive amounts of additional arguments before passing them to the
12695 # linker. It appears as though 1/2 is a usable value.
12696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12703 if test -n $lt_cv_sys_max_cmd_len ; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12705 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12708 $as_echo "none" >&6; }
12710 max_cmd_len=$lt_cv_sys_max_cmd_len
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12722 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12723 # Try some XSI features
12725 ( _lt_dummy="a/b/c"
12726 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12728 && eval 'test $(( 1 + 1 )) -eq 2 \
12729 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12732 $as_echo "$xsi_shell" >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12736 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12738 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12740 && lt_shell_append=yes
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12742 $as_echo "$lt_shell_append" >&6; }
12745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12755 # test EBCDIC or ASCII
12756 case `echo X|tr X '\101'` in
12757 A) # ASCII based system
12758 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12759 lt_SP2NL='tr \040 \012'
12760 lt_NL2SP='tr \015\012 \040\040'
12762 *) # EBCDIC based system
12763 lt_SP2NL='tr \100 \n'
12764 lt_NL2SP='tr \r\n \100\100'
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12778 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12781 lt_cv_ld_reload_flag='-r'
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12785 reload_flag=$lt_cv_ld_reload_flag
12786 case $reload_flag in
12788 *) reload_flag=" $reload_flag" ;;
12790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12793 if test "$GCC" = yes; then
12794 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12809 if test -n "$ac_tool_prefix"; then
12810 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12811 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813 $as_echo_n "checking for $ac_word... " >&6; }
12814 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12817 if test -n "$OBJDUMP"; then
12818 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12827 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 OBJDUMP=$ac_cv_prog_OBJDUMP
12838 if test -n "$OBJDUMP"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12840 $as_echo "$OBJDUMP" >&6; }
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12848 if test -z "$ac_cv_prog_OBJDUMP"; then
12849 ac_ct_OBJDUMP=$OBJDUMP
12850 # Extract the first word of "objdump", so it can be a program name with args.
12851 set dummy objdump; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853 $as_echo_n "checking for $ac_word... " >&6; }
12854 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
12857 if test -n "$ac_ct_OBJDUMP"; then
12858 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12877 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12878 if test -n "$ac_ct_OBJDUMP"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12880 $as_echo "$ac_ct_OBJDUMP" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12886 if test "x$ac_ct_OBJDUMP" = x; then
12889 case $cross_compiling:$ac_tool_warned in
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12893 ac_tool_warned=yes ;;
12895 OBJDUMP=$ac_ct_OBJDUMP
12898 OBJDUMP="$ac_cv_prog_OBJDUMP"
12901 test -z "$OBJDUMP" && OBJDUMP=objdump
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12912 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12913 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12916 lt_cv_file_magic_cmd='$MAGIC_CMD'
12917 lt_cv_file_magic_test_file=
12918 lt_cv_deplibs_check_method='unknown'
12919 # Need to set the preceding variable on all platforms that support
12920 # interlibrary dependencies.
12921 # 'none' -- dependencies not supported.
12922 # `unknown' -- same as none, but documents that we really don't know.
12923 # 'pass_all' -- all dependencies passed with no checks.
12924 # 'test_compile' -- check by making test program.
12925 # 'file_magic [[regex]]' -- check by looking for files in library path
12926 # which responds to the $file_magic_cmd with a given extended regex.
12927 # If you have `file' or equivalent on your system and you're not sure
12928 # whether `pass_all' will *always* work, you probably want this one.
12932 lt_cv_deplibs_check_method=pass_all
12936 lt_cv_deplibs_check_method=pass_all
12940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12941 lt_cv_file_magic_cmd='/usr/bin/file -L'
12942 lt_cv_file_magic_test_file=/shlib/libc.so
12946 # func_win32_libid is a shell function defined in ltmain.sh
12947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12948 lt_cv_file_magic_cmd='func_win32_libid'
12952 # Base MSYS/MinGW do not provide the 'file' command needed by
12953 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12954 # unless we find 'file', for example because we are cross-compiling.
12955 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12956 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12958 lt_cv_file_magic_cmd='func_win32_libid'
12960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12961 lt_cv_file_magic_cmd='$OBJDUMP -f'
12966 # use the weaker test based on 'objdump'. See mingw*.
12967 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12968 lt_cv_file_magic_cmd='$OBJDUMP -f'
12971 darwin* | rhapsody*)
12972 lt_cv_deplibs_check_method=pass_all
12975 freebsd* | dragonfly*)
12976 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12979 # Not sure whether the presence of OpenBSD here was a mistake.
12980 # Let's accept both of them until this is cleared up.
12981 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12982 lt_cv_file_magic_cmd=/usr/bin/file
12983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12987 lt_cv_deplibs_check_method=pass_all
12992 lt_cv_deplibs_check_method=pass_all
12996 lt_cv_deplibs_check_method=pass_all
12999 hpux10.20* | hpux11*)
13000 lt_cv_file_magic_cmd=/usr/bin/file
13003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13004 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13007 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]'
13008 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13012 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13018 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13022 irix5* | irix6* | nonstopux*)
13024 *-32|*"-32 ") libmagic=32-bit;;
13025 *-n32|*"-n32 ") libmagic=N32;;
13026 *-64|*"-64 ") libmagic=64-bit;;
13027 *) libmagic=never-match;;
13029 lt_cv_deplibs_check_method=pass_all
13032 # This must be Linux ELF.
13033 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13034 lt_cv_deplibs_check_method=pass_all
13038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13047 lt_cv_file_magic_cmd=/usr/bin/file
13048 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13052 lt_cv_deplibs_check_method=pass_all
13056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13063 osf3* | osf4* | osf5*)
13064 lt_cv_deplibs_check_method=pass_all
13068 lt_cv_deplibs_check_method=pass_all
13072 lt_cv_deplibs_check_method=pass_all
13075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13076 lt_cv_deplibs_check_method=pass_all
13080 case $host_vendor in
13082 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]'
13083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13086 lt_cv_deplibs_check_method=pass_all
13089 lt_cv_file_magic_cmd='/bin/file'
13090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13093 lt_cv_file_magic_cmd='/bin/file'
13094 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13095 lt_cv_file_magic_test_file=/lib/libc.so
13098 lt_cv_deplibs_check_method=pass_all
13101 lt_cv_deplibs_check_method=pass_all
13107 lt_cv_deplibs_check_method=pass_all
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13113 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13114 file_magic_cmd=$lt_cv_file_magic_cmd
13115 deplibs_check_method=$lt_cv_deplibs_check_method
13116 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13129 if test -n "$ac_tool_prefix"; then
13130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13131 set dummy ${ac_tool_prefix}ar; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if test "${ac_cv_prog_AR+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
13137 if test -n "$AR"; then
13138 ac_cv_prog_AR="$AR" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_AR="${ac_tool_prefix}ar"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 if test -n "$AR"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13160 $as_echo "$AR" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13168 if test -z "$ac_cv_prog_AR"; then
13170 # Extract the first word of "ar", so it can be a program name with args.
13171 set dummy ar; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
13177 if test -n "$ac_ct_AR"; then
13178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187 ac_cv_prog_ac_ct_AR="ar"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13198 if test -n "$ac_ct_AR"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13200 $as_echo "$ac_ct_AR" >&6; }
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13206 if test "x$ac_ct_AR" = x; then
13209 case $cross_compiling:$ac_tool_warned in
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213 ac_tool_warned=yes ;;
13218 AR="$ac_cv_prog_AR"
13221 test -z "$AR" && AR=ar
13222 test -z "$AR_FLAGS" && AR_FLAGS=cru
13234 if test -n "$ac_tool_prefix"; then
13235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13236 set dummy ${ac_tool_prefix}strip; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if test "${ac_cv_prog_STRIP+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13242 if test -n "$STRIP"; then
13243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 STRIP=$ac_cv_prog_STRIP
13263 if test -n "$STRIP"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13265 $as_echo "$STRIP" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13273 if test -z "$ac_cv_prog_STRIP"; then
13275 # Extract the first word of "strip", so it can be a program name with args.
13276 set dummy strip; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13282 if test -n "$ac_ct_STRIP"; then
13283 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_prog_ac_ct_STRIP="strip"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13303 if test -n "$ac_ct_STRIP"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13305 $as_echo "$ac_ct_STRIP" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13311 if test "x$ac_ct_STRIP" = x; then
13314 case $cross_compiling:$ac_tool_warned in
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13318 ac_tool_warned=yes ;;
13323 STRIP="$ac_cv_prog_STRIP"
13326 test -z "$STRIP" && STRIP=:
13333 if test -n "$ac_tool_prefix"; then
13334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13339 $as_echo_n "(cached) " >&6
13341 if test -n "$RANLIB"; then
13342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 RANLIB=$ac_cv_prog_RANLIB
13362 if test -n "$RANLIB"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13364 $as_echo "$RANLIB" >&6; }
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13372 if test -z "$ac_cv_prog_RANLIB"; then
13373 ac_ct_RANLIB=$RANLIB
13374 # Extract the first word of "ranlib", so it can be a program name with args.
13375 set dummy ranlib; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13377 $as_echo_n "checking for $ac_word... " >&6; }
13378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13381 if test -n "$ac_ct_RANLIB"; then
13382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13391 ac_cv_prog_ac_ct_RANLIB="ranlib"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13402 if test -n "$ac_ct_RANLIB"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13404 $as_echo "$ac_ct_RANLIB" >&6; }
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13410 if test "x$ac_ct_RANLIB" = x; then
13413 case $cross_compiling:$ac_tool_warned in
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13417 ac_tool_warned=yes ;;
13419 RANLIB=$ac_ct_RANLIB
13422 RANLIB="$ac_cv_prog_RANLIB"
13425 test -z "$RANLIB" && RANLIB=:
13432 # Determine commands to create old-style static archives.
13433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13434 old_postinstall_cmds='chmod 644 $oldlib'
13435 old_postuninstall_cmds=
13437 if test -n "$RANLIB"; then
13440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13446 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13451 lock_old_archive_extraction=yes ;;
13453 lock_old_archive_extraction=no ;;
13494 # If no C compiler was specified, use CC.
13497 # If no C compiler flags were specified, use CFLAGS.
13498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13500 # Allow CC to be a program name with arguments.
13504 # Check for command to grab the raw symbol name followed by C symbol from nm.
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13506 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13507 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13511 # These are sane defaults that work on at least a few old systems.
13512 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13514 # Character class describing NM global symbol codes.
13515 symcode='[BCDEGRST]'
13517 # Regexp to match symbols that can be accessed directly from C.
13518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13520 # Define system-specific variables.
13525 cygwin* | mingw* | pw32* | cegcc*)
13526 symcode='[ABCDGISTW]'
13529 if test "$host_cpu" = ia64; then
13530 symcode='[ABCDEGRST]'
13533 irix* | nonstopux*)
13534 symcode='[BCDEGRST]'
13537 symcode='[BCDEGQRST]'
13548 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13556 # If we're using GNU nm, then use its standard symbol codes.
13557 case `$NM -V 2>&1` in
13558 *GNU* | *'with BFD'*)
13559 symcode='[ABCDGIRSTW]' ;;
13562 # Transform an extracted symbol line into a proper C declaration.
13563 # Some systems (esp. on ia64) link data and code symbols differently,
13564 # so use this general approach.
13565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13567 # Transform an extracted symbol line into symbol name and symbol address
13568 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13569 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'"
13571 # Handle CRLF in mingw tool chain
13575 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13579 # Try without a prefix underscore, then with it.
13580 for ac_symprfx in "" "_"; do
13582 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13583 symxfrm="\\1 $ac_symprfx\\2 \\2"
13585 # Write the raw and C identifiers.
13586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13587 # Fake it for dumpbin and say T for any non-static function
13588 # and D for any global variable.
13589 # Also find C++ and __fastcall symbols from MSVC++,
13590 # which start with @ or ?.
13591 lt_cv_sys_global_symbol_pipe="$AWK '"\
13592 " {last_section=section; section=\$ 3};"\
13593 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13594 " \$ 0!~/External *\|/{next};"\
13595 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13596 " {if(hide[section]) next};"\
13597 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13598 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13599 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13600 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13601 " ' prfx=^$ac_symprfx"
13603 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13606 # Check to see that the pipe works correctly.
13610 cat > conftest.$ac_ext <<_LT_EOF
13615 void nm_test_func(void);
13616 void nm_test_func(void){}
13620 int main(){nm_test_var='a';nm_test_func();return(0);}
13623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13624 (eval $ac_compile) 2>&5
13626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627 test $ac_status = 0; }; then
13628 # Now try to grab the symbols.
13630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13631 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634 test $ac_status = 0; } && test -s "$nlist"; then
13635 # Try sorting and uniquifying the output.
13636 if sort "$nlist" | uniq > "$nlist"T; then
13637 mv -f "$nlist"T "$nlist"
13642 # Make sure that we snagged all the symbols we need.
13643 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13644 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13645 cat <<_LT_EOF > conftest.$ac_ext
13651 # Now generate the symbol file.
13652 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13654 cat <<_LT_EOF >> conftest.$ac_ext
13656 /* The mapping between symbol names and symbols. */
13661 lt__PROGRAM__LTX_preloaded_symbols[] =
13663 { "@PROGRAM@", (void *) 0 },
13665 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13666 cat <<\_LT_EOF >> conftest.$ac_ext
13670 /* This works around a problem in FreeBSD linker */
13671 #ifdef FREEBSD_WORKAROUND
13672 static const void *lt_preloaded_setup() {
13673 return lt__PROGRAM__LTX_preloaded_symbols;
13681 # Now try linking the two files.
13682 mv conftest.$ac_objext conftstm.$ac_objext
13683 lt_save_LIBS="$LIBS"
13684 lt_save_CFLAGS="$CFLAGS"
13685 LIBS="conftstm.$ac_objext"
13686 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13688 (eval $ac_link) 2>&5
13690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13691 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13694 LIBS="$lt_save_LIBS"
13695 CFLAGS="$lt_save_CFLAGS"
13697 echo "cannot find nm_test_func in $nlist" >&5
13700 echo "cannot find nm_test_var in $nlist" >&5
13703 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13706 echo "$progname: failed program was:" >&5
13707 cat conftest.$ac_ext >&5
13709 rm -rf conftest* conftst*
13711 # Do not use the global_symbol_pipe unless it works.
13712 if test "$pipe_works" = yes; then
13715 lt_cv_sys_global_symbol_pipe=
13721 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13722 lt_cv_sys_global_symbol_to_cdecl=
13724 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13726 $as_echo "failed" >&6; }
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13729 $as_echo "ok" >&6; }
13753 # Check whether --enable-libtool-lock was given.
13754 if test "${enable_libtool_lock+set}" = set; then :
13755 enableval=$enable_libtool_lock;
13758 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13760 # Some flags need to be propagated to the compiler or linker for good
13764 # Find out which ABI we are using.
13765 echo 'int i;' > conftest.$ac_ext
13766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13767 (eval $ac_compile) 2>&5
13769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13770 test $ac_status = 0; }; then
13771 case `/usr/bin/file conftest.$ac_objext` in
13773 HPUX_IA64_MODE="32"
13776 HPUX_IA64_MODE="64"
13783 # Find out which ABI we are using.
13784 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13786 (eval $ac_compile) 2>&5
13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13789 test $ac_status = 0; }; then
13790 if test "$lt_cv_prog_gnu_ld" = yes; then
13791 case `/usr/bin/file conftest.$ac_objext` in
13793 LD="${LD-ld} -melf32bsmip"
13796 LD="${LD-ld} -melf32bmipn32"
13799 LD="${LD-ld} -melf64bmip"
13803 case `/usr/bin/file conftest.$ac_objext` in
13819 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13820 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13821 # Find out which ABI we are using.
13822 echo 'int i;' > conftest.$ac_ext
13823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13824 (eval $ac_compile) 2>&5
13826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827 test $ac_status = 0; }; then
13828 case `/usr/bin/file conftest.o` in
13831 x86_64-*kfreebsd*-gnu)
13832 LD="${LD-ld} -m elf_i386_fbsd"
13835 LD="${LD-ld} -m elf_i386"
13837 ppc64-*linux*|powerpc64-*linux*)
13838 LD="${LD-ld} -m elf32ppclinux"
13841 LD="${LD-ld} -m elf_s390"
13844 LD="${LD-ld} -m elf32_sparc"
13850 x86_64-*kfreebsd*-gnu)
13851 LD="${LD-ld} -m elf_x86_64_fbsd"
13854 LD="${LD-ld} -m elf_x86_64"
13856 ppc*-*linux*|powerpc*-*linux*)
13857 LD="${LD-ld} -m elf64ppc"
13859 s390*-*linux*|s390*-*tpf*)
13860 LD="${LD-ld} -m elf64_s390"
13863 LD="${LD-ld} -m elf64_sparc"
13873 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13874 SAVE_CFLAGS="$CFLAGS"
13875 CFLAGS="$CFLAGS -belf"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13877 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13878 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13882 ac_cpp='$CPP $CPPFLAGS'
13883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 lt_cv_cc_needs_belf=yes
13901 lt_cv_cc_needs_belf=no
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13906 ac_cpp='$CPP $CPPFLAGS'
13907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13913 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13914 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13915 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13916 CFLAGS="$SAVE_CFLAGS"
13920 # Find out which ABI we are using.
13921 echo 'int i;' > conftest.$ac_ext
13922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13923 (eval $ac_compile) 2>&5
13925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926 test $ac_status = 0; }; then
13927 case `/usr/bin/file conftest.o` in
13929 case $lt_cv_prog_gnu_ld in
13930 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13944 need_locks="$enable_libtool_lock"
13948 rhapsody* | darwin*)
13949 if test -n "$ac_tool_prefix"; then
13950 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13951 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13953 $as_echo_n "checking for $ac_word... " >&6; }
13954 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13955 $as_echo_n "(cached) " >&6
13957 if test -n "$DSYMUTIL"; then
13958 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13964 test -z "$as_dir" && as_dir=.
13965 for ac_exec_ext in '' $ac_executable_extensions; do
13966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13967 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13977 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13978 if test -n "$DSYMUTIL"; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13980 $as_echo "$DSYMUTIL" >&6; }
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983 $as_echo "no" >&6; }
13988 if test -z "$ac_cv_prog_DSYMUTIL"; then
13989 ac_ct_DSYMUTIL=$DSYMUTIL
13990 # Extract the first word of "dsymutil", so it can be a program name with args.
13991 set dummy dsymutil; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13995 $as_echo_n "(cached) " >&6
13997 if test -n "$ac_ct_DSYMUTIL"; then
13998 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14007 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14018 if test -n "$ac_ct_DSYMUTIL"; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14020 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14026 if test "x$ac_ct_DSYMUTIL" = x; then
14029 case $cross_compiling:$ac_tool_warned in
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14033 ac_tool_warned=yes ;;
14035 DSYMUTIL=$ac_ct_DSYMUTIL
14038 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14041 if test -n "$ac_tool_prefix"; then
14042 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14045 $as_echo_n "checking for $ac_word... " >&6; }
14046 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14047 $as_echo_n "(cached) " >&6
14049 if test -n "$NMEDIT"; then
14050 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14056 test -z "$as_dir" && as_dir=.
14057 for ac_exec_ext in '' $ac_executable_extensions; do
14058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14059 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 NMEDIT=$ac_cv_prog_NMEDIT
14070 if test -n "$NMEDIT"; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14072 $as_echo "$NMEDIT" >&6; }
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14075 $as_echo "no" >&6; }
14080 if test -z "$ac_cv_prog_NMEDIT"; then
14081 ac_ct_NMEDIT=$NMEDIT
14082 # Extract the first word of "nmedit", so it can be a program name with args.
14083 set dummy nmedit; ac_word=$2
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14085 $as_echo_n "checking for $ac_word... " >&6; }
14086 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
14089 if test -n "$ac_ct_NMEDIT"; then
14090 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14093 for as_dir in $PATH
14096 test -z "$as_dir" && as_dir=.
14097 for ac_exec_ext in '' $ac_executable_extensions; do
14098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14099 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14110 if test -n "$ac_ct_NMEDIT"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14112 $as_echo "$ac_ct_NMEDIT" >&6; }
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14118 if test "x$ac_ct_NMEDIT" = x; then
14121 case $cross_compiling:$ac_tool_warned in
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14125 ac_tool_warned=yes ;;
14127 NMEDIT=$ac_ct_NMEDIT
14130 NMEDIT="$ac_cv_prog_NMEDIT"
14133 if test -n "$ac_tool_prefix"; then
14134 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14135 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14137 $as_echo_n "checking for $ac_word... " >&6; }
14138 if test "${ac_cv_prog_LIPO+set}" = set; then :
14139 $as_echo_n "(cached) " >&6
14141 if test -n "$LIPO"; then
14142 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14151 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 LIPO=$ac_cv_prog_LIPO
14162 if test -n "$LIPO"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14164 $as_echo "$LIPO" >&6; }
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14172 if test -z "$ac_cv_prog_LIPO"; then
14174 # Extract the first word of "lipo", so it can be a program name with args.
14175 set dummy lipo; ac_word=$2
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14177 $as_echo_n "checking for $ac_word... " >&6; }
14178 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14181 if test -n "$ac_ct_LIPO"; then
14182 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185 for as_dir in $PATH
14188 test -z "$as_dir" && as_dir=.
14189 for ac_exec_ext in '' $ac_executable_extensions; do
14190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14191 ac_cv_prog_ac_ct_LIPO="lipo"
14192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14202 if test -n "$ac_ct_LIPO"; then
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14204 $as_echo "$ac_ct_LIPO" >&6; }
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207 $as_echo "no" >&6; }
14210 if test "x$ac_ct_LIPO" = x; then
14213 case $cross_compiling:$ac_tool_warned in
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14217 ac_tool_warned=yes ;;
14222 LIPO="$ac_cv_prog_LIPO"
14225 if test -n "$ac_tool_prefix"; then
14226 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14227 set dummy ${ac_tool_prefix}otool; ac_word=$2
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14229 $as_echo_n "checking for $ac_word... " >&6; }
14230 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14231 $as_echo_n "(cached) " >&6
14233 if test -n "$OTOOL"; then
14234 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14237 for as_dir in $PATH
14240 test -z "$as_dir" && as_dir=.
14241 for ac_exec_ext in '' $ac_executable_extensions; do
14242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14243 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 OTOOL=$ac_cv_prog_OTOOL
14254 if test -n "$OTOOL"; then
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14256 $as_echo "$OTOOL" >&6; }
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259 $as_echo "no" >&6; }
14264 if test -z "$ac_cv_prog_OTOOL"; then
14266 # Extract the first word of "otool", so it can be a program name with args.
14267 set dummy otool; ac_word=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 $as_echo_n "checking for $ac_word... " >&6; }
14270 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14271 $as_echo_n "(cached) " >&6
14273 if test -n "$ac_ct_OTOOL"; then
14274 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14277 for as_dir in $PATH
14280 test -z "$as_dir" && as_dir=.
14281 for ac_exec_ext in '' $ac_executable_extensions; do
14282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14283 ac_cv_prog_ac_ct_OTOOL="otool"
14284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14294 if test -n "$ac_ct_OTOOL"; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14296 $as_echo "$ac_ct_OTOOL" >&6; }
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14302 if test "x$ac_ct_OTOOL" = x; then
14305 case $cross_compiling:$ac_tool_warned in
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14309 ac_tool_warned=yes ;;
14314 OTOOL="$ac_cv_prog_OTOOL"
14317 if test -n "$ac_tool_prefix"; then
14318 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14319 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14323 $as_echo_n "(cached) " >&6
14325 if test -n "$OTOOL64"; then
14326 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14332 test -z "$as_dir" && as_dir=.
14333 for ac_exec_ext in '' $ac_executable_extensions; do
14334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14335 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14345 OTOOL64=$ac_cv_prog_OTOOL64
14346 if test -n "$OTOOL64"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14348 $as_echo "$OTOOL64" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14356 if test -z "$ac_cv_prog_OTOOL64"; then
14357 ac_ct_OTOOL64=$OTOOL64
14358 # Extract the first word of "otool64", so it can be a program name with args.
14359 set dummy otool64; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14365 if test -n "$ac_ct_OTOOL64"; then
14366 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14375 ac_cv_prog_ac_ct_OTOOL64="otool64"
14376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14386 if test -n "$ac_ct_OTOOL64"; then
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14388 $as_echo "$ac_ct_OTOOL64" >&6; }
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14394 if test "x$ac_ct_OTOOL64" = x; then
14397 case $cross_compiling:$ac_tool_warned in
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14401 ac_tool_warned=yes ;;
14403 OTOOL64=$ac_ct_OTOOL64
14406 OTOOL64="$ac_cv_prog_OTOOL64"
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14436 $as_echo_n "checking for -single_module linker flag... " >&6; }
14437 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14440 lt_cv_apple_cc_single_mod=no
14441 if test -z "${LT_MULTI_MODULE}"; then
14442 # By default we will add the -single_module flag. You can override
14443 # by either setting the environment variable LT_MULTI_MODULE
14444 # non-empty at configure time, or by adding -multi_module to the
14446 rm -rf libconftest.dylib*
14447 echo "int foo(void){return 1;}" > conftest.c
14448 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14449 -dynamiclib -Wl,-single_module conftest.c" >&5
14450 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14451 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14453 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14454 lt_cv_apple_cc_single_mod=yes
14456 cat conftest.err >&5
14458 rm -rf libconftest.dylib*
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14466 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
14469 lt_cv_ld_exported_symbols_list=no
14470 save_LDFLAGS=$LDFLAGS
14471 echo "_main" > conftest.sym
14472 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14484 if ac_fn_c_try_link "$LINENO"; then :
14485 lt_cv_ld_exported_symbols_list=yes
14487 lt_cv_ld_exported_symbols_list=no
14489 rm -f core conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491 LDFLAGS="$save_LDFLAGS"
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14495 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14497 $as_echo_n "checking for -force_load linker flag... " >&6; }
14498 if test "${lt_cv_ld_force_load+set}" = set; then :
14499 $as_echo_n "(cached) " >&6
14501 lt_cv_ld_force_load=no
14502 cat > conftest.c << _LT_EOF
14503 int forced_loaded() { return 2;}
14505 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14506 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14507 echo "$AR cru libconftest.a conftest.o" >&5
14508 $AR cru libconftest.a conftest.o 2>&5
14509 cat > conftest.c << _LT_EOF
14510 int main() { return 0;}
14512 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14513 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14515 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14516 lt_cv_ld_force_load=yes
14518 cat conftest.err >&5
14520 rm -f conftest.err libconftest.a conftest conftest.c
14521 rm -rf conftest.dSYM
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14525 $as_echo "$lt_cv_ld_force_load" >&6; }
14527 rhapsody* | darwin1.[012])
14528 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14530 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14531 darwin*) # darwin 5.x on
14532 # if running on 10.5 or later, the deployment target defaults
14533 # to the OS version, if on x86, and 10.4, the deployment
14534 # target defaults to 10.4. Don't you love it?
14535 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14536 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14537 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14539 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14541 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14545 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14546 _lt_dar_single_mod='$single_module'
14548 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14549 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14551 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14553 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14554 _lt_dsymutil='~$DSYMUTIL $lib || :'
14561 for ac_header in dlfcn.h
14563 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14564 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14565 cat >>confdefs.h <<_ACEOF
14566 #define HAVE_DLFCN_H 1
14583 enable_win32_dll=no
14586 # Check whether --enable-shared was given.
14587 if test "${enable_shared+set}" = set; then :
14588 enableval=$enable_shared; p=${PACKAGE-default}
14590 yes) enable_shared=yes ;;
14591 no) enable_shared=no ;;
14594 # Look at the argument we got. We use all the common list separators.
14595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14596 for pkg in $enableval; do
14598 if test "X$pkg" = "X$p"; then
14617 # Check whether --enable-static was given.
14618 if test "${enable_static+set}" = set; then :
14619 enableval=$enable_static; p=${PACKAGE-default}
14621 yes) enable_static=yes ;;
14622 no) enable_static=no ;;
14625 # Look at the argument we got. We use all the common list separators.
14626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14627 for pkg in $enableval; do
14629 if test "X$pkg" = "X$p"; then
14649 # Check whether --with-pic was given.
14650 if test "${with_pic+set}" = set; then :
14651 withval=$with_pic; pic_mode="$withval"
14657 test -z "$pic_mode" && pic_mode=default
14665 # Check whether --enable-fast-install was given.
14666 if test "${enable_fast_install+set}" = set; then :
14667 enableval=$enable_fast_install; p=${PACKAGE-default}
14669 yes) enable_fast_install=yes ;;
14670 no) enable_fast_install=no ;;
14672 enable_fast_install=no
14673 # Look at the argument we got. We use all the common list separators.
14674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14675 for pkg in $enableval; do
14677 if test "X$pkg" = "X$p"; then
14678 enable_fast_install=yes
14685 enable_fast_install=yes
14698 # This can be used to rebuild libtool when needed
14699 LIBTOOL_DEPS="$ltmain"
14701 # Always use our own libtool.
14702 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14729 test -z "$LN_S" && LN_S="ln -s"
14744 if test -n "${ZSH_VERSION+set}" ; then
14745 setopt NO_GLOB_SUBST
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14749 $as_echo_n "checking for objdir... " >&6; }
14750 if test "${lt_cv_objdir+set}" = set; then :
14751 $as_echo_n "(cached) " >&6
14753 rm -f .libs 2>/dev/null
14754 mkdir .libs 2>/dev/null
14755 if test -d .libs; then
14758 # MS-DOS does not allow filenames that begin with a dot.
14761 rmdir .libs 2>/dev/null
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14764 $as_echo "$lt_cv_objdir" >&6; }
14765 objdir=$lt_cv_objdir
14771 cat >>confdefs.h <<_ACEOF
14772 #define LT_OBJDIR "$lt_cv_objdir/"
14780 # AIX sometimes has problems with the GCC collect2 program. For some
14781 # reason, if we set the COLLECT_NAMES environment variable, the problems
14782 # vanish in a puff of smoke.
14783 if test "X${COLLECT_NAMES+set}" != Xset; then
14785 export COLLECT_NAMES
14790 # Global variables:
14792 can_build_shared=yes
14794 # All known linkers require a `.a' archive for static linking (except MSVC,
14795 # which needs '.lib').
14798 with_gnu_ld="$lt_cv_prog_gnu_ld"
14801 old_CFLAGS="$CFLAGS"
14803 # Set sane defaults for various variables
14804 test -z "$CC" && CC=cc
14805 test -z "$LTCC" && LTCC=$CC
14806 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14807 test -z "$LD" && LD=ld
14808 test -z "$ac_objext" && ac_objext=o
14810 for cc_temp in $compiler""; do
14812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14818 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14821 # Only perform the check for file, if the check method requires it
14822 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14823 case $deplibs_check_method in
14825 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14827 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14828 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14829 $as_echo_n "(cached) " >&6
14833 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14836 lt_save_MAGIC_CMD="$MAGIC_CMD"
14837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14838 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14839 for ac_dir in $ac_dummy; do
14841 test -z "$ac_dir" && ac_dir=.
14842 if test -f $ac_dir/${ac_tool_prefix}file; then
14843 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14844 if test -n "$file_magic_test_file"; then
14845 case $deplibs_check_method in
14847 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14850 $EGREP "$file_magic_regex" > /dev/null; then
14855 *** Warning: the command libtool uses to detect shared libraries,
14856 *** $file_magic_cmd, produces output that libtool cannot recognize.
14857 *** The result is that libtool may fail to recognize shared libraries
14858 *** as such. This will affect the creation of libtool libraries that
14859 *** depend on shared libraries, but programs linked with such libtool
14860 *** libraries will work regardless of this problem. Nevertheless, you
14861 *** may want to report the problem to your system manager and/or to
14862 *** bug-libtool@gnu.org
14872 MAGIC_CMD="$lt_save_MAGIC_CMD"
14877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14878 if test -n "$MAGIC_CMD"; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14880 $as_echo "$MAGIC_CMD" >&6; }
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14890 if test -z "$lt_cv_path_MAGIC_CMD"; then
14891 if test -n "$ac_tool_prefix"; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14893 $as_echo_n "checking for file... " >&6; }
14894 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14895 $as_echo_n "(cached) " >&6
14899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14902 lt_save_MAGIC_CMD="$MAGIC_CMD"
14903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14905 for ac_dir in $ac_dummy; do
14907 test -z "$ac_dir" && ac_dir=.
14908 if test -f $ac_dir/file; then
14909 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14910 if test -n "$file_magic_test_file"; then
14911 case $deplibs_check_method in
14913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14916 $EGREP "$file_magic_regex" > /dev/null; then
14921 *** Warning: the command libtool uses to detect shared libraries,
14922 *** $file_magic_cmd, produces output that libtool cannot recognize.
14923 *** The result is that libtool may fail to recognize shared libraries
14924 *** as such. This will affect the creation of libtool libraries that
14925 *** depend on shared libraries, but programs linked with such libtool
14926 *** libraries will work regardless of this problem. Nevertheless, you
14927 *** may want to report the problem to your system manager and/or to
14928 *** bug-libtool@gnu.org
14938 MAGIC_CMD="$lt_save_MAGIC_CMD"
14943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14944 if test -n "$MAGIC_CMD"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14946 $as_echo "$MAGIC_CMD" >&6; }
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14962 # Use C for the default configuration in the libtool script
14966 ac_cpp='$CPP $CPPFLAGS'
14967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14972 # Source file extension for C test sources.
14975 # Object file extension for compiled C test sources.
14979 # Code to be used in simple compile tests
14980 lt_simple_compile_test_code="int some_variable = 0;"
14982 # Code to be used in simple link tests
14983 lt_simple_link_test_code='int main(){return(0);}'
14991 # If no C compiler was specified, use CC.
14994 # If no C compiler flags were specified, use CFLAGS.
14995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14997 # Allow CC to be a program name with arguments.
15000 # Save the default compiler, since it gets overwritten when the other
15001 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15002 compiler_DEFAULT=$CC
15004 # save warnings/boilerplate of simple test code
15005 ac_outfile=conftest.$ac_objext
15006 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15007 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15008 _lt_compiler_boilerplate=`cat conftest.err`
15011 ac_outfile=conftest.$ac_objext
15012 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15013 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15014 _lt_linker_boilerplate=`cat conftest.err`
15019 ## There is no encapsulation within the following macros, do not change
15020 ## the running order or otherwise move them around unless you know exactly
15021 ## what you are doing...
15022 if test -n "$compiler"; then
15024 lt_prog_compiler_no_builtin_flag=
15026 if test "$GCC" = yes; then
15027 case $cc_basename in
15029 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15031 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15035 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15037 $as_echo_n "(cached) " >&6
15039 lt_cv_prog_compiler_rtti_exceptions=no
15040 ac_outfile=conftest.$ac_objext
15041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15042 lt_compiler_flag="-fno-rtti -fno-exceptions"
15043 # Insert the option either (1) after the last *FLAGS variable, or
15044 # (2) before a word containing "conftest.", or (3) at the end.
15045 # Note that $ac_compile itself does not contain backslashes and begins
15046 # with a dollar sign (not a hyphen), so the echo should work correctly.
15047 # The option is referenced via a variable to avoid confusing sed.
15048 lt_compile=`echo "$ac_compile" | $SED \
15049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15051 -e 's:$: $lt_compiler_flag:'`
15052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15053 (eval "$lt_compile" 2>conftest.err)
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 if (exit $ac_status) && test -s "$ac_outfile"; then
15058 # The compiler can only warn and ignore the option if not recognized
15059 # So say no if there are warnings other than the usual output.
15060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15063 lt_cv_prog_compiler_rtti_exceptions=yes
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15070 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15072 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15073 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15085 lt_prog_compiler_wl=
15086 lt_prog_compiler_pic=
15087 lt_prog_compiler_static=
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15092 if test "$GCC" = yes; then
15093 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_static='-static'
15098 # All AIX code is PIC.
15099 if test "$host_cpu" = ia64; then
15100 # AIX 5 now supports IA64 processor
15101 lt_prog_compiler_static='-Bstatic'
15108 # see comment about AmigaOS4 .so support
15109 lt_prog_compiler_pic='-fPIC'
15112 # FIXME: we need at least 68020 code to build shared libraries, but
15113 # adding the `-m68020' flag to GCC prevents building anything better,
15115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15121 # PIC is the default for these OSes.
15124 mingw* | cygwin* | pw32* | os2* | cegcc*)
15125 # This hack is so that the source file can tell whether it is being
15126 # built for inclusion in a dll (and should export symbols for example).
15127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15128 # (--disable-auto-import) libraries
15129 lt_prog_compiler_pic='-DDLL_EXPORT'
15132 darwin* | rhapsody*)
15133 # PIC is the default on this platform
15134 # Common symbols not allowed in MH_DYLIB files
15135 lt_prog_compiler_pic='-fno-common'
15139 # PIC is the default for Haiku.
15140 # The "-static" flag exists, but is broken.
15141 lt_prog_compiler_static=
15145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15147 # sets the default TLS model and affects inlining.
15153 lt_prog_compiler_pic='-fPIC'
15159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15160 # Instead, we relocate shared libraries at runtime.
15164 # Just because we use GCC doesn't mean we suddenly get shared libraries
15165 # on systems that don't support them.
15166 lt_prog_compiler_can_build_shared=no
15171 # QNX uses GNU C++, but need to define -shared option too, otherwise
15172 # it will coredump.
15173 lt_prog_compiler_pic='-fPIC -shared'
15177 if test -d /usr/nec; then
15178 lt_prog_compiler_pic=-Kconform_pic
15183 lt_prog_compiler_pic='-fPIC'
15187 case $cc_basename in
15188 nvcc*) # Cuda Compiler Driver 2.2
15189 lt_prog_compiler_wl='-Xlinker '
15190 lt_prog_compiler_pic='-Xcompiler -fPIC'
15194 # PORTME Check for flag to pass linker flags through the system compiler.
15197 lt_prog_compiler_wl='-Wl,'
15198 if test "$host_cpu" = ia64; then
15199 # AIX 5 now supports IA64 processor
15200 lt_prog_compiler_static='-Bstatic'
15202 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15206 mingw* | cygwin* | pw32* | os2* | cegcc*)
15207 # This hack is so that the source file can tell whether it is being
15208 # built for inclusion in a dll (and should export symbols for example).
15209 lt_prog_compiler_pic='-DDLL_EXPORT'
15212 hpux9* | hpux10* | hpux11*)
15213 lt_prog_compiler_wl='-Wl,'
15214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15215 # not for PA HP-UX.
15221 lt_prog_compiler_pic='+Z'
15224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15225 lt_prog_compiler_static='${wl}-a ${wl}archive'
15228 irix5* | irix6* | nonstopux*)
15229 lt_prog_compiler_wl='-Wl,'
15230 # PIC (with -KPIC) is the default.
15231 lt_prog_compiler_static='-non_shared'
15234 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15235 case $cc_basename in
15236 # old Intel for x86_64 which still supported -KPIC.
15238 lt_prog_compiler_wl='-Wl,'
15239 lt_prog_compiler_pic='-KPIC'
15240 lt_prog_compiler_static='-static'
15242 # icc used to be incompatible with GCC.
15243 # ICC 10 doesn't accept -KPIC any more.
15245 lt_prog_compiler_wl='-Wl,'
15246 lt_prog_compiler_pic='-fPIC'
15247 lt_prog_compiler_static='-static'
15249 # Lahey Fortran 8.1.
15251 lt_prog_compiler_wl='-Wl,'
15252 lt_prog_compiler_pic='--shared'
15253 lt_prog_compiler_static='--static'
15255 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15256 # Portland Group compilers (*not* the Pentium gcc compiler,
15257 # which looks to be a dead project)
15258 lt_prog_compiler_wl='-Wl,'
15259 lt_prog_compiler_pic='-fpic'
15260 lt_prog_compiler_static='-Bstatic'
15263 lt_prog_compiler_wl='-Wl,'
15264 # All Alpha code is PIC.
15265 lt_prog_compiler_static='-non_shared'
15267 xl* | bgxl* | bgf* | mpixl*)
15268 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15269 lt_prog_compiler_wl='-Wl,'
15270 lt_prog_compiler_pic='-qpic'
15271 lt_prog_compiler_static='-qstaticlink'
15274 case `$CC -V 2>&1 | sed 5q` in
15275 *Sun\ F* | *Sun*Fortran*)
15276 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15277 lt_prog_compiler_pic='-KPIC'
15278 lt_prog_compiler_static='-Bstatic'
15279 lt_prog_compiler_wl=''
15283 lt_prog_compiler_pic='-KPIC'
15284 lt_prog_compiler_static='-Bstatic'
15285 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='-KPIC'
15294 lt_prog_compiler_static='-Bstatic'
15298 # QNX uses GNU C++, but need to define -shared option too, otherwise
15299 # it will coredump.
15300 lt_prog_compiler_pic='-fPIC -shared'
15303 osf3* | osf4* | osf5*)
15304 lt_prog_compiler_wl='-Wl,'
15305 # All OSF/1 code is PIC.
15306 lt_prog_compiler_static='-non_shared'
15310 lt_prog_compiler_static='-non_shared'
15314 lt_prog_compiler_pic='-KPIC'
15315 lt_prog_compiler_static='-Bstatic'
15316 case $cc_basename in
15317 f77* | f90* | f95*)
15318 lt_prog_compiler_wl='-Qoption ld ';;
15320 lt_prog_compiler_wl='-Wl,';;
15325 lt_prog_compiler_wl='-Qoption ld '
15326 lt_prog_compiler_pic='-PIC'
15327 lt_prog_compiler_static='-Bstatic'
15330 sysv4 | sysv4.2uw2* | sysv4.3*)
15331 lt_prog_compiler_wl='-Wl,'
15332 lt_prog_compiler_pic='-KPIC'
15333 lt_prog_compiler_static='-Bstatic'
15337 if test -d /usr/nec ;then
15338 lt_prog_compiler_pic='-Kconform_pic'
15339 lt_prog_compiler_static='-Bstatic'
15343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15344 lt_prog_compiler_wl='-Wl,'
15345 lt_prog_compiler_pic='-KPIC'
15346 lt_prog_compiler_static='-Bstatic'
15350 lt_prog_compiler_wl='-Wl,'
15351 lt_prog_compiler_can_build_shared=no
15355 lt_prog_compiler_pic='-pic'
15356 lt_prog_compiler_static='-Bstatic'
15360 lt_prog_compiler_can_build_shared=no
15366 # For platforms which do not support PIC, -DPIC is meaningless:
15368 lt_prog_compiler_pic=
15371 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15375 $as_echo "$lt_prog_compiler_pic" >&6; }
15383 # Check to make sure the PIC flag actually works.
15385 if test -n "$lt_prog_compiler_pic"; then
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15387 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15388 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15389 $as_echo_n "(cached) " >&6
15391 lt_cv_prog_compiler_pic_works=no
15392 ac_outfile=conftest.$ac_objext
15393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15394 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15395 # Insert the option either (1) after the last *FLAGS variable, or
15396 # (2) before a word containing "conftest.", or (3) at the end.
15397 # Note that $ac_compile itself does not contain backslashes and begins
15398 # with a dollar sign (not a hyphen), so the echo should work correctly.
15399 # The option is referenced via a variable to avoid confusing sed.
15400 lt_compile=`echo "$ac_compile" | $SED \
15401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15403 -e 's:$: $lt_compiler_flag:'`
15404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15405 (eval "$lt_compile" 2>conftest.err)
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 if (exit $ac_status) && test -s "$ac_outfile"; then
15410 # The compiler can only warn and ignore the option if not recognized
15411 # So say no if there are warnings other than the usual output.
15412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15415 lt_cv_prog_compiler_pic_works=yes
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15422 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15424 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15425 case $lt_prog_compiler_pic in
15427 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15430 lt_prog_compiler_pic=
15431 lt_prog_compiler_can_build_shared=no
15442 # Check to make sure the static flag actually works.
15444 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15446 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15447 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15448 $as_echo_n "(cached) " >&6
15450 lt_cv_prog_compiler_static_works=no
15451 save_LDFLAGS="$LDFLAGS"
15452 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15455 # The linker can only warn and ignore the option if not recognized
15456 # So say no if there are warnings
15457 if test -s conftest.err; then
15458 # Append any errors to the config.log.
15459 cat conftest.err 1>&5
15460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15462 if diff conftest.exp conftest.er2 >/dev/null; then
15463 lt_cv_prog_compiler_static_works=yes
15466 lt_cv_prog_compiler_static_works=yes
15470 LDFLAGS="$save_LDFLAGS"
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15474 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15476 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15479 lt_prog_compiler_static=
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15489 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15490 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15491 $as_echo_n "(cached) " >&6
15493 lt_cv_prog_compiler_c_o=no
15494 $RM -r conftest 2>/dev/null
15498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15500 lt_compiler_flag="-o out/conftest2.$ac_objext"
15501 # Insert the option either (1) after the last *FLAGS variable, or
15502 # (2) before a word containing "conftest.", or (3) at the end.
15503 # Note that $ac_compile itself does not contain backslashes and begins
15504 # with a dollar sign (not a hyphen), so the echo should work correctly.
15505 lt_compile=`echo "$ac_compile" | $SED \
15506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15508 -e 's:$: $lt_compiler_flag:'`
15509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15510 (eval "$lt_compile" 2>out/conftest.err)
15512 cat out/conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15516 # The compiler can only warn and ignore the option if not recognized
15517 # So say no if there are warnings
15518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15521 lt_cv_prog_compiler_c_o=yes
15526 # SGI C++ compiler will create directory out/ii_files/ for
15527 # template instantiation
15528 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15529 $RM out/* && rmdir out
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15536 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15546 $as_echo_n "(cached) " >&6
15548 lt_cv_prog_compiler_c_o=no
15549 $RM -r conftest 2>/dev/null
15553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15555 lt_compiler_flag="-o out/conftest2.$ac_objext"
15556 # Insert the option either (1) after the last *FLAGS variable, or
15557 # (2) before a word containing "conftest.", or (3) at the end.
15558 # Note that $ac_compile itself does not contain backslashes and begins
15559 # with a dollar sign (not a hyphen), so the echo should work correctly.
15560 lt_compile=`echo "$ac_compile" | $SED \
15561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15563 -e 's:$: $lt_compiler_flag:'`
15564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15565 (eval "$lt_compile" 2>out/conftest.err)
15567 cat out/conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15571 # The compiler can only warn and ignore the option if not recognized
15572 # So say no if there are warnings
15573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15576 lt_cv_prog_compiler_c_o=yes
15581 # SGI C++ compiler will create directory out/ii_files/ for
15582 # template instantiation
15583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15584 $RM out/* && rmdir out
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15596 hard_links="nottested"
15597 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15598 # do not overwrite the value of need_locks provided by the user
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15600 $as_echo_n "checking if we can lock with hard links... " >&6; }
15603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15605 ln conftest.a conftest.b 2>&5 || hard_links=no
15606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15608 $as_echo "$hard_links" >&6; }
15609 if test "$hard_links" = no; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15611 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15624 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15627 allow_undefined_flag=
15628 always_export_symbols=no
15630 archive_expsym_cmds=
15631 compiler_needs_object=no
15632 enable_shared_with_static_runtimes=no
15633 export_dynamic_flag_spec=
15634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15635 hardcode_automatic=no
15637 hardcode_direct_absolute=no
15638 hardcode_libdir_flag_spec=
15639 hardcode_libdir_flag_spec_ld=
15640 hardcode_libdir_separator=
15641 hardcode_minus_L=no
15642 hardcode_shlibpath_var=unsupported
15644 link_all_deplibs=unknown
15646 module_expsym_cmds=
15647 old_archive_from_new_cmds=
15648 old_archive_from_expsyms_cmds=
15649 thread_safe_flag_spec=
15650 whole_archive_flag_spec=
15651 # include_expsyms should be a list of space-separated symbols to be *always*
15652 # included in the symbol list
15654 # exclude_expsyms can be an extended regexp of symbols to exclude
15655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15657 # as well as any symbol that contains `d'.
15658 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15660 # platforms (ab)use it in PIC code, but their linkers get confused if
15661 # the symbol is explicitly referenced. Since portable code cannot
15662 # rely on this symbol name, it's probably fine to never include it in
15663 # preloaded symbol tables.
15664 # Exclude shared library initialization/finalization symbols.
15665 extract_expsyms_cmds=
15668 cygwin* | mingw* | pw32* | cegcc*)
15669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15670 # When not using gcc, we currently assume that we are using
15671 # Microsoft Visual C++.
15672 if test "$GCC" != yes; then
15677 # we just hope/assume this is gcc and not c89 (= MSVC++)
15687 # On some targets, GNU ld is compatible enough with the native linker
15688 # that we're better off using the native interface for both.
15689 lt_use_gnu_ld_interface=no
15690 if test "$with_gnu_ld" = yes; then
15693 # The AIX port of GNU ld has always aspired to compatibility
15694 # with the native linker. However, as the warning in the GNU ld
15695 # block says, versions before 2.19.5* couldn't really create working
15696 # shared libraries, regardless of the interface used.
15697 case `$LD -v 2>&1` in
15698 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15699 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15700 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15702 lt_use_gnu_ld_interface=yes
15707 lt_use_gnu_ld_interface=yes
15712 if test "$lt_use_gnu_ld_interface" = yes; then
15713 # If archive_cmds runs LD, not CC, wlarc should be empty
15716 # Set some defaults for GNU ld with shared library support. These
15717 # are reset later if shared libraries are not supported. Putting them
15718 # here allows them to be overridden if necessary.
15719 runpath_var=LD_RUN_PATH
15720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15721 export_dynamic_flag_spec='${wl}--export-dynamic'
15722 # ancient GNU ld didn't support --whole-archive et. al.
15723 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15724 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15726 whole_archive_flag_spec=
15728 supports_anon_versioning=no
15729 case `$LD -v 2>&1` in
15730 *GNU\ gold*) supports_anon_versioning=yes ;;
15731 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15732 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15733 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15734 *\ 2.11.*) ;; # other 2.11 versions
15735 *) supports_anon_versioning=yes ;;
15738 # See if GNU ld supports shared libraries.
15741 # On AIX/PPC, the GNU linker is very broken
15742 if test "$host_cpu" != ia64; then
15746 *** Warning: the GNU linker, at least up to release 2.19, is reported
15747 *** to be unable to reliably create shared libraries on AIX.
15748 *** Therefore, libtool is disabling shared libraries support. If you
15749 *** really care for shared libraries, you may want to install binutils
15750 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15751 *** You will then need to restart the configuration process.
15760 # see comment about AmigaOS4 .so support
15761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15762 archive_expsym_cmds=''
15765 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)'
15766 hardcode_libdir_flag_spec='-L$libdir'
15767 hardcode_minus_L=yes
15773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15774 allow_undefined_flag=unsupported
15775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15776 # support --undefined. This deserves some investigation. FIXME
15777 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 cygwin* | mingw* | pw32* | cegcc*)
15784 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15785 # as there is no search path for DLLs.
15786 hardcode_libdir_flag_spec='-L$libdir'
15787 export_dynamic_flag_spec='${wl}--export-all-symbols'
15788 allow_undefined_flag=unsupported
15789 always_export_symbols=no
15790 enable_shared_with_static_runtimes=yes
15791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15795 # If the export-symbols file already is a .def file (1st line
15796 # is EXPORTS), use it as is; otherwise, prepend...
15797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15798 cp $export_symbols $output_objdir/$soname.def;
15800 echo EXPORTS > $output_objdir/$soname.def;
15801 cat $export_symbols >> $output_objdir/$soname.def;
15803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811 link_all_deplibs=yes
15816 hardcode_shlibpath_var=no
15817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15818 export_dynamic_flag_spec='${wl}-E'
15819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15820 # Instead, shared libraries are loaded at an image base (0x10000000 by
15821 # default) and relocated if they conflict, which is a slow very memory
15822 # consuming and fragmenting process. To avoid this, we pick a random,
15823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15826 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'
15829 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15831 if test "$host_os" = linux-dietlibc; then
15832 case $cc_basename in
15833 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15836 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15837 && test "$tmp_diet" = no
15840 tmp_sharedflag='-shared'
15841 case $cc_basename,$host_cpu in
15842 pgcc*) # Portland Group C compiler
15843 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'
15844 tmp_addflag=' $pic_flag'
15846 pgf77* | pgf90* | pgf95* | pgfortran*)
15847 # Portland Group f77 and f90 compilers
15848 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'
15849 tmp_addflag=' $pic_flag -Mnomain' ;;
15850 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15851 tmp_addflag=' -i_dynamic' ;;
15852 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15853 tmp_addflag=' -i_dynamic -nofor_main' ;;
15854 ifc* | ifort*) # Intel Fortran compiler
15855 tmp_addflag=' -nofor_main' ;;
15856 lf95*) # Lahey Fortran 8.1
15857 whole_archive_flag_spec=
15858 tmp_sharedflag='--shared' ;;
15859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15860 tmp_sharedflag='-qmkshrobj'
15862 nvcc*) # Cuda Compiler Driver 2.2
15863 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'
15864 compiler_needs_object=yes
15867 case `$CC -V 2>&1 | sed 5q` in
15868 *Sun\ C*) # Sun C 5.9
15869 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'
15870 compiler_needs_object=yes
15871 tmp_sharedflag='-G' ;;
15872 *Sun\ F*) # Sun Fortran 8.3
15873 tmp_sharedflag='-G' ;;
15875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877 if test "x$supports_anon_versioning" = xyes; then
15878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15880 echo "local: *; };" >> $output_objdir/$libname.ver~
15881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15884 case $cc_basename in
15885 xlf* | bgf* | bgxlf* | mpixlf*)
15886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15888 hardcode_libdir_flag_spec=
15889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15890 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15891 if test "x$supports_anon_versioning" = xyes; then
15892 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15894 echo "local: *; };" >> $output_objdir/$libname.ver~
15895 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15906 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15910 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15915 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15920 *** create shared libraries on Solaris systems. Therefore, libtool
15921 *** is disabling shared libraries support. We urge you to upgrade GNU
15922 *** binutils to release 2.9.1 or newer. Another option is to modify
15923 *** your PATH or compiler configuration so that the native linker is
15924 *** used, and then restart.
15927 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15936 case `$LD -v 2>&1` in
15937 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15942 *** reliably create shared libraries on SCO systems. Therefore, libtool
15943 *** is disabling shared libraries support. We urge you to upgrade GNU
15944 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15945 *** your PATH or compiler configuration so that the native linker is
15946 *** used, and then restart.
15951 # For security reasons, it is highly recommended that you always
15952 # use absolute paths for naming shared libraries, and exclude the
15953 # DT_RUNPATH tag from executables and libraries. But doing so
15954 # requires that you compile everything twice, which is a pain.
15955 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15967 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15969 hardcode_direct=yes
15970 hardcode_shlibpath_var=no
15974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15983 if test "$ld_shlibs" = no; then
15985 hardcode_libdir_flag_spec=
15986 export_dynamic_flag_spec=
15987 whole_archive_flag_spec=
15990 # PORTME fill in a description of your system's linker (not GNU ld)
15993 allow_undefined_flag=unsupported
15994 always_export_symbols=yes
15995 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'
15996 # Note: this linker hardcodes the directories in LIBPATH if there
15997 # are no directories specified by -L.
15998 hardcode_minus_L=yes
15999 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16000 # Neither direct hardcoding nor static linking is supported with a
16002 hardcode_direct=unsupported
16007 if test "$host_cpu" = ia64; then
16008 # On IA64, the linker does run time linking by default, so we don't
16009 # have to do anything special.
16010 aix_use_runtimelinking=no
16011 exp_sym_flag='-Bexport'
16014 # If we're using GNU nm, then we don't want the "-C" option.
16015 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16016 # Also, AIX nm treats weak defined symbols like other global
16017 # defined symbols, whereas GNU nm marks them as "W".
16018 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16019 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'
16021 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'
16023 aix_use_runtimelinking=no
16025 # Test if we are trying to use run time linking or normal
16026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16027 # need to do runtime linking.
16028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16029 for ld_flag in $LDFLAGS; do
16030 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16031 aix_use_runtimelinking=yes
16038 exp_sym_flag='-bexport'
16039 no_entry_flag='-bnoentry'
16042 # When large executables or shared objects are built, AIX ld can
16043 # have problems creating the table of contents. If linking a library
16044 # or program results in "error TOC overflow" add -mminimal-toc to
16045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16049 hardcode_direct=yes
16050 hardcode_direct_absolute=yes
16051 hardcode_libdir_separator=':'
16052 link_all_deplibs=yes
16053 file_list_spec='${wl}-f,'
16055 if test "$GCC" = yes; then
16056 case $host_os in aix4.[012]|aix4.[012].*)
16057 # We only want to do this on AIX 4.2 and lower, the check
16058 # below for broken collect2 doesn't work under 4.3+
16059 collect2name=`${CC} -print-prog-name=collect2`
16060 if test -f "$collect2name" &&
16061 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16063 # We have reworked collect2
16066 # We have old collect2
16067 hardcode_direct=unsupported
16068 # It fails to find uninstalled libraries when the uninstalled
16069 # path is not listed in the libpath. Setting hardcode_minus_L
16070 # to unsupported forces relinking
16071 hardcode_minus_L=yes
16072 hardcode_libdir_flag_spec='-L$libdir'
16073 hardcode_libdir_separator=
16077 shared_flag='-shared'
16078 if test "$aix_use_runtimelinking" = yes; then
16079 shared_flag="$shared_flag "'${wl}-G'
16083 if test "$host_cpu" = ia64; then
16084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16085 # chokes on -Wl,-G. The following line is correct:
16088 if test "$aix_use_runtimelinking" = yes; then
16089 shared_flag='${wl}-G'
16091 shared_flag='${wl}-bM:SRE'
16096 export_dynamic_flag_spec='${wl}-bexpall'
16097 # It seems that -bexpall does not export symbols beginning with
16098 # underscore (_), so it is better to generate a list of symbols to export.
16099 always_export_symbols=yes
16100 if test "$aix_use_runtimelinking" = yes; then
16101 # Warning - without using the other runtime loading flags (-brtl),
16102 # -berok will link without error, but may produce a broken library.
16103 allow_undefined_flag='-berok'
16104 # Determine the default libpath from the value encoded in an
16105 # empty executable.
16106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h. */
16117 if ac_fn_c_try_link "$LINENO"; then :
16119 lt_aix_libpath_sed='
16120 /Import File Strings/,/^$/ {
16126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16127 # Check for a 64-bit object if we didn't find anything.
16128 if test -z "$aix_libpath"; then
16129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16132 rm -f core conftest.err conftest.$ac_objext \
16133 conftest$ac_exeext conftest.$ac_ext
16134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16136 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16137 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"
16139 if test "$host_cpu" = ia64; then
16140 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16141 allow_undefined_flag="-z nodefs"
16142 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"
16144 # Determine the default libpath from the value encoded in an
16145 # empty executable.
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16157 if ac_fn_c_try_link "$LINENO"; then :
16159 lt_aix_libpath_sed='
16160 /Import File Strings/,/^$/ {
16166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16167 # Check for a 64-bit object if we didn't find anything.
16168 if test -z "$aix_libpath"; then
16169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16172 rm -f core conftest.err conftest.$ac_objext \
16173 conftest$ac_exeext conftest.$ac_ext
16174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16176 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16177 # Warning - without using the other run time loading flags,
16178 # -berok will link without error, but may produce a broken library.
16179 no_undefined_flag=' ${wl}-bernotok'
16180 allow_undefined_flag=' ${wl}-berok'
16181 if test "$with_gnu_ld" = yes; then
16182 # We only use this code for GNU lds that support --whole-archive.
16183 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16185 # Exported symbols can be pulled into shared objects from archives
16186 whole_archive_flag_spec='$convenience'
16188 archive_cmds_need_lc=yes
16189 # This is similar to how AIX traditionally builds its shared libraries.
16190 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'
16198 # see comment about AmigaOS4 .so support
16199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200 archive_expsym_cmds=''
16203 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)'
16204 hardcode_libdir_flag_spec='-L$libdir'
16205 hardcode_minus_L=yes
16211 export_dynamic_flag_spec=-rdynamic
16214 cygwin* | mingw* | pw32* | cegcc*)
16215 # When not using gcc, we currently assume that we are using
16216 # Microsoft Visual C++.
16217 # hardcode_libdir_flag_spec is actually meaningless, as there is
16218 # no search path for DLLs.
16219 hardcode_libdir_flag_spec=' '
16220 allow_undefined_flag=unsupported
16221 # Tell ltmain to make .lib files, not .a files.
16223 # Tell ltmain to make .dll files, not .so files.
16225 # FIXME: Setting linknames here is a bad hack.
16226 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16227 # The linker will automatically build a .lib file if we build a DLL.
16228 old_archive_from_new_cmds='true'
16229 # FIXME: Should let the user specify the lib program.
16230 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16231 fix_srcfile_path='`cygpath -w "$srcfile"`'
16232 enable_shared_with_static_runtimes=yes
16235 darwin* | rhapsody*)
16238 archive_cmds_need_lc=no
16240 hardcode_automatic=yes
16241 hardcode_shlibpath_var=unsupported
16242 if test "$lt_cv_ld_force_load" = "yes"; then
16243 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\"`'
16245 whole_archive_flag_spec=''
16247 link_all_deplibs=yes
16248 allow_undefined_flag="$_lt_dar_allow_undefined"
16249 case $cc_basename in
16250 ifort*) _lt_dar_can_shared=yes ;;
16251 *) _lt_dar_can_shared=$GCC ;;
16253 if test "$_lt_dar_can_shared" = "yes"; then
16254 output_verbose_link_cmd=func_echo_all
16255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16257 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}"
16258 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}"
16267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_libdir_flag_spec='-L$libdir'
16269 hardcode_shlibpath_var=no
16272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16273 # support. Future versions do this automatically, but an explicit c++rt0.o
16274 # does not break anything, and helps significantly (at the cost of a little
16277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16278 hardcode_libdir_flag_spec='-R$libdir'
16279 hardcode_direct=yes
16280 hardcode_shlibpath_var=no
16283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16286 hardcode_direct=yes
16287 hardcode_minus_L=yes
16288 hardcode_shlibpath_var=no
16291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16292 freebsd* | dragonfly*)
16293 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16294 hardcode_libdir_flag_spec='-R$libdir'
16295 hardcode_direct=yes
16296 hardcode_shlibpath_var=no
16300 if test "$GCC" = yes; then
16301 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'
16303 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'
16305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16306 hardcode_libdir_separator=:
16307 hardcode_direct=yes
16309 # hardcode_minus_L: Not really in the search PATH,
16310 # but as the default location of the library.
16311 hardcode_minus_L=yes
16312 export_dynamic_flag_spec='${wl}-E'
16316 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16317 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16321 if test "$with_gnu_ld" = no; then
16322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16323 hardcode_libdir_flag_spec_ld='+b $libdir'
16324 hardcode_libdir_separator=:
16325 hardcode_direct=yes
16326 hardcode_direct_absolute=yes
16327 export_dynamic_flag_spec='${wl}-E'
16328 # hardcode_minus_L: Not really in the search PATH,
16329 # but as the default location of the library.
16330 hardcode_minus_L=yes
16335 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16338 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16341 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16344 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16353 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16357 # Older versions of the 11.00 compiler do not understand -b yet
16358 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16360 $as_echo_n "checking if $CC understands -b... " >&6; }
16361 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16362 $as_echo_n "(cached) " >&6
16364 lt_cv_prog_compiler__b=no
16365 save_LDFLAGS="$LDFLAGS"
16366 LDFLAGS="$LDFLAGS -b"
16367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16369 # The linker can only warn and ignore the option if not recognized
16370 # So say no if there are warnings
16371 if test -s conftest.err; then
16372 # Append any errors to the config.log.
16373 cat conftest.err 1>&5
16374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16376 if diff conftest.exp conftest.er2 >/dev/null; then
16377 lt_cv_prog_compiler__b=yes
16380 lt_cv_prog_compiler__b=yes
16384 LDFLAGS="$save_LDFLAGS"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16388 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16390 if test x"$lt_cv_prog_compiler__b" = xyes; then
16391 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16393 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16399 if test "$with_gnu_ld" = no; then
16400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16401 hardcode_libdir_separator=:
16406 hardcode_shlibpath_var=no
16409 hardcode_direct=yes
16410 hardcode_direct_absolute=yes
16411 export_dynamic_flag_spec='${wl}-E'
16413 # hardcode_minus_L: Not really in the search PATH,
16414 # but as the default location of the library.
16415 hardcode_minus_L=yes
16421 irix5* | irix6* | nonstopux*)
16422 if test "$GCC" = yes; then
16423 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'
16424 # Try to use the -exported_symbol ld option, if it does not
16425 # work, assume that -exports_file does not work either and
16426 # implicitly export all symbols.
16427 save_LDFLAGS="$LDFLAGS"
16428 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16433 if ac_fn_c_try_link "$LINENO"; then :
16434 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'
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 LDFLAGS="$save_LDFLAGS"
16441 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'
16442 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'
16444 archive_cmds_need_lc='no'
16445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16446 hardcode_libdir_separator=:
16448 link_all_deplibs=yes
16452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16455 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16457 hardcode_libdir_flag_spec='-R$libdir'
16458 hardcode_direct=yes
16459 hardcode_shlibpath_var=no
16463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_direct=yes
16465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16466 hardcode_libdir_separator=:
16467 hardcode_shlibpath_var=no
16474 if test -f /usr/libexec/ld.so; then
16475 hardcode_direct=yes
16476 hardcode_shlibpath_var=no
16477 hardcode_direct_absolute=yes
16478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16480 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16481 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16482 export_dynamic_flag_spec='${wl}-E'
16485 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16487 hardcode_libdir_flag_spec='-R$libdir'
16490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16501 hardcode_libdir_flag_spec='-L$libdir'
16502 hardcode_minus_L=yes
16503 allow_undefined_flag=unsupported
16504 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'
16505 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16509 if test "$GCC" = yes; then
16510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16511 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'
16513 allow_undefined_flag=' -expect_unresolved \*'
16514 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'
16516 archive_cmds_need_lc='no'
16517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16518 hardcode_libdir_separator=:
16521 osf4* | osf5*) # as osf3* with the addition of -msym flag
16522 if test "$GCC" = yes; then
16523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16524 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'
16525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16527 allow_undefined_flag=' -expect_unresolved \*'
16528 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'
16529 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~
16530 $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'
16532 # Both c and cxx compiler support -rpath directly
16533 hardcode_libdir_flag_spec='-rpath $libdir'
16535 archive_cmds_need_lc='no'
16536 hardcode_libdir_separator=:
16540 no_undefined_flag=' -z defs'
16541 if test "$GCC" = yes; then
16543 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16545 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16547 case `$CC -V 2>&1` in
16550 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16552 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16556 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16558 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16562 hardcode_libdir_flag_spec='-R$libdir'
16563 hardcode_shlibpath_var=no
16565 solaris2.[0-5] | solaris2.[0-5].*) ;;
16567 # The compiler driver will combine and reorder linker options,
16568 # but understands `-z linker_flag'. GCC discards it without `$wl',
16569 # but is careful enough not to reorder.
16570 # Supported since Solaris 2.6 (maybe 2.5.1?)
16571 if test "$GCC" = yes; then
16572 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16574 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16578 link_all_deplibs=yes
16582 if test "x$host_vendor" = xsequent; then
16583 # Use $CC to link under sequent, because it throws in some extra .o
16584 # files that make .init and .fini sections work.
16585 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16587 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16589 hardcode_libdir_flag_spec='-L$libdir'
16590 hardcode_direct=yes
16591 hardcode_minus_L=yes
16592 hardcode_shlibpath_var=no
16596 case $host_vendor in
16598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_direct=yes # is this really true???
16602 ## LD is ld it makes a PLAMLIB
16603 ## CC just makes a GrossModule.
16604 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16605 reload_cmds='$CC -r -o $output$reload_objs'
16609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16610 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16613 runpath_var='LD_RUN_PATH'
16614 hardcode_shlibpath_var=no
16618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_shlibpath_var=no
16620 export_dynamic_flag_spec='-Bexport'
16624 if test -d /usr/nec; then
16625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626 hardcode_shlibpath_var=no
16627 runpath_var=LD_RUN_PATH
16628 hardcode_runpath_var=yes
16633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16634 no_undefined_flag='${wl}-z,text'
16635 archive_cmds_need_lc=no
16636 hardcode_shlibpath_var=no
16637 runpath_var='LD_RUN_PATH'
16639 if test "$GCC" = yes; then
16640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16648 sysv5* | sco3.2v5* | sco5v6*)
16649 # Note: We can NOT use -z defs as we might desire, because we do not
16650 # link with -lc, and that would cause any symbols used from libc to
16651 # always be unresolved, which means just about no library would
16652 # ever link correctly. If we're not using GNU ld we use -z text
16653 # though, which does catch some bad symbols but isn't as heavy-handed
16655 no_undefined_flag='${wl}-z,text'
16656 allow_undefined_flag='${wl}-z,nodefs'
16657 archive_cmds_need_lc=no
16658 hardcode_shlibpath_var=no
16659 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16660 hardcode_libdir_separator=':'
16661 link_all_deplibs=yes
16662 export_dynamic_flag_spec='${wl}-Bexport'
16663 runpath_var='LD_RUN_PATH'
16665 if test "$GCC" = yes; then
16666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676 hardcode_libdir_flag_spec='-L$libdir'
16677 hardcode_shlibpath_var=no
16685 if test x$host_vendor = xsni; then
16687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16688 export_dynamic_flag_spec='${wl}-Blargedynsym'
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16695 $as_echo "$ld_shlibs" >&6; }
16696 test "$ld_shlibs" = no && can_build_shared=no
16698 with_gnu_ld=$with_gnu_ld
16715 # Do we need to explicitly link libc?
16717 case "x$archive_cmds_need_lc" in
16719 # Assume -lc should be added
16720 archive_cmds_need_lc=yes
16722 if test "$enable_shared" = yes && test "$GCC" = yes; then
16723 case $archive_cmds in
16725 # FIXME: we may have to deal with multi-command sequences.
16728 # Test whether the compiler implicitly links with -lc since on some
16729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16730 # to ld, don't add -lc before -lgcc.
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16732 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16733 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16734 $as_echo_n "(cached) " >&6
16737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16740 (eval $ac_compile) 2>&5
16742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16743 test $ac_status = 0; } 2>conftest.err; then
16746 libobjs=conftest.$ac_objext
16748 wl=$lt_prog_compiler_wl
16749 pic_flag=$lt_prog_compiler_pic
16755 lt_save_allow_undefined_flag=$allow_undefined_flag
16756 allow_undefined_flag=
16757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16758 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761 test $ac_status = 0; }
16763 lt_cv_archive_cmds_need_lc=no
16765 lt_cv_archive_cmds_need_lc=yes
16767 allow_undefined_flag=$lt_save_allow_undefined_flag
16769 cat conftest.err 1>&5
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16775 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16776 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16942 if test "$GCC" = yes; then
16944 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16945 *) lt_awk_arg="/^libraries:/" ;;
16948 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16949 *) lt_sed_strip_eq="s,=/,/,g" ;;
16951 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16952 case $lt_search_path_spec in
16954 # if the path contains ";" then we assume it to be the separator
16955 # otherwise default to the standard path separator (i.e. ":") - it is
16956 # assumed that no part of a normal pathname contains ";" but that should
16957 # okay in the real world where ";" in dirpaths is itself problematic.
16958 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16964 # Ok, now we have the path, separated by spaces, we can step through it
16965 # and add multilib dir if necessary.
16966 lt_tmp_lt_search_path_spec=
16967 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16968 for lt_sys_path in $lt_search_path_spec; do
16969 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16970 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16972 test -d "$lt_sys_path" && \
16973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16976 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16977 BEGIN {RS=" "; FS="/|\n";} {
16980 for (lt_i = NF; lt_i > 0; lt_i--) {
16981 if ($lt_i != "" && $lt_i != ".") {
16982 if ($lt_i == "..") {
16985 if (lt_count == 0) {
16986 lt_foo="/" $lt_i lt_foo;
16993 if (lt_foo != "") { lt_freq[lt_foo]++; }
16994 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16996 # AWK program above erroneously prepends '/' to C:/dos/paths
16999 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17000 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17002 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17006 library_names_spec=
17007 libname_spec='lib$name'
17011 postuninstall_cmds=
17015 shlibpath_overrides_runpath=unknown
17017 dynamic_linker="$host_os ld.so"
17018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17019 need_lib_prefix=unknown
17020 hardcode_into_libs=no
17022 # when you set need_version to no, make sure it does not cause -set_version
17023 # flags to be left without arguments
17024 need_version=unknown
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17030 shlibpath_var=LIBPATH
17032 # AIX 3 has no versioning support, so we append a major version to the name.
17033 soname_spec='${libname}${release}${shared_ext}$major'
17040 hardcode_into_libs=yes
17041 if test "$host_cpu" = ia64; then
17042 # AIX 5 supports IA64
17043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17044 shlibpath_var=LD_LIBRARY_PATH
17046 # With GCC up to 2.95.x, collect2 would create an import file
17047 # for dependence libraries. The import file would start with
17048 # the line `#! .'. This would cause the generated library to
17049 # depend on `.', always an invalid library. This was fixed in
17050 # development snapshots of GCC prior to 3.0.
17052 aix4 | aix4.[01] | aix4.[01].*)
17053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17055 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17058 can_build_shared=no
17062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17063 # soname into executable. Probably we can add versioning support to
17064 # collect2, so additional links can be useful in future.
17065 if test "$aix_use_runtimelinking" = yes; then
17066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17067 # instead of lib<name>.a to let people know that these are not
17068 # typical AIX shared libraries.
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 # We preserve .a as extension for shared libraries through AIX4.2
17072 # and later when we are not doing run time linking.
17073 library_names_spec='${libname}${release}.a $libname.a'
17074 soname_spec='${libname}${release}${shared_ext}$major'
17076 shlibpath_var=LIBPATH
17083 # Since July 2007 AmigaOS4 officially supports .so libraries.
17084 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 library_names_spec='$libname.ixlibrary $libname.a'
17089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17090 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'
17096 library_names_spec='${libname}${shared_ext}'
17097 dynamic_linker="$host_os ld.so"
17098 shlibpath_var=LIBRARY_PATH
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17107 shlibpath_var=LD_LIBRARY_PATH
17108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17110 # the default ld.so.conf also contains /usr/contrib/lib and
17111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17112 # libtool to hard-code these into programs
17115 cygwin* | mingw* | pw32* | cegcc*)
17116 version_type=windows
17121 case $GCC,$host_os in
17122 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17123 library_names_spec='$libname.dll.a'
17124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17125 postinstall_cmds='base_file=`basename \${file}`~
17126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17127 dldir=$destdir/`dirname \$dlpath`~
17128 test -d \$dldir || mkdir -p \$dldir~
17129 $install_prog $dir/$dlname \$dldir/$dlname~
17130 chmod a+x \$dldir/$dlname~
17131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17135 dlpath=$dir/\$dldll~
17137 shlibpath_overrides_runpath=yes
17141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17144 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17147 # MinGW DLLs use traditional 'lib' prefix
17148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17151 # pw32 DLLs use 'pw' prefix rather than 'lib'
17152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17161 dynamic_linker='Win32 ld.exe'
17162 # FIXME: first we should search . and the directory the executable is in
17166 darwin* | rhapsody*)
17167 dynamic_linker="$host_os dyld"
17168 version_type=darwin
17171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17172 soname_spec='${libname}${release}${major}$shared_ext'
17173 shlibpath_overrides_runpath=yes
17174 shlibpath_var=DYLD_LIBRARY_PATH
17175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17190 freebsd* | dragonfly*)
17191 # DragonFly does not have aout. When/if they implement a new
17192 # versioning mechanism, adjust this.
17193 if test -x /usr/bin/objformat; then
17194 objformat=`/usr/bin/objformat`
17197 freebsd[23].*) objformat=aout ;;
17198 *) objformat=elf ;;
17201 version_type=freebsd-$objformat
17202 case $version_type in
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17213 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17218 freebsd3.[01]* | freebsdelf3.[01]*)
17219 shlibpath_overrides_runpath=yes
17220 hardcode_into_libs=yes
17222 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17223 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17224 shlibpath_overrides_runpath=no
17225 hardcode_into_libs=yes
17227 *) # from 4.6 on, and DragonFly
17228 shlibpath_overrides_runpath=yes
17229 hardcode_into_libs=yes
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 hardcode_into_libs=yes
17248 dynamic_linker="$host_os runtime_loader"
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 shlibpath_var=LIBRARY_PATH
17252 shlibpath_overrides_runpath=yes
17253 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17254 hardcode_into_libs=yes
17257 hpux9* | hpux10* | hpux11*)
17258 # Give a soname corresponding to the major version so that dld.sl refuses to
17259 # link against other versions.
17266 hardcode_into_libs=yes
17267 dynamic_linker="$host_os dld.so"
17268 shlibpath_var=LD_LIBRARY_PATH
17269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 soname_spec='${libname}${release}${shared_ext}$major'
17272 if test "X$HPUX_IA64_MODE" = X32; then
17273 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17275 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17281 hardcode_into_libs=yes
17282 dynamic_linker="$host_os dld.sl"
17283 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17292 dynamic_linker="$host_os dld.sl"
17293 shlibpath_var=SHLIB_PATH
17294 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296 soname_spec='${libname}${release}${shared_ext}$major'
17299 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17300 postinstall_cmds='chmod 555 $lib'
17301 # or fails outright, so override atomically:
17302 install_override_mode=555
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=no
17314 hardcode_into_libs=yes
17317 irix5* | irix6* | nonstopux*)
17319 nonstopux*) version_type=nonstopux ;;
17321 if test "$lt_cv_prog_gnu_ld" = yes; then
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17332 irix5* | nonstopux*)
17333 libsuff= shlibsuff=
17336 case $LD in # libtool.m4 will add one of these switches to LD
17337 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17338 libsuff= shlibsuff= libmagic=32-bit;;
17339 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17340 libsuff=32 shlibsuff=N32 libmagic=N32;;
17341 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17342 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17343 *) libsuff= shlibsuff= libmagic=never-match;;
17347 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17348 shlibpath_overrides_runpath=no
17349 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17350 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17351 hardcode_into_libs=yes
17354 # No shared lib support for Linux oldld, aout, or coff.
17355 linux*oldld* | linux*aout* | linux*coff*)
17359 # This must be Linux ELF.
17360 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=no
17370 # Some binutils ld are patched to set DT_RUNPATH
17371 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17372 $as_echo_n "(cached) " >&6
17374 lt_cv_shlibpath_overrides_runpath=no
17375 save_LDFLAGS=$LDFLAGS
17376 save_libdir=$libdir
17377 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17378 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380 /* end confdefs.h. */
17390 if ac_fn_c_try_link "$LINENO"; then :
17391 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17392 lt_cv_shlibpath_overrides_runpath=yes
17395 rm -f core conftest.err conftest.$ac_objext \
17396 conftest$ac_exeext conftest.$ac_ext
17397 LDFLAGS=$save_LDFLAGS
17398 libdir=$save_libdir
17402 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17404 # This implies no fast_install, which is unacceptable.
17405 # Some rework will be needed to allow for fast_install
17406 # before this can be enabled.
17407 hardcode_into_libs=yes
17409 # Append ld.so.conf contents to the search path
17410 if test -f /etc/ld.so.conf; then
17411 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' ' '`
17412 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17415 # We used to test for /lib/ld.so.1 and disable shared libraries on
17416 # powerpc, because MkLinux only supported shared libraries with the
17417 # GNU dynamic linker. Since this was broken with cross compilers,
17418 # most powerpc-linux boxes support dynamic linking these days and
17419 # people can always --disable-shared, the test was removed, and we
17420 # assume the GNU/Linux dynamic linker is in use.
17421 dynamic_linker='GNU/Linux ld.so'
17428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17431 dynamic_linker='NetBSD (a.out) ld.so'
17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17434 soname_spec='${libname}${release}${shared_ext}$major'
17435 dynamic_linker='NetBSD ld.elf_so'
17437 shlibpath_var=LD_LIBRARY_PATH
17438 shlibpath_overrides_runpath=yes
17439 hardcode_into_libs=yes
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 shlibpath_overrides_runpath=yes
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=no
17457 hardcode_into_libs=yes
17458 dynamic_linker='ldqnx.so'
17463 sys_lib_dlsearch_path_spec="/usr/lib"
17465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17468 *) need_version=no ;;
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17475 openbsd2.[89] | openbsd2.[89].*)
17476 shlibpath_overrides_runpath=no
17479 shlibpath_overrides_runpath=yes
17483 shlibpath_overrides_runpath=yes
17488 libname_spec='$name'
17491 library_names_spec='$libname${shared_ext} $libname.a'
17492 dynamic_linker='OS/2 ld.exe'
17493 shlibpath_var=LIBPATH
17496 osf3* | osf4* | osf5*)
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17516 soname_spec='${libname}${release}${shared_ext}$major'
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=yes
17519 hardcode_into_libs=yes
17520 # ldd complains unless libraries are executable
17521 postinstall_cmds='chmod +x $lib'
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 shlibpath_overrides_runpath=yes
17530 if test "$with_gnu_ld" = yes; then
17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17539 soname_spec='${libname}${release}${shared_ext}$major'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 case $host_vendor in
17543 shlibpath_overrides_runpath=no
17545 runpath_var=LD_RUN_PATH
17553 shlibpath_overrides_runpath=no
17554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17560 if test -d /usr/nec ;then
17562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17563 soname_spec='$libname${shared_ext}.$major'
17564 shlibpath_var=LD_LIBRARY_PATH
17568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17569 version_type=freebsd-elf
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 shlibpath_overrides_runpath=yes
17576 hardcode_into_libs=yes
17577 if test "$with_gnu_ld" = yes; then
17578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17587 sys_lib_dlsearch_path_spec='/usr/lib'
17591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 shlibpath_var=LD_LIBRARY_PATH
17597 shlibpath_overrides_runpath=no
17598 hardcode_into_libs=yes
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604 soname_spec='${libname}${release}${shared_ext}$major'
17605 shlibpath_var=LD_LIBRARY_PATH
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17613 $as_echo "$dynamic_linker" >&6; }
17614 test "$dynamic_linker" = no && can_build_shared=no
17616 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17617 if test "$GCC" = yes; then
17618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17621 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17622 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17722 if test -n "$hardcode_libdir_flag_spec" ||
17723 test -n "$runpath_var" ||
17724 test "X$hardcode_automatic" = "Xyes" ; then
17726 # We can hardcode non-existent directories.
17727 if test "$hardcode_direct" != no &&
17728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17729 # have to relink, otherwise we might link with an installed library
17730 # when we should be linking with a yet-to-be-installed one
17731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17732 test "$hardcode_minus_L" != no; then
17733 # Linking always hardcodes the temporary library directory.
17734 hardcode_action=relink
17736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17737 hardcode_action=immediate
17740 # We cannot hardcode anything, or else we can only hardcode existing
17742 hardcode_action=unsupported
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17745 $as_echo "$hardcode_action" >&6; }
17747 if test "$hardcode_action" = relink ||
17748 test "$inherit_rpath" = yes; then
17749 # Fast installation is not supported
17750 enable_fast_install=no
17751 elif test "$shlibpath_overrides_runpath" = yes ||
17752 test "$enable_shared" = no; then
17753 # Fast installation is not necessary
17754 enable_fast_install=needless
17762 if test "x$enable_dlopen" != xyes; then
17763 enable_dlopen=unknown
17764 enable_dlopen_self=unknown
17765 enable_dlopen_self_static=unknown
17772 lt_cv_dlopen="load_add_on"
17774 lt_cv_dlopen_self=yes
17777 mingw* | pw32* | cegcc*)
17778 lt_cv_dlopen="LoadLibrary"
17783 lt_cv_dlopen="dlopen"
17788 # if libdl is installed we need to link against it
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17792 $as_echo_n "(cached) " >&6
17794 ac_check_lib_save_LIBS=$LIBS
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17799 /* Override any GCC internal prototype to avoid an error.
17800 Use char because int might match the return type of a GCC
17801 builtin and then its argument prototype would still apply. */
17814 if ac_fn_c_try_link "$LINENO"; then :
17815 ac_cv_lib_dl_dlopen=yes
17817 ac_cv_lib_dl_dlopen=no
17819 rm -f core conftest.err conftest.$ac_objext \
17820 conftest$ac_exeext conftest.$ac_ext
17821 LIBS=$ac_check_lib_save_LIBS
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17824 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17825 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17829 lt_cv_dlopen="dyld"
17831 lt_cv_dlopen_self=yes
17838 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17839 if test "x$ac_cv_func_shl_load" = x""yes; then :
17840 lt_cv_dlopen="shl_load"
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17843 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17845 $as_echo_n "(cached) " >&6
17847 ac_check_lib_save_LIBS=$LIBS
17849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h. */
17852 /* Override any GCC internal prototype to avoid an error.
17853 Use char because int might match the return type of a GCC
17854 builtin and then its argument prototype would still apply. */
17862 return shl_load ();
17867 if ac_fn_c_try_link "$LINENO"; then :
17868 ac_cv_lib_dld_shl_load=yes
17870 ac_cv_lib_dld_shl_load=no
17872 rm -f core conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
17874 LIBS=$ac_check_lib_save_LIBS
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17877 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17878 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17879 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17881 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17882 if test "x$ac_cv_func_dlopen" = x""yes; then :
17883 lt_cv_dlopen="dlopen"
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17888 $as_echo_n "(cached) " >&6
17890 ac_check_lib_save_LIBS=$LIBS
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17895 /* Override any GCC internal prototype to avoid an error.
17896 Use char because int might match the return type of a GCC
17897 builtin and then its argument prototype would still apply. */
17910 if ac_fn_c_try_link "$LINENO"; then :
17911 ac_cv_lib_dl_dlopen=yes
17913 ac_cv_lib_dl_dlopen=no
17915 rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17921 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17925 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17926 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17927 $as_echo_n "(cached) " >&6
17929 ac_check_lib_save_LIBS=$LIBS
17930 LIBS="-lsvld $LIBS"
17931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17934 /* Override any GCC internal prototype to avoid an error.
17935 Use char because int might match the return type of a GCC
17936 builtin and then its argument prototype would still apply. */
17949 if ac_fn_c_try_link "$LINENO"; then :
17950 ac_cv_lib_svld_dlopen=yes
17952 ac_cv_lib_svld_dlopen=no
17954 rm -f core conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
17956 LIBS=$ac_check_lib_save_LIBS
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17959 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17960 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17964 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17965 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17968 ac_check_lib_save_LIBS=$LIBS
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17983 return dld_link ();
17988 if ac_fn_c_try_link "$LINENO"; then :
17989 ac_cv_lib_dld_dld_link=yes
17991 ac_cv_lib_dld_dld_link=no
17993 rm -f core conftest.err conftest.$ac_objext \
17994 conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17998 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17999 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18021 if test "x$lt_cv_dlopen" != xno; then
18027 case $lt_cv_dlopen in
18029 save_CPPFLAGS="$CPPFLAGS"
18030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18032 save_LDFLAGS="$LDFLAGS"
18033 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18036 LIBS="$lt_cv_dlopen_libs $LIBS"
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18039 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18040 if test "${lt_cv_dlopen_self+set}" = set; then :
18041 $as_echo_n "(cached) " >&6
18043 if test "$cross_compiling" = yes; then :
18044 lt_cv_dlopen_self=cross
18046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18047 lt_status=$lt_dlunknown
18048 cat > conftest.$ac_ext <<_LT_EOF
18049 #line 18049 "configure"
18050 #include "confdefs.h"
18059 # define LT_DLGLOBAL RTLD_GLOBAL
18062 # define LT_DLGLOBAL DL_GLOBAL
18064 # define LT_DLGLOBAL 0
18068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18069 find out it does not work in some platform. */
18070 #ifndef LT_DLLAZY_OR_NOW
18072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18075 # define LT_DLLAZY_OR_NOW DL_LAZY
18078 # define LT_DLLAZY_OR_NOW RTLD_NOW
18081 # define LT_DLLAZY_OR_NOW DL_NOW
18083 # define LT_DLLAZY_OR_NOW 0
18090 /* When -fvisbility=hidden is used, assume the code has been annotated
18091 correspondingly for the symbols needed. */
18092 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18093 void fnord () __attribute__((visibility("default")));
18096 void fnord () { int i=42; }
18099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18100 int status = $lt_dlunknown;
18104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18108 else puts (dlerror ());
18110 /* dlclose (self); */
18118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18119 (eval $ac_link) 2>&5
18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18123 (./conftest; exit; ) >&5 2>/dev/null
18125 case x$lt_status in
18126 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18127 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18128 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18131 # compilation failed
18132 lt_cv_dlopen_self=no
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18140 $as_echo "$lt_cv_dlopen_self" >&6; }
18142 if test "x$lt_cv_dlopen_self" = xyes; then
18143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18145 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18146 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18147 $as_echo_n "(cached) " >&6
18149 if test "$cross_compiling" = yes; then :
18150 lt_cv_dlopen_self_static=cross
18152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18153 lt_status=$lt_dlunknown
18154 cat > conftest.$ac_ext <<_LT_EOF
18155 #line 18155 "configure"
18156 #include "confdefs.h"
18165 # define LT_DLGLOBAL RTLD_GLOBAL
18168 # define LT_DLGLOBAL DL_GLOBAL
18170 # define LT_DLGLOBAL 0
18174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18175 find out it does not work in some platform. */
18176 #ifndef LT_DLLAZY_OR_NOW
18178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18181 # define LT_DLLAZY_OR_NOW DL_LAZY
18184 # define LT_DLLAZY_OR_NOW RTLD_NOW
18187 # define LT_DLLAZY_OR_NOW DL_NOW
18189 # define LT_DLLAZY_OR_NOW 0
18196 /* When -fvisbility=hidden is used, assume the code has been annotated
18197 correspondingly for the symbols needed. */
18198 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18199 void fnord () __attribute__((visibility("default")));
18202 void fnord () { int i=42; }
18205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18206 int status = $lt_dlunknown;
18210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18213 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18214 else puts (dlerror ());
18216 /* dlclose (self); */
18224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18225 (eval $ac_link) 2>&5
18227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18228 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18229 (./conftest; exit; ) >&5 2>/dev/null
18231 case x$lt_status in
18232 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18233 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18234 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18237 # compilation failed
18238 lt_cv_dlopen_self_static=no
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18246 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18249 CPPFLAGS="$save_CPPFLAGS"
18250 LDFLAGS="$save_LDFLAGS"
18255 case $lt_cv_dlopen_self in
18256 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18257 *) enable_dlopen_self=unknown ;;
18260 case $lt_cv_dlopen_self_static in
18261 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18262 *) enable_dlopen_self_static=unknown ;;
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18285 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18286 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18287 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18288 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18290 $as_echo "yes" >&6; }
18292 # FIXME - insert some real tests, host_os isn't really good enough
18295 if test -n "$STRIP" ; then
18296 striplib="$STRIP -x"
18297 old_striplib="$STRIP -S"
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299 $as_echo "yes" >&6; }
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18302 $as_echo "no" >&6; }
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18323 # Report which library types will actually be built
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18325 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18327 $as_echo "$can_build_shared" >&6; }
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18330 $as_echo_n "checking whether to build shared libraries... " >&6; }
18331 test "$can_build_shared" = "no" && enable_shared=no
18333 # On AIX, shared libraries and static libraries use the same namespace, and
18334 # are all built from PIC.
18337 test "$enable_shared" = yes && enable_static=no
18338 if test -n "$RANLIB"; then
18339 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18340 postinstall_cmds='$RANLIB $lib'
18345 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18346 test "$enable_shared" = yes && enable_static=no
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18351 $as_echo "$enable_shared" >&6; }
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18354 $as_echo_n "checking whether to build static libraries... " >&6; }
18355 # Make sure either enable_shared or enable_static is yes.
18356 test "$enable_shared" = yes || enable_static=yes
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18358 $as_echo "$enable_static" >&6; }
18365 ac_cpp='$CPP $CPPFLAGS'
18366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18372 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18373 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18374 (test "X$CXX" != "Xg++"))) ; then
18376 ac_cpp='$CXXCPP $CPPFLAGS'
18377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18381 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18382 if test -z "$CXXCPP"; then
18383 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18384 $as_echo_n "(cached) " >&6
18386 # Double quotes because CXXCPP needs to be expanded
18387 for CXXCPP in "$CXX -E" "/lib/cpp"
18389 ac_preproc_ok=false
18390 for ac_cxx_preproc_warn_flag in '' yes
18392 # Use a header file that comes with gcc, so configuring glibc
18393 # with a fresh cross-compiler works.
18394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 # <limits.h> exists even on freestanding compilers.
18396 # On the NeXT, cc -E runs the code through the compiler's parser,
18397 # not just through cpp. "Syntax error" is here to catch this case.
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h. */
18401 # include <limits.h>
18403 # include <assert.h>
18407 if ac_fn_cxx_try_cpp "$LINENO"; then :
18410 # Broken: fails on valid input.
18413 rm -f conftest.err conftest.$ac_ext
18415 # OK, works on sane cases. Now check whether nonexistent headers
18416 # can be detected and how.
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18419 #include <ac_nonexistent.h>
18421 if ac_fn_cxx_try_cpp "$LINENO"; then :
18422 # Broken: success on invalid input.
18425 # Passes both tests.
18429 rm -f conftest.err conftest.$ac_ext
18432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18433 rm -f conftest.err conftest.$ac_ext
18434 if $ac_preproc_ok; then :
18439 ac_cv_prog_CXXCPP=$CXXCPP
18442 CXXCPP=$ac_cv_prog_CXXCPP
18444 ac_cv_prog_CXXCPP=$CXXCPP
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18447 $as_echo "$CXXCPP" >&6; }
18448 ac_preproc_ok=false
18449 for ac_cxx_preproc_warn_flag in '' yes
18451 # Use a header file that comes with gcc, so configuring glibc
18452 # with a fresh cross-compiler works.
18453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18454 # <limits.h> exists even on freestanding compilers.
18455 # On the NeXT, cc -E runs the code through the compiler's parser,
18456 # not just through cpp. "Syntax error" is here to catch this case.
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18460 # include <limits.h>
18462 # include <assert.h>
18466 if ac_fn_cxx_try_cpp "$LINENO"; then :
18469 # Broken: fails on valid input.
18472 rm -f conftest.err conftest.$ac_ext
18474 # OK, works on sane cases. Now check whether nonexistent headers
18475 # can be detected and how.
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18478 #include <ac_nonexistent.h>
18480 if ac_fn_cxx_try_cpp "$LINENO"; then :
18481 # Broken: success on invalid input.
18484 # Passes both tests.
18488 rm -f conftest.err conftest.$ac_ext
18491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18492 rm -f conftest.err conftest.$ac_ext
18493 if $ac_preproc_ok; then :
18496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18498 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18499 See \`config.log' for more details." "$LINENO" 5; }
18503 ac_cpp='$CPP $CPPFLAGS'
18504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18509 _lt_caught_CXX_error=yes
18513 ac_cpp='$CXXCPP $CPPFLAGS'
18514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18518 archive_cmds_need_lc_CXX=no
18519 allow_undefined_flag_CXX=
18520 always_export_symbols_CXX=no
18521 archive_expsym_cmds_CXX=
18522 compiler_needs_object_CXX=no
18523 export_dynamic_flag_spec_CXX=
18524 hardcode_direct_CXX=no
18525 hardcode_direct_absolute_CXX=no
18526 hardcode_libdir_flag_spec_CXX=
18527 hardcode_libdir_flag_spec_ld_CXX=
18528 hardcode_libdir_separator_CXX=
18529 hardcode_minus_L_CXX=no
18530 hardcode_shlibpath_var_CXX=unsupported
18531 hardcode_automatic_CXX=no
18532 inherit_rpath_CXX=no
18534 module_expsym_cmds_CXX=
18535 link_all_deplibs_CXX=unknown
18536 old_archive_cmds_CXX=$old_archive_cmds
18537 reload_flag_CXX=$reload_flag
18538 reload_cmds_CXX=$reload_cmds
18539 no_undefined_flag_CXX=
18540 whole_archive_flag_spec_CXX=
18541 enable_shared_with_static_runtimes_CXX=no
18543 # Source file extension for C++ test sources.
18546 # Object file extension for compiled C++ test sources.
18550 # No sense in running all these tests if we already determined that
18551 # the CXX compiler isn't working. Some variables (like enable_shared)
18552 # are currently assumed to apply to all compilers on this platform,
18553 # and will be corrupted by setting them based on a non-working compiler.
18554 if test "$_lt_caught_CXX_error" != yes; then
18555 # Code to be used in simple compile tests
18556 lt_simple_compile_test_code="int some_variable = 0;"
18558 # Code to be used in simple link tests
18559 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18561 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18568 # If no C compiler was specified, use CC.
18571 # If no C compiler flags were specified, use CFLAGS.
18572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18574 # Allow CC to be a program name with arguments.
18578 # save warnings/boilerplate of simple test code
18579 ac_outfile=conftest.$ac_objext
18580 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18581 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18582 _lt_compiler_boilerplate=`cat conftest.err`
18585 ac_outfile=conftest.$ac_objext
18586 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18587 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18588 _lt_linker_boilerplate=`cat conftest.err`
18592 # Allow CC to be a program name with arguments.
18597 lt_save_with_gnu_ld=$with_gnu_ld
18598 lt_save_path_LD=$lt_cv_path_LD
18599 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18600 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18602 $as_unset lt_cv_prog_gnu_ld
18604 if test -n "${lt_cv_path_LDCXX+set}"; then
18605 lt_cv_path_LD=$lt_cv_path_LDCXX
18607 $as_unset lt_cv_path_LD
18609 test -z "${LDCXX+set}" || LD=$LDCXX
18613 for cc_temp in $compiler""; do
18615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18621 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18624 if test -n "$compiler"; then
18625 # We don't want -fno-exception when compiling C++ code, so set the
18626 # no_builtin_flag separately
18627 if test "$GXX" = yes; then
18628 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18630 lt_prog_compiler_no_builtin_flag_CXX=
18633 if test "$GXX" = yes; then
18634 # Set up default GNU C++ configuration
18638 # Check whether --with-gnu-ld was given.
18639 if test "${with_gnu_ld+set}" = set; then :
18640 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18646 if test "$GCC" = yes; then
18647 # Check if gcc -print-prog-name=ld gives a path.
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18649 $as_echo_n "checking for ld used by $CC... " >&6; }
18652 # gcc leaves a trailing carriage return which upsets mingw
18653 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18655 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18658 # Accept absolute paths.
18660 re_direlt='/[^/][^/]*/\.\./'
18661 # Canonicalize the pathname of ld
18662 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18663 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18664 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18666 test -z "$LD" && LD="$ac_prog"
18669 # If it fails, then pretend we aren't using GCC.
18673 # If it is relative, then search for the first ld in PATH.
18674 with_gnu_ld=unknown
18677 elif test "$with_gnu_ld" = yes; then
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18679 $as_echo_n "checking for GNU ld... " >&6; }
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18682 $as_echo_n "checking for non-GNU ld... " >&6; }
18684 if test "${lt_cv_path_LD+set}" = set; then :
18685 $as_echo_n "(cached) " >&6
18687 if test -z "$LD"; then
18688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18689 for ac_dir in $PATH; do
18691 test -z "$ac_dir" && ac_dir=.
18692 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18693 lt_cv_path_LD="$ac_dir/$ac_prog"
18694 # Check to see if the program is GNU ld. I'd rather use --version,
18695 # but apparently some variants of GNU ld only accept -v.
18696 # Break only if it was the GNU/non-GNU ld that we prefer.
18697 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18698 *GNU* | *'with BFD'*)
18699 test "$with_gnu_ld" != no && break
18702 test "$with_gnu_ld" != yes && break
18709 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18713 LD="$lt_cv_path_LD"
18714 if test -n "$LD"; then
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18716 $as_echo "$LD" >&6; }
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18721 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18723 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18724 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18725 $as_echo_n "(cached) " >&6
18727 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18728 case `$LD -v 2>&1 </dev/null` in
18729 *GNU* | *'with BFD'*)
18730 lt_cv_prog_gnu_ld=yes
18733 lt_cv_prog_gnu_ld=no
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18738 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18739 with_gnu_ld=$lt_cv_prog_gnu_ld
18747 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18748 # archiving commands below assume that GNU ld is being used.
18749 if test "$with_gnu_ld" = yes; then
18750 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18751 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'
18753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18756 # If archive_cmds runs LD, not CC, wlarc should be empty
18757 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18758 # investigate it a little bit more. (MM)
18761 # ancient GNU ld didn't support --whole-archive et. al.
18762 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18763 $GREP 'no-whole-archive' > /dev/null; then
18764 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18766 whole_archive_flag_spec_CXX=
18772 # A generic and very simple default shared library creation
18773 # command for GNU C++ for the case where it uses the native
18774 # linker, instead of GNU ld. If possible, this setting should
18775 # overridden to take advantage of the native linker features on
18776 # the platform it is being used on.
18777 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18780 # Commands to make compiler produce verbose output that lists
18781 # what "hidden" libraries, object files and flags are used when
18782 # linking a shared library.
18783 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18791 # PORTME: fill in a description of your system's C++ link characteristics
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18797 # FIXME: insert proper C++ library support
18801 if test "$host_cpu" = ia64; then
18802 # On IA64, the linker does run time linking by default, so we don't
18803 # have to do anything special.
18804 aix_use_runtimelinking=no
18805 exp_sym_flag='-Bexport'
18808 aix_use_runtimelinking=no
18810 # Test if we are trying to use run time linking or normal
18811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18812 # need to do runtime linking.
18813 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18814 for ld_flag in $LDFLAGS; do
18817 aix_use_runtimelinking=yes
18825 exp_sym_flag='-bexport'
18826 no_entry_flag='-bnoentry'
18829 # When large executables or shared objects are built, AIX ld can
18830 # have problems creating the table of contents. If linking a library
18831 # or program results in "error TOC overflow" add -mminimal-toc to
18832 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18833 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18835 archive_cmds_CXX=''
18836 hardcode_direct_CXX=yes
18837 hardcode_direct_absolute_CXX=yes
18838 hardcode_libdir_separator_CXX=':'
18839 link_all_deplibs_CXX=yes
18840 file_list_spec_CXX='${wl}-f,'
18842 if test "$GXX" = yes; then
18843 case $host_os in aix4.[012]|aix4.[012].*)
18844 # We only want to do this on AIX 4.2 and lower, the check
18845 # below for broken collect2 doesn't work under 4.3+
18846 collect2name=`${CC} -print-prog-name=collect2`
18847 if test -f "$collect2name" &&
18848 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18850 # We have reworked collect2
18853 # We have old collect2
18854 hardcode_direct_CXX=unsupported
18855 # It fails to find uninstalled libraries when the uninstalled
18856 # path is not listed in the libpath. Setting hardcode_minus_L
18857 # to unsupported forces relinking
18858 hardcode_minus_L_CXX=yes
18859 hardcode_libdir_flag_spec_CXX='-L$libdir'
18860 hardcode_libdir_separator_CXX=
18863 shared_flag='-shared'
18864 if test "$aix_use_runtimelinking" = yes; then
18865 shared_flag="$shared_flag "'${wl}-G'
18869 if test "$host_cpu" = ia64; then
18870 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18871 # chokes on -Wl,-G. The following line is correct:
18874 if test "$aix_use_runtimelinking" = yes; then
18875 shared_flag='${wl}-G'
18877 shared_flag='${wl}-bM:SRE'
18882 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18883 # It seems that -bexpall does not export symbols beginning with
18884 # underscore (_), so it is better to generate a list of symbols to
18886 always_export_symbols_CXX=yes
18887 if test "$aix_use_runtimelinking" = yes; then
18888 # Warning - without using the other runtime loading flags (-brtl),
18889 # -berok will link without error, but may produce a broken library.
18890 allow_undefined_flag_CXX='-berok'
18891 # Determine the default libpath from the value encoded in an empty
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18904 if ac_fn_cxx_try_link "$LINENO"; then :
18906 lt_aix_libpath_sed='
18907 /Import File Strings/,/^$/ {
18913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18914 # Check for a 64-bit object if we didn't find anything.
18915 if test -z "$aix_libpath"; then
18916 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18919 rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18923 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18925 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"
18927 if test "$host_cpu" = ia64; then
18928 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18929 allow_undefined_flag_CXX="-z nodefs"
18930 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"
18932 # Determine the default libpath from the value encoded in an
18933 # empty executable.
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18945 if ac_fn_cxx_try_link "$LINENO"; then :
18947 lt_aix_libpath_sed='
18948 /Import File Strings/,/^$/ {
18954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18955 # Check for a 64-bit object if we didn't find anything.
18956 if test -z "$aix_libpath"; then
18957 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18960 rm -f core conftest.err conftest.$ac_objext \
18961 conftest$ac_exeext conftest.$ac_ext
18962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18964 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18965 # Warning - without using the other run time loading flags,
18966 # -berok will link without error, but may produce a broken library.
18967 no_undefined_flag_CXX=' ${wl}-bernotok'
18968 allow_undefined_flag_CXX=' ${wl}-berok'
18969 if test "$with_gnu_ld" = yes; then
18970 # We only use this code for GNU lds that support --whole-archive.
18971 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18973 # Exported symbols can be pulled into shared objects from archives
18974 whole_archive_flag_spec_CXX='$convenience'
18976 archive_cmds_need_lc_CXX=yes
18977 # This is similar to how AIX traditionally builds its shared
18979 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'
18985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18986 allow_undefined_flag_CXX=unsupported
18987 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18988 # support --undefined. This deserves some investigation. FIXME
18989 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18996 case $cc_basename in
18998 # FIXME: insert proper C++ library support
19004 cygwin* | mingw* | pw32* | cegcc*)
19005 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19006 # as there is no search path for DLLs.
19007 hardcode_libdir_flag_spec_CXX='-L$libdir'
19008 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19009 allow_undefined_flag_CXX=unsupported
19010 always_export_symbols_CXX=no
19011 enable_shared_with_static_runtimes_CXX=yes
19013 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19014 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'
19015 # If the export-symbols file already is a .def file (1st line
19016 # is EXPORTS), use it as is; otherwise, prepend...
19017 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19018 cp $export_symbols $output_objdir/$soname.def;
19020 echo EXPORTS > $output_objdir/$soname.def;
19021 cat $export_symbols >> $output_objdir/$soname.def;
19023 $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'
19028 darwin* | rhapsody*)
19031 archive_cmds_need_lc_CXX=no
19032 hardcode_direct_CXX=no
19033 hardcode_automatic_CXX=yes
19034 hardcode_shlibpath_var_CXX=unsupported
19035 if test "$lt_cv_ld_force_load" = "yes"; then
19036 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\"`'
19038 whole_archive_flag_spec_CXX=''
19040 link_all_deplibs_CXX=yes
19041 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19042 case $cc_basename in
19043 ifort*) _lt_dar_can_shared=yes ;;
19044 *) _lt_dar_can_shared=$GCC ;;
19046 if test "$_lt_dar_can_shared" = "yes"; then
19047 output_verbose_link_cmd=func_echo_all
19048 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}"
19049 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19050 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}"
19051 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}"
19052 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19053 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}"
19054 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}"
19064 case $cc_basename in
19066 # FIXME: insert proper C++ library support
19070 # Green Hills C++ Compiler
19071 # FIXME: insert proper C++ library support
19075 # FIXME: insert proper C++ library support
19082 # C++ shared libraries reported to be fairly broken before
19088 archive_cmds_need_lc_CXX=no
19091 freebsd* | dragonfly*)
19092 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19101 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19102 link_all_deplibs_CXX=yes
19106 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19107 hardcode_libdir_separator_CXX=:
19108 export_dynamic_flag_spec_CXX='${wl}-E'
19109 hardcode_direct_CXX=yes
19110 hardcode_minus_L_CXX=yes # Not in the search PATH,
19111 # but as the default
19112 # location of the library.
19114 case $cc_basename in
19116 # FIXME: insert proper C++ library support
19120 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'
19121 # Commands to make compiler produce verbose output that lists
19122 # what "hidden" libraries, object files and flags are used when
19123 # linking a shared library.
19125 # There doesn't appear to be a way to prevent this compiler from
19126 # explicitly linking system object files so we need to strip them
19127 # from the output so that they don't get included in the library
19129 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"'
19132 if test "$GXX" = yes; then
19133 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'
19135 # FIXME: insert proper C++ library support
19143 if test $with_gnu_ld = no; then
19144 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19145 hardcode_libdir_separator_CXX=:
19151 export_dynamic_flag_spec_CXX='${wl}-E'
19157 hardcode_direct_CXX=no
19158 hardcode_shlibpath_var_CXX=no
19161 hardcode_direct_CXX=yes
19162 hardcode_direct_absolute_CXX=yes
19163 hardcode_minus_L_CXX=yes # Not in the search PATH,
19164 # but as the default
19165 # location of the library.
19169 case $cc_basename in
19171 # FIXME: insert proper C++ library support
19177 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19180 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19183 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19186 # Commands to make compiler produce verbose output that lists
19187 # what "hidden" libraries, object files and flags are used when
19188 # linking a shared library.
19190 # There doesn't appear to be a way to prevent this compiler from
19191 # explicitly linking system object files so we need to strip them
19192 # from the output so that they don't get included in the library
19194 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"'
19197 if test "$GXX" = yes; then
19198 if test $with_gnu_ld = no; then
19201 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19204 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 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'
19212 # FIXME: insert proper C++ library support
19220 hardcode_direct_CXX=no
19221 hardcode_shlibpath_var_CXX=no
19222 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19223 export_dynamic_flag_spec_CXX='${wl}-E'
19224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19225 # Instead, shared libraries are loaded at an image base (0x10000000 by
19226 # default) and relocated if they conflict, which is a slow very memory
19227 # consuming and fragmenting process. To avoid this, we pick a random,
19228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19230 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'
19231 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'
19234 case $cc_basename in
19237 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'
19239 # Archives containing C++ object files must be created using
19240 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19241 # necessary to make sure instantiated templates are included
19243 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19246 if test "$GXX" = yes; then
19247 if test "$with_gnu_ld" = no; then
19248 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'
19250 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'
19253 link_all_deplibs_CXX=yes
19256 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19257 hardcode_libdir_separator_CXX=:
19258 inherit_rpath_CXX=yes
19261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19262 case $cc_basename in
19264 # Kuck and Associates, Inc. (KAI) C++ Compiler
19266 # KCC will only create a shared library if the output file
19267 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19268 # to its proper name (with version) after linking.
19269 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'
19270 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'
19271 # Commands to make compiler produce verbose output that lists
19272 # what "hidden" libraries, object files and flags are used when
19273 # linking a shared library.
19275 # There doesn't appear to be a way to prevent this compiler from
19276 # explicitly linking system object files so we need to strip them
19277 # from the output so that they don't get included in the library
19279 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"'
19281 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19282 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19284 # Archives containing C++ object files must be created using
19285 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19286 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19291 # version 8.0 and above of icpc choke on multiply defined symbols
19292 # if we add $predep_objects and $postdep_objects, however 7.1 and
19293 # earlier do not add the objects themselves.
19294 case `$CC -V 2>&1` in
19296 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19297 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'
19299 *) # Version 8.0 or newer
19302 ia64*) tmp_idyn=' -i_dynamic';;
19304 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19305 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'
19308 archive_cmds_need_lc_CXX=no
19309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19311 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19314 # Portland Group C++ compiler
19316 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19317 prelink_cmds_CXX='tpldir=Template.dir~
19319 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19320 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19321 old_archive_cmds_CXX='tpldir=Template.dir~
19323 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19324 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19326 archive_cmds_CXX='tpldir=Template.dir~
19328 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19329 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19330 archive_expsym_cmds_CXX='tpldir=Template.dir~
19332 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19333 $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'
19335 *) # Version 6 and above use weak symbols
19336 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19337 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'
19341 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19343 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'
19347 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19348 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'
19350 runpath_var=LD_RUN_PATH
19351 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19352 hardcode_libdir_separator_CXX=:
19354 # Commands to make compiler produce verbose output that lists
19355 # what "hidden" libraries, object files and flags are used when
19356 # linking a shared library.
19358 # There doesn't appear to be a way to prevent this compiler from
19359 # explicitly linking system object files so we need to strip them
19360 # from the output so that they don't get included in the library
19362 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'
19364 xl* | mpixl* | bgxl*)
19365 # IBM XL 8.0 on PPC, with GNU ld
19366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19367 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19368 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19369 if test "x$supports_anon_versioning" = xyes; then
19370 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19372 echo "local: *; };" >> $output_objdir/$libname.ver~
19373 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19377 case `$CC -V 2>&1 | sed 5q` in
19380 no_undefined_flag_CXX=' -zdefs'
19381 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19382 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'
19383 hardcode_libdir_flag_spec_CXX='-R$libdir'
19384 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'
19385 compiler_needs_object_CXX=yes
19387 # Not sure whether something based on
19388 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19390 output_verbose_link_cmd='func_echo_all'
19392 # Archives containing C++ object files must be created using
19393 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19394 # necessary to make sure instantiated templates are included
19396 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19404 # FIXME: insert proper C++ library support
19409 # FIXME: insert proper C++ library support
19414 case $cc_basename in
19416 # FIXME: insert proper C++ library support
19420 # FIXME: insert proper C++ library support
19427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19428 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19430 hardcode_libdir_flag_spec_CXX='-R$libdir'
19431 hardcode_direct_CXX=yes
19432 hardcode_shlibpath_var_CXX=no
19434 # Workaround some broken pre-1.5 toolchains
19435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19443 # C++ shared libraries are fairly broken
19448 if test -f /usr/libexec/ld.so; then
19449 hardcode_direct_CXX=yes
19450 hardcode_shlibpath_var_CXX=no
19451 hardcode_direct_absolute_CXX=yes
19452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19455 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19456 export_dynamic_flag_spec_CXX='${wl}-E'
19457 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19459 output_verbose_link_cmd=func_echo_all
19465 osf3* | osf4* | osf5*)
19466 case $cc_basename in
19468 # Kuck and Associates, Inc. (KAI) C++ Compiler
19470 # KCC will only create a shared library if the output file
19471 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19472 # to its proper name (with version) after linking.
19473 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'
19475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19476 hardcode_libdir_separator_CXX=:
19478 # Archives containing C++ object files must be created using
19479 # the KAI C++ compiler.
19481 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19482 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19486 # Rational C++ 2.4.1
19487 # FIXME: insert proper C++ library support
19493 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19494 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'
19495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19498 allow_undefined_flag_CXX=' -expect_unresolved \*'
19499 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'
19500 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19501 echo "-hidden">> $lib.exp~
19502 $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~
19504 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19508 hardcode_libdir_separator_CXX=:
19510 # Commands to make compiler produce verbose output that lists
19511 # what "hidden" libraries, object files and flags are used when
19512 # linking a shared library.
19514 # There doesn't appear to be a way to prevent this compiler from
19515 # explicitly linking system object files so we need to strip them
19516 # from the output so that they don't get included in the library
19518 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"'
19521 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19522 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19525 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'
19528 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'
19532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19533 hardcode_libdir_separator_CXX=:
19535 # Commands to make compiler produce verbose output that lists
19536 # what "hidden" libraries, object files and flags are used when
19537 # linking a shared library.
19538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19541 # FIXME: insert proper C++ library support
19549 # FIXME: insert proper C++ library support
19554 case $cc_basename in
19557 # FIXME: insert proper C++ library support
19562 # FIXME: insert proper C++ library support
19566 # FIXME: insert proper C++ library support
19573 case $cc_basename in
19575 # Sun C++ 4.2, 5.x and Centerline C++
19576 archive_cmds_need_lc_CXX=yes
19577 no_undefined_flag_CXX=' -zdefs'
19578 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19579 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19580 $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'
19582 hardcode_libdir_flag_spec_CXX='-R$libdir'
19583 hardcode_shlibpath_var_CXX=no
19585 solaris2.[0-5] | solaris2.[0-5].*) ;;
19587 # The compiler driver will combine and reorder linker options,
19588 # but understands `-z linker_flag'.
19589 # Supported since Solaris 2.6 (maybe 2.5.1?)
19590 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19593 link_all_deplibs_CXX=yes
19595 output_verbose_link_cmd='func_echo_all'
19597 # Archives containing C++ object files must be created using
19598 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19599 # necessary to make sure instantiated templates are included
19601 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19604 # Green Hills C++ Compiler
19605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19607 # The C++ compiler must be used to create the archive.
19608 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19611 # GNU C++ compiler with Solaris linker
19612 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19613 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19614 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19615 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19616 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19617 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19619 # Commands to make compiler produce verbose output that lists
19620 # what "hidden" libraries, object files and flags are used when
19621 # linking a shared library.
19622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19624 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19626 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19627 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19628 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19630 # Commands to make compiler produce verbose output that lists
19631 # what "hidden" libraries, object files and flags are used when
19632 # linking a shared library.
19633 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19636 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19638 solaris2.[0-5] | solaris2.[0-5].*) ;;
19640 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19649 no_undefined_flag_CXX='${wl}-z,text'
19650 archive_cmds_need_lc_CXX=no
19651 hardcode_shlibpath_var_CXX=no
19652 runpath_var='LD_RUN_PATH'
19654 case $cc_basename in
19656 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19657 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19661 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19666 sysv5* | sco3.2v5* | sco5v6*)
19667 # Note: We can NOT use -z defs as we might desire, because we do not
19668 # link with -lc, and that would cause any symbols used from libc to
19669 # always be unresolved, which means just about no library would
19670 # ever link correctly. If we're not using GNU ld we use -z text
19671 # though, which does catch some bad symbols but isn't as heavy-handed
19673 no_undefined_flag_CXX='${wl}-z,text'
19674 allow_undefined_flag_CXX='${wl}-z,nodefs'
19675 archive_cmds_need_lc_CXX=no
19676 hardcode_shlibpath_var_CXX=no
19677 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19678 hardcode_libdir_separator_CXX=':'
19679 link_all_deplibs_CXX=yes
19680 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19681 runpath_var='LD_RUN_PATH'
19683 case $cc_basename in
19685 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19687 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19688 '"$old_archive_cmds_CXX"
19689 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19690 '"$reload_cmds_CXX"
19693 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19694 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19700 case $cc_basename in
19702 # NonStop-UX NCC 3.20
19703 # FIXME: insert proper C++ library support
19707 # FIXME: insert proper C++ library support
19714 # FIXME: insert proper C++ library support
19719 # FIXME: insert proper C++ library support
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19725 $as_echo "$ld_shlibs_CXX" >&6; }
19726 test "$ld_shlibs_CXX" = no && can_build_shared=no
19732 ## There is no encapsulation within the following macros, do not change
19733 ## the running order or otherwise move them around unless you know exactly
19734 ## what you are doing...
19735 # Dependencies to place before and after the object being linked:
19736 predep_objects_CXX=
19737 postdep_objects_CXX=
19740 compiler_lib_search_path_CXX=
19742 cat > conftest.$ac_ext <<_LT_EOF
19746 Foo (void) { a = 0; }
19752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19753 (eval $ac_compile) 2>&5
19755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19756 test $ac_status = 0; }; then
19757 # Parse the compiler output and extract the necessary
19758 # objects, libraries and library flags.
19760 # Sentinel used to keep track of whether or not we are before
19761 # the conftest object file.
19762 pre_test_object_deps_done=no
19764 for p in `eval "$output_verbose_link_cmd"`; do
19768 # Some compilers place space between "-{L,R}" and the path.
19769 # Remove the space.
19770 if test $p = "-L" ||
19771 test $p = "-R"; then
19778 if test "$pre_test_object_deps_done" = no; then
19781 # Internal compiler library paths should come after those
19782 # provided the user. The postdeps already come after the
19783 # user supplied libs so there is no need to process them.
19784 if test -z "$compiler_lib_search_path_CXX"; then
19785 compiler_lib_search_path_CXX="${prev}${p}"
19787 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19790 # The "-l" case would never come before the object being
19791 # linked, so don't bother handling this case.
19794 if test -z "$postdeps_CXX"; then
19795 postdeps_CXX="${prev}${p}"
19797 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19803 # This assumes that the test object file only shows up
19804 # once in the compiler output.
19805 if test "$p" = "conftest.$objext"; then
19806 pre_test_object_deps_done=yes
19810 if test "$pre_test_object_deps_done" = no; then
19811 if test -z "$predep_objects_CXX"; then
19812 predep_objects_CXX="$p"
19814 predep_objects_CXX="$predep_objects_CXX $p"
19817 if test -z "$postdep_objects_CXX"; then
19818 postdep_objects_CXX="$p"
19820 postdep_objects_CXX="$postdep_objects_CXX $p"
19825 *) ;; # Ignore the rest.
19833 echo "libtool.m4: error: problem compiling CXX test program"
19836 $RM -f confest.$objext
19838 # PORTME: override above test on systems where it is broken
19841 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19842 # hack all around it, let's just trust "g++" to DTRT.
19843 predep_objects_CXX=
19844 postdep_objects_CXX=
19849 case `$CC -V 2>&1 | sed 5q` in
19853 # The more standards-conforming stlport4 library is
19854 # incompatible with the Cstd library. Avoid specifying
19855 # it if it's in CXXFLAGS. Ignore libCrun as
19856 # -library=stlport4 depends on it.
19857 case " $CXX $CXXFLAGS " in
19858 *" -library=stlport4 "*)
19859 solaris_use_stlport4=yes
19863 if test "$solaris_use_stlport4" != yes; then
19864 postdeps_CXX='-library=Cstd -library=Crun'
19871 case $cc_basename in
19873 # The more standards-conforming stlport4 library is
19874 # incompatible with the Cstd library. Avoid specifying
19875 # it if it's in CXXFLAGS. Ignore libCrun as
19876 # -library=stlport4 depends on it.
19877 case " $CXX $CXXFLAGS " in
19878 *" -library=stlport4 "*)
19879 solaris_use_stlport4=yes
19883 # Adding this requires a known-good setup of shared libraries for
19884 # Sun compiler versions before 5.6, else PIC objects from an old
19885 # archive will be linked into the output, leading to subtle bugs.
19886 if test "$solaris_use_stlport4" != yes; then
19887 postdeps_CXX='-library=Cstd -library=Crun'
19895 case " $postdeps_CXX " in
19896 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19898 compiler_lib_search_dirs_CXX=
19899 if test -n "${compiler_lib_search_path_CXX}"; then
19900 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19933 lt_prog_compiler_wl_CXX=
19934 lt_prog_compiler_pic_CXX=
19935 lt_prog_compiler_static_CXX=
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19938 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19940 # C++ specific cases for pic, static, wl, etc.
19941 if test "$GXX" = yes; then
19942 lt_prog_compiler_wl_CXX='-Wl,'
19943 lt_prog_compiler_static_CXX='-static'
19947 # All AIX code is PIC.
19948 if test "$host_cpu" = ia64; then
19949 # AIX 5 now supports IA64 processor
19950 lt_prog_compiler_static_CXX='-Bstatic'
19957 # see comment about AmigaOS4 .so support
19958 lt_prog_compiler_pic_CXX='-fPIC'
19961 # FIXME: we need at least 68020 code to build shared libraries, but
19962 # adding the `-m68020' flag to GCC prevents building anything better,
19964 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19969 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19970 # PIC is the default for these OSes.
19972 mingw* | cygwin* | os2* | pw32* | cegcc*)
19973 # This hack is so that the source file can tell whether it is being
19974 # built for inclusion in a dll (and should export symbols for example).
19975 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19976 # (--disable-auto-import) libraries
19977 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19979 darwin* | rhapsody*)
19980 # PIC is the default on this platform
19981 # Common symbols not allowed in MH_DYLIB files
19982 lt_prog_compiler_pic_CXX='-fno-common'
19985 # DJGPP does not support shared libraries at all
19986 lt_prog_compiler_pic_CXX=
19989 # PIC is the default for Haiku.
19990 # The "-static" flag exists, but is broken.
19991 lt_prog_compiler_static_CXX=
19994 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19995 # Instead, we relocate shared libraries at runtime.
19998 if test -d /usr/nec; then
19999 lt_prog_compiler_pic_CXX=-Kconform_pic
20003 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20004 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20005 # sets the default TLS model and affects inlining.
20010 lt_prog_compiler_pic_CXX='-fPIC'
20015 # QNX uses GNU C++, but need to define -shared option too, otherwise
20016 # it will coredump.
20017 lt_prog_compiler_pic_CXX='-fPIC -shared'
20020 lt_prog_compiler_pic_CXX='-fPIC'
20026 # All AIX code is PIC.
20027 if test "$host_cpu" = ia64; then
20028 # AIX 5 now supports IA64 processor
20029 lt_prog_compiler_static_CXX='-Bstatic'
20031 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20035 case $cc_basename in
20037 # Green Hills C++ Compiler
20038 # _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"
20043 case $cc_basename in
20045 lt_prog_compiler_pic_CXX='-KPIC'
20048 # Green Hills C++ Compiler
20049 lt_prog_compiler_pic_CXX='-pic'
20055 freebsd* | dragonfly*)
20056 # FreeBSD uses GNU C++
20058 hpux9* | hpux10* | hpux11*)
20059 case $cc_basename in
20061 lt_prog_compiler_wl_CXX='-Wl,'
20062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20063 if test "$host_cpu" != ia64; then
20064 lt_prog_compiler_pic_CXX='+Z'
20068 lt_prog_compiler_wl_CXX='-Wl,'
20069 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20075 lt_prog_compiler_pic_CXX='+Z'
20084 # This is c89, which is MS Visual C++ (no shared libs)
20085 # Anyone wants to do a port?
20087 irix5* | irix6* | nonstopux*)
20088 case $cc_basename in
20090 lt_prog_compiler_wl_CXX='-Wl,'
20091 lt_prog_compiler_static_CXX='-non_shared'
20092 # CC pic flag -KPIC is the default.
20098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20099 case $cc_basename in
20102 lt_prog_compiler_wl_CXX='--backend -Wl,'
20103 lt_prog_compiler_pic_CXX='-fPIC'
20106 # old Intel C++ for x86_64 which still supported -KPIC.
20107 lt_prog_compiler_wl_CXX='-Wl,'
20108 lt_prog_compiler_pic_CXX='-KPIC'
20109 lt_prog_compiler_static_CXX='-static'
20112 # Intel C++, used to be incompatible with GCC.
20113 # ICC 10 doesn't accept -KPIC any more.
20114 lt_prog_compiler_wl_CXX='-Wl,'
20115 lt_prog_compiler_pic_CXX='-fPIC'
20116 lt_prog_compiler_static_CXX='-static'
20119 # Portland Group C++ compiler
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_pic_CXX='-fpic'
20122 lt_prog_compiler_static_CXX='-Bstatic'
20126 # Make sure the PIC flag is empty. It appears that all Alpha
20127 # Linux and Compaq Tru64 Unix objects are PIC.
20128 lt_prog_compiler_pic_CXX=
20129 lt_prog_compiler_static_CXX='-non_shared'
20131 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20132 # IBM XL 8.0, 9.0 on PPC and BlueGene
20133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-qpic'
20135 lt_prog_compiler_static_CXX='-qstaticlink'
20138 case `$CC -V 2>&1 | sed 5q` in
20141 lt_prog_compiler_pic_CXX='-KPIC'
20142 lt_prog_compiler_static_CXX='-Bstatic'
20143 lt_prog_compiler_wl_CXX='-Qoption ld '
20154 case $cc_basename in
20156 lt_prog_compiler_pic_CXX='-W c,exportall'
20165 # QNX uses GNU C++, but need to define -shared option too, otherwise
20166 # it will coredump.
20167 lt_prog_compiler_pic_CXX='-fPIC -shared'
20169 osf3* | osf4* | osf5*)
20170 case $cc_basename in
20172 lt_prog_compiler_wl_CXX='--backend -Wl,'
20175 # Rational C++ 2.4.1
20176 lt_prog_compiler_pic_CXX='-pic'
20179 # Digital/Compaq C++
20180 lt_prog_compiler_wl_CXX='-Wl,'
20181 # Make sure the PIC flag is empty. It appears that all Alpha
20182 # Linux and Compaq Tru64 Unix objects are PIC.
20183 lt_prog_compiler_pic_CXX=
20184 lt_prog_compiler_static_CXX='-non_shared'
20193 case $cc_basename in
20195 # Sun C++ 4.2, 5.x and Centerline C++
20196 lt_prog_compiler_pic_CXX='-KPIC'
20197 lt_prog_compiler_static_CXX='-Bstatic'
20198 lt_prog_compiler_wl_CXX='-Qoption ld '
20201 # Green Hills C++ Compiler
20202 lt_prog_compiler_pic_CXX='-PIC'
20209 case $cc_basename in
20212 lt_prog_compiler_pic_CXX='-pic'
20213 lt_prog_compiler_static_CXX='-Bstatic'
20217 lt_prog_compiler_pic_CXX='-pic'
20223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20224 case $cc_basename in
20226 lt_prog_compiler_wl_CXX='-Wl,'
20227 lt_prog_compiler_pic_CXX='-KPIC'
20228 lt_prog_compiler_static_CXX='-Bstatic'
20233 case $cc_basename in
20235 # NonStop-UX NCC 3.20
20236 lt_prog_compiler_pic_CXX='-KPIC'
20245 lt_prog_compiler_can_build_shared_CXX=no
20251 # For platforms which do not support PIC, -DPIC is meaningless:
20253 lt_prog_compiler_pic_CXX=
20256 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20260 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20265 # Check to make sure the PIC flag actually works.
20267 if test -n "$lt_prog_compiler_pic_CXX"; then
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20269 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20270 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20271 $as_echo_n "(cached) " >&6
20273 lt_cv_prog_compiler_pic_works_CXX=no
20274 ac_outfile=conftest.$ac_objext
20275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20276 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20277 # Insert the option either (1) after the last *FLAGS variable, or
20278 # (2) before a word containing "conftest.", or (3) at the end.
20279 # Note that $ac_compile itself does not contain backslashes and begins
20280 # with a dollar sign (not a hyphen), so the echo should work correctly.
20281 # The option is referenced via a variable to avoid confusing sed.
20282 lt_compile=`echo "$ac_compile" | $SED \
20283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20285 -e 's:$: $lt_compiler_flag:'`
20286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20287 (eval "$lt_compile" 2>conftest.err)
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 if (exit $ac_status) && test -s "$ac_outfile"; then
20292 # The compiler can only warn and ignore the option if not recognized
20293 # So say no if there are warnings other than the usual output.
20294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20297 lt_cv_prog_compiler_pic_works_CXX=yes
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20304 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20306 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20307 case $lt_prog_compiler_pic_CXX in
20309 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20312 lt_prog_compiler_pic_CXX=
20313 lt_prog_compiler_can_build_shared_CXX=no
20321 # Check to make sure the static flag actually works.
20323 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20325 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20326 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20327 $as_echo_n "(cached) " >&6
20329 lt_cv_prog_compiler_static_works_CXX=no
20330 save_LDFLAGS="$LDFLAGS"
20331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20332 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20334 # The linker can only warn and ignore the option if not recognized
20335 # So say no if there are warnings
20336 if test -s conftest.err; then
20337 # Append any errors to the config.log.
20338 cat conftest.err 1>&5
20339 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20341 if diff conftest.exp conftest.er2 >/dev/null; then
20342 lt_cv_prog_compiler_static_works_CXX=yes
20345 lt_cv_prog_compiler_static_works_CXX=yes
20349 LDFLAGS="$save_LDFLAGS"
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20353 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20355 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20358 lt_prog_compiler_static_CXX=
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20365 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20366 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20367 $as_echo_n "(cached) " >&6
20369 lt_cv_prog_compiler_c_o_CXX=no
20370 $RM -r conftest 2>/dev/null
20374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20376 lt_compiler_flag="-o out/conftest2.$ac_objext"
20377 # Insert the option either (1) after the last *FLAGS variable, or
20378 # (2) before a word containing "conftest.", or (3) at the end.
20379 # Note that $ac_compile itself does not contain backslashes and begins
20380 # with a dollar sign (not a hyphen), so the echo should work correctly.
20381 lt_compile=`echo "$ac_compile" | $SED \
20382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20384 -e 's:$: $lt_compiler_flag:'`
20385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20386 (eval "$lt_compile" 2>out/conftest.err)
20388 cat out/conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20392 # The compiler can only warn and ignore the option if not recognized
20393 # So say no if there are warnings
20394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20397 lt_cv_prog_compiler_c_o_CXX=yes
20402 # SGI C++ compiler will create directory out/ii_files/ for
20403 # template instantiation
20404 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20405 $RM out/* && rmdir out
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20412 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20418 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20419 $as_echo_n "(cached) " >&6
20421 lt_cv_prog_compiler_c_o_CXX=no
20422 $RM -r conftest 2>/dev/null
20426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20428 lt_compiler_flag="-o out/conftest2.$ac_objext"
20429 # Insert the option either (1) after the last *FLAGS variable, or
20430 # (2) before a word containing "conftest.", or (3) at the end.
20431 # Note that $ac_compile itself does not contain backslashes and begins
20432 # with a dollar sign (not a hyphen), so the echo should work correctly.
20433 lt_compile=`echo "$ac_compile" | $SED \
20434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20436 -e 's:$: $lt_compiler_flag:'`
20437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20438 (eval "$lt_compile" 2>out/conftest.err)
20440 cat out/conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20444 # The compiler can only warn and ignore the option if not recognized
20445 # So say no if there are warnings
20446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20449 lt_cv_prog_compiler_c_o_CXX=yes
20454 # SGI C++ compiler will create directory out/ii_files/ for
20455 # template instantiation
20456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20457 $RM out/* && rmdir out
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20464 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20469 hard_links="nottested"
20470 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20471 # do not overwrite the value of need_locks provided by the user
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20473 $as_echo_n "checking if we can lock with hard links... " >&6; }
20476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20478 ln conftest.a conftest.b 2>&5 || hard_links=no
20479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20481 $as_echo "$hard_links" >&6; }
20482 if test "$hard_links" = no; then
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20484 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20494 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20496 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20499 # If we're using GNU nm, then we don't want the "-C" option.
20500 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20501 # Also, AIX nm treats weak defined symbols like other global defined
20502 # symbols, whereas GNU nm marks them as "W".
20503 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20504 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'
20506 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'
20510 export_symbols_cmds_CXX="$ltdll_cmds"
20512 cygwin* | mingw* | cegcc*)
20513 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'
20516 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20519 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20522 $as_echo "$ld_shlibs_CXX" >&6; }
20523 test "$ld_shlibs_CXX" = no && can_build_shared=no
20525 with_gnu_ld_CXX=$with_gnu_ld
20533 # Do we need to explicitly link libc?
20535 case "x$archive_cmds_need_lc_CXX" in
20537 # Assume -lc should be added
20538 archive_cmds_need_lc_CXX=yes
20540 if test "$enable_shared" = yes && test "$GCC" = yes; then
20541 case $archive_cmds_CXX in
20543 # FIXME: we may have to deal with multi-command sequences.
20546 # Test whether the compiler implicitly links with -lc since on some
20547 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20548 # to ld, don't add -lc before -lgcc.
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20550 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20551 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20552 $as_echo_n "(cached) " >&6
20555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20558 (eval $ac_compile) 2>&5
20560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20561 test $ac_status = 0; } 2>conftest.err; then
20564 libobjs=conftest.$ac_objext
20566 wl=$lt_prog_compiler_wl_CXX
20567 pic_flag=$lt_prog_compiler_pic_CXX
20573 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20574 allow_undefined_flag_CXX=
20575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20576 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20579 test $ac_status = 0; }
20581 lt_cv_archive_cmds_need_lc_CXX=no
20583 lt_cv_archive_cmds_need_lc_CXX=yes
20585 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20587 cat conftest.err 1>&5
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20593 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20594 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20665 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20667 library_names_spec=
20668 libname_spec='lib$name'
20672 postuninstall_cmds=
20676 shlibpath_overrides_runpath=unknown
20678 dynamic_linker="$host_os ld.so"
20679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20680 need_lib_prefix=unknown
20681 hardcode_into_libs=no
20683 # when you set need_version to no, make sure it does not cause -set_version
20684 # flags to be left without arguments
20685 need_version=unknown
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20691 shlibpath_var=LIBPATH
20693 # AIX 3 has no versioning support, so we append a major version to the name.
20694 soname_spec='${libname}${release}${shared_ext}$major'
20701 hardcode_into_libs=yes
20702 if test "$host_cpu" = ia64; then
20703 # AIX 5 supports IA64
20704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20705 shlibpath_var=LD_LIBRARY_PATH
20707 # With GCC up to 2.95.x, collect2 would create an import file
20708 # for dependence libraries. The import file would start with
20709 # the line `#! .'. This would cause the generated library to
20710 # depend on `.', always an invalid library. This was fixed in
20711 # development snapshots of GCC prior to 3.0.
20713 aix4 | aix4.[01] | aix4.[01].*)
20714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20716 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20719 can_build_shared=no
20723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20724 # soname into executable. Probably we can add versioning support to
20725 # collect2, so additional links can be useful in future.
20726 if test "$aix_use_runtimelinking" = yes; then
20727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20728 # instead of lib<name>.a to let people know that these are not
20729 # typical AIX shared libraries.
20730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 # We preserve .a as extension for shared libraries through AIX4.2
20733 # and later when we are not doing run time linking.
20734 library_names_spec='${libname}${release}.a $libname.a'
20735 soname_spec='${libname}${release}${shared_ext}$major'
20737 shlibpath_var=LIBPATH
20744 # Since July 2007 AmigaOS4 officially supports .so libraries.
20745 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 library_names_spec='$libname.ixlibrary $libname.a'
20750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20751 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'
20757 library_names_spec='${libname}${shared_ext}'
20758 dynamic_linker="$host_os ld.so"
20759 shlibpath_var=LIBRARY_PATH
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766 soname_spec='${libname}${release}${shared_ext}$major'
20767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20771 # the default ld.so.conf also contains /usr/contrib/lib and
20772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20773 # libtool to hard-code these into programs
20776 cygwin* | mingw* | pw32* | cegcc*)
20777 version_type=windows
20782 case $GCC,$host_os in
20783 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20784 library_names_spec='$libname.dll.a'
20785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20786 postinstall_cmds='base_file=`basename \${file}`~
20787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20788 dldir=$destdir/`dirname \$dlpath`~
20789 test -d \$dldir || mkdir -p \$dldir~
20790 $install_prog $dir/$dlname \$dldir/$dlname~
20791 chmod a+x \$dldir/$dlname~
20792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20796 dlpath=$dir/\$dldll~
20798 shlibpath_overrides_runpath=yes
20802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20807 # MinGW DLLs use traditional 'lib' prefix
20808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20811 # pw32 DLLs use 'pw' prefix rather than 'lib'
20812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20821 dynamic_linker='Win32 ld.exe'
20822 # FIXME: first we should search . and the directory the executable is in
20826 darwin* | rhapsody*)
20827 dynamic_linker="$host_os dyld"
20828 version_type=darwin
20831 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20832 soname_spec='${libname}${release}${major}$shared_ext'
20833 shlibpath_overrides_runpath=yes
20834 shlibpath_var=DYLD_LIBRARY_PATH
20835 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20845 soname_spec='${libname}${release}${shared_ext}$major'
20846 shlibpath_var=LD_LIBRARY_PATH
20849 freebsd* | dragonfly*)
20850 # DragonFly does not have aout. When/if they implement a new
20851 # versioning mechanism, adjust this.
20852 if test -x /usr/bin/objformat; then
20853 objformat=`/usr/bin/objformat`
20856 freebsd[23].*) objformat=aout ;;
20857 *) objformat=elf ;;
20860 version_type=freebsd-$objformat
20861 case $version_type in
20863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20872 shlibpath_var=LD_LIBRARY_PATH
20875 shlibpath_overrides_runpath=yes
20877 freebsd3.[01]* | freebsdelf3.[01]*)
20878 shlibpath_overrides_runpath=yes
20879 hardcode_into_libs=yes
20881 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20882 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20883 shlibpath_overrides_runpath=no
20884 hardcode_into_libs=yes
20886 *) # from 4.6 on, and DragonFly
20887 shlibpath_overrides_runpath=yes
20888 hardcode_into_libs=yes
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 shlibpath_var=LD_LIBRARY_PATH
20900 hardcode_into_libs=yes
20907 dynamic_linker="$host_os runtime_loader"
20908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20909 soname_spec='${libname}${release}${shared_ext}$major'
20910 shlibpath_var=LIBRARY_PATH
20911 shlibpath_overrides_runpath=yes
20912 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20913 hardcode_into_libs=yes
20916 hpux9* | hpux10* | hpux11*)
20917 # Give a soname corresponding to the major version so that dld.sl refuses to
20918 # link against other versions.
20925 hardcode_into_libs=yes
20926 dynamic_linker="$host_os dld.so"
20927 shlibpath_var=LD_LIBRARY_PATH
20928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930 soname_spec='${libname}${release}${shared_ext}$major'
20931 if test "X$HPUX_IA64_MODE" = X32; then
20932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20940 hardcode_into_libs=yes
20941 dynamic_linker="$host_os dld.sl"
20942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20945 soname_spec='${libname}${release}${shared_ext}$major'
20946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20951 dynamic_linker="$host_os dld.sl"
20952 shlibpath_var=SHLIB_PATH
20953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20955 soname_spec='${libname}${release}${shared_ext}$major'
20958 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20959 postinstall_cmds='chmod 555 $lib'
20960 # or fails outright, so override atomically:
20961 install_override_mode=555
20968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20969 soname_spec='${libname}${release}${shared_ext}$major'
20970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath=no
20973 hardcode_into_libs=yes
20976 irix5* | irix6* | nonstopux*)
20978 nonstopux*) version_type=nonstopux ;;
20980 if test "$lt_cv_prog_gnu_ld" = yes; then
20988 soname_spec='${libname}${release}${shared_ext}$major'
20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20991 irix5* | nonstopux*)
20992 libsuff= shlibsuff=
20995 case $LD in # libtool.m4 will add one of these switches to LD
20996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20997 libsuff= shlibsuff= libmagic=32-bit;;
20998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20999 libsuff=32 shlibsuff=N32 libmagic=N32;;
21000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21002 *) libsuff= shlibsuff= libmagic=never-match;;
21006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21007 shlibpath_overrides_runpath=no
21008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21010 hardcode_into_libs=yes
21013 # No shared lib support for Linux oldld, aout, or coff.
21014 linux*oldld* | linux*aout* | linux*coff*)
21018 # This must be Linux ELF.
21019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21024 soname_spec='${libname}${release}${shared_ext}$major'
21025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21026 shlibpath_var=LD_LIBRARY_PATH
21027 shlibpath_overrides_runpath=no
21029 # Some binutils ld are patched to set DT_RUNPATH
21030 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21031 $as_echo_n "(cached) " >&6
21033 lt_cv_shlibpath_overrides_runpath=no
21034 save_LDFLAGS=$LDFLAGS
21035 save_libdir=$libdir
21036 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21037 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21049 if ac_fn_cxx_try_link "$LINENO"; then :
21050 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21051 lt_cv_shlibpath_overrides_runpath=yes
21054 rm -f core conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext conftest.$ac_ext
21056 LDFLAGS=$save_LDFLAGS
21057 libdir=$save_libdir
21061 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21063 # This implies no fast_install, which is unacceptable.
21064 # Some rework will be needed to allow for fast_install
21065 # before this can be enabled.
21066 hardcode_into_libs=yes
21068 # Append ld.so.conf contents to the search path
21069 if test -f /etc/ld.so.conf; then
21070 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' ' '`
21071 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21074 # We used to test for /lib/ld.so.1 and disable shared libraries on
21075 # powerpc, because MkLinux only supported shared libraries with the
21076 # GNU dynamic linker. Since this was broken with cross compilers,
21077 # most powerpc-linux boxes support dynamic linking these days and
21078 # people can always --disable-shared, the test was removed, and we
21079 # assume the GNU/Linux dynamic linker is in use.
21080 dynamic_linker='GNU/Linux ld.so'
21087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21090 dynamic_linker='NetBSD (a.out) ld.so'
21092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21093 soname_spec='${libname}${release}${shared_ext}$major'
21094 dynamic_linker='NetBSD ld.elf_so'
21096 shlibpath_var=LD_LIBRARY_PATH
21097 shlibpath_overrides_runpath=yes
21098 hardcode_into_libs=yes
21103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104 shlibpath_var=LD_LIBRARY_PATH
21105 shlibpath_overrides_runpath=yes
21112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21113 soname_spec='${libname}${release}${shared_ext}$major'
21114 shlibpath_var=LD_LIBRARY_PATH
21115 shlibpath_overrides_runpath=no
21116 hardcode_into_libs=yes
21117 dynamic_linker='ldqnx.so'
21122 sys_lib_dlsearch_path_spec="/usr/lib"
21124 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21126 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21127 *) need_version=no ;;
21129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21131 shlibpath_var=LD_LIBRARY_PATH
21132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21134 openbsd2.[89] | openbsd2.[89].*)
21135 shlibpath_overrides_runpath=no
21138 shlibpath_overrides_runpath=yes
21142 shlibpath_overrides_runpath=yes
21147 libname_spec='$name'
21150 library_names_spec='$libname${shared_ext} $libname.a'
21151 dynamic_linker='OS/2 ld.exe'
21152 shlibpath_var=LIBPATH
21155 osf3* | osf4* | osf5*)
21159 soname_spec='${libname}${release}${shared_ext}$major'
21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 shlibpath_var=LD_LIBRARY_PATH
21162 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21163 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21175 soname_spec='${libname}${release}${shared_ext}$major'
21176 shlibpath_var=LD_LIBRARY_PATH
21177 shlibpath_overrides_runpath=yes
21178 hardcode_into_libs=yes
21179 # ldd complains unless libraries are executable
21180 postinstall_cmds='chmod +x $lib'
21185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21186 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21187 shlibpath_var=LD_LIBRARY_PATH
21188 shlibpath_overrides_runpath=yes
21189 if test "$with_gnu_ld" = yes; then
21197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21198 soname_spec='${libname}${release}${shared_ext}$major'
21199 shlibpath_var=LD_LIBRARY_PATH
21200 case $host_vendor in
21202 shlibpath_overrides_runpath=no
21204 runpath_var=LD_RUN_PATH
21212 shlibpath_overrides_runpath=no
21213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21219 if test -d /usr/nec ;then
21221 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21222 soname_spec='$libname${shared_ext}.$major'
21223 shlibpath_var=LD_LIBRARY_PATH
21227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21228 version_type=freebsd-elf
21231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21232 soname_spec='${libname}${release}${shared_ext}$major'
21233 shlibpath_var=LD_LIBRARY_PATH
21234 shlibpath_overrides_runpath=yes
21235 hardcode_into_libs=yes
21236 if test "$with_gnu_ld" = yes; then
21237 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21242 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21246 sys_lib_dlsearch_path_spec='/usr/lib'
21250 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21255 shlibpath_var=LD_LIBRARY_PATH
21256 shlibpath_overrides_runpath=no
21257 hardcode_into_libs=yes
21262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21263 soname_spec='${libname}${release}${shared_ext}$major'
21264 shlibpath_var=LD_LIBRARY_PATH
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21272 $as_echo "$dynamic_linker" >&6; }
21273 test "$dynamic_linker" = no && can_build_shared=no
21275 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21276 if test "$GCC" = yes; then
21277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21280 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21281 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21283 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21284 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21326 hardcode_action_CXX=
21327 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21328 test -n "$runpath_var_CXX" ||
21329 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21331 # We can hardcode non-existent directories.
21332 if test "$hardcode_direct_CXX" != no &&
21333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21334 # have to relink, otherwise we might link with an installed library
21335 # when we should be linking with a yet-to-be-installed one
21336 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21337 test "$hardcode_minus_L_CXX" != no; then
21338 # Linking always hardcodes the temporary library directory.
21339 hardcode_action_CXX=relink
21341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21342 hardcode_action_CXX=immediate
21345 # We cannot hardcode anything, or else we can only hardcode existing
21347 hardcode_action_CXX=unsupported
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21350 $as_echo "$hardcode_action_CXX" >&6; }
21352 if test "$hardcode_action_CXX" = relink ||
21353 test "$inherit_rpath_CXX" = yes; then
21354 # Fast installation is not supported
21355 enable_fast_install=no
21356 elif test "$shlibpath_overrides_runpath" = yes ||
21357 test "$enable_shared" = no; then
21358 # Fast installation is not necessary
21359 enable_fast_install=needless
21368 fi # test -n "$compiler"
21374 with_gnu_ld=$lt_save_with_gnu_ld
21375 lt_cv_path_LDCXX=$lt_cv_path_LD
21376 lt_cv_path_LD=$lt_save_path_LD
21377 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21378 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21379 fi # test "$_lt_caught_CXX_error" != yes
21382 ac_cpp='$CPP $CPPFLAGS'
21383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21402 # Only expand once:
21408 # Identify the assembler which will work hand-in-glove with the newly
21409 # built GCC, so that we can examine its features. This is the assembler
21410 # which will be driven by the driver program.
21412 # If build != host, and we aren't building gas in-tree, we identify a
21413 # build->target assembler and hope that it will have the same features
21414 # as the host->target assembler we'll be using.
21415 gcc_cv_gas_major_version=
21416 gcc_cv_gas_minor_version=
21417 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21419 if test "${gcc_cv_as+set}" = set; then :
21423 if test -x "$DEFAULT_ASSEMBLER"; then
21424 gcc_cv_as="$DEFAULT_ASSEMBLER"
21425 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21426 && test -f ../gas/Makefile \
21427 && test x$build = x$host; then
21428 gcc_cv_as=../gas/as-new$build_exeext
21429 elif test -x as$build_exeext; then
21430 # Build using assembler in the current directory.
21431 gcc_cv_as=./as$build_exeext
21432 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21433 gcc_cv_as="$AS_FOR_TARGET"
21435 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21436 set dummy $AS_FOR_TARGET; ac_word=$2
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21438 $as_echo_n "checking for $ac_word... " >&6; }
21439 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21440 $as_echo_n "(cached) " >&6
21444 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21448 for as_dir in $PATH
21451 test -z "$as_dir" && as_dir=.
21452 for ac_exec_ext in '' $ac_executable_extensions; do
21453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21454 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21465 gcc_cv_as=$ac_cv_path_gcc_cv_as
21466 if test -n "$gcc_cv_as"; then
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21468 $as_echo "$gcc_cv_as" >&6; }
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21471 $as_echo "no" >&6; }
21478 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21480 case "$ORIGINAL_AS_FOR_TARGET" in
21481 ./as | ./as$build_exeext) ;;
21482 *) ac_config_files="$ac_config_files as:exec-tool.in"
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21487 $as_echo_n "checking what assembler to use... " >&6; }
21488 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21489 # Single tree build which includes gas. We want to prefer it
21490 # over whatever linker top-level may have detected, since
21491 # we'll use what we're building after installation anyway.
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21493 $as_echo "newly built gas" >&6; }
21495 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21496 for f in $gcc_cv_as_bfd_srcdir/configure \
21497 $gcc_cv_as_gas_srcdir/configure \
21498 $gcc_cv_as_gas_srcdir/configure.in \
21499 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21500 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21501 if test x$gcc_cv_gas_version != x; then
21505 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21506 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21507 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21508 case $gcc_cv_gas_patch_version in
21509 "") gcc_cv_gas_patch_version="0" ;;
21511 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21512 + $gcc_cv_gas_minor_version \) \* 1000 \
21513 + $gcc_cv_gas_patch_version`
21515 in_tree_gas_is_elf=no
21516 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21517 || (grep 'obj_format = multi' ../gas/Makefile \
21518 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21520 in_tree_gas_is_elf=yes
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21524 $as_echo "$gcc_cv_as" >&6; }
21528 # Identify the linker which will work hand-in-glove with the newly
21529 # built GCC, so that we can examine its features. This is the linker
21530 # which will be driven by the driver program.
21532 # If build != host, and we aren't building gas in-tree, we identify a
21533 # build->target linker and hope that it will have the same features
21534 # as the host->target linker we'll be using.
21535 gcc_cv_gld_major_version=
21536 gcc_cv_gld_minor_version=
21537 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21538 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21540 if test "${gcc_cv_ld+set}" = set; then :
21544 if test -x "$DEFAULT_LINKER"; then
21545 gcc_cv_ld="$DEFAULT_LINKER"
21546 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21547 && test -f ../ld/Makefile \
21548 && test x$build = x$host; then
21549 gcc_cv_ld=../ld/ld-new$build_exeext
21550 elif test -x collect-ld$build_exeext; then
21551 # Build using linker in the current directory.
21552 gcc_cv_ld=./collect-ld$build_exeext
21553 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21554 gcc_cv_ld="$LD_FOR_TARGET"
21556 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21557 set dummy $LD_FOR_TARGET; ac_word=$2
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21559 $as_echo_n "checking for $ac_word... " >&6; }
21560 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21561 $as_echo_n "(cached) " >&6
21565 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21569 for as_dir in $PATH
21572 test -z "$as_dir" && as_dir=.
21573 for ac_exec_ext in '' $ac_executable_extensions; do
21574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21575 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21586 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21587 if test -n "$gcc_cv_ld"; then
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21589 $as_echo "$gcc_cv_ld" >&6; }
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21592 $as_echo "no" >&6; }
21599 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21600 PLUGIN_LD=`basename $gcc_cv_ld`
21602 # Check whether --with-plugin-ld was given.
21603 if test "${with_plugin_ld+set}" = set; then :
21604 withval=$with_plugin_ld; if test x"$withval" != x; then
21605 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21606 PLUGIN_LD="$withval"
21612 cat >>confdefs.h <<_ACEOF
21613 #define PLUGIN_LD "$PLUGIN_LD"
21617 # Check to see if we are using gold instead of ld
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21619 $as_echo_n "checking whether we are using gold... " >&6; }
21621 if test x$gcc_cv_ld != x; then
21622 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21623 | grep "GNU gold" > /dev/null; then
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21628 $as_echo "$ld_is_gold" >&6; }
21630 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21632 case "$ORIGINAL_LD_FOR_TARGET" in
21633 ./collect-ld | ./collect-ld$build_exeext) ;;
21634 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21639 $as_echo_n "checking what linker to use... " >&6; }
21640 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21641 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21642 # Single tree build which includes ld. We want to prefer it
21643 # over whatever linker top-level may have detected, since
21644 # we'll use what we're building after installation anyway.
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21646 $as_echo "newly built ld" >&6; }
21648 in_tree_ld_is_elf=no
21649 if (grep 'EMUL = .*elf' ../ld/Makefile \
21650 || grep 'EMUL = .*linux' ../ld/Makefile \
21651 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21652 in_tree_ld_is_elf=yes
21653 elif test "$ld_is_gold" = yes; then
21654 in_tree_ld_is_elf=yes
21656 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
21658 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21659 if test x$gcc_cv_gld_version != x; then
21663 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21664 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21667 $as_echo "$gcc_cv_ld" >&6; }
21671 # Figure out what nm we will be using.
21672 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21673 if test "${gcc_cv_nm+set}" = set; then :
21677 if test -f $gcc_cv_binutils_srcdir/configure.in \
21678 && test -f ../binutils/Makefile \
21679 && test x$build = x$host; then
21680 gcc_cv_nm=../binutils/nm-new$build_exeext
21681 elif test -x nm$build_exeext; then
21682 gcc_cv_nm=./nm$build_exeext
21683 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21684 gcc_cv_nm="$NM_FOR_TARGET"
21686 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21687 set dummy $NM_FOR_TARGET; ac_word=$2
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21689 $as_echo_n "checking for $ac_word... " >&6; }
21690 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21691 $as_echo_n "(cached) " >&6
21695 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21699 for as_dir in $PATH
21702 test -z "$as_dir" && as_dir=.
21703 for ac_exec_ext in '' $ac_executable_extensions; do
21704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21705 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21716 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21717 if test -n "$gcc_cv_nm"; then
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21719 $as_echo "$gcc_cv_nm" >&6; }
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21722 $as_echo "no" >&6; }
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21730 $as_echo_n "checking what nm to use... " >&6; }
21731 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21732 # Single tree build which includes binutils.
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21734 $as_echo "newly built nm" >&6; }
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21738 $as_echo "$gcc_cv_nm" >&6; }
21742 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21744 case "$ORIGINAL_NM_FOR_TARGET" in
21745 ./nm | ./nm$build_exeext) ;;
21746 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21751 # Figure out what objdump we will be using.
21752 if test "${gcc_cv_objdump+set}" = set; then :
21756 if test -f $gcc_cv_binutils_srcdir/configure.in \
21757 && test -f ../binutils/Makefile \
21758 && test x$build = x$host; then
21759 # Single tree build which includes binutils.
21760 gcc_cv_objdump=../binutils/objdump$build_exeext
21761 elif test -x objdump$build_exeext; then
21762 gcc_cv_objdump=./objdump$build_exeext
21763 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21764 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21766 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21767 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21769 $as_echo_n "checking for $ac_word... " >&6; }
21770 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21771 $as_echo_n "(cached) " >&6
21773 case $gcc_cv_objdump in
21775 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21779 for as_dir in $PATH
21782 test -z "$as_dir" && as_dir=.
21783 for ac_exec_ext in '' $ac_executable_extensions; do
21784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21785 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21796 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21797 if test -n "$gcc_cv_objdump"; then
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21799 $as_echo "$gcc_cv_objdump" >&6; }
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21802 $as_echo "no" >&6; }
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21810 $as_echo_n "checking what objdump to use... " >&6; }
21811 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21812 # Single tree build which includes binutils.
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21814 $as_echo "newly built objdump" >&6; }
21815 elif test x$gcc_cv_objdump = x; then
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21817 $as_echo "not found" >&6; }
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21820 $as_echo "$gcc_cv_objdump" >&6; }
21823 # Figure out what readelf we will be using.
21824 if test "${gcc_cv_readelf+set}" = set; then :
21828 if test -f $gcc_cv_binutils_srcdir/configure.in \
21829 && test -f ../binutils/Makefile \
21830 && test x$build = x$host; then
21831 # Single tree build which includes binutils.
21832 gcc_cv_readelf=../binutils/readelf$build_exeext
21833 elif test -x readelf$build_exeext; then
21834 gcc_cv_readelf=./readelf$build_exeext
21836 # Extract the first word of "readelf", so it can be a program name with args.
21837 set dummy readelf; ac_word=$2
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21839 $as_echo_n "checking for $ac_word... " >&6; }
21840 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21843 case $gcc_cv_readelf in
21845 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21849 for as_dir in $PATH
21852 test -z "$as_dir" && as_dir=.
21853 for ac_exec_ext in '' $ac_executable_extensions; do
21854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21855 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21866 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21867 if test -n "$gcc_cv_readelf"; then
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21869 $as_echo "$gcc_cv_readelf" >&6; }
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21872 $as_echo "no" >&6; }
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21880 $as_echo_n "checking what readelf to use... " >&6; }
21881 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21882 # Single tree build which includes binutils.
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21884 $as_echo "newly built readelf" >&6; }
21885 elif test x$gcc_cv_readelf = x; then
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21887 $as_echo "not found" >&6; }
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21890 $as_echo "$gcc_cv_readelf" >&6; }
21893 # Figure out what assembler alignment features are present.
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21895 $as_echo_n "checking assembler flags... " >&6; }
21896 if test "${gcc_cv_as_flags+set}" = set; then :
21897 $as_echo_n "(cached) " >&6
21900 i[34567]86-*-linux*)
21901 gcc_cv_as_flags="--32"
21903 powerpc*-*-darwin*)
21904 gcc_cv_as_flags="-arch ppc"
21907 gcc_cv_as_flags=" "
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21912 $as_echo "$gcc_cv_as_flags" >&6; }
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21915 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21916 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21917 $as_echo_n "(cached) " >&6
21919 gcc_cv_as_balign_and_p2align=no
21920 if test $in_tree_gas = yes; then
21921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21922 then gcc_cv_as_balign_and_p2align=yes
21924 elif test x$gcc_cv_as != x; then
21925 $as_echo '.balign 4
21926 .p2align 2' > conftest.s
21927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21929 (eval $ac_try) 2>&5
21931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21932 test $ac_status = 0; }; }
21934 gcc_cv_as_balign_and_p2align=yes
21936 echo "configure: failed program was" >&5
21939 rm -f conftest.o conftest.s
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21943 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21944 if test $gcc_cv_as_balign_and_p2align = yes; then
21946 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21951 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21952 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21953 $as_echo_n "(cached) " >&6
21955 gcc_cv_as_max_skip_p2align=no
21956 if test $in_tree_gas = yes; then
21957 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21958 then gcc_cv_as_max_skip_p2align=yes
21960 elif test x$gcc_cv_as != x; then
21961 $as_echo '.p2align 4,,7' > conftest.s
21962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21964 (eval $ac_try) 2>&5
21966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21967 test $ac_status = 0; }; }
21969 gcc_cv_as_max_skip_p2align=yes
21971 echo "configure: failed program was" >&5
21974 rm -f conftest.o conftest.s
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21978 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21979 if test $gcc_cv_as_max_skip_p2align = yes; then
21981 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21986 $as_echo_n "checking assembler for .literal16... " >&6; }
21987 if test "${gcc_cv_as_literal16+set}" = set; then :
21988 $as_echo_n "(cached) " >&6
21990 gcc_cv_as_literal16=no
21991 if test $in_tree_gas = yes; then
21992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21993 then gcc_cv_as_literal16=yes
21995 elif test x$gcc_cv_as != x; then
21996 $as_echo '.literal16' > conftest.s
21997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999 (eval $ac_try) 2>&5
22001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002 test $ac_status = 0; }; }
22004 gcc_cv_as_literal16=yes
22006 echo "configure: failed program was" >&5
22009 rm -f conftest.o conftest.s
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22013 $as_echo "$gcc_cv_as_literal16" >&6; }
22014 if test $gcc_cv_as_literal16 = yes; then
22016 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22021 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22022 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22023 $as_echo_n "(cached) " >&6
22025 gcc_cv_as_subsection_m1=no
22026 if test $in_tree_gas = yes; then
22027 if test $in_tree_gas_is_elf = yes \
22028 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22029 then gcc_cv_as_subsection_m1=yes
22031 elif test x$gcc_cv_as != x; then
22032 $as_echo 'conftest_label1: .word 0
22034 conftest_label2: .word 0
22035 .previous' > conftest.s
22036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22038 (eval $ac_try) 2>&5
22040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22041 test $ac_status = 0; }; }
22043 if test x$gcc_cv_nm != x; then
22044 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22045 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22046 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22048 else gcc_cv_as_subsection_m1=yes
22050 rm -f conftest.nm1 conftest.nm2
22053 echo "configure: failed program was" >&5
22056 rm -f conftest.o conftest.s
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22060 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22061 if test $gcc_cv_as_subsection_m1 = yes; then
22063 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22068 $as_echo_n "checking assembler for .weak... " >&6; }
22069 if test "${gcc_cv_as_weak+set}" = set; then :
22070 $as_echo_n "(cached) " >&6
22073 if test $in_tree_gas = yes; then
22074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22075 then gcc_cv_as_weak=yes
22077 elif test x$gcc_cv_as != x; then
22078 $as_echo ' .weak foobar' > conftest.s
22079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22081 (eval $ac_try) 2>&5
22083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22084 test $ac_status = 0; }; }
22088 echo "configure: failed program was" >&5
22091 rm -f conftest.o conftest.s
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22095 $as_echo "$gcc_cv_as_weak" >&6; }
22096 if test $gcc_cv_as_weak = yes; then
22098 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22103 $as_echo_n "checking assembler for .weakref... " >&6; }
22104 if test "${gcc_cv_as_weakref+set}" = set; then :
22105 $as_echo_n "(cached) " >&6
22107 gcc_cv_as_weakref=no
22108 if test $in_tree_gas = yes; then
22109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22110 then gcc_cv_as_weakref=yes
22112 elif test x$gcc_cv_as != x; then
22113 $as_echo ' .weakref foobar, barfnot' > conftest.s
22114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22116 (eval $ac_try) 2>&5
22118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22119 test $ac_status = 0; }; }
22121 gcc_cv_as_weakref=yes
22123 echo "configure: failed program was" >&5
22126 rm -f conftest.o conftest.s
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22130 $as_echo "$gcc_cv_as_weakref" >&6; }
22131 if test $gcc_cv_as_weakref = yes; then
22133 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22138 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22139 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22140 $as_echo_n "(cached) " >&6
22142 gcc_cv_as_nsubspa_comdat=no
22143 if test $in_tree_gas = yes; then
22144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22145 then gcc_cv_as_nsubspa_comdat=yes
22147 elif test x$gcc_cv_as != x; then
22148 $as_echo ' .SPACE $TEXT$
22149 .NSUBSPA $CODE$,COMDAT' > 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; }; }
22157 gcc_cv_as_nsubspa_comdat=yes
22159 echo "configure: failed program was" >&5
22162 rm -f conftest.o conftest.s
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22166 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22167 if test $gcc_cv_as_nsubspa_comdat = yes; then
22169 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22173 # .hidden needs to be supported in both the assembler and the linker,
22174 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22175 # This is irritatingly difficult to feature test for; we have to check the
22176 # date string after the version number. If we've got an in-tree
22177 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22179 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22181 $as_echo_n "checking assembler for .hidden... " >&6; }
22182 if test "${gcc_cv_as_hidden+set}" = set; then :
22183 $as_echo_n "(cached) " >&6
22185 gcc_cv_as_hidden=no
22186 if test $in_tree_gas = yes; then
22187 if test $in_tree_gas_is_elf = yes \
22188 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22189 then gcc_cv_as_hidden=yes
22191 elif test x$gcc_cv_as != x; then
22192 $as_echo ' .hidden foobar
22193 foobar:' > conftest.s
22194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196 (eval $ac_try) 2>&5
22198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199 test $ac_status = 0; }; }
22202 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22203 # STV_HIDDEN, so disable .hidden support if so.
22204 case "${target}" in
22205 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22206 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22207 cat > conftest.s <<EOF
22212 .set default,hidden
22214 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22215 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22216 grep '\.hidden default' > /dev/null; then
22217 gcc_cv_as_hidden=no
22219 gcc_cv_as_hidden=yes
22222 # Assume bug is present if objdump is missing.
22223 gcc_cv_as_hidden=no
22227 gcc_cv_as_hidden=yes
22231 echo "configure: failed program was" >&5
22234 rm -f conftest.o conftest.s
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22238 $as_echo "$gcc_cv_as_hidden" >&6; }
22240 case "${target}" in
22242 # Darwin as has some visibility support, though with a different syntax.
22243 gcc_cv_as_hidden=yes
22247 # gnu_indirect_function type is an extension proposed at
22248 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22249 # selection of function implementation
22250 # Check whether --enable-gnu-indirect-function was given.
22251 if test "${enable_gnu_indirect_function+set}" = set; then :
22252 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22254 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22255 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22258 enable_gnu_indirect_function="$default_gnu_indirect_function"
22261 if test x$enable_gnu_indirect_function = xyes; then
22263 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22267 if test $in_tree_ld != yes ; then
22268 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22269 if echo "$ld_ver" | grep GNU > /dev/null; then
22270 if test x"$ld_is_gold" = xyes; then
22271 # GNU gold --version looks like this:
22273 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22275 # We extract the binutils version which is more familiar and specific
22276 # than the gold version.
22277 ld_vers=`echo $ld_ver | sed -n \
22278 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22280 # GNU ld --version looks like this:
22282 # GNU ld (GNU Binutils) 2.21.51.20110225
22283 ld_vers=`echo $ld_ver | sed -n \
22284 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22286 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'`
22287 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22288 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22289 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22291 case "${target}" in
22293 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22296 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22297 # /usr/ccs/bin/ld has been configured.
22298 ld_ver=`$gcc_cv_ld -V 2>&1`
22299 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22300 ld_vers=`echo $ld_ver | sed -n \
22301 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22302 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22303 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22311 $as_echo_n "checking linker for .hidden support... " >&6; }
22312 if test "${gcc_cv_ld_hidden+set}" = set; then :
22313 $as_echo_n "(cached) " >&6
22315 if test $in_tree_ld = yes ; then
22316 gcc_cv_ld_hidden=no
22317 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 \
22318 && test $in_tree_ld_is_elf = yes; then
22319 gcc_cv_ld_hidden=yes
22322 gcc_cv_ld_hidden=yes
22323 if test x"$ld_is_gold" = xyes; then
22325 elif echo "$ld_ver" | grep GNU > /dev/null; then
22326 if test 0"$ld_date" -lt 20020404; then
22327 if test -n "$ld_date"; then
22328 # If there was date string, but was earlier than 2002-04-04, fail
22329 gcc_cv_ld_hidden=no
22330 elif test -z "$ld_vers"; then
22331 # If there was no date string nor ld version number, something is wrong
22332 gcc_cv_ld_hidden=no
22334 test -z "$ld_vers_patch" && ld_vers_patch=0
22335 if test "$ld_vers_major" -lt 2; then
22336 gcc_cv_ld_hidden=no
22337 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22338 gcc_cv_ld_hidden="no"
22339 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22340 gcc_cv_ld_hidden=no
22345 case "${target}" in
22347 # Darwin ld has some visibility support.
22348 gcc_cv_ld_hidden=yes
22350 hppa64*-*-hpux* | ia64*-*-hpux*)
22351 gcc_cv_ld_hidden=yes
22354 # .hidden support was backported to Solaris 8, starting with ld
22356 if test "$ld_vers_minor" -ge 276; then
22357 gcc_cv_ld_hidden=yes
22359 gcc_cv_ld_hidden=no
22362 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22363 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22364 # .symbolic was only added in Solaris 9 12/02.
22365 gcc_cv_ld_hidden=yes
22368 gcc_cv_ld_hidden=no
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22375 $as_echo "$gcc_cv_ld_hidden" >&6; }
22376 libgcc_visibility=no
22379 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22380 libgcc_visibility=yes
22382 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22387 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22388 gcc_cv_ld_ro_rw_mix=unknown
22389 if test $in_tree_ld = yes ; then
22390 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 \
22391 && test $in_tree_ld_is_elf = yes; then
22392 gcc_cv_ld_ro_rw_mix=read-write
22394 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22395 echo '.section myfoosect, "a"' > conftest1.s
22396 echo '.section myfoosect, "aw"' > conftest2.s
22397 echo '.byte 1' >> conftest2.s
22398 echo '.section myfoosect, "a"' > conftest3.s
22399 echo '.byte 0' >> conftest3.s
22400 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22401 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22402 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22403 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22404 conftest2.o conftest3.o > /dev/null 2>&1; then
22405 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22406 | sed -e '/myfoosect/!d' -e N`
22407 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22408 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22409 gcc_cv_ld_ro_rw_mix=read-only
22411 gcc_cv_ld_ro_rw_mix=read-write
22415 rm -f conftest.* conftest[123].*
22417 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22419 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22423 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22425 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22426 case "${target}" in
22429 # Solaris 2 ld -V output looks like this for a regular version:
22431 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22433 # but test versions add stuff at the end:
22435 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22437 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22438 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22439 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22440 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22441 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22442 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22448 # Check whether --enable-initfini-array was given.
22449 if test "${enable_initfini_array+set}" = set; then :
22450 enableval=$enable_initfini_array;
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22454 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22455 if test "${gcc_cv_initfini_array+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22458 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22459 case "${target}" in
22461 if test "$cross_compiling" = yes; then :
22462 gcc_cv_initfini_array=no
22464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h. */
22468 #error Not an ELF OS
22470 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22471 if it can be used. */
22473 int main (void) { return x; }
22474 int foo (void) { x = 0; }
22475 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22478 if ac_fn_c_try_run "$LINENO"; then :
22479 gcc_cv_initfini_array=yes
22481 gcc_cv_initfini_array=no
22483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22484 conftest.$ac_objext conftest.beam conftest.$ac_ext
22488 gcc_cv_initfini_array=no
22489 if test $in_tree_ld = yes ; then
22490 if test "$gcc_cv_gld_major_version" -eq 2 \
22491 -a "$gcc_cv_gld_minor_version" -ge 22 \
22492 -o "$gcc_cv_gld_major_version" -gt 2 \
22493 && test $in_tree_ld_is_elf = yes; then
22494 gcc_cv_initfini_array=yes
22496 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22497 cat > conftest.s <<\EOF
22498 .section .dtors,"a",%progbits
22500 .byte 'A', 'A', 'A', 'A'
22501 .section .ctors,"a",%progbits
22503 .byte 'B', 'B', 'B', 'B'
22504 .section .fini_array.65530,"a",%progbits
22506 .byte 'C', 'C', 'C', 'C'
22507 .section .init_array.65530,"a",%progbits
22509 .byte 'D', 'D', 'D', 'D'
22510 .section .dtors.64528,"a",%progbits
22512 .byte 'E', 'E', 'E', 'E'
22513 .section .ctors.64528,"a",%progbits
22515 .byte 'F', 'F', 'F', 'F'
22516 .section .fini_array.01005,"a",%progbits
22518 .byte 'G', 'G', 'G', 'G'
22519 .section .init_array.01005,"a",%progbits
22521 .byte 'H', 'H', 'H', 'H'
22526 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22527 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22528 && $gcc_cv_objdump -s -j .init_array conftest \
22529 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22530 && $gcc_cv_objdump -s -j .fini_array conftest \
22531 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22532 gcc_cv_initfini_array=yes
22534 rm -f conftest conftest.*
22536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22540 # error Not an ELF OS
22542 #include <stdlib.h>
22543 #if defined __GLIBC_PREREQ
22544 # if __GLIBC_PREREQ (2, 4)
22546 # error GLIBC 2.4 required
22549 # if defined __sun__ && defined __svr4__
22550 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22552 # error The C library not known to support .init_array/.fini_array
22557 if ac_fn_c_try_cpp "$LINENO"; then :
22559 case "${target}" in
22561 # .init_array/.fini_array support was introduced in Solaris 8
22562 # patches 109147-08 (sparc) and 109148-08 (x86). Since ld.so.1 and
22563 # ld are guaranteed to be updated in lockstep, we can check ld -V
22564 # instead. Unfortunately, proper ld version numbers were only
22565 # introduced in rev. -14, so we check for that.
22566 if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then
22567 gcc_cv_initfini_array=no
22570 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22571 # .init_array/.fini_array support is present since Solaris 9 FCS.
22576 gcc_cv_initfini_array=no
22578 rm -f conftest.err conftest.$ac_ext;;
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22582 $as_echo_n "checking cross compile... guessing... " >&6; }
22583 gcc_cv_initfini_array=no
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22587 $as_echo "$gcc_cv_initfini_array" >&6; }
22588 enable_initfini_array=$gcc_cv_initfini_array
22592 if test $enable_initfini_array = yes; then
22594 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22598 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22600 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22601 if test "${gcc_cv_as_leb128+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22604 gcc_cv_as_leb128=no
22605 if test $in_tree_gas = yes; then
22606 if test $in_tree_gas_is_elf = yes \
22607 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22608 then gcc_cv_as_leb128=yes
22610 elif test x$gcc_cv_as != x; then
22617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22619 (eval $ac_try) 2>&5
22621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22622 test $ac_status = 0; }; }
22624 # GAS versions before 2.11 do not support uleb128,
22625 # despite appearing to.
22626 # ??? There exists an elf-specific test that will crash
22627 # the assembler. Perhaps it's better to figure out whether
22628 # arbitrary sections are supported and try the test.
22629 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22630 if echo "$as_ver" | grep GNU > /dev/null; then
22631 as_vers=`echo $as_ver | sed -n \
22632 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22633 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22634 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22635 if test $as_major -eq 2 && test $as_minor -lt 11
22637 else gcc_cv_as_leb128=yes
22641 echo "configure: failed program was" >&5
22644 rm -f conftest.o conftest.s
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22648 $as_echo "$gcc_cv_as_leb128" >&6; }
22649 if test $gcc_cv_as_leb128 = yes; then
22651 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22655 # Check if we have assembler support for unwind directives.
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22657 $as_echo_n "checking assembler for cfi directives... " >&6; }
22658 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22659 $as_echo_n "(cached) " >&6
22661 gcc_cv_as_cfi_directive=no
22662 if test x$gcc_cv_as != x; then
22668 .cfi_escape 1, 2, 3, 4, 5
22669 .cfi_endproc' > conftest.s
22670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22672 (eval $ac_try) 2>&5
22674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22675 test $ac_status = 0; }; }
22679 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22680 # read-only and read-write sections, we need to make sure that the
22681 # assembler used emits read-write .eh_frame sections.
22682 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22683 if test "x$gcc_cv_objdump" != x; then
22684 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22685 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22686 gcc_cv_as_cfi_directive=no
22689 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22690 # On Solaris/x86, make sure that GCC and gas agree on using
22691 # read-only .eh_frame sections for 64-bit.
22692 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22693 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22694 sed -e /.eh_frame/!d -e N | \
22695 grep READONLY > /dev/null; then
22696 gcc_cv_as_cfi_directive=yes
22698 gcc_cv_as_cfi_directive=no
22702 gcc_cv_as_cfi_directive=yes
22707 # no objdump, err on the side of caution
22708 gcc_cv_as_cfi_directive=no
22711 gcc_cv_as_cfi_directive=yes
22715 gcc_cv_as_cfi_directive=yes
22719 echo "configure: failed program was" >&5
22722 rm -f conftest.o conftest.s
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22726 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22728 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22730 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22731 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22732 $as_echo_n "(cached) " >&6
22734 gcc_cv_as_cfi_advance_working=no
22735 if test x$gcc_cv_as != x; then
22738 .cfi_adjust_cfa_offset 64
22740 .cfi_adjust_cfa_offset 128
22741 .cfi_endproc' > conftest.s
22742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744 (eval $ac_try) 2>&5
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; }
22750 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22751 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22752 gcc_cv_as_cfi_advance_working=yes
22756 echo "configure: failed program was" >&5
22759 rm -f conftest.o conftest.s
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22763 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22766 # no objdump, err on the side of caution
22767 gcc_cv_as_cfi_advance_working=no
22771 cat >>confdefs.h <<_ACEOF
22772 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22773 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22779 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22780 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22781 $as_echo_n "(cached) " >&6
22783 gcc_cv_as_cfi_personality_directive=no
22784 if test x$gcc_cv_as != x; then
22787 .cfi_personality 0, symbol
22788 .cfi_endproc' > conftest.s
22789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22791 (eval $ac_try) 2>&5
22793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22794 test $ac_status = 0; }; }
22796 gcc_cv_as_cfi_personality_directive=yes
22798 echo "configure: failed program was" >&5
22801 rm -f conftest.o conftest.s
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22805 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22808 cat >>confdefs.h <<_ACEOF
22809 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22810 then echo 1; else echo 0; fi`
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22815 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22816 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22817 $as_echo_n "(cached) " >&6
22819 gcc_cv_as_cfi_sections_directive=no
22820 if test x$gcc_cv_as != x; then
22822 .cfi_sections .debug_frame, .eh_frame
22824 .cfi_endproc' > conftest.s
22825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22827 (eval $ac_try) 2>&5
22829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22830 test $ac_status = 0; }; }
22833 win32 | pe | cygwin* | mingw32* | uwin*)
22834 # Need to check that we generated the correct relocation for the
22835 # .debug_frame section. This was fixed for binutils 2.21.
22836 gcc_cv_as_cfi_sections_directive=no
22837 if test "x$gcc_cv_objdump" != x; then
22838 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22839 grep secrel > /dev/null; then
22840 gcc_cv_as_cfi_sections_directive=yes
22845 gcc_cv_as_cfi_sections_directive=yes
22849 echo "configure: failed program was" >&5
22852 rm -f conftest.o conftest.s
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22856 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22862 then echo 1; else echo 0; fi`
22866 # GAS versions up to and including 2.11.0 may mis-optimize
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22869 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22870 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22873 gcc_cv_as_eh_frame=no
22874 if test $in_tree_gas = yes; then
22875 if test $in_tree_gas_is_elf = yes \
22876 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22877 then gcc_cv_as_eh_frame=yes
22879 elif test x$gcc_cv_as != x; then
22886 .section .eh_frame,"aw",@progbits
22888 .4byte .LECIE1-.LSCIE1
22902 .4byte .LEFDE1-.LASFDE1
22904 .4byte .LASFDE1-__FRAME_BEGIN__
22911 .LEFDE1:' > conftest.s
22912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22914 (eval $ac_try) 2>&5
22916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22917 test $ac_status = 0; }; }
22919 cat > conftest.lit <<EOF
22920 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22921 0010 01000000 12000000 18000000 00000000 ................
22922 0020 08000000 04080000 0044 .........D
22924 cat > conftest.big <<EOF
22925 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22926 0010 00000001 00000012 00000018 00000000 ................
22927 0020 00000008 04000000 0844 .........D
22929 # If the assembler didn't choke, and we can objdump,
22930 # and we got the correct data, then succeed.
22931 # The text in the here-document typically retains its unix-style line
22932 # endings, while the output of objdump will use host line endings.
22933 # Therefore, use diff -b for the comparisons.
22934 if test x$gcc_cv_objdump != x \
22935 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22936 | tail -3 > conftest.got \
22937 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22938 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22940 gcc_cv_as_eh_frame=yes
22941 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22943 (eval $ac_try) 2>&5
22945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22946 test $ac_status = 0; }; }; then
22947 gcc_cv_as_eh_frame=buggy
22949 # Uh oh, what do we do now?
22950 gcc_cv_as_eh_frame=no
22953 echo "configure: failed program was" >&5
22956 rm -f conftest.o conftest.s
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22960 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22963 if test $gcc_cv_as_eh_frame = buggy; then
22965 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22970 $as_echo_n "checking assembler for section merging support... " >&6; }
22971 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22972 $as_echo_n "(cached) " >&6
22974 gcc_cv_as_shf_merge=no
22975 if test $in_tree_gas = yes; then
22976 if test $in_tree_gas_is_elf = yes \
22977 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22978 then gcc_cv_as_shf_merge=yes
22980 elif test x$gcc_cv_as != x; then
22981 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22984 (eval $ac_try) 2>&5
22986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22987 test $ac_status = 0; }; }
22989 gcc_cv_as_shf_merge=yes
22991 echo "configure: failed program was" >&5
22994 rm -f conftest.o conftest.s
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22998 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23000 if test $gcc_cv_as_shf_merge = no; then
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23002 $as_echo_n "checking assembler for section merging support... " >&6; }
23003 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23004 $as_echo_n "(cached) " >&6
23006 gcc_cv_as_shf_merge=no
23007 if test $in_tree_gas = yes; then
23008 if test $in_tree_gas_is_elf = yes \
23009 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23010 then gcc_cv_as_shf_merge=yes
23012 elif test x$gcc_cv_as != x; then
23013 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23016 (eval $ac_try) 2>&5
23018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23019 test $ac_status = 0; }; }
23021 gcc_cv_as_shf_merge=yes
23023 echo "configure: failed program was" >&5
23026 rm -f conftest.o conftest.s
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23030 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23034 cat >>confdefs.h <<_ACEOF
23035 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23040 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23041 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23042 $as_echo_n "(cached) " >&6
23044 gcc_cv_as_comdat_group=no
23045 if test $in_tree_gas = yes; then
23046 if test $in_tree_gas_is_elf = yes \
23047 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23048 then gcc_cv_as_comdat_group=yes
23050 elif test x$gcc_cv_as != x; then
23051 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23054 (eval $ac_try) 2>&5
23056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23057 test $ac_status = 0; }; }
23059 gcc_cv_as_comdat_group=yes
23061 echo "configure: failed program was" >&5
23064 rm -f conftest.o conftest.s
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23068 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23070 if test $gcc_cv_as_comdat_group = yes; then
23071 gcc_cv_as_comdat_group_percent=no
23072 gcc_cv_as_comdat_group_group=no
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23075 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23076 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23077 $as_echo_n "(cached) " >&6
23079 gcc_cv_as_comdat_group_percent=no
23080 if test $in_tree_gas = yes; then
23081 if test $in_tree_gas_is_elf = yes \
23082 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23083 then gcc_cv_as_comdat_group_percent=yes
23085 elif test x$gcc_cv_as != x; then
23086 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23089 (eval $ac_try) 2>&5
23091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092 test $ac_status = 0; }; }
23094 gcc_cv_as_comdat_group_percent=yes
23096 echo "configure: failed program was" >&5
23099 rm -f conftest.o conftest.s
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23103 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23105 if test $gcc_cv_as_comdat_group_percent = yes; then
23106 gcc_cv_as_comdat_group_group=no
23108 case "${target}" in
23109 # Sun as uses a completely different syntax.
23111 case "${target}" in
23112 sparc*-*-solaris2*)
23114 .group foo,".text%foo",#comdat
23115 .section ".text%foo", #alloc,#execinstr,#progbits
23120 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23122 .group foo,.text%foo,#comdat
23123 .section .text%foo, "ax", @progbits
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23130 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23131 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23132 $as_echo_n "(cached) " >&6
23134 gcc_cv_as_comdat_group_group=no
23135 if test x$gcc_cv_as != x; then
23136 $as_echo "$conftest_s" > conftest.s
23137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23139 (eval $ac_try) 2>&5
23141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23142 test $ac_status = 0; }; }
23144 gcc_cv_as_comdat_group_group=yes
23146 echo "configure: failed program was" >&5
23149 rm -f conftest.o conftest.s
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23153 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23159 if test x"$ld_is_gold" = xyes; then
23161 elif test $in_tree_ld = yes ; then
23163 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 \
23164 && test $in_tree_ld_is_elf = yes; then
23167 elif echo "$ld_ver" | grep GNU > /dev/null; then
23169 if test 0"$ld_date" -lt 20050308; then
23170 if test -n "$ld_date"; then
23171 # If there was date string, but was earlier than 2005-03-08, fail
23173 elif test "$ld_vers_major" -lt 2; then
23175 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23180 case "${target}" in
23181 *-*-solaris2.1[1-9]*)
23183 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23184 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23187 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23188 # least ld version 1.2267.
23189 if test "$ld_vers_major" -gt 1; then
23191 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23193 elif test "$ld_vers_minor" -ge 2267; then
23198 # Assume linkers other than GNU ld don't support COMDAT group.
23203 # Allow overriding the automatic COMDAT group tests above.
23204 # Check whether --enable-comdat was given.
23205 if test "${enable_comdat+set}" = set; then :
23206 enableval=$enable_comdat; comdat_group="$enable_comdat"
23209 if test $comdat_group = no; then
23210 gcc_cv_as_comdat_group=no
23211 gcc_cv_as_comdat_group_percent=no
23212 gcc_cv_as_comdat_group_group=no
23215 cat >>confdefs.h <<_ACEOF
23216 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23217 || test $gcc_cv_as_comdat_group_percent = yes \
23218 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23223 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23224 if test "${gcc_cv_as_discriminator+set}" = set; then :
23225 $as_echo_n "(cached) " >&6
23227 gcc_cv_as_discriminator=no
23228 if test $in_tree_gas = yes; then
23229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23230 then gcc_cv_as_discriminator=yes
23232 elif test x$gcc_cv_as != x; then
23235 .loc 1 1 0 discriminator 1' > conftest.s
23236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23238 (eval $ac_try) 2>&5
23240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23241 test $ac_status = 0; }; }
23243 gcc_cv_as_discriminator=yes
23245 echo "configure: failed program was" >&5
23248 rm -f conftest.o conftest.s
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23252 $as_echo "$gcc_cv_as_discriminator" >&6; }
23253 if test $gcc_cv_as_discriminator = yes; then
23255 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23259 # Thread-local storage - the check is heavily parameterized.
23267 .section ".tdata","awT",@progbits
23270 ldq $27,__tls_get_addr($29) !literal!1
23271 lda $16,foo($29) !tlsgd!1
23272 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23273 ldq $27,__tls_get_addr($29) !literal!2
23274 lda $16,foo($29) !tlsldm!2
23275 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23276 ldq $1,foo($29) !gotdtprel
23277 ldah $2,foo($29) !dtprelhi
23278 lda $3,foo($2) !dtprello
23279 lda $4,foo($29) !dtprel
23280 ldq $1,foo($29) !gottprel
23281 ldah $2,foo($29) !tprelhi
23282 lda $3,foo($2) !tprello
23283 lda $4,foo($29) !tprel'
23286 tls_as_opt=--fatal-warnings
23288 cris-*-*|crisv32-*-*)
23290 .section ".tdata","awT",@progbits
23297 tls_as_opt=--fatal-warnings
23301 .section ".tdata","awT",@progbits
23304 call #gettlsoff(x)'
23313 .section ".tdata","awT",@progbits
23317 addil LT%foo-$tls_gdidx$,gp
23318 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23321 addil LT%foo-$tls_ldidx$,gp
23323 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23324 addil LR%foo-$tls_dtpoff$,%ret0
23325 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23327 addil LT%foo-$tls_ieoff$,gp
23328 ldw RT%foo-$tls_ieoff$(%r1),%t2
23331 addil LR%foo-$tls_leoff$,%t1
23332 ldo RR%foo-$tls_leoff$(%r1),%t2'
23335 tls_as_opt=--fatal-warnings
23339 .section ".tdata","awT",%progbits
23342 .word foo(gottpoff)
23350 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23352 i[34567]86-*-solaris2.*)
23354 tga_func=___tls_get_addr
23356 x86_64-*-solaris2.1[0-9]*)
23358 tga_func=__tls_get_addr
23364 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23366 .section .tdata,"awt",@progbits'
23370 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23374 .section ".tdata","awT",@progbits'
23377 tls_as_opt="--fatal-warnings"
23379 conftest_s="$conftest_s
23383 leal foo@tlsgd(,%ebx,1), %eax
23384 leal foo@tlsldm(%ebx), %eax
23385 leal foo@dtpoff(%eax), %edx
23386 movl foo@gottpoff(%ebx), %eax
23387 subl foo@gottpoff(%ebx), %eax
23388 addl foo@gotntpoff(%ebx), %eax
23389 movl foo@indntpoff, %eax
23390 movl \$foo@tpoff, %eax
23391 subl \$foo@tpoff, %eax
23392 leal foo@ntpoff(%ecx), %eax"
23396 .section ".tdata","awT",@progbits
23400 leaq foo@TLSGD(%rip), %rdi
23401 leaq foo@TLSLD(%rip), %rdi
23402 leaq foo@DTPOFF(%rax), %rdx
23403 movq foo@GOTTPOFF(%rip), %rax
23404 movq $foo@TPOFF, %rax'
23407 tls_as_opt=--fatal-warnings
23411 .section ".tdata","awT",@progbits
23414 addl r16 = @ltoff(@dtpmod(foo#)), gp
23415 addl r17 = @ltoff(@dtprel(foo#)), gp
23416 addl r18 = @ltoff(@tprel(foo#)), gp
23417 addl r19 = @dtprel(foo#), gp
23418 adds r21 = @dtprel(foo#), r13
23419 movl r23 = @dtprel(foo#)
23420 addl r20 = @tprel(foo#), gp
23421 adds r22 = @tprel(foo#), r13
23422 movl r24 = @tprel(foo#)'
23425 tls_as_opt=--fatal-warnings
23429 .section .tdata,"awT",@progbits
23433 addiu $4, $28, %tlsgd(x)
23434 addiu $4, $28, %tlsldm(x)
23435 lui $4, %dtprel_hi(x)
23436 addiu $4, $4, %dtprel_lo(x)
23437 lw $4, %gottprel(x)($28)
23438 lui $4, %tprel_hi(x)
23439 addiu $4, $4, %tprel_lo(x)'
23442 tls_as_opt='-32 --fatal-warnings'
23446 .section .tdata,"awT",@progbits
23451 move.l x@TLSGD(%a5),%a0
23452 move.l x@TLSLDM(%a5),%a0
23453 move.l x@TLSLDO(%a5),%a0
23454 move.l x@TLSIE(%a5),%a0
23455 move.l x@TLSLE(%a5),%a0'
23458 tls_as_opt='--fatal-warnings'
23462 .section ".tdata","awT",@progbits
23470 addi 3,31,ld0@got@tlsgd
23472 addi 3,31,x1@got@tlsld
23475 addis 9,3,x2@dtprel@ha
23476 addi 9,9,x2@dtprel@l
23477 lwz 9,x3@got@tprel(31)
23480 addis 9,2,x2@tprel@ha
23481 addi 9,9,x2@tprel@l'
23484 tls_as_opt="-a32 --fatal-warnings"
23488 .section ".tdata","awT",@progbits
23496 addi 3,2,ld0@got@tlsgd
23502 addi 3,2,x1@got@tlsld
23508 addis 9,3,x2@dtprel@ha
23509 addi 9,9,x2@dtprel@l
23512 ld 9,x3@got@dtprel(2)
23518 tls_as_opt="-a64 --fatal-warnings"
23522 .section ".tdata","awT",@progbits
23529 .long foo@GOTNTPOFF
23530 .long foo@INDNTPOFF
23531 l %r1,foo@GOTNTPOFF(%r12)
23532 l %r1,0(%r1):tls_load:foo
23533 bas %r14,0(%r1,%r13):tls_gdcall:foo
23534 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23537 tls_as_opt="-m31 --fatal-warnings"
23541 .section ".tdata","awT",@progbits
23548 .quad foo@GOTNTPOFF
23549 lg %r1,foo@GOTNTPOFF(%r12)
23550 larl %r1,foo@INDNTPOFF
23551 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23552 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23555 tls_as_opt="-m64 -Aesame --fatal-warnings"
23557 sh-*-* | sh[34]-*-*)
23559 .section ".tdata","awT",@progbits
23569 tls_as_opt=--fatal-warnings
23573 sparc*-sun-solaris2.*)
23575 tga_func=__tls_get_addr
23581 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23583 .section ".tdata",#alloc,#write,#tls'
23588 .section ".tdata","awT",@progbits'
23591 tls_as_opt="-32 --fatal-warnings"
23593 conftest_s="$conftest_s
23596 sethi %tgd_hi22(foo), %o0
23597 add %o0, %tgd_lo10(foo), %o1
23598 add %l7, %o1, %o0, %tgd_add(foo)
23599 call __tls_get_addr, %tgd_call(foo)
23600 sethi %tldm_hi22(foo), %l1
23601 add %l1, %tldm_lo10(foo), %l2
23602 add %l7, %l2, %o0, %tldm_add(foo)
23603 call __tls_get_addr, %tldm_call(foo)
23604 sethi %tldo_hix22(foo), %l3
23605 xor %l3, %tldo_lox10(foo), %l4
23606 add %o0, %l4, %l5, %tldo_add(foo)
23607 sethi %tie_hi22(foo), %o3
23608 add %o3, %tie_lo10(foo), %o3
23609 ld [%l7 + %o3], %o2, %tie_ld(foo)
23610 add %g7, %o2, %o4, %tie_add(foo)
23611 sethi %tle_hix22(foo), %l1
23612 xor %l1, %tle_lox10(foo), %o5
23613 ld [%g7 + %o5], %o1"
23617 .section ".tdata","awT",@progbits
23620 addli r0, zero, tls_gd(foo)
23621 auli r0, zero, tls_gd_ha16(foo)
23622 addli r0, r0, tls_gd_lo16(foo)
23624 addli r0, zero, tls_ie(foo)
23625 auli r0, r0, tls_ie_ha16(foo)
23626 addli r0, r0, tls_ie_lo16(foo)'
23629 tls_as_opt="--fatal-warnings"
23633 .section ".tdata","awT",@progbits
23636 shl16insli r0, zero, hw0_last_tls_gd(foo)
23637 shl16insli r0, zero, hw1_last_tls_gd(foo)
23638 shl16insli r0, r0, hw0_tls_gd(foo)
23640 shl16insli r0, zero, hw1_last_tls_ie(foo)
23641 shl16insli r0, r0, hw0_tls_ie(foo)'
23644 tls_as_opt="--fatal-warnings"
23648 .section ".tdata","awT",@progbits
23651 movi a8, foo@TLSFUNC
23652 movi a10, foo@TLSARG
23653 callx8.tls a8, foo@TLSCALL'
23659 if test "x$enable_tls" = xno ; then
23660 : # TLS explicitly disabled.
23661 elif test "x$enable_tls" = xyes ; then
23662 set_have_as_tls=yes # TLS explicitly enabled.
23663 elif test -z "$tls_first_major"; then
23664 : # If we don't have a check, assume no support.
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23667 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23668 if test "${gcc_cv_as_tls+set}" = set; then :
23669 $as_echo_n "(cached) " >&6
23672 if test $in_tree_gas = yes; then
23673 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23674 then gcc_cv_as_tls=yes
23676 elif test x$gcc_cv_as != x; then
23677 $as_echo "$conftest_s" > conftest.s
23678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23680 (eval $ac_try) 2>&5
23682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23683 test $ac_status = 0; }; }
23687 echo "configure: failed program was" >&5
23690 rm -f conftest.o conftest.s
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23694 $as_echo "$gcc_cv_as_tls" >&6; }
23695 if test $gcc_cv_as_tls = yes; then
23696 set_have_as_tls=yes
23701 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23702 # with TLS support are in use, native TLS cannot work.
23706 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23707 # gld with TLS support are in use, native TLS cannot work.
23710 # TLS was introduced in the Solaris 9 FCS release and backported to
23711 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23712 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23713 # ld and GCC don't support any longer.
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23716 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23718 # Check ld and ld.so.1 TLS support.
23719 if echo "$ld_ver" | grep GNU > /dev/null; then
23720 # Assume all interesting versions of GNU ld have TLS support.
23721 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23725 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23727 min_tls_ld_vers_minor=280
23729 # Solaris 8/SPARC ld has TLS support since version 1.272.
23730 sparc*-*-solaris2.8)
23731 min_tls_ld_vers_minor=272
23733 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23735 min_tls_ld_vers_minor=374
23737 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23738 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23739 min_tls_ld_vers_minor=343
23742 if test "$ld_vers_major" -gt 1 || \
23743 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23750 $as_echo "$ld_tls_support" >&6; }
23753 save_LDFLAGS="$LDFLAGS"
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23758 $as_echo_n "checking alternate thread library... " >&6; }
23760 # TLS support was backported to Solaris 8 patches, but only lives in
23761 # the alternate thread library which became the default in Solaris 9.
23762 # We want to always use that, irrespective of TLS support.
23764 # Take multilib subdir into account. There's no spec to handle
23765 # this. The 64 symlink exists since Solaris 8.
23766 lwp_dir=/usr/lib/lwp
23767 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23768 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23775 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23777 cat >>confdefs.h <<_ACEOF
23778 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23782 $as_echo "$lwp_dir" >&6; }
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23785 $as_echo_n "checking library containing $tga_func... " >&6; }
23786 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23787 # (32-bit x86) only lived in libthread, so check for that. Keep
23788 # set_have_as_tls if found, disable if not.
23789 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23791 $as_echo_n "checking for library containing $tga_func... " >&6; }
23792 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23793 $as_echo_n "(cached) " >&6
23795 ac_func_search_save_LIBS=$LIBS
23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h. */
23799 /* Override any GCC internal prototype to avoid an error.
23800 Use char because int might match the return type of a GCC
23801 builtin and then its argument prototype would still apply. */
23809 return $tga_func ();
23814 for ac_lib in '' thread; do
23815 if test -z "$ac_lib"; then
23816 ac_res="none required"
23819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23821 if ac_fn_c_try_link "$LINENO"; then :
23822 eval "$as_ac_Search=\$ac_res"
23824 rm -f core conftest.err conftest.$ac_objext \
23826 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23830 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23833 eval "$as_ac_Search=no"
23835 rm conftest.$ac_ext
23836 LIBS=$ac_func_search_save_LIBS
23838 eval ac_res=\$$as_ac_Search
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23840 $as_echo "$ac_res" >&6; }
23841 eval ac_res=\$$as_ac_Search
23842 if test "$ac_res" != no; then :
23843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23849 # Clear LIBS if we cannot support TLS.
23850 if test $set_have_as_tls = no; then
23853 # Even without TLS support on Solaris 8, explicitly link with libthread
23854 # to guarantee that the alternate thread library is used.
23860 # Always define LIB_TLS_SPEC, even without TLS support.
23862 cat >>confdefs.h <<_ACEOF
23863 #define LIB_TLS_SPEC "$LIBS"
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23867 $as_echo "$LIBS" >&6; }
23870 LDFLAGS="$save_LDFLAGS"
23873 if test $set_have_as_tls = yes ; then
23875 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23879 # Target-specific assembler checks.
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23882 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23883 gcc_cv_ld_static_dynamic=no
23884 gcc_cv_ld_static_option='-Bstatic'
23885 gcc_cv_ld_dynamic_option='-Bdynamic'
23886 if test $in_tree_ld = yes ; then
23887 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
23888 gcc_cv_ld_static_dynamic=yes
23890 elif test x$gcc_cv_ld != x; then
23891 # Check if linker supports -Bstatic/-Bdynamic option
23892 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23893 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23894 gcc_cv_ld_static_dynamic=yes
23897 # AIX ld uses -b flags
23898 *-*-aix4.[23]* | *-*-aix[5-9]*)
23899 gcc_cv_ld_static_dynamic=yes
23900 gcc_cv_ld_static_option="-bstatic"
23901 gcc_cv_ld_dynamic_option="-bdynamic"
23903 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23905 gcc_cv_ld_static_dynamic=yes
23906 gcc_cv_ld_static_option="-noso"
23907 gcc_cv_ld_dynamic_option="-so_archive"
23909 # HP-UX ld uses -a flags to select between shared and archive.
23911 if test x"$gnu_ld" = xno; then
23912 gcc_cv_ld_static_dynamic=yes
23913 gcc_cv_ld_static_option="-aarchive_shared"
23914 gcc_cv_ld_dynamic_option="-adefault"
23917 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23919 gcc_cv_ld_static_dynamic=yes
23921 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23923 gcc_cv_ld_static_dynamic=yes
23928 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23930 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23933 cat >>confdefs.h <<_ACEOF
23934 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23938 cat >>confdefs.h <<_ACEOF
23939 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23944 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23946 if test x"$demangler_in_ld" = xyes; then
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23948 $as_echo_n "checking linker --demangle support... " >&6; }
23949 gcc_cv_ld_demangle=no
23950 if test $in_tree_ld = yes; then
23951 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 \
23952 gcc_cv_ld_demangle=yes
23954 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23955 # Check if the GNU linker supports --demangle option
23956 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23957 gcc_cv_ld_demangle=yes
23960 if test x"$gcc_cv_ld_demangle" = xyes; then
23962 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23966 $as_echo "$gcc_cv_ld_demangle" >&6; }
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23970 $as_echo_n "checking linker plugin support... " >&6; }
23971 gcc_cv_lto_plugin=0
23972 if test -f liblto_plugin.la; then
23973 save_ld_ver="$ld_ver"
23974 save_ld_vers_major="$ld_vers_major"
23975 save_ld_vers_minor="$ld_vers_minor"
23976 save_ld_is_gold="$ld_is_gold"
23980 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23982 # FIXME: ld_is_gold?
23983 ld_vers_major="$gcc_cv_gld_major_version"
23984 ld_vers_minor="$gcc_cv_gld_minor_version"
23986 # Determine plugin linker version.
23987 # FIXME: Partial duplicate from above, generalize.
23988 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23989 if echo "$ld_ver" | grep GNU > /dev/null; then
23990 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23992 ld_vers=`echo $ld_ver | sed -n \
23993 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23995 ld_vers=`echo $ld_ver | sed -n \
23996 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23998 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23999 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24003 # Determine plugin support.
24004 if echo "$ld_ver" | grep GNU > /dev/null; then
24005 # Require GNU ld or gold 2.21+ for plugin support by default.
24006 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24007 gcc_cv_lto_plugin=2
24008 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24009 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24010 gcc_cv_lto_plugin=1
24014 ld_ver="$save_ld_ver"
24015 ld_vers_major="$save_ld_vers_major"
24016 ld_vers_minor="$save_ld_vers_minor"
24017 ld_is_gold="$save_ld_is_gold"
24020 cat >>confdefs.h <<_ACEOF
24021 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24025 $as_echo "$gcc_cv_lto_plugin" >&6; }
24028 # All TARGET_ABI_OSF targets.
24029 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24031 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24032 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24033 $as_echo_n "(cached) " >&6
24035 gcc_cv_as_alpha_explicit_relocs=no
24036 if test $in_tree_gas = yes; then
24037 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24038 then gcc_cv_as_alpha_explicit_relocs=yes
24040 elif test x$gcc_cv_as != x; then
24041 $as_echo ' .set nomacro
24043 extbl $3, $2, $3 !lituse_bytoff!1
24044 ldq $2, a($29) !literal!1
24045 ldq $4, b($29) !literal!2
24046 ldq_u $3, 0($2) !lituse_base!1
24047 ldq $27, f($29) !literal!5
24048 jsr $26, ($27), f !lituse_jsr!5
24049 ldah $29, 0($26) !gpdisp!3
24050 lda $0, c($29) !gprel
24051 ldah $1, d($29) !gprelhigh
24052 lda $1, d($1) !gprellow
24053 lda $29, 0($29) !gpdisp!3' > conftest.s
24054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24056 (eval $ac_try) 2>&5
24058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24059 test $ac_status = 0; }; }
24061 gcc_cv_as_alpha_explicit_relocs=yes
24063 echo "configure: failed program was" >&5
24066 rm -f conftest.o conftest.s
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24070 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24071 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24073 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24077 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24078 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24079 $as_echo_n "(cached) " >&6
24081 gcc_cv_as_alpha_jsrdirect_relocs=no
24082 if test $in_tree_gas = yes; then
24083 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24084 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24086 elif test x$gcc_cv_as != x; then
24087 $as_echo ' .set nomacro
24089 ldq $27, a($29) !literal!1
24090 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093 (eval $ac_try) 2>&5
24095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096 test $ac_status = 0; }; }
24098 gcc_cv_as_alpha_jsrdirect_relocs=yes
24100 echo "configure: failed program was" >&5
24103 rm -f conftest.o conftest.s
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24107 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24108 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24110 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24117 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24118 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24119 $as_echo_n "(cached) " >&6
24121 gcc_cv_as_cris_no_mul_bug=no
24122 if test $in_tree_gas = yes; then
24123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24124 then gcc_cv_as_cris_no_mul_bug=yes
24126 elif test x$gcc_cv_as != x; then
24127 $as_echo '.text' > conftest.s
24128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24135 gcc_cv_as_cris_no_mul_bug=yes
24137 echo "configure: failed program was" >&5
24140 rm -f conftest.o conftest.s
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24144 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24145 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24147 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24154 $as_echo_n "checking assembler for .register... " >&6; }
24155 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24158 gcc_cv_as_sparc_register_op=no
24159 if test x$gcc_cv_as != x; then
24160 $as_echo '.register %g2, #scratch' > conftest.s
24161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24163 (eval $ac_try) 2>&5
24165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24166 test $ac_status = 0; }; }
24168 gcc_cv_as_sparc_register_op=yes
24170 echo "configure: failed program was" >&5
24173 rm -f conftest.o conftest.s
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24177 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24178 if test $gcc_cv_as_sparc_register_op = yes; then
24180 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24185 $as_echo_n "checking assembler for -relax option... " >&6; }
24186 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24187 $as_echo_n "(cached) " >&6
24189 gcc_cv_as_sparc_relax=no
24190 if test x$gcc_cv_as != x; then
24191 $as_echo '.text' > conftest.s
24192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24199 gcc_cv_as_sparc_relax=yes
24201 echo "configure: failed program was" >&5
24204 rm -f conftest.o conftest.s
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24208 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24209 if test $gcc_cv_as_sparc_relax = yes; then
24211 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24216 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24217 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24218 $as_echo_n "(cached) " >&6
24220 gcc_cv_as_sparc_gotdata_op=no
24221 if test x$gcc_cv_as != x; then
24227 sethi %gdop_hix22(foo), %g1
24228 xor %g1, %gdop_lox10(foo), %g1
24229 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24232 (eval $ac_try) 2>&5
24234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24235 test $ac_status = 0; }; }
24237 if test x$gcc_cv_ld != x \
24238 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24239 if test x$gcc_cv_objdump != x; then
24240 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24241 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24242 gcc_cv_as_sparc_gotdata_op=no
24244 gcc_cv_as_sparc_gotdata_op=yes
24250 echo "configure: failed program was" >&5
24253 rm -f conftest.o conftest.s
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24257 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24258 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24260 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24265 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24266 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24267 $as_echo_n "(cached) " >&6
24269 gcc_cv_as_sparc_ua_pcrel=no
24270 if test x$gcc_cv_as != x; then
24277 .uaword %r_disp32(foo)' > conftest.s
24278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24280 (eval $ac_try) 2>&5
24282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24283 test $ac_status = 0; }; }
24285 if test x$gcc_cv_ld != x \
24286 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24287 gcc_cv_as_sparc_ua_pcrel=yes
24291 echo "configure: failed program was" >&5
24294 rm -f conftest.o conftest.s
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24298 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24299 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24301 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24305 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24306 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24307 $as_echo_n "(cached) " >&6
24309 gcc_cv_as_sparc_ua_pcrel_hidden=no
24310 if test x$gcc_cv_as != x; then
24314 .uaword %r_disp32(foo)
24315 .byte 0x32, 0x33, 0x34
24319 .skip 4' > conftest.s
24320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322 (eval $ac_try) 2>&5
24324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325 test $ac_status = 0; }; }
24327 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24328 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24329 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24330 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24331 if $gcc_cv_objdump -R conftest 2> /dev/null \
24332 | grep 'DISP32' > /dev/null 2>&1; then
24335 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24340 echo "configure: failed program was" >&5
24343 rm -f conftest.o conftest.s
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24347 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24348 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24350 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24354 fi # unaligned pcrel relocs
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24357 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24358 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24359 $as_echo_n "(cached) " >&6
24361 gcc_cv_as_sparc_offsetable_lo10=no
24362 if test x$gcc_cv_as != x; then
24364 or %g1, %lo(ab) + 12, %g1
24365 or %g1, %lo(ab + 12), %g1' > conftest.s
24366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24368 (eval $ac_try) 2>&5
24370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24371 test $ac_status = 0; }; }
24373 if test x$gcc_cv_objdump != x \
24374 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24375 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24376 gcc_cv_as_sparc_offsetable_lo10=yes
24379 echo "configure: failed program was" >&5
24382 rm -f conftest.o conftest.s
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24386 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24387 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24389 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24394 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24395 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24396 $as_echo_n "(cached) " >&6
24398 gcc_cv_as_sparc_fmaf=no
24399 if test x$gcc_cv_as != x; then
24401 .register %g2, #scratch
24402 .register %g3, #scratch
24404 fmaddd %f0, %f2, %f4, %f6
24405 addxccc %g1, %g2, %g3
24406 fsrl32 %f2, %f4, %f8
24407 fnaddd %f10, %f12, %f14' > conftest.s
24408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410 (eval $ac_try) 2>&5
24412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413 test $ac_status = 0; }; }
24415 gcc_cv_as_sparc_fmaf=yes
24417 echo "configure: failed program was" >&5
24420 rm -f conftest.o conftest.s
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24424 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24425 if test $gcc_cv_as_sparc_fmaf = yes; then
24427 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24432 i[34567]86-*-* | x86_64-*-*)
24435 # Full C++ conformance when using a shared libstdc++-v3 requires some
24436 # support from the Cygwin DLL, which in more recent versions exports
24437 # wrappers to aid in interposing and redirecting operators new, delete,
24438 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24439 # are configuring for a version of Cygwin that exports the wrappers.
24440 if test x$host = x$target; then
24441 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24442 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24443 gcc_ac_cygwin_dll_wrappers=yes
24445 gcc_ac_cygwin_dll_wrappers=no
24449 # Can't check presence of libc functions during cross-compile, so
24450 # we just have to assume we're building for an up-to-date target.
24451 gcc_ac_cygwin_dll_wrappers=yes
24454 cat >>confdefs.h <<_ACEOF
24455 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24460 cygwin* | pe | mingw32* | interix*)
24461 # Recent binutils allows the three-operand form of ".comm" on PE. This
24462 # definition is used unconditionally to initialise the default state of
24463 # the target option variable that governs usage of the feature.
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24465 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24466 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24469 gcc_cv_as_comm_has_align=no
24470 if test $in_tree_gas = yes; then
24471 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24472 then gcc_cv_as_comm_has_align=yes
24474 elif test x$gcc_cv_as != x; then
24475 $as_echo '.comm foo,1,32' > conftest.s
24476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24483 gcc_cv_as_comm_has_align=yes
24485 echo "configure: failed program was" >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24492 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24495 cat >>confdefs.h <<_ACEOF
24496 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24499 # Used for DWARF 2 in PE
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24501 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24502 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24505 gcc_cv_as_ix86_pe_secrel32=no
24506 if test $in_tree_gas = yes; then
24507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24508 then gcc_cv_as_ix86_pe_secrel32=yes
24510 elif test x$gcc_cv_as != x; then
24514 .secrel32 foo' > conftest.s
24515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24522 if test x$gcc_cv_ld != x \
24523 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24524 gcc_cv_as_ix86_pe_secrel32=yes
24528 echo "configure: failed program was" >&5
24531 rm -f conftest.o conftest.s
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24535 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24536 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24538 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24541 # Test if the assembler supports the extended form of the .section
24542 # directive that specifies section alignment. LTO support uses this,
24543 # but normally only after installation, so we warn but don't fail the
24544 # configure if LTO is enabled but the assembler does not support it.
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24546 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24547 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24550 gcc_cv_as_section_has_align=no
24551 if test $in_tree_gas = yes; then
24552 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24553 then gcc_cv_as_section_has_align=yes
24555 elif test x$gcc_cv_as != x; then
24556 $as_echo '.section lto_test,"dr0"' > conftest.s
24557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559 (eval $ac_try) 2>&5
24561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562 test $ac_status = 0; }; }
24564 gcc_cv_as_section_has_align=yes
24566 echo "configure: failed program was" >&5
24569 rm -f conftest.o conftest.s
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24573 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24575 if test x$gcc_cv_as_section_has_align != xyes; then
24576 case ",$enable_languages," in
24578 { $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
24579 $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;}
24583 # Test if the assembler supports the section flag 'e' for specifying
24584 # an excluded section.
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24586 $as_echo_n "checking assembler for .section with e... " >&6; }
24587 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24588 $as_echo_n "(cached) " >&6
24590 gcc_cv_as_section_has_e=no
24591 if test $in_tree_gas = yes; then
24592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24593 then gcc_cv_as_section_has_e=yes
24595 elif test x$gcc_cv_as != x; then
24596 $as_echo '.section foo1,"e"
24597 .byte 0,0,0,0' > conftest.s
24598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24600 (eval $ac_try) 2>&5
24602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24603 test $ac_status = 0; }; }
24605 gcc_cv_as_section_has_e=yes
24607 echo "configure: failed program was" >&5
24610 rm -f conftest.o conftest.s
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24614 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24617 cat >>confdefs.h <<_ACEOF
24618 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24625 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24626 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24627 $as_echo_n "(cached) " >&6
24629 gcc_cv_as_ix86_filds=no
24630 if test x$gcc_cv_as != x; then
24631 $as_echo 'filds mem; fists mem' > conftest.s
24632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24634 (eval $ac_try) 2>&5
24636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24637 test $ac_status = 0; }; }
24639 gcc_cv_as_ix86_filds=yes
24641 echo "configure: failed program was" >&5
24644 rm -f conftest.o conftest.s
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24648 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24649 if test $gcc_cv_as_ix86_filds = yes; then
24651 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24656 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24657 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24658 $as_echo_n "(cached) " >&6
24660 gcc_cv_as_ix86_fildq=no
24661 if test x$gcc_cv_as != x; then
24662 $as_echo 'fildq mem; fistpq mem' > conftest.s
24663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }
24670 gcc_cv_as_ix86_fildq=yes
24672 echo "configure: failed program was" >&5
24675 rm -f conftest.o conftest.s
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24679 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24680 if test $gcc_cv_as_ix86_fildq = yes; then
24682 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24687 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24688 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24691 gcc_cv_as_ix86_cmov_sun_syntax=no
24692 if test x$gcc_cv_as != x; then
24693 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24701 gcc_cv_as_ix86_cmov_sun_syntax=yes
24703 echo "configure: failed program was" >&5
24706 rm -f conftest.o conftest.s
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24710 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24711 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24713 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24718 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24719 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24722 gcc_cv_as_ix86_ffreep=no
24723 if test x$gcc_cv_as != x; then
24724 $as_echo 'ffreep %st(1)' > conftest.s
24725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24732 gcc_cv_as_ix86_ffreep=yes
24734 echo "configure: failed program was" >&5
24737 rm -f conftest.o conftest.s
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24741 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24742 if test $gcc_cv_as_ix86_ffreep = yes; then
24744 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24749 $as_echo_n "checking assembler for .quad directive... " >&6; }
24750 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24751 $as_echo_n "(cached) " >&6
24753 gcc_cv_as_ix86_quad=no
24754 if test x$gcc_cv_as != x; then
24755 $as_echo '.quad 0' > conftest.s
24756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24758 (eval $ac_try) 2>&5
24760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761 test $ac_status = 0; }; }
24763 gcc_cv_as_ix86_quad=yes
24765 echo "configure: failed program was" >&5
24768 rm -f conftest.o conftest.s
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24772 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24773 if test $gcc_cv_as_ix86_quad = yes; then
24775 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24780 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24781 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24782 $as_echo_n "(cached) " >&6
24784 gcc_cv_as_ix86_sahf=no
24785 if test x$gcc_cv_as != x; then
24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24795 gcc_cv_as_ix86_sahf=yes
24797 echo "configure: failed program was" >&5
24800 rm -f conftest.o conftest.s
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24804 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24805 if test $gcc_cv_as_ix86_sahf = yes; then
24807 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24812 $as_echo_n "checking assembler for swap suffix... " >&6; }
24813 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24816 gcc_cv_as_ix86_swap=no
24817 if test x$gcc_cv_as != x; then
24818 $as_echo 'movl.s %esp, %ebp' > conftest.s
24819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24826 gcc_cv_as_ix86_swap=yes
24828 echo "configure: failed program was" >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24835 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24836 if test $gcc_cv_as_ix86_swap = yes; then
24838 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24843 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24844 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24845 $as_echo_n "(cached) " >&6
24847 gcc_cv_as_ix86_diff_sect_delta=no
24848 if test x$gcc_cv_as != x; then
24849 $as_echo '.section .rodata
24855 .L2: nop' > conftest.s
24856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; }
24863 gcc_cv_as_ix86_diff_sect_delta=yes
24865 echo "configure: failed program was" >&5
24868 rm -f conftest.o conftest.s
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24872 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24873 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24875 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24879 # These two are used unconditionally by i386.[ch]; it is to be defined
24880 # to 1 if the feature is present, 0 otherwise.
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24882 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24883 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24884 $as_echo_n "(cached) " >&6
24886 gcc_cv_as_ix86_gotoff_in_data=no
24887 if test $in_tree_gas = yes; then
24888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24889 then gcc_cv_as_ix86_gotoff_in_data=yes
24891 elif test x$gcc_cv_as != x; then
24896 .long .L0@GOTOFF' > conftest.s
24897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899 (eval $ac_try) 2>&5
24901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902 test $ac_status = 0; }; }
24904 gcc_cv_as_ix86_gotoff_in_data=yes
24906 echo "configure: failed program was" >&5
24909 rm -f conftest.o conftest.s
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24913 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24916 cat >>confdefs.h <<_ACEOF
24917 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24922 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24923 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24926 gcc_cv_as_ix86_rep_lock_prefix=no
24927 if test x$gcc_cv_as != x; then
24928 $as_echo 'rep movsl
24929 lock addl %edi, (%eax,%esi)
24930 lock orl $0, (%esp)' > conftest.s
24931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24933 (eval $ac_try) 2>&5
24935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24936 test $ac_status = 0; }; }
24938 gcc_cv_as_ix86_rep_lock_prefix=yes
24940 echo "configure: failed program was" >&5
24943 rm -f conftest.o conftest.s
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24947 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24948 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24950 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24955 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24956 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24957 $as_echo_n "(cached) " >&6
24959 gcc_cv_as_ix86_tlsgdplt=no
24960 if test x$gcc_cv_as != x; then
24961 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24964 (eval $ac_try) 2>&5
24966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24967 test $ac_status = 0; }; }
24969 if test x$gcc_cv_ld != x \
24970 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24971 gcc_cv_as_ix86_tlsgdplt=yes
24975 echo "configure: failed program was" >&5
24978 rm -f conftest.o conftest.s
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24982 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24983 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24985 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24990 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24991 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
24994 gcc_cv_as_ix86_tlsldmplt=no
24995 if test x$gcc_cv_as != x; then
24997 call tls_ld@tlsldmplt' > conftest.s
24998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25000 (eval $ac_try) 2>&5
25002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25003 test $ac_status = 0; }; }
25005 if test x$gcc_cv_ld != x \
25006 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25007 gcc_cv_as_ix86_tlsldmplt=yes
25011 echo "configure: failed program was" >&5
25014 rm -f conftest.o conftest.s
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25018 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25019 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25021 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25029 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25030 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25031 $as_echo_n "(cached) " >&6
25033 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25034 if test $in_tree_gas = yes; then
25035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25036 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25038 elif test x$gcc_cv_as != x; then
25040 addl r15 = @ltoffx(x#), gp
25042 ld8.mov r16 = [r15], x#' > conftest.s
25043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25045 (eval $ac_try) 2>&5
25047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25048 test $ac_status = 0; }; }
25050 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25052 echo "configure: failed program was" >&5
25055 rm -f conftest.o conftest.s
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25059 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25060 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25062 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25070 *-*-aix*) conftest_s=' .machine "pwr5"
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25075 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25076 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25077 $as_echo_n "(cached) " >&6
25079 gcc_cv_as_machine_directive=no
25080 if test x$gcc_cv_as != x; then
25081 $as_echo ' .machine ppc7400' > conftest.s
25082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25084 (eval $ac_try) 2>&5
25086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25087 test $ac_status = 0; }; }
25089 gcc_cv_as_machine_directive=yes
25091 echo "configure: failed program was" >&5
25094 rm -f conftest.o conftest.s
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25098 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25100 if test x$gcc_cv_as_machine_directive != xyes; then
25101 echo "*** This target requires an assembler supporting \".machine\"" >&2
25102 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25103 test x$build = x$target && exit 1
25107 *) conftest_s=' .machine power4
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25113 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25114 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25117 gcc_cv_as_powerpc_mfcrf=no
25118 if test $in_tree_gas = yes; then
25119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25120 then gcc_cv_as_powerpc_mfcrf=yes
25122 elif test x$gcc_cv_as != x; then
25123 $as_echo "$conftest_s" > conftest.s
25124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25126 (eval $ac_try) 2>&5
25128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25129 test $ac_status = 0; }; }
25131 gcc_cv_as_powerpc_mfcrf=yes
25133 echo "configure: failed program was" >&5
25136 rm -f conftest.o conftest.s
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25140 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25141 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25143 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25148 *-*-aix*) conftest_s=' .machine "pwr5"
25151 *) conftest_s=' .machine power5
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25157 $as_echo_n "checking assembler for popcntb support... " >&6; }
25158 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25159 $as_echo_n "(cached) " >&6
25161 gcc_cv_as_powerpc_popcntb=no
25162 if test $in_tree_gas = yes; then
25163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25164 then gcc_cv_as_powerpc_popcntb=yes
25166 elif test x$gcc_cv_as != x; then
25167 $as_echo "$conftest_s" > conftest.s
25168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25175 gcc_cv_as_powerpc_popcntb=yes
25177 echo "configure: failed program was" >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25184 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25185 if test $gcc_cv_as_powerpc_popcntb = yes; then
25187 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25192 *-*-aix*) conftest_s=' .machine "pwr5x"
25195 *) conftest_s=' .machine power5
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25201 $as_echo_n "checking assembler for fp round support... " >&6; }
25202 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25203 $as_echo_n "(cached) " >&6
25205 gcc_cv_as_powerpc_fprnd=no
25206 if test $in_tree_gas = yes; then
25207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25208 then gcc_cv_as_powerpc_fprnd=yes
25210 elif test x$gcc_cv_as != x; then
25211 $as_echo "$conftest_s" > conftest.s
25212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25214 (eval $ac_try) 2>&5
25216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25217 test $ac_status = 0; }; }
25219 gcc_cv_as_powerpc_fprnd=yes
25221 echo "configure: failed program was" >&5
25224 rm -f conftest.o conftest.s
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25228 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25229 if test $gcc_cv_as_powerpc_fprnd = yes; then
25231 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25236 *-*-aix*) conftest_s=' .machine "pwr6"
25239 *) conftest_s=' .machine power6
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25245 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25246 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25249 gcc_cv_as_powerpc_mfpgpr=no
25250 if test $in_tree_gas = yes; then
25251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25252 then gcc_cv_as_powerpc_mfpgpr=yes
25254 elif test x$gcc_cv_as != x; then
25255 $as_echo "$conftest_s" > conftest.s
25256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }
25263 gcc_cv_as_powerpc_mfpgpr=yes
25265 echo "configure: failed program was" >&5
25268 rm -f conftest.o conftest.s
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25272 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25273 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25275 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25280 *-*-aix*) conftest_s=' .csect .text[PR]
25282 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25286 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25287 *) conftest_s=' .text
25289 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25293 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25294 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25295 $as_echo_n "(cached) " >&6
25297 gcc_cv_as_powerpc_rel16=no
25298 if test $in_tree_gas = yes; then
25299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25300 then gcc_cv_as_powerpc_rel16=yes
25302 elif test x$gcc_cv_as != x; then
25303 $as_echo "$conftest_s" > conftest.s
25304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25306 (eval $ac_try) 2>&5
25308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25309 test $ac_status = 0; }; }
25311 gcc_cv_as_powerpc_rel16=yes
25313 echo "configure: failed program was" >&5
25316 rm -f conftest.o conftest.s
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25320 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25321 if test $gcc_cv_as_powerpc_rel16 = yes; then
25323 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25328 *-*-aix*) conftest_s=' .machine "pwr6"
25331 *) conftest_s=' .machine power6
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25337 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25338 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25339 $as_echo_n "(cached) " >&6
25341 gcc_cv_as_powerpc_cmpb=no
25342 if test $in_tree_gas = yes; then
25343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25344 then gcc_cv_as_powerpc_cmpb=yes
25346 elif test x$gcc_cv_as != x; then
25347 $as_echo "$conftest_s" > conftest.s
25348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25350 (eval $ac_try) 2>&5
25352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25353 test $ac_status = 0; }; }
25355 gcc_cv_as_powerpc_cmpb=yes
25357 echo "configure: failed program was" >&5
25360 rm -f conftest.o conftest.s
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25364 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25365 if test $gcc_cv_as_powerpc_cmpb = yes; then
25367 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25372 *-*-aix*) conftest_s=' .machine "pwr6"
25375 *) conftest_s=' .machine power6
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25381 $as_echo_n "checking assembler for decimal float support... " >&6; }
25382 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25383 $as_echo_n "(cached) " >&6
25385 gcc_cv_as_powerpc_dfp=no
25386 if test $in_tree_gas = yes; then
25387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25388 then gcc_cv_as_powerpc_dfp=yes
25390 elif test x$gcc_cv_as != x; then
25391 $as_echo "$conftest_s" > conftest.s
25392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25394 (eval $ac_try) 2>&5
25396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25397 test $ac_status = 0; }; }
25399 gcc_cv_as_powerpc_dfp=yes
25401 echo "configure: failed program was" >&5
25404 rm -f conftest.o conftest.s
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25408 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25409 if test $gcc_cv_as_powerpc_dfp = yes; then
25411 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25416 *-*-aix*) conftest_s=' .machine "pwr7"
25419 *) conftest_s=' .machine power7
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25425 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25426 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25429 gcc_cv_as_powerpc_vsx=no
25430 if test $in_tree_gas = yes; then
25431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25432 then gcc_cv_as_powerpc_vsx=yes
25434 elif test x$gcc_cv_as != x; then
25435 $as_echo "$conftest_s" > conftest.s
25436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25443 gcc_cv_as_powerpc_vsx=yes
25445 echo "configure: failed program was" >&5
25448 rm -f conftest.o conftest.s
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25452 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25453 if test $gcc_cv_as_powerpc_vsx = yes; then
25455 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25460 *-*-aix*) conftest_s=' .machine "pwr7"
25463 *) conftest_s=' .machine power7
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25469 $as_echo_n "checking assembler for popcntd support... " >&6; }
25470 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25471 $as_echo_n "(cached) " >&6
25473 gcc_cv_as_powerpc_popcntd=no
25474 if test $in_tree_gas = yes; then
25475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25476 then gcc_cv_as_powerpc_popcntd=yes
25478 elif test x$gcc_cv_as != x; then
25479 $as_echo "$conftest_s" > conftest.s
25480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25482 (eval $ac_try) 2>&5
25484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25485 test $ac_status = 0; }; }
25487 gcc_cv_as_powerpc_popcntd=yes
25489 echo "configure: failed program was" >&5
25492 rm -f conftest.o conftest.s
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25496 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25497 if test $gcc_cv_as_powerpc_popcntd = yes; then
25499 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25504 *-*-aix*) conftest_s=' .csect .text[PR]
25506 *) conftest_s=' .text
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25511 $as_echo_n "checking assembler for lwsync support... " >&6; }
25512 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25513 $as_echo_n "(cached) " >&6
25515 gcc_cv_as_powerpc_lwsync=no
25516 if test $in_tree_gas = yes; then
25517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25518 then gcc_cv_as_powerpc_lwsync=yes
25520 elif test x$gcc_cv_as != x; then
25521 $as_echo "$conftest_s" > conftest.s
25522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25524 (eval $ac_try) 2>&5
25526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25527 test $ac_status = 0; }; }
25529 gcc_cv_as_powerpc_lwsync=yes
25531 echo "configure: failed program was" >&5
25534 rm -f conftest.o conftest.s
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25538 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25539 if test $gcc_cv_as_powerpc_lwsync = yes; then
25541 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25546 *-*-aix*) conftest_s=' .machine "476"
25549 *) conftest_s=' .machine "476"
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25555 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25556 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25557 $as_echo_n "(cached) " >&6
25559 gcc_cv_as_powerpc_dci=no
25560 if test $in_tree_gas = yes; then
25561 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25562 then gcc_cv_as_powerpc_dci=yes
25564 elif test x$gcc_cv_as != x; then
25565 $as_echo "$conftest_s" > conftest.s
25566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25568 (eval $ac_try) 2>&5
25570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25571 test $ac_status = 0; }; }
25573 gcc_cv_as_powerpc_dci=yes
25575 echo "configure: failed program was" >&5
25578 rm -f conftest.o conftest.s
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25582 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25583 if test $gcc_cv_as_powerpc_dci = yes; then
25585 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25590 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25591 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25592 $as_echo_n "(cached) " >&6
25594 gcc_cv_as_powerpc_gnu_attribute=no
25595 if test $in_tree_gas = yes; then
25596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25597 then gcc_cv_as_powerpc_gnu_attribute=yes
25599 elif test x$gcc_cv_as != x; then
25600 $as_echo '.gnu_attribute 4,1' > conftest.s
25601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25603 (eval $ac_try) 2>&5
25605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25606 test $ac_status = 0; }; }
25608 gcc_cv_as_powerpc_gnu_attribute=yes
25610 echo "configure: failed program was" >&5
25613 rm -f conftest.o conftest.s
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25617 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25618 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25620 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25625 $as_echo_n "checking assembler for tls marker support... " >&6; }
25626 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25627 $as_echo_n "(cached) " >&6
25629 gcc_cv_as_powerpc_tls_markers=no
25630 if test $in_tree_gas = yes; then
25631 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25632 then gcc_cv_as_powerpc_tls_markers=yes
25634 elif test x$gcc_cv_as != x; then
25635 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25638 (eval $ac_try) 2>&5
25640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25641 test $ac_status = 0; }; }
25643 gcc_cv_as_powerpc_tls_markers=yes
25645 echo "configure: failed program was" >&5
25648 rm -f conftest.o conftest.s
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25652 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25653 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25655 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25662 $as_echo_n "checking assembler for .ref support... " >&6; }
25663 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25664 $as_echo_n "(cached) " >&6
25666 gcc_cv_as_aix_ref=no
25667 if test $in_tree_gas = yes; then
25668 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25671 elif test x$gcc_cv_as != x; then
25672 $as_echo ' .csect stuff[rw]
25678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25680 (eval $ac_try) 2>&5
25682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25683 test $ac_status = 0; }; }
25685 gcc_cv_as_aix_ref=yes
25687 echo "configure: failed program was" >&5
25690 rm -f conftest.o conftest.s
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25694 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25695 if test $gcc_cv_as_aix_ref = yes; then
25697 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25706 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25707 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25708 $as_echo_n "(cached) " >&6
25710 gcc_cv_as_mips_explicit_relocs=no
25711 if test $in_tree_gas = yes; then
25712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25713 then gcc_cv_as_mips_explicit_relocs=yes
25715 elif test x$gcc_cv_as != x; then
25716 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25719 (eval $ac_try) 2>&5
25721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25722 test $ac_status = 0; }; }
25724 gcc_cv_as_mips_explicit_relocs=yes
25726 echo "configure: failed program was" >&5
25729 rm -f conftest.o conftest.s
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25733 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25734 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25735 if test x$target_cpu_default = x
25736 then target_cpu_default=MASK_EXPLICIT_RELOCS
25737 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25741 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25742 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25743 $as_echo_n "(cached) " >&6
25745 gcc_cv_as_mips_no_shared=no
25746 if test $in_tree_gas = yes; then
25747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25748 then gcc_cv_as_mips_no_shared=yes
25750 elif test x$gcc_cv_as != x; then
25751 $as_echo 'nop' > conftest.s
25752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25759 gcc_cv_as_mips_no_shared=yes
25761 echo "configure: failed program was" >&5
25764 rm -f conftest.o conftest.s
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25768 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25769 if test $gcc_cv_as_mips_no_shared = yes; then
25771 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25776 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25777 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25778 $as_echo_n "(cached) " >&6
25780 gcc_cv_as_mips_gnu_attribute=no
25781 if test $in_tree_gas = yes; then
25782 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25783 then gcc_cv_as_mips_gnu_attribute=yes
25785 elif test x$gcc_cv_as != x; then
25786 $as_echo '.gnu_attribute 4,1' > conftest.s
25787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789 (eval $ac_try) 2>&5
25791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792 test $ac_status = 0; }; }
25794 gcc_cv_as_mips_gnu_attribute=yes
25796 echo "configure: failed program was" >&5
25799 rm -f conftest.o conftest.s
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25803 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25804 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25806 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25811 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25812 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25813 $as_echo_n "(cached) " >&6
25815 gcc_cv_as_mips_dtprelword=no
25816 if test $in_tree_gas = yes; then
25817 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25818 then gcc_cv_as_mips_dtprelword=yes
25820 elif test x$gcc_cv_as != x; then
25821 $as_echo '.section .tdata,"awT",@progbits
25825 .dtprelword x+0x8000' > conftest.s
25826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25828 (eval $ac_try) 2>&5
25830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25831 test $ac_status = 0; }; }
25833 gcc_cv_as_mips_dtprelword=yes
25835 echo "configure: failed program was" >&5
25838 rm -f conftest.o conftest.s
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25842 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25843 if test $gcc_cv_as_mips_dtprelword = yes; then
25845 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25850 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25851 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25852 $as_echo_n "(cached) " >&6
25854 gcc_cv_as_mips_dspr1_mult=no
25855 if test x$gcc_cv_as != x; then
25856 $as_echo ' .set mips32r2
25864 multu $ac3,$4,$5' > conftest.s
25865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25872 gcc_cv_as_mips_dspr1_mult=yes
25874 echo "configure: failed program was" >&5
25877 rm -f conftest.o conftest.s
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25881 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25882 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25884 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25889 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25890 gcc_cv_as_ld_jalr_reloc=no
25891 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25892 if test $in_tree_ld = yes ; then
25893 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 \
25894 && test $in_tree_ld_is_elf = yes; then
25895 gcc_cv_as_ld_jalr_reloc=yes
25897 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25898 echo ' .ent x' > conftest.s
25899 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25900 echo ' ld $25,%call16(y)($28)' >> conftest.s
25901 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25902 echo '1: jalr $25' >> conftest.s
25903 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25904 echo '1: jalr $25' >> conftest.s
25905 echo ' .end x' >> conftest.s
25906 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25907 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25908 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25909 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25910 gcc_cv_as_ld_jalr_reloc=yes
25916 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25917 if test x$target_cpu_default = x; then
25918 target_cpu_default=MASK_RELAX_PIC_CALLS
25920 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25924 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25927 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25928 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25929 $as_echo_n "(cached) " >&6
25931 gcc_cv_ld_mips_personality_relaxation=no
25932 if test $in_tree_ld = yes ; then
25933 if test "$gcc_cv_gld_major_version" -eq 2 \
25934 -a "$gcc_cv_gld_minor_version" -ge 21 \
25935 -o "$gcc_cv_gld_major_version" -gt 2; then
25936 gcc_cv_ld_mips_personality_relaxation=yes
25938 elif test x$gcc_cv_as != x \
25939 -a x$gcc_cv_ld != x \
25940 -a x$gcc_cv_readelf != x ; then
25941 cat > conftest.s <<EOF
25943 .cfi_personality 0x80,indirect_ptr
25950 .section .data,"aw",@progbits
25954 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25955 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25956 if $gcc_cv_readelf -d conftest 2>&1 \
25957 | grep TEXTREL > /dev/null 2>&1; then
25959 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25960 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25963 gcc_cv_ld_mips_personality_relaxation=yes
25967 rm -f conftest.s conftest.o conftest
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25970 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25971 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25973 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25979 # Mips and HP-UX need the GNU assembler.
25980 # Linux on IA64 might be able to use the Intel assembler.
25983 mips*-*-* | *-*-hpux* )
25984 if test x$gas_flag = xyes \
25985 || test x"$host" != x"$build" \
25986 || test ! -x "$gcc_cv_as" \
25987 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25990 echo "*** This configuration requires the GNU assembler" >&2
25996 # ??? Not all targets support dwarf2 debug_line, even within a version
25997 # of gas. Moreover, we need to emit a valid instruction to trigger any
25998 # info to the output file. So, as supported targets are added to gas 2.11,
25999 # add some instruction here to (also) show we expect this might work.
26000 # ??? Once 2.11 is released, probably need to add first known working
26001 # version to the per-target configury.
26002 case "$cpu_type" in
26003 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26004 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26014 if test x"$insn" != x; then
26016 .file 1 \"conftest.s\"
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26020 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26021 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26022 $as_echo_n "(cached) " >&6
26024 gcc_cv_as_dwarf2_debug_line=no
26025 if test $in_tree_gas = yes; then
26026 if test $in_tree_gas_is_elf = yes \
26027 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26028 then gcc_cv_as_dwarf2_debug_line=yes
26030 elif test x$gcc_cv_as != x; then
26031 $as_echo "$conftest_s" > conftest.s
26032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26034 (eval $ac_try) 2>&5
26036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26037 test $ac_status = 0; }; }
26039 if test x$gcc_cv_objdump != x \
26040 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26041 | grep debug_line > /dev/null 2>&1; then
26042 gcc_cv_as_dwarf2_debug_line=yes
26045 echo "configure: failed program was" >&5
26048 rm -f conftest.o conftest.s
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26052 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26055 # The .debug_line file table must be in the exact order that
26056 # we specified the files, since these indices are also used
26057 # by DW_AT_decl_file. Approximate this test by testing if
26058 # the assembler bitches if the same index is assigned twice.
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26060 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26061 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26064 gcc_cv_as_dwarf2_file_buggy=no
26065 if test x$gcc_cv_as != x; then
26066 $as_echo ' .file 1 "foo.s"
26067 .file 1 "bar.s"' > conftest.s
26068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26070 (eval $ac_try) 2>&5
26072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073 test $ac_status = 0; }; }
26075 gcc_cv_as_dwarf2_file_buggy=yes
26077 echo "configure: failed program was" >&5
26080 rm -f conftest.o conftest.s
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26084 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26087 if test $gcc_cv_as_dwarf2_debug_line = yes \
26088 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26090 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26095 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26096 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26099 gcc_cv_as_gdwarf2_flag=no
26100 if test $in_tree_gas = yes; then
26101 if test $in_tree_gas_is_elf = yes \
26102 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26103 then gcc_cv_as_gdwarf2_flag=yes
26105 elif test x$gcc_cv_as != x; then
26106 $as_echo "$insn" > conftest.s
26107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26109 (eval $ac_try) 2>&5
26111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26112 test $ac_status = 0; }; }
26114 gcc_cv_as_gdwarf2_flag=yes
26116 echo "configure: failed program was" >&5
26119 rm -f conftest.o conftest.s
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26123 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26124 if test $gcc_cv_as_gdwarf2_flag = yes; then
26126 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26131 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26132 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26133 $as_echo_n "(cached) " >&6
26135 gcc_cv_as_gstabs_flag=no
26136 if test $in_tree_gas = yes; then
26137 if test $in_tree_gas_is_elf = yes \
26138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26139 then gcc_cv_as_gstabs_flag=yes
26141 elif test x$gcc_cv_as != x; then
26142 $as_echo "$insn" > conftest.s
26143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26145 (eval $ac_try) 2>&5
26147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26148 test $ac_status = 0; }; }
26150 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26151 # and warns about it, but still exits successfully. So check for
26153 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155 (eval $ac_try) 2>&5
26157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; }
26160 else gcc_cv_as_gstabs_flag=yes
26163 echo "configure: failed program was" >&5
26166 rm -f conftest.o conftest.s
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26170 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26171 if test $gcc_cv_as_gstabs_flag = yes; then
26173 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26178 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26179 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26180 $as_echo_n "(cached) " >&6
26182 gcc_cv_as_debug_prefix_map_flag=no
26183 if test $in_tree_gas = yes; then
26184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26185 then gcc_cv_as_debug_prefix_map_flag=yes
26187 elif test x$gcc_cv_as != x; then
26188 $as_echo "$insn" > conftest.s
26189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191 (eval $ac_try) 2>&5
26193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194 test $ac_status = 0; }; }
26196 gcc_cv_as_debug_prefix_map_flag=yes
26198 echo "configure: failed program was" >&5
26201 rm -f conftest.o conftest.s
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26205 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26206 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26208 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26214 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26215 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26216 $as_echo_n "(cached) " >&6
26218 gcc_cv_as_lcomm_with_alignment=no
26219 if test x$gcc_cv_as != x; then
26220 $as_echo '.lcomm bar,4,16' > conftest.s
26221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; }
26228 gcc_cv_as_lcomm_with_alignment=yes
26230 echo "configure: failed program was" >&5
26233 rm -f conftest.o conftest.s
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26237 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26238 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26240 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26244 # Check whether --enable-gnu-unique-object was given.
26245 if test "${enable_gnu_unique_object+set}" = set; then :
26246 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26248 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26249 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26253 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26254 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26255 $as_echo_n "(cached) " >&6
26257 gcc_cv_as_gnu_unique_object=no
26258 if test $in_tree_gas = yes; then
26259 if test $in_tree_gas_is_elf = yes \
26260 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26261 then gcc_cv_as_gnu_unique_object=yes
26263 elif test x$gcc_cv_as != x; then
26264 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267 (eval $ac_try) 2>&5
26269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270 test $ac_status = 0; }; }
26272 gcc_cv_as_gnu_unique_object=yes
26274 echo "configure: failed program was" >&5
26277 rm -f conftest.o conftest.s
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26281 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26282 if test $gcc_cv_as_gnu_unique_object = yes; then
26283 # We need to unquote above to to use the definition from config.gcc.
26284 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26285 if test x$host = x$build -a x$host = x$target &&
26286 ldd --version 2>/dev/null &&
26287 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26288 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26289 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26290 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26291 if test "$glibcnum" -ge 2011 ; then
26292 enable_gnu_unique_object=yes
26298 if test x$enable_gnu_unique_object = xyes; then
26300 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26305 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26306 if test "${gcc_cv_as_line_zero+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26309 gcc_cv_as_line_zero=no
26310 if test $in_tree_gas = yes; then
26311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26312 then gcc_cv_as_line_zero=yes
26314 elif test "x$gcc_cv_as" != x; then
26315 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26316 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26318 (eval $ac_try) 2>&5
26320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26321 test $ac_status = 0; }; } &&
26322 test "x`cat conftest.out`" = x
26324 gcc_cv_as_line_zero=yes
26326 echo "configure: failed program was" >&5
26328 echo "configure: error output was" >&5
26329 cat conftest.out >&5
26331 rm -f conftest.o conftest.s conftest.out
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26335 $as_echo "$gcc_cv_as_line_zero" >&6; }
26336 if test "x$gcc_cv_as_line_zero" = xyes; then
26338 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26343 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26344 gcc_cv_ld_eh_frame_hdr=no
26345 if test $in_tree_ld = yes ; then
26346 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 \
26347 && test $in_tree_ld_is_elf = yes; then
26348 gcc_cv_ld_eh_frame_hdr=yes
26350 elif test x$gcc_cv_ld != x; then
26351 if echo "$ld_ver" | grep GNU > /dev/null; then
26352 # Check if linker supports --eh-frame-hdr option
26353 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26354 gcc_cv_ld_eh_frame_hdr=yes
26359 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26360 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26361 gcc_cv_ld_eh_frame_hdr=yes
26368 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26370 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26374 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26377 $as_echo_n "checking linker position independent executable support... " >&6; }
26379 if test $in_tree_ld = yes ; then
26380 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 \
26381 && test $in_tree_ld_is_elf = yes; then
26384 elif test x$gcc_cv_ld != x; then
26385 # Check if linker supports -pie option
26386 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26390 if test x"$gcc_cv_ld_pie" = xyes; then
26392 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26396 $as_echo "$gcc_cv_ld_pie" >&6; }
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26399 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26400 gcc_cv_ld_eh_gc_sections=no
26401 if test $in_tree_ld = yes ; then
26402 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 \
26403 && test $in_tree_ld_is_elf = yes; then
26404 gcc_cv_ld_eh_gc_sections=yes
26406 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26407 cat > conftest.s <<EOF
26410 .type _start, @function
26413 .size _start, .-_start
26414 .section .text.foo,"ax",@progbits
26415 .type foo, @function
26419 .section .gcc_except_table.foo,"a",@progbits
26422 .section .eh_frame,"a",@progbits
26425 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26426 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26427 | grep "gc-sections option ignored" > /dev/null; then
26428 gcc_cv_ld_eh_gc_sections=no
26429 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26430 | grep gcc_except_table > /dev/null; then
26431 gcc_cv_ld_eh_gc_sections=yes
26432 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26433 if test x$gcc_cv_as_comdat_group != xyes; then
26434 gcc_cv_ld_eh_gc_sections=no
26435 cat > conftest.s <<EOF
26438 .type _start, @function
26441 .size _start, .-_start
26442 .section .gnu.linkonce.t.foo,"ax",@progbits
26443 .type foo, @function
26447 .section .gcc_except_table.foo,"a",@progbits
26450 .section .eh_frame,"a",@progbits
26453 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26454 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26455 | grep "gc-sections option ignored" > /dev/null; then
26456 gcc_cv_ld_eh_gc_sections=no
26457 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26458 | grep gcc_except_table > /dev/null; then
26459 gcc_cv_ld_eh_gc_sections=yes
26465 rm -f conftest.s conftest.o conftest
26469 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26470 gcc_cv_ld_eh_gc_sections=no
26473 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26475 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26479 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26482 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26483 gcc_cv_ld_eh_gc_sections_bug=no
26484 if test $in_tree_ld = yes ; then
26485 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 \
26486 && test $in_tree_ld_is_elf = yes; then
26487 gcc_cv_ld_eh_gc_sections_bug=yes
26489 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
26490 gcc_cv_ld_eh_gc_sections_bug=yes
26491 cat > conftest.s <<EOF
26494 .type _start, @function
26497 .size _start, .-_start
26498 .section .text.startup.foo,"ax",@progbits
26499 .type foo, @function
26503 .section .gcc_except_table.foo,"a",@progbits
26506 .section .eh_frame,"a",@progbits
26509 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26510 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26511 | grep "gc-sections option ignored" > /dev/null; then
26513 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26514 | grep gcc_except_table > /dev/null; then
26515 gcc_cv_ld_eh_gc_sections_bug=no
26518 rm -f conftest.s conftest.o conftest
26520 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26522 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26526 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26533 $as_echo_n "checking linker --as-needed support... " >&6; }
26534 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26535 $as_echo_n "(cached) " >&6
26537 gcc_cv_ld_as_needed=no
26538 if test $in_tree_ld = yes ; then
26539 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 \
26540 && test $in_tree_ld_is_elf = yes; then
26541 gcc_cv_ld_as_needed=yes
26543 elif test x$gcc_cv_ld != x; then
26544 # Check if linker supports --as-needed and --no-as-needed options
26545 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26546 gcc_cv_ld_as_needed=yes
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26552 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26553 if test x"$gcc_cv_ld_as_needed" = xyes; then
26555 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26559 case "$target:$tm_file" in
26560 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26563 emul_name="-melf64ppc"
26566 emul_name="-melf64ppc_fbsd"
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26570 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26571 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26572 $as_echo_n "(cached) " >&6
26574 gcc_cv_ld_no_dot_syms=no
26575 if test x"$ld_is_gold" = xyes; then
26576 gcc_cv_ld_no_dot_syms=yes
26577 elif test $in_tree_ld = yes ; then
26578 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
26579 gcc_cv_ld_no_dot_syms=yes
26581 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26582 cat > conftest1.s <<EOF
26586 cat > conftest2.s <<EOF
26587 .section ".opd","aw"
26590 .type foo,@function
26592 .quad .LEfoo,.TOC.@tocbase,0
26598 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26599 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26600 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26601 gcc_cv_ld_no_dot_syms=yes
26603 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26608 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26609 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26611 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26616 $as_echo_n "checking linker large toc support... " >&6; }
26617 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26618 $as_echo_n "(cached) " >&6
26620 gcc_cv_ld_large_toc=no
26621 if test x"$ld_is_gold" = xyes; then
26622 gcc_cv_ld_large_toc=yes
26623 elif test $in_tree_ld = yes ; then
26624 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
26625 gcc_cv_ld_large_toc=yes
26627 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26628 cat > conftest.s <<EOF
26629 .section ".tbss","awT",@nobits
26635 addis 9,13,ie0@got@tprel@ha
26636 ld 9,ie0@got@tprel@l(9)
26638 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26639 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26640 gcc_cv_ld_large_toc=yes
26642 rm -f conftest conftest.o conftest.s
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26647 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26648 if test x"$gcc_cv_ld_large_toc" = xyes; then
26650 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26657 $as_echo_n "checking linker --build-id support... " >&6; }
26658 if test "${gcc_cv_ld_buildid+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26661 gcc_cv_ld_buildid=no
26662 if test $in_tree_ld = yes ; then
26663 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26664 "$gcc_cv_gld_minor_version" -ge 18 -o \
26665 "$gcc_cv_gld_major_version" -gt 2 \
26666 && test $in_tree_ld_is_elf = yes; then
26667 gcc_cv_ld_buildid=yes
26669 elif test x$gcc_cv_ld != x; then
26670 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26671 gcc_cv_ld_buildid=yes
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26676 $as_echo "$gcc_cv_ld_buildid" >&6; }
26677 if test x"$gcc_cv_ld_buildid" = xyes; then
26679 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26683 # Check whether --enable-linker-build-id was given.
26684 if test "${enable_linker_build_id+set}" = set; then :
26685 enableval=$enable_linker_build_id;
26687 enable_linker_build_id=no
26691 if test x"$enable_linker_build_id" = xyes; then
26692 if test x"$gcc_cv_ld_buildid" = xyes; then
26694 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26698 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26702 # In binutils 2.21, GNU ld gained support for new emulations fully
26703 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26705 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26706 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26707 $as_echo_n "(cached) " >&6
26709 gcc_cv_ld_sol2_emulation=no
26710 if test $in_tree_ld = yes ; then
26711 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26712 "$gcc_cv_gld_minor_version" -ge 21 -o \
26713 "$gcc_cv_gld_major_version" -gt 2 \
26714 && test $in_tree_ld_is_elf = yes; then
26715 gcc_cv_ld_sol2_emulation=yes
26717 elif test x$gcc_cv_ld != x; then
26718 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26719 grep _sol2 > /dev/null; then
26720 gcc_cv_ld_sol2_emulation=yes
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26725 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26726 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26728 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26733 $as_echo_n "checking linker --sysroot support... " >&6; }
26734 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26735 $as_echo_n "(cached) " >&6
26737 gcc_cv_ld_sysroot=no
26738 if test $in_tree_ld = yes ; then
26739 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
26740 gcc_cv_ld_sysroot=yes
26742 elif test x$gcc_cv_ld != x; then
26743 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26744 gcc_cv_ld_sysroot=yes
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26749 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26750 if test x"$gcc_cv_ld_sysroot" = xyes; then
26752 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26756 if test x$with_sysroot = x && test x$host = x$target \
26757 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26758 && test "$prefix" != "NONE"; then
26760 cat >>confdefs.h <<_ACEOF
26761 #define PREFIX_INCLUDE_DIR "$prefix/include"
26766 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26767 if test "x$with_headers" != x; then
26768 target_header_dir=$with_headers
26769 elif test "x$with_sysroot" = x; then
26770 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26771 elif test "x$with_build_sysroot" != "x"; then
26772 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26773 elif test "x$with_sysroot" = xyes; then
26774 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26776 target_header_dir="${with_sysroot}${native_system_header_dir}"
26779 target_header_dir=${native_system_header_dir}
26782 # Test for stack protector support in target C library.
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26784 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26785 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26786 $as_echo_n "(cached) " >&6
26788 gcc_cv_libc_provides_ssp=no
26790 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26791 # glibc 2.4 and later provides __stack_chk_fail and
26792 # either __stack_chk_guard, or TLS access to stack guard canary.
26793 if test -f $target_header_dir/features.h \
26794 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26795 $target_header_dir/features.h > /dev/null; then
26796 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26797 $target_header_dir/features.h > /dev/null; then
26798 gcc_cv_libc_provides_ssp=yes
26799 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26800 $target_header_dir/features.h > /dev/null \
26801 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26802 $target_header_dir/features.h > /dev/null; then
26803 gcc_cv_libc_provides_ssp=yes
26804 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26805 $target_header_dir/features.h > /dev/null && \
26806 test -f $target_header_dir/bits/uClibc_config.h && \
26807 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26808 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26809 gcc_cv_libc_provides_ssp=yes
26811 # all versions of Bionic support stack protector
26812 elif test -f $target_header_dir/sys/cdefs.h \
26813 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26814 $target_header_dir/sys/cdefs.h > /dev/null; then
26815 gcc_cv_libc_provides_ssp=yes
26819 # Avoid complicated tests (see
26820 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26821 # simply assert that glibc does provide this, which is true for all
26822 # realistically usable GNU/Hurd configurations.
26823 gcc_cv_libc_provides_ssp=yes;;
26824 *-*-darwin* | *-*-freebsd*)
26825 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26826 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26827 gcc_cv_libc_provides_ssp=yes
26829 echo "no __stack_chk_fail on this target"
26833 *) gcc_cv_libc_provides_ssp=no ;;
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26837 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26839 if test x$gcc_cv_libc_provides_ssp = xyes; then
26841 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26845 # Test for <sys/sdt.h> on the target.
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26848 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26850 if test -f $target_header_dir/sys/sdt.h; then
26853 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26857 $as_echo "$have_sys_sdt_h" >&6; }
26859 # Check if TFmode long double should be used by default or not.
26860 # Some glibc targets used DFmode long double, but with glibc 2.4
26861 # and later they can use TFmode.
26863 powerpc*-*-linux* | \
26864 sparc*-*-linux* | \
26868 # Check whether --with-long-double-128 was given.
26869 if test "${with_long_double_128+set}" = set; then :
26870 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26872 gcc_cv_target_ldbl128=no
26873 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26874 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26875 && gcc_cv_target_ldbl128=yes
26881 if test x$gcc_cv_target_ldbl128 = xyes; then
26883 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26888 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26889 gcc_cv_target_dl_iterate_phdr=unknown
26891 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26892 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26893 # libdl there, both complicating its use and breaking compatibility
26894 # between Solaris 10 updates.
26895 *-*-solaris2.1[1-9]*)
26896 # <link.h> needs both a dl_iterate_phdr declaration and support for
26897 # compilation with largefile support.
26898 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26899 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26900 gcc_cv_target_dl_iterate_phdr=yes
26902 gcc_cv_target_dl_iterate_phdr=no
26907 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26909 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26913 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26915 # Find out what GC implementation we want, or may, use.
26917 # Check whether --with-gc was given.
26918 if test "${with_gc+set}" = set; then :
26919 withval=$with_gc; case "$withval" in
26926 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26930 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26938 echo "Using $GGC for garbage collection."
26940 # Libraries to use on the host. This will normally be set by the top
26941 # level Makefile. Here we simply capture the value for our Makefile.
26942 if test -z "${HOST_LIBS+set}"; then
26947 # Use the system's zlib library.
26949 zlibinc="-I\$(srcdir)/../zlib"
26951 # Check whether --with-system-zlib was given.
26952 if test "${with_system_zlib+set}" = set; then :
26953 withval=$with_system_zlib; zlibdir=
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26964 # Check whether --enable-maintainer-mode was given.
26965 if test "${enable_maintainer_mode+set}" = set; then :
26966 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26973 $as_echo "$maintainer_mode" >&6; }
26975 if test "$maintainer_mode" = "yes"; then
26985 # Make empty files to contain the specs and options for each language.
26986 # Then add #include lines to for a compiler that has specs and/or options.
26992 # These (without "all_") are set in each config-lang.in.
26993 # `language' must be a single word so is spelled singularly.
26996 all_outputs='Makefile'
26997 # List of language makefile fragments.
26998 all_lang_makefrags=
26999 # Additional files for gengtype
27000 all_gtfiles="$target_gtfiles"
27002 # These are the languages that are set in --enable-languages,
27003 # and are available in the GCC tree.
27004 all_selected_languages=
27006 # Add the language fragments.
27007 # Languages are added via two mechanisms. Some information must be
27008 # recorded in makefile variables, these are defined in config-lang.in.
27009 # We accumulate them and plug them into the main Makefile.
27010 # The other mechanism is a set of hooks for each of the main targets
27011 # like `clean', `install', etc.
27013 language_hooks="Make-hooks"
27015 for lang in ${srcdir}/*/config-lang.in
27017 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27019 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27020 if test "x$lang_alias" = x
27022 echo "$lang doesn't set \$language." 1>&2
27025 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27026 subdirs="$subdirs $subdir"
27028 # $gcc_subdir is where the gcc integration files are to be found
27029 # for a language, both for internal compiler purposes (compiler
27030 # sources implementing front-end to GCC tree converters), and for
27031 # build infrastructure purposes (Make-lang.in, etc.)
27033 # This will be <subdir> (relative to $srcdir) if a line like
27034 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27035 # is found in <langdir>/config-lang.in, and will remain <langdir>
27038 # Except for the language alias (fetched above), the regular
27039 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27040 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27041 # only this and the language alias.
27043 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27044 if [ "$gcc_subdir" = "" ]; then
27045 gcc_subdir="$subdir"
27048 case ",$enable_languages," in
27050 all_selected_languages="$all_selected_languages $lang_alias"
27051 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27052 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27063 . ${srcdir}/$gcc_subdir/config-lang.in
27064 if test "x$language" = x
27066 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27071 case ",$enable_languages," in
27072 *,$lang_alias,*) ;;
27074 for i in $subdir_requires; do
27075 test -f "${srcdir}/$i/config-lang.in" && continue
27083 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27084 if test -f $srcdir/$gcc_subdir/lang.opt; then
27085 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27086 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27088 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27089 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27091 all_languages="$all_languages $language"
27092 all_compilers="$all_compilers $compilers"
27093 all_outputs="$all_outputs $outputs"
27094 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27095 case ",$enable_languages," in
27098 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27107 # Pick up gtfiles for c
27109 . ${srcdir}/c-config-lang.in
27110 all_gtfiles="$all_gtfiles [c] $gtfiles"
27113 for language in $all_selected_languages
27115 check_languages="$check_languages check-$language"
27118 # We link each language in with a set of hooks, reached indirectly via
27119 # lang.${target}. Only do so for selected languages.
27123 target_list="all.cross start.encap rest.encap tags \
27124 install-common install-man install-info install-pdf install-html dvi \
27125 pdf html uninstall info man srcextra srcman srcinfo \
27126 mostlyclean clean distclean maintainer-clean install-plugin"
27128 for t in $target_list
27131 for lang in $all_selected_languages
27135 echo "lang.$t: $x" >> Make-hooks
27139 # Option include files
27142 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27143 option_includes="option-includes.mk"
27152 echo "dir ." > .gdbinit
27153 echo "dir ${srcdir}" >> .gdbinit
27154 if test x$gdb_needs_out_file_path = xyes
27156 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27158 if test "x$subdirs" != x; then
27161 echo "dir ${srcdir}/$s" >> .gdbinit
27164 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27166 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27170 # Find a directory in which to install a shared libgcc.
27172 # Check whether --enable-version-specific-runtime-libs was given.
27173 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27174 enableval=$enable_version_specific_runtime_libs;
27178 # Substitute configuration variables
27243 if test x${build} = x${host} ; then
27244 if test x${host} = x${target} ; then
27245 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27247 echo "Links are now set up to build a cross-compiler" 1>&2
27248 echo " from ${host} to ${target}." 1>&2
27251 if test x${host} = x${target} ; then
27252 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27253 echo " for ${target}." 1>&2
27255 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27256 echo " from ${host} to ${target}." 1>&2
27268 if test "x${CLOOGLIBS}" != "x" ; then
27270 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27274 # Check for plugin support
27275 # Check whether --enable-plugin was given.
27276 if test "${enable_plugin+set}" = set; then :
27277 enableval=$enable_plugin; enable_plugin=$enableval
27279 enable_plugin=yes; default_plugin=yes
27287 if test x$build = x$host; then
27288 export_sym_check="nm${exeext} -g"
27289 elif test x$host = x$target; then
27290 export_sym_check="$gcc_cv_nm -g"
27296 if test x$build = x$host; then
27297 export_sym_check="objdump${exeext} -T"
27298 elif test x$host = x$target; then
27299 export_sym_check="$gcc_cv_objdump -T"
27306 if test x"$enable_plugin" = x"yes"; then
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27309 $as_echo_n "checking for exported symbols... " >&6; }
27310 if test "x$export_sym_check" != x; then
27311 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27312 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27313 if $export_sym_check conftest | grep foobar > /dev/null; then
27314 : # No need to use a flag
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27316 $as_echo "yes" >&6; }
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27319 $as_echo "yes" >&6; }
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27321 $as_echo_n "checking for -rdynamic... " >&6; }
27322 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27323 if $export_sym_check conftest | grep foobar > /dev/null; then
27324 plugin_rdynamic=yes
27325 pluginlibs="-rdynamic"
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27331 $as_echo "$plugin_rdynamic" >&6; }
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27335 $as_echo "unable to check" >&6; }
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27341 $as_echo_n "checking for library containing dlopen... " >&6; }
27342 if test "${ac_cv_search_dlopen+set}" = set; then :
27343 $as_echo_n "(cached) " >&6
27345 ac_func_search_save_LIBS=$LIBS
27346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27347 /* end confdefs.h. */
27349 /* Override any GCC internal prototype to avoid an error.
27350 Use char because int might match the return type of a GCC
27351 builtin and then its argument prototype would still apply. */
27364 for ac_lib in '' dl; do
27365 if test -z "$ac_lib"; then
27366 ac_res="none required"
27369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27371 if ac_fn_c_try_link "$LINENO"; then :
27372 ac_cv_search_dlopen=$ac_res
27374 rm -f core conftest.err conftest.$ac_objext \
27376 if test "${ac_cv_search_dlopen+set}" = set; then :
27380 if test "${ac_cv_search_dlopen+set}" = set; then :
27383 ac_cv_search_dlopen=no
27385 rm conftest.$ac_ext
27386 LIBS=$ac_func_search_save_LIBS
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27389 $as_echo "$ac_cv_search_dlopen" >&6; }
27390 ac_res=$ac_cv_search_dlopen
27391 if test "$ac_res" != no; then :
27392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27396 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27397 pluginlibs="$pluginlibs -ldl"
27401 # Check that we can build shared objects with -fPIC -shared
27402 saved_LDFLAGS="$LDFLAGS"
27403 saved_CFLAGS="$CFLAGS"
27406 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27407 CFLAGS="$CFLAGS -fPIC"
27408 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27411 CFLAGS="$CFLAGS -fPIC"
27412 LDFLAGS="$LDFLAGS -fPIC -shared"
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27416 $as_echo_n "checking for -fPIC -shared... " >&6; }
27417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27418 /* end confdefs.h. */
27428 if ac_fn_c_try_link "$LINENO"; then :
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27430 $as_echo "yes" >&6; }; have_pic_shared=yes
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27433 $as_echo "no" >&6; }; have_pic_shared=no
27435 rm -f core conftest.err conftest.$ac_objext \
27436 conftest$ac_exeext conftest.$ac_ext
27437 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27441 LDFLAGS="$saved_LDFLAGS"
27442 CFLAGS="$saved_CFLAGS"
27444 # If plugin support had been requested but not available, fail.
27445 if test x"$enable_plugin" = x"no" ; then
27446 if test x"$default_plugin" != x"yes"; then
27448 Building GCC with plugin support requires a host that supports
27449 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27456 if test x"$enable_plugin" = x"yes"; then
27458 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27463 # Check whether --enable-libquadmath-support was given.
27464 if test "${enable_libquadmath_support+set}" = set; then :
27465 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27467 ENABLE_LIBQUADMATH_SUPPORT=yes
27470 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27472 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27477 # Specify what hash style to use by default.
27479 # Check whether --with-linker-hash-style was given.
27480 if test "${with_linker_hash_style+set}" = set; then :
27481 withval=$with_linker_hash_style; case x"$withval" in
27483 LINKER_HASH_STYLE=sysv
27486 LINKER_HASH_STYLE=gnu
27489 LINKER_HASH_STYLE=both
27492 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27496 LINKER_HASH_STYLE=''
27499 if test x"${LINKER_HASH_STYLE}" != x; then
27501 cat >>confdefs.h <<_ACEOF
27502 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27507 # Configure the subdirectories
27508 # AC_CONFIG_SUBDIRS($subdirs)
27510 # Create the Makefile
27511 # and configure language subdirectories
27512 ac_config_files="$ac_config_files $all_outputs"
27515 ac_config_commands="$ac_config_commands default"
27517 cat >confcache <<\_ACEOF
27518 # This file is a shell script that caches the results of configure
27519 # tests run on this system so they can be shared between configure
27520 # scripts and configure runs, see configure's option --config-cache.
27521 # It is not useful on other systems. If it contains results you don't
27522 # want to keep, you may remove or edit it.
27524 # config.status only pays attention to the cache file if you give it
27525 # the --recheck option to rerun configure.
27527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27529 # following values.
27533 # The following way of writing the cache mishandles newlines in values,
27534 # but we know of no workaround that is simple, portable, and efficient.
27535 # So, we kill variables containing newlines.
27536 # Ultrix sh set writes to stderr and can't be redirected directly,
27537 # and sets the high bit in the cache file unless we assign to the vars.
27539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27540 eval ac_val=\$$ac_var
27544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27548 _ | IFS | as_nl) ;; #(
27549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27550 *) { eval $ac_var=; unset $ac_var;} ;;
27556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27557 *${as_nl}ac_space=\ *)
27558 # `set' does not quote correctly, so add quotes: double-quote
27559 # substitution turns \\\\ into \\, and sed turns \\ into \.
27562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27565 # `set' quotes correctly as required by POSIX, so do not add quotes.
27566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27580 if test -w "$cache_file"; then
27581 test "x$cache_file" != "x/dev/null" &&
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27583 $as_echo "$as_me: updating cache $cache_file" >&6;}
27584 cat confcache >$cache_file
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27593 # Let make expand exec_prefix.
27594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27596 DEFS=-DHAVE_CONFIG_H
27600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27601 # 1. Remove the extension, and $U if already installed.
27602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27605 # will be set to the directory where LIBOBJS objects are built.
27606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27609 LIBOBJS=$ac_libobjs
27611 LTLIBOBJS=$ac_ltlibobjs
27616 : ${CONFIG_STATUS=./config.status}
27618 ac_clean_files_save=$ac_clean_files
27619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27625 # Generated by $as_me.
27626 # Run this file to recreate the current configuration.
27627 # Compiler output produced by configure, useful for debugging
27628 # configure, is in config.log if it exists.
27631 ac_cs_recheck=false
27634 SHELL=\${CONFIG_SHELL-$SHELL}
27637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27638 ## -------------------- ##
27639 ## M4sh Initialization. ##
27640 ## -------------------- ##
27642 # Be more Bourne compatible
27643 DUALCASE=1; export DUALCASE # for MKS sh
27644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27648 # is contrary to our usage. Disable this feature.
27649 alias -g '${1+"$@"}'='"$@"'
27650 setopt NO_GLOB_SUBST
27652 case `(set -o) 2>/dev/null` in #(
27664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27668 # Prefer a ksh shell builtin over an external printf program on Solaris,
27669 # but without wasting forks for bash or zsh.
27670 if test -z "$BASH_VERSION$ZSH_VERSION" \
27671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27672 as_echo='print -r --'
27673 as_echo_n='print -rn --'
27674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27675 as_echo='printf %s\n'
27676 as_echo_n='printf %s'
27678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27680 as_echo_n='/usr/ucb/echo -n'
27682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27683 as_echo_n_body='eval
27687 expr "X$arg" : "X\\(.*\\)$as_nl";
27688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27692 export as_echo_n_body
27693 as_echo_n='sh -c $as_echo_n_body as_echo'
27695 export as_echo_body
27696 as_echo='sh -c $as_echo_body as_echo'
27699 # The user is always right.
27700 if test "${PATH_SEPARATOR+set}" != set; then
27702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27710 # We need space, tab and new line, in precisely that order. Quoting is
27711 # there to prevent editors from complaining about space-tab.
27712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27713 # splitting by setting IFS to empty value.)
27716 # Find who we are. Look in the path if we contain no directory separator.
27718 *[\\/]* ) as_myself=$0 ;;
27719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27720 for as_dir in $PATH
27723 test -z "$as_dir" && as_dir=.
27724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27730 # We did not find ourselves, most probably we were run as `sh COMMAND'
27731 # in which case we are not to be found in the path.
27732 if test "x$as_myself" = x; then
27735 if test ! -f "$as_myself"; then
27736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27740 # Unset variables that we do not need and which cause bugs (e.g. in
27741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27742 # suppresses any "Segmentation fault" message there. '((' could
27743 # trigger a bug in pdksh 5.2.14.
27744 for as_var in BASH_ENV ENV MAIL MAILPATH
27745 do eval test x\${$as_var+set} = xset \
27746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27762 # as_fn_error ERROR [LINENO LOG_FD]
27763 # ---------------------------------
27764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27766 # script with status $?, using 1 if that was 0.
27769 as_status=$?; test $as_status -eq 0 && as_status=1
27771 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27774 $as_echo "$as_me: error: $1" >&2
27775 as_fn_exit $as_status
27779 # as_fn_set_status STATUS
27780 # -----------------------
27781 # Set $? to STATUS, without forking.
27782 as_fn_set_status ()
27785 } # as_fn_set_status
27787 # as_fn_exit STATUS
27788 # -----------------
27789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27793 as_fn_set_status $1
27799 # Portably unset VAR.
27802 { eval $1=; unset $1;}
27804 as_unset=as_fn_unset
27805 # as_fn_append VAR VALUE
27806 # ----------------------
27807 # Append the text in VALUE to the end of the definition contained in VAR. Take
27808 # advantage of any shell optimizations that allow amortized linear growth over
27809 # repeated appends, instead of the typical quadratic growth present in naive
27811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27812 eval 'as_fn_append ()
27823 # as_fn_arith ARG...
27824 # ------------------
27825 # Perform arithmetic evaluation on the ARGs, and store the result in the
27826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27827 # must be portable across $(()) and expr.
27828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27829 eval 'as_fn_arith ()
27836 as_val=`expr "$@" || test $? -eq 1`
27841 if expr a : '\(a\)' >/dev/null 2>&1 &&
27842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27849 as_basename=basename
27854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27860 as_me=`$as_basename -- "$0" ||
27861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27862 X"$0" : 'X\(//\)$' \| \
27863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27865 sed '/^.*\/\([^/][^/]*\)\/*$/{
27879 # Avoid depending upon Character Ranges.
27880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27883 as_cr_digits='0123456789'
27884 as_cr_alnum=$as_cr_Letters$as_cr_digits
27886 ECHO_C= ECHO_N= ECHO_T=
27887 case `echo -n x` in #(((((
27889 case `echo 'xy\c'` in
27890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27899 rm -f conf$$ conf$$.exe conf$$.file
27900 if test -d conf$$.dir; then
27901 rm -f conf$$.dir/conf$$.file
27904 mkdir conf$$.dir 2>/dev/null
27906 if (echo >conf$$.file) 2>/dev/null; then
27907 if ln -s conf$$.file conf$$ 2>/dev/null; then
27909 # ... but there are two gotchas:
27910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27912 # In both cases, we have to default to `cp -p'.
27913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27915 elif ln conf$$.file conf$$ 2>/dev/null; then
27923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27924 rmdir conf$$.dir 2>/dev/null
27929 # Create "$as_dir" as a directory, including parents if necessary.
27934 -*) as_dir=./$as_dir;;
27936 test -d "$as_dir" || eval $as_mkdir_p || {
27940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27941 *) as_qdir=$as_dir;;
27943 as_dirs="'$as_qdir' $as_dirs"
27944 as_dir=`$as_dirname -- "$as_dir" ||
27945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27946 X"$as_dir" : 'X\(//\)[^/]' \| \
27947 X"$as_dir" : 'X\(//\)$' \| \
27948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27949 $as_echo X"$as_dir" |
27950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27954 /^X\(\/\/\)[^/].*/{
27967 test -d "$as_dir" && break
27969 test -z "$as_dirs" || eval "mkdir $as_dirs"
27970 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27974 if mkdir -p . 2>/dev/null; then
27975 as_mkdir_p='mkdir -p "$as_dir"'
27977 test -d ./-p && rmdir ./-p
27981 if test -x / >/dev/null 2>&1; then
27982 as_test_x='test -x'
27984 if ls -dL / >/dev/null 2>&1; then
27991 if test -d "$1"; then
27997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27998 ???[sx]*):;;*)false;;esac;fi
28002 as_executable_p=$as_test_x
28004 # Sed expression to map a string onto a valid CPP name.
28005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28007 # Sed expression to map a string onto a valid variable name.
28008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28012 ## ----------------------------------- ##
28013 ## Main body of $CONFIG_STATUS script. ##
28014 ## ----------------------------------- ##
28016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28019 # Save the log message, to keep $0 and so on meaningful, and to
28020 # report actual input values of CONFIG_FILES etc. instead of their
28021 # values after options handling.
28023 This file was extended by $as_me, which was
28024 generated by GNU Autoconf 2.64. Invocation command line was
28026 CONFIG_FILES = $CONFIG_FILES
28027 CONFIG_HEADERS = $CONFIG_HEADERS
28028 CONFIG_LINKS = $CONFIG_LINKS
28029 CONFIG_COMMANDS = $CONFIG_COMMANDS
28032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28037 case $ac_config_files in *"
28038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28041 case $ac_config_headers in *"
28042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28047 # Files that config.status was made for.
28048 config_files="$ac_config_files"
28049 config_headers="$ac_config_headers"
28050 config_commands="$ac_config_commands"
28054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28056 \`$as_me' instantiates files and other configuration actions
28057 from templates according to the current configuration. Unless the files
28058 and actions are specified as TAGs, all are instantiated by default.
28060 Usage: $0 [OPTION]... [TAG]...
28062 -h, --help print this help, then exit
28063 -V, --version print version number and configuration settings, then exit
28064 -q, --quiet, --silent
28065 do not print progress messages
28066 -d, --debug don't remove temporary files
28067 --recheck update $as_me by reconfiguring in the same conditions
28068 --file=FILE[:TEMPLATE]
28069 instantiate the configuration file FILE
28070 --header=FILE[:TEMPLATE]
28071 instantiate the configuration header FILE
28073 Configuration files:
28076 Configuration headers:
28079 Configuration commands:
28082 Report bugs to the package provider."
28085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28088 configured by $0, generated by GNU Autoconf 2.64,
28089 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28091 Copyright (C) 2009 Free Software Foundation, Inc.
28092 This config.status script is free software; the Free Software Foundation
28093 gives unlimited permission to copy, distribute and modify it."
28098 test -n "\$AWK" || AWK=awk
28101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28102 # The default lists apply if the user does not specify any file.
28108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28120 # Handling of the options.
28121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28123 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28124 $as_echo "$ac_cs_version"; exit ;;
28125 --debug | --debu | --deb | --de | --d | -d )
28127 --file | --fil | --fi | --f )
28130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28132 as_fn_append CONFIG_FILES " '$ac_optarg'"
28133 ac_need_defaults=false;;
28134 --header | --heade | --head | --hea )
28137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28140 ac_need_defaults=false;;
28142 # Conflict between --help and --header
28143 as_fn_error "ambiguous option: \`$1'
28144 Try \`$0 --help' for more information.";;
28145 --help | --hel | -h )
28146 $as_echo "$ac_cs_usage"; exit ;;
28147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28151 # This is an error.
28152 -*) as_fn_error "unrecognized option: \`$1'
28153 Try \`$0 --help' for more information." ;;
28155 *) as_fn_append ac_config_targets " $1"
28156 ac_need_defaults=false ;;
28162 ac_configure_extra_args=
28164 if $ac_cs_silent; then
28166 ac_configure_extra_args="$ac_configure_extra_args --silent"
28170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28171 if \$ac_cs_recheck; then
28172 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28175 CONFIG_SHELL='$SHELL'
28176 export CONFIG_SHELL
28181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28186 ## Running $as_me. ##
28192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28202 # Handling of arguments.
28203 for ac_config_target in $ac_config_targets
28205 case $ac_config_target in
28206 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28207 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28208 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28209 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28210 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28211 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28213 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28218 # If the user did not use the arguments to specify the items to instantiate,
28219 # then the envvar interface is used. Set only those that are not.
28220 # We use the long form for the default assignment because of an extremely
28221 # bizarre bug on SunOS 4.1.3.
28222 if $ac_need_defaults; then
28223 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28224 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28225 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28228 # Have a temporary directory for convenience. Make it in the build tree
28229 # simply because there is no reason against having it here, and in addition,
28230 # creating and moving files from /tmp can sometimes cause problems.
28231 # Hook for its removal unless debugging.
28232 # Note that there is a small window in which the directory will not be cleaned:
28233 # after its creation but before its name has been assigned to `$tmp'.
28237 trap 'exit_status=$?
28238 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28240 trap 'as_fn_exit 1' 1 2 13 15
28242 # Create a (secure) tmp directory for tmp files.
28245 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28246 test -n "$tmp" && test -d "$tmp"
28249 tmp=./conf$$-$RANDOM
28250 (umask 077 && mkdir "$tmp")
28251 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28253 # Set up the scripts for CONFIG_FILES section.
28254 # No need to generate them if there are no CONFIG_FILES.
28255 # This happens for instance with `./config.status config.h'.
28256 if test -n "$CONFIG_FILES"; then
28258 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28259 ac_cs_awk_getline=:
28260 ac_cs_awk_pipe_init=
28261 ac_cs_awk_read_file='
28262 while ((getline aline < (F[key])) > 0)
28265 ac_cs_awk_pipe_fini=
28267 ac_cs_awk_getline=false
28268 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28269 ac_cs_awk_read_file='
28271 print "cat " F[key] " &&"
28272 '$ac_cs_awk_pipe_init
28273 # The final `:' finishes the AND list.
28274 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28276 ac_cr=`echo X | tr X '\015'`
28277 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28278 # But we know of no other shell where ac_cr would be empty at this
28279 # point, so we can use a bashism as a fallback.
28280 if test "x$ac_cr" = x; then
28281 eval ac_cr=\$\'\\r\'
28283 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28284 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28287 ac_cs_awk_cr=$ac_cr
28290 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28293 # Create commands to substitute file output variables.
28295 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28296 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28297 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28300 } >conf$$files.sh &&
28301 . ./conf$$files.sh ||
28302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28303 rm -f conf$$files.sh
28306 echo "cat >conf$$subs.awk <<_ACEOF" &&
28307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28309 } >conf$$subs.sh ||
28310 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28311 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28313 for ac_last_try in false false false false false :; do
28314 . ./conf$$subs.sh ||
28315 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28317 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28318 if test $ac_delim_n = $ac_delim_num; then
28320 elif $ac_last_try; then
28321 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28326 rm -f conf$$subs.sh
28328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28329 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28333 s/^/S["/; s/!.*/"]=/
28343 s/\(.\{148\}\).*/\1/
28345 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28357 s/\(.\{148\}\).*/\1/
28359 s/["\\]/\\&/g; s/^/"/; s/$/"/
28363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28368 ' <conf$$subs.awk | sed '
28373 ' >>$CONFIG_STATUS || ac_write_fail=1
28374 rm -f conf$$subs.awk
28375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28377 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28378 for (key in S) S_is_set[key] = 1
28380 \$ac_cs_awk_pipe_init
28384 nfields = split(line, field, "@")
28386 len = length(field[1])
28387 for (i = 2; i < nfields; i++) {
28389 keylen = length(key)
28390 if (S_is_set[key]) {
28392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28393 len += length(value) + length(field[++i])
28398 if (nfields == 3 && !substed) {
28400 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28401 \$ac_cs_awk_read_file
28407 \$ac_cs_awk_pipe_fini
28410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28411 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28412 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28415 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28416 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28419 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28420 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28421 # trailing colons and then remove the whole line if VPATH becomes empty
28422 # (actually we leave an empty line to preserve line numbers).
28423 if test "x$srcdir" = x.; then
28424 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28425 s/:*\$(srcdir):*/:/
28426 s/:*\${srcdir}:*/:/
28428 s/^\([^=]*=[ ]*\):*/\1/
28434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28435 fi # test -n "$CONFIG_FILES"
28437 # Set up the scripts for CONFIG_HEADERS section.
28438 # No need to generate them if there are no CONFIG_HEADERS.
28439 # This happens for instance with `./config.status Makefile'.
28440 if test -n "$CONFIG_HEADERS"; then
28441 cat >"$tmp/defines.awk" <<\_ACAWK ||
28445 # Transform confdefs.h into an awk script `defines.awk', embedded as
28446 # here-document in config.status, that substitutes the proper values into
28447 # config.h.in to produce config.h.
28449 # Create a delimiter string that does not exist in confdefs.h, to ease
28450 # handling of long lines.
28452 for ac_last_try in false false :; do
28453 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28454 if test -z "$ac_t"; then
28456 elif $ac_last_try; then
28457 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28463 # For the awk script, D is an array of macro values keyed by name,
28464 # likewise P contains macro parameters if any. Preserve backslash
28465 # newline sequences.
28467 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28469 s/.\{148\}/&'"$ac_delim"'/g
28472 s/^[ ]*#[ ]*define[ ][ ]*/ /
28479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28485 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28486 D["\1"]=" \3\\\\\\n"\\/p
28488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28493 s/.\{148\}/&'"$ac_delim"'/g
28498 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28501 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28503 ' <confdefs.h | sed '
28504 s/'"$ac_delim"'/"\\\
28505 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28508 for (key in D) D_is_set[key] = 1
28511 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28513 split(line, arg, " ")
28514 if (arg[1] == "#") {
28518 defundef = substr(arg[1], 2)
28521 split(mac1, mac2, "(") #)
28523 prefix = substr(line, 1, index(line, defundef) - 1)
28524 if (D_is_set[macro]) {
28525 # Preserve the white space surrounding the "#".
28526 print prefix "define", macro P[macro] D[macro]
28529 # Replace #undef with comments. This is necessary, for example,
28530 # in the case of _POSIX_SOURCE, which is predefined and required
28531 # on some systems where configure will not decide to define it.
28532 if (defundef == "undef") {
28533 print "/*", prefix defundef, macro, "*/"
28541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28542 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28543 fi # test -n "$CONFIG_HEADERS"
28546 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28551 :[FHLC]) ac_mode=$ac_tag; continue;;
28553 case $ac_mode$ac_tag in
28555 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28556 :[FH]-) ac_tag=-:-;;
28557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28574 -) ac_f="$tmp/stdin";;
28575 *) # Look for the file first in the build tree, then in the source tree
28576 # (if the path is not absolute). The absolute path cannot be DOS-style,
28577 # because $ac_f cannot contain `:'.
28581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28583 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28586 as_fn_append ac_file_inputs " '$ac_f'"
28589 # Let's still pretend it is `configure' which instantiates (i.e., don't
28590 # use $as_me), people would be surprised to read:
28591 # /* config.h. Generated by config.status. */
28592 configure_input='Generated from '`
28593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28595 if test x"$ac_file" != x-; then
28596 configure_input="$ac_file. $configure_input"
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28598 $as_echo "$as_me: creating $ac_file" >&6;}
28600 # Neutralize special characters interpreted by sed in replacement strings.
28601 case $configure_input in #(
28602 *\&* | *\|* | *\\* )
28603 ac_sed_conf_input=`$as_echo "$configure_input" |
28604 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28605 *) ac_sed_conf_input=$configure_input;;
28609 *:-:* | *:-) cat >"$tmp/stdin" \
28610 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28615 ac_dir=`$as_dirname -- "$ac_file" ||
28616 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28617 X"$ac_file" : 'X\(//\)[^/]' \| \
28618 X"$ac_file" : 'X\(//\)$' \| \
28619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28620 $as_echo X"$ac_file" |
28621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28625 /^X\(\/\/\)[^/].*/{
28638 as_dir="$ac_dir"; as_fn_mkdir_p
28642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28645 # A ".." for each directory in $ac_dir_suffix.
28646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28647 case $ac_top_builddir_sub in
28648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28652 ac_abs_top_builddir=$ac_pwd
28653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28654 # for backward compatibility:
28655 ac_top_builddir=$ac_top_build_prefix
28658 .) # We are building in place.
28660 ac_top_srcdir=$ac_top_builddir_sub
28661 ac_abs_top_srcdir=$ac_pwd ;;
28662 [\\/]* | ?:[\\/]* ) # Absolute name.
28663 ac_srcdir=$srcdir$ac_dir_suffix;
28664 ac_top_srcdir=$srcdir
28665 ac_abs_top_srcdir=$srcdir ;;
28666 *) # Relative name.
28667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28668 ac_top_srcdir=$ac_top_build_prefix$srcdir
28669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28683 # If the template does not know about datarootdir, expand it.
28684 # FIXME: This hack should be removed a few years after 2.60.
28685 ac_datarootdir_hack=; ac_datarootdir_seen=
28696 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28697 *datarootdir*) ac_datarootdir_seen=yes;;
28698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28700 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28703 ac_datarootdir_hack='
28704 s&@datadir@&$datadir&g
28705 s&@docdir@&$docdir&g
28706 s&@infodir@&$infodir&g
28707 s&@localedir@&$localedir&g
28708 s&@mandir@&$mandir&g
28709 s&\\\${datarootdir}&$datarootdir&g' ;;
28713 # Neutralize VPATH when `$srcdir' = `.'.
28714 # Shell code in configure.ac might set extrasub.
28715 # FIXME: do we really want to maintain this feature?
28716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28717 ac_sed_extra="$ac_vpsub
28720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28723 s|@configure_input@|$ac_sed_conf_input|;t t
28724 s&@top_builddir@&$ac_top_builddir_sub&;t t
28725 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28726 s&@srcdir@&$ac_srcdir&;t t
28727 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28728 s&@top_srcdir@&$ac_top_srcdir&;t t
28729 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28730 s&@builddir@&$ac_builddir&;t t
28731 s&@abs_builddir@&$ac_abs_builddir&;t t
28732 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28733 $ac_datarootdir_hack
28735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28736 if $ac_cs_awk_getline; then
28737 $AWK -f "$tmp/subs.awk"
28739 $AWK -f "$tmp/subs.awk" | $SHELL
28741 || as_fn_error "could not create $ac_file" "$LINENO" 5
28743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28744 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28747 which seems to be undefined. Please make sure it is defined." >&5
28748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28749 which seems to be undefined. Please make sure it is defined." >&2;}
28753 -) cat "$tmp/out" && rm -f "$tmp/out";;
28754 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28756 || as_fn_error "could not create $ac_file" "$LINENO" 5
28762 if test x"$ac_file" != x-; then
28764 $as_echo "/* $configure_input */" \
28765 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28766 } >"$tmp/config.h" \
28767 || as_fn_error "could not create $ac_file" "$LINENO" 5
28768 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28773 mv "$tmp/config.h" "$ac_file" \
28774 || as_fn_error "could not create $ac_file" "$LINENO" 5
28777 $as_echo "/* $configure_input */" \
28778 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28779 || as_fn_error "could not create -" "$LINENO" 5
28783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28784 $as_echo "$as_me: executing $ac_file commands" >&6;}
28789 case $ac_file$ac_mode in
28790 "as":F) chmod +x as ;;
28791 "collect-ld":F) chmod +x collect-ld ;;
28792 "nm":F) chmod +x nm ;;
28794 case ${CONFIG_HEADERS} in
28795 *auto-host.h:config.in*)
28798 # Make sure all the subdirs exist.
28799 for d in $subdirs doc build common c-family
28801 test -d $d || mkdir $d
28811 ac_clean_files=$ac_clean_files_save
28813 test $ac_write_fail = 0 ||
28814 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28817 # configure is writing to config.log, and then calls config.status.
28818 # config.status does its own redirection, appending to config.log.
28819 # Unfortunately, on DOS this fails, as config.log is still kept open
28820 # by configure, so config.status won't be able to write to it; its
28821 # output is simply discarded. So we exec the FD to /dev/null,
28822 # effectively closing config.log, so it can be properly (re)opened and
28823 # appended to by config.status. When coming back to configure, we
28824 # need to make the FD available again.
28825 if test "$no_create" != yes; then
28827 ac_config_status_args=
28828 test "$silent" = yes &&
28829 ac_config_status_args="$ac_config_status_args --quiet"
28831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28834 # would make configure fail if this is the last instruction.
28835 $ac_cs_success || as_fn_exit $?
28837 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28839 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}