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
768 ENABLE_BUILD_WITH_CXX
771 valgrind_path_defines
845 program_transform_name
856 ac_subst_files='option_includes
859 enable_option_checking
864 enable_generated_files_in_srcdir
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
886 with_native_system_header_dir
896 enable_sjlj_exceptions
898 enable_leading_mingw64_underscores
901 enable_win32_registry
907 enable_gnu_indirect_function
908 enable_initfini_array
910 enable_gnu_unique_object
911 enable_linker_build_id
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
918 enable_libquadmath_support
919 with_linker_hash_style
921 ac_precious_vars='build_alias
942 # Initialize some variables set by options.
944 ac_init_version=false
945 ac_unrecognized_opts=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name=s,x,x,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1248 -site=* | --site=* | --sit=*)
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1304 eval with_$ac_useropt=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1375 # Be sure to have absolute directory names.
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1550 if test -n "$ac_init_help"; then
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-generated-files-in-srcdir
1559 put copies of generated files in source dir intended
1560 for creating source tarballs for users without
1561 texinfo bison or flex
1562 --disable-largefile omit support for large files
1563 --enable-werror-always enable -Werror despite compiler version
1564 --enable-checking[=LIST]
1565 enable expensive run-time checks. With LIST, enable
1566 only specific categories of checks. Categories are:
1567 yes,no,all,none,release. Flags are:
1568 assert,df,fold,gc,gcac,gimple,misc,
1569 rtlflag,rtl,runtime,tree,valgrind,types
1570 --enable-coverage[=LEVEL]
1571 enable compiler's code coverage collection. Use to
1572 measure compiler performance and locate unused parts
1573 of the compiler. With LEVEL, specify optimization.
1574 Values are opt, noopt, default is noopt
1575 --enable-gather-detailed-mem-stats
1576 enable detailed memory allocation stats gathering
1577 --enable-build-with-cxx build with C++ compiler instead of C compiler
1578 --enable-multilib enable library support for multiple ABIs
1579 --enable-__cxa_atexit enable __cxa_atexit for C++
1580 --enable-decimal-float={no,yes,bid,dpd}
1581 enable decimal float extension to C. Selecting 'bid'
1582 or 'dpd' choses which decimal floating point format
1584 --enable-fixed-point enable fixed-point arithmetic extension to C
1585 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 --enable-tls enable or disable generation of tls code overriding
1588 the assembler check for tls support
1589 --enable-objc-gc enable the use of Boehm's garbage collector with the
1590 GNU Objective-C runtime
1591 --disable-shared don't provide a shared libgcc
1592 --enable-languages=LIST specify which front-ends to build
1593 --disable-rpath do not hardcode runtime library paths
1594 --enable-sjlj-exceptions
1595 arrange to use setjmp/longjmp exception handling
1596 --enable-secureplt enable -msecure-plt by default for PowerPC
1597 --enable-leading-mingw64-underscores
1598 enable leading underscores on 64 bit mingw targets
1599 --enable-cld enable -mcld by default for 32bit x86
1600 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1602 --disable-win32-registry
1603 disable lookup of installation paths in the Registry
1605 --enable-win32-registry enable registry lookup (default)
1606 --enable-win32-registry=KEY
1607 use KEY instead of GCC version as the last portion
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1614 --enable-gnu-indirect-function
1615 enable the use of the @gnu_indirect_function to
1617 --enable-initfini-array use .init_array/.fini_array sections
1618 --enable-comdat enable COMDAT group support
1619 --enable-gnu-unique-object
1620 enable the use of the @gnu_unique_object ELF
1621 extension on glibc systems
1622 --enable-linker-build-id
1623 compiler will always pass --build-id to linker
1624 --enable-maintainer-mode
1625 enable make rules and dependencies not useful (and
1626 sometimes confusing) to the casual installer
1627 --enable-version-specific-runtime-libs
1628 specify that runtime libraries should be installed
1629 in a compiler-specific directory
1630 --enable-plugin enable plugin support
1631 --disable-libquadmath-support
1632 disable libquadmath support for Fortran
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-build-libsubdir=DIR Directory where to find libraries for build system
1638 --with-local-prefix=DIR specifies directory to put local include
1639 --with-gxx-include-dir=DIR
1640 specifies directory to put g++ header files
1641 --with-cpp-install-dir=DIR
1642 install the user visible C preprocessor in DIR
1643 (relative to PREFIX) as well as PREFIX/bin
1644 --with-gnu-ld arrange to work with GNU ld
1645 --with-ld arrange to use the specified ld (full pathname)
1646 --with-demangler-in-ld try to use demangler in GNU ld
1647 --with-gnu-as arrange to work with GNU as
1648 --with-as arrange to use the specified as (full pathname)
1649 --with-stabs arrange to use stabs instead of host debug format
1650 --with-dwarf2 force the default debug format to be DWARF 2
1651 --with-native-system-header-dir=dir
1652 use dir as the directory to look for standard
1653 system header files in. Defaults to /usr/include.
1654 --with-build-sysroot=sysroot
1655 use sysroot as the system root during the build
1656 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1657 --with-specs=SPECS add SPECS to driver command-line processing
1658 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1659 --with-bugurl=URL Direct users to URL to report a bug
1660 --with-multilib-list select multilibs (SH and x86-64 only)
1661 --with-gnu-ld assume the C compiler uses GNU ld default=no
1662 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1663 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1664 --with-pic try to use only PIC/non-PIC objects [default=use
1666 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1667 --with-plugin-ld=[ARG] specify the plugin linker
1668 --with-long-double-128 use 128-bit long double by default
1669 --with-gc={page,zone} choose the garbage collection mechanism to use with
1671 --with-system-zlib use installed libz
1672 --with-linker-hash-style={sysv,gnu,both}
1673 specify the linker hash style
1675 Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1683 CXX C++ compiler command
1684 CXXFLAGS C++ compiler flags
1686 CXXCPP C++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to find CLOOG include files
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1727 .) # We are building in place.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev/null && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1892 ac_fn_c_check_header_mongrel ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1916 ac_header_compiler=no
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1932 ac_header_preproc=no
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1964 eval "$3=\$ac_header_compiler"
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_c_check_header_mongrel
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2008 ac_retval=$ac_status
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_header_compile
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 ac_fn_c_compute_int ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2070 if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid; break
2089 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090 if test $ac_lo -le $ac_mid; then
2094 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) < 0)];
2112 if ac_fn_c_try_compile "$LINENO"; then :
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 if ac_fn_c_try_compile "$LINENO"; then :
2165 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2185 FILE *f = fopen ("conftest.val", "w");
2190 long int i = longval ();
2193 fprintf (f, "%ld", i);
2197 unsigned long int i = ulongval ();
2200 fprintf (f, "%lu", i);
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2210 if ac_fn_c_try_run "$LINENO"; then :
2211 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216 conftest.$ac_objext conftest.beam conftest.$ac_ext
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 } # ac_fn_c_compute_int
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile "$LINENO"; then :
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 } # ac_fn_c_check_type
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2283 ac_fn_c_find_intX_t ()
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2292 for ac_type in int$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2322 if ac_fn_c_try_compile "$LINENO"; then :
2329 eval "$3=\$ac_type" ;;
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 if test "x$as_val" = x""no; then :
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348 } # ac_fn_c_find_intX_t
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 rm -f conftest.$ac_objext conftest$ac_exeext
2357 if { { ac_try="$ac_link"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 } # ac_fn_c_try_link
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2400 ac_fn_c_find_uintX_t ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2424 if ac_fn_c_try_compile "$LINENO"; then :
2429 eval "$3=\$ac_type" ;;
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 if test "x$as_val" = x""no; then :
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 } # ac_fn_c_find_uintX_t
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2468 rm -f conftest.err conftest.$ac_ext
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_c_check_header_preproc
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2492 if test -s conftest.err; then
2493 grep -v '^ *+' conftest.err >conftest.er1
2494 cat conftest.er1 >&5
2495 mv -f conftest.er1 conftest.err
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev/null && {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 } # ac_fn_cxx_try_cpp
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2534 rm -f conftest.err conftest.$ac_ext
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_cxx_check_header_preproc
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2566 # include <limits.h>
2568 # include <assert.h>
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2595 if ac_fn_c_try_link "$LINENO"; then :
2600 rm -f core conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 } # ac_fn_c_check_func
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 rm -f conftest.$ac_objext conftest$ac_exeext
2617 if { { ac_try="$ac_link"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2720 ac_must_keep_next=false
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 -* ) ac_must_keep_next=true ;;
2752 as_fn_append ac_configure_args " '$ac_arg'"
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2776 # The following way of writing the cache mishandles newlines in values,
2778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779 eval ac_val=\$$ac_var
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2814 for ac_var in $ac_subst_vars
2816 eval ac_val=\$$ac_var
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 $as_echo "$ac_var='\''$ac_val'\''"
2824 if test -n "$ac_subst_files"; then
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2831 for ac_var in $ac_subst_files
2833 eval ac_val=\$$ac_var
2835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2837 $as_echo "$ac_var='\''$ac_val'\''"
2842 if test -s confdefs.h; then
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2868 $as_echo "/* confdefs.h */" > confdefs.h
2870 # Predefined preprocessor variables.
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2938 # Check that the precious variables saved in the cache have kept the same
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x $ac_old_val`
2960 ac_new_val_w=`echo x $ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964 ac_cache_corrupted=:
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3013 gcc_version=`cat $srcdir/BASE-VER`
3015 # Determine the host, build, and target systems
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 ac_save_IFS=$IFS; IFS='-'
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 ac_save_IFS=$IFS; IFS='-'
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3148 program_prefix=${target_alias}-
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3169 # Determine the target- and build-specific subdirectories
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3187 build_libsubdir="$build_subdir"
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3198 target_subdir=${target_noncanonical}
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3228 library_path_setting="ok"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory"
3254 gcc_exec_prefix_setting="ok"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3270 # Specify the local prefix
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3278 *) local_prefix=$with_local_prefix ;;
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3299 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306 if test x${enable_version_specific_runtime_libs} = xyes; then
3307 gcc_gxx_include_dir='${libsubdir}/include/c++'
3309 libstdcxx_incdir='include/c++/$(version)'
3310 if test x$host != x$target; then
3311 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3313 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3317 gcc_gxx_include_dir_add_sysroot=0
3318 if test "${with_sysroot+set}" = set; then
3319 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3320 if test "${gcc_gxx_without_sysroot}"; then
3321 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3322 gcc_gxx_include_dir_add_sysroot=1
3327 # Check whether --with-cpp_install_dir was given.
3328 if test "${with_cpp_install_dir+set}" = set; then :
3329 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3330 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3331 elif test x$withval != xno; then
3332 cpp_install_dir=$withval
3337 # We would like to our source tree to be readonly. However when releases or
3338 # pre-releases are generated, the flex/bison generated files as well as the
3339 # various formats of manuals need to be included along with the rest of the
3340 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3344 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3345 # Check whether --enable-generated-files-in-srcdir was given.
3346 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3347 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3349 generated_files_in_srcdir=no
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3354 $as_echo "$generated_files_in_srcdir" >&6; }
3356 if test "$generated_files_in_srcdir" = "yes"; then
3363 # -------------------
3364 # Find default linker
3365 # -------------------
3369 # Check whether --with-gnu-ld was given.
3370 if test "${with_gnu_ld+set}" = set; then :
3371 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3377 # With pre-defined ld
3379 # Check whether --with-ld was given.
3380 if test "${with_ld+set}" = set; then :
3381 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3384 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3385 if test ! -x "$DEFAULT_LINKER"; then
3386 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3387 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3391 cat >>confdefs.h <<_ACEOF
3392 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3398 $as_echo_n "checking whether a default linker was specified... " >&6; }
3399 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3400 if test x"$gnu_ld_flag" = x"no"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3405 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3412 # With demangler in GNU ld
3414 # Check whether --with-demangler-in-ld was given.
3415 if test "${with_demangler_in_ld+set}" = set; then :
3416 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3422 # ----------------------
3423 # Find default assembler
3424 # ----------------------
3428 # Check whether --with-gnu-as was given.
3429 if test "${with_gnu_as+set}" = set; then :
3430 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3437 # Check whether --with-as was given.
3438 if test "${with_as+set}" = set; then :
3439 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3442 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3443 if test ! -x "$DEFAULT_ASSEMBLER"; then
3444 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3445 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3449 cat >>confdefs.h <<_ACEOF
3450 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3456 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3457 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3458 if test x"$gas_flag" = x"no"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3460 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3474 # If a non-executable a.out is present (e.g. created by GNU as above even if
3475 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3476 # file, even when creating an executable, so an execution test fails.
3477 # Remove possible default executable files to avoid this.
3479 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3480 # Autoconf includes it.
3481 rm -f a.out a.exe b.out
3483 # Find the native compiler
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 if test -n "$CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3520 $as_echo "$CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3528 if test -z "$ac_cv_prog_CC"; then
3530 # Extract the first word of "gcc", so it can be a program name with args.
3531 set dummy gcc; ac_word=$2
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3537 if test -n "$ac_ct_CC"; then
3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_ac_ct_CC="gcc"
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3560 $as_echo "$ac_ct_CC" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3566 if test "x$ac_ct_CC" = x; then
3569 case $cross_compiling:$ac_tool_warned in
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3581 if test -z "$CC"; then
3582 if test -n "$ac_tool_prefix"; then
3583 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3584 set dummy ${ac_tool_prefix}cc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 ac_cv_prog_CC="${ac_tool_prefix}cc"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3622 if test -z "$CC"; then
3623 # Extract the first word of "cc", so it can be a program name with args.
3624 set dummy cc; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3642 ac_prog_rejected=yes
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 if test $ac_prog_rejected = yes; then
3654 # We found a bogon in the path, so make sure we never use it.
3655 set dummy $ac_cv_prog_CC
3657 if test $# != 0; then
3658 # We chose a different compiler from the bogus one.
3659 # However, it has the same basename, so the bogon will be chosen
3660 # first if we set CC to just the basename; use the full file name.
3662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668 if test -n "$CC"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3670 $as_echo "$CC" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3678 if test -z "$CC"; then
3679 if test -n "$ac_tool_prefix"; then
3680 for ac_prog in cl.exe
3682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if test "${ac_cv_prog_CC+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3689 if test -n "$CC"; then
3690 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 if test -n "$CC"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3712 $as_echo "$CC" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3719 test -n "$CC" && break
3722 if test -z "$CC"; then
3724 for ac_prog in cl.exe
3726 # Extract the first word of "$ac_prog", so it can be a program name with args.
3727 set dummy $ac_prog; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3733 if test -n "$ac_ct_CC"; then
3734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743 ac_cv_prog_ac_ct_CC="$ac_prog"
3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3754 if test -n "$ac_ct_CC"; then
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3756 $as_echo "$ac_ct_CC" >&6; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3763 test -n "$ac_ct_CC" && break
3766 if test "x$ac_ct_CC" = x; then
3769 case $cross_compiling:$ac_tool_warned in
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3782 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error "no acceptable C compiler found in \$PATH
3785 See \`config.log' for more details." "$LINENO" 5; }
3787 # Provide some information about the compiler.
3788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3791 for ac_option in --version -v -V -qversion; do
3792 { { ac_try="$ac_compiler $ac_option >&5"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 if test -s conftest.err; then
3803 ... rest of stderr output deleted ...
3804 10q' conftest.err >conftest.er1
3805 cat conftest.er1 >&5
3806 rm -f conftest.er1 conftest.err
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3823 ac_clean_files_save=$ac_clean_files
3824 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3825 # Try to create an executable without -o first, disregard a.out.
3826 # It will help us diagnose broken compilers, and finding out an intuition
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3829 $as_echo_n "checking for C compiler default output file name... " >&6; }
3830 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832 # The possible output files:
3833 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836 for ac_file in $ac_files
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845 if { { ac_try="$ac_link_default"
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_link_default") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3857 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3858 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3859 # so that the user can short-circuit this test for compilers unknown to
3861 for ac_file in $ac_files ''
3863 test -f "$ac_file" || continue
3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3868 # We found the default executable, but exeext='' is most
3872 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 # We set ac_cv_exeext here because the later test for it is not
3877 # safe: cross compilers may not add the suffix if given an `-o'
3878 # argument, so we may need to know it at that point already.
3879 # Even if this section looks crufty: it has the advantage of
3886 test "$ac_cv_exeext" = no && ac_cv_exeext=
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3892 $as_echo "$ac_file" >&6; }
3893 if test -z "$ac_file"; then :
3894 $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 { as_fn_set_status 77
3900 as_fn_error "C compiler cannot create executables
3901 See \`config.log' for more details." "$LINENO" 5; }; }
3903 ac_exeext=$ac_cv_exeext
3905 # Check that the compiler produces executables we can run. If not, either
3906 # the compiler is broken, or we cross compile.
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3908 $as_echo_n "checking whether the C compiler works... " >&6; }
3909 # If not cross compiling, check that we can run a simple program.
3910 if test "$cross_compiling" != yes; then
3911 if { ac_try='./$ac_file'
3912 { { case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_try") 2>&5
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; }; then
3924 if test "$cross_compiling" = maybe; then
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error "cannot run C compiled programs.
3930 If you meant to cross compile, use \`--host'.
3931 See \`config.log' for more details." "$LINENO" 5; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936 $as_echo "yes" >&6; }
3938 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3939 ac_clean_files=$ac_clean_files_save
3940 # Check that the compiler produces executables we can run. If not, either
3941 # the compiler is broken, or we cross compile.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943 $as_echo_n "checking whether we are cross compiling... " >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3945 $as_echo "$cross_compiling" >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948 $as_echo_n "checking for suffix of executables... " >&6; }
3949 if { { ac_try="$ac_link"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }; then :
3960 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3961 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3962 # work properly (i.e., refer to `conftest.exe'), while it won't with
3964 for ac_file in conftest.exe conftest conftest.*; do
3965 test -f "$ac_file" || continue
3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error "cannot compute suffix of executables: cannot compile and link
3977 See \`config.log' for more details." "$LINENO" 5; }
3979 rm -f conftest$ac_cv_exeext
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3981 $as_echo "$ac_cv_exeext" >&6; }
3983 rm -f conftest.$ac_ext
3984 EXEEXT=$ac_cv_exeext
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3987 $as_echo_n "checking for suffix of object files... " >&6; }
3988 if test "${ac_cv_objext+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
4002 rm -f conftest.o conftest.obj
4003 if { { ac_try="$ac_compile"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compile") 2>&5
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
4014 for ac_file in conftest.o conftest.obj conftest.*; do
4015 test -f "$ac_file" || continue;
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4018 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 $as_echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error "cannot compute suffix of object files: cannot compile
4029 See \`config.log' for more details." "$LINENO" 5; }
4031 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4034 $as_echo "$ac_cv_objext" >&6; }
4035 OBJEXT=$ac_cv_objext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4038 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4039 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4066 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4067 if test $ac_compiler_gnu = yes; then
4072 ac_test_CFLAGS=${CFLAGS+set}
4073 ac_save_CFLAGS=$CFLAGS
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4075 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4076 if test "${ac_cv_prog_cc_g+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4079 ac_save_c_werror_flag=$ac_c_werror_flag
4080 ac_c_werror_flag=yes
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4109 if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4136 $as_echo "$ac_cv_prog_cc_g" >&6; }
4137 if test "$ac_test_CFLAGS" = set; then
4138 CFLAGS=$ac_save_CFLAGS
4139 elif test $ac_cv_prog_cc_g = yes; then
4140 if test "$GCC" = yes; then
4146 if test "$GCC" = yes; then
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4153 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4154 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4157 ac_cv_prog_cc_c89=no
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 #include <sys/types.h>
4164 #include <sys/stat.h>
4165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4166 struct buf { int x; };
4167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4168 static char *e (p, i)
4174 static char *f (char * (*g) (char **, int), char **p, ...)
4179 s = g (p, va_arg (v,int));
4184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4185 function prototypes and stuff, but not '\xHH' hex character constants.
4186 These don't provoke an error unfortunately, instead are silently treated
4187 as 'x'. The following induces an error, until -std is added to get
4188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4189 array size at least. It's necessary to write '\x00'==0 to get something
4190 that's true only with -std. */
4191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4194 inside strings and character constants. */
4196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4198 int test (int i, double x);
4199 struct s1 {int (*f) (int a);};
4200 struct s2 {int (*f) (double a);};
4201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215 CC="$ac_save_CC $ac_arg"
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_prog_cc_c89=$ac_arg
4219 rm -f core conftest.err conftest.$ac_objext
4220 test "x$ac_cv_prog_cc_c89" != "xno" && break
4222 rm -f conftest.$ac_ext
4227 case "x$ac_cv_prog_cc_c89" in
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4230 $as_echo "none needed" >&6; } ;;
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4233 $as_echo "unsupported" >&6; } ;;
4235 CC="$CC $ac_cv_prog_cc_c89"
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4237 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4239 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 if test "x$CC" != xcc; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4251 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4254 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4256 set dummy $CC; ac_cc=`$as_echo "$2" |
4257 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4258 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4259 $as_echo_n "(cached) " >&6
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4272 # Make sure it works both with $CC and with simple cc.
4273 # We do the test twice because some compilers refuse to overwrite an
4274 # existing .o file with -o, though they will create one.
4275 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277 if { { case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_try") 2>&5
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; } &&
4287 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4292 $as_echo "$ac_try_echo"; } >&5
4293 (eval "$ac_try") 2>&5
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; };
4298 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4299 if test "x$CC" != xcc; then
4300 # Test first that cc exists at all.
4301 if { ac_try='cc -c conftest.$ac_ext >&5'
4302 { { case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_try") 2>&5
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; }; then
4312 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4314 if { { case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 $as_echo "$ac_try_echo"; } >&5
4320 (eval "$ac_try") 2>&5
4322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; } &&
4324 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329 $as_echo "$ac_try_echo"; } >&5
4330 (eval "$ac_try") 2>&5
4332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; };
4338 # cc exists but doesn't like -o.
4339 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4346 rm -f core conftest*
4349 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4351 $as_echo "yes" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4356 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4360 # expand $ac_aux_dir to an absolute path
4361 am_aux_dir=`cd $ac_aux_dir && pwd`
4363 # FIXME: we rely on the cache variable name because
4364 # there is no other way.
4366 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4367 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4368 if test "$am_t" != yes; then
4369 # Losing compiler, so override with the script.
4370 # FIXME: It is wrong to rewrite CC.
4371 # But if we don't then we get into trouble of one sort or another.
4372 # A longer-term fix would be to have automake use am__CC in this case,
4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374 CC="$am_aux_dir/compile $CC"
4379 ac_cpp='$CXXCPP $CPPFLAGS'
4380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4383 if test -z "$CXX"; then
4384 if test -n "$CCC"; then
4387 if test -n "$ac_tool_prefix"; then
4388 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if test "${ac_cv_prog_CXX+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4397 if test -n "$CXX"; then
4398 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 if test -n "$CXX"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4420 $as_echo "$CXX" >&6; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4427 test -n "$CXX" && break
4430 if test -z "$CXX"; then
4432 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4434 # Extract the first word of "$ac_prog", so it can be a program name with args.
4435 set dummy $ac_prog; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4441 if test -n "$ac_ct_CXX"; then
4442 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_ac_ct_CXX="$ac_prog"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4462 if test -n "$ac_ct_CXX"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4464 $as_echo "$ac_ct_CXX" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4471 test -n "$ac_ct_CXX" && break
4474 if test "x$ac_ct_CXX" = x; then
4477 case $cross_compiling:$ac_tool_warned in
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481 ac_tool_warned=yes ;;
4489 # Provide some information about the compiler.
4490 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4493 for ac_option in --version -v -V -qversion; do
4494 { { ac_try="$ac_compiler $ac_option >&5"
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4503 if test -s conftest.err; then
4505 ... rest of stderr output deleted ...
4506 10q' conftest.err >conftest.er1
4507 cat conftest.er1 >&5
4508 rm -f conftest.er1 conftest.err
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4515 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4516 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4533 if ac_fn_cxx_try_compile "$LINENO"; then :
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4543 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4544 if test $ac_compiler_gnu = yes; then
4549 ac_test_CXXFLAGS=${CXXFLAGS+set}
4550 ac_save_CXXFLAGS=$CXXFLAGS
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4552 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4553 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4557 ac_cxx_werror_flag=yes
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4571 if ac_fn_cxx_try_compile "$LINENO"; then :
4572 ac_cv_prog_cxx_g=yes
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4586 if ac_fn_cxx_try_compile "$LINENO"; then :
4589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4602 if ac_fn_cxx_try_compile "$LINENO"; then :
4603 ac_cv_prog_cxx_g=yes
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4613 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4614 if test "$ac_test_CXXFLAGS" = set; then
4615 CXXFLAGS=$ac_save_CXXFLAGS
4616 elif test $ac_cv_prog_cxx_g = yes; then
4617 if test "$GXX" = yes; then
4623 if test "$GXX" = yes; then
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$GNATBIND"; then
4647 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 GNATBIND=$ac_cv_prog_GNATBIND
4667 if test -n "$GNATBIND"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4669 $as_echo "$GNATBIND" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4677 if test -z "$ac_cv_prog_GNATBIND"; then
4678 ac_ct_GNATBIND=$GNATBIND
4679 # Extract the first word of "gnatbind", so it can be a program name with args.
4680 set dummy gnatbind; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4686 if test -n "$ac_ct_GNATBIND"; then
4687 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4707 if test -n "$ac_ct_GNATBIND"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4709 $as_echo "$ac_ct_GNATBIND" >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4715 if test "x$ac_ct_GNATBIND" = x; then
4718 case $cross_compiling:$ac_tool_warned in
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4724 GNATBIND=$ac_ct_GNATBIND
4727 GNATBIND="$ac_cv_prog_GNATBIND"
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$GNATMAKE"; then
4739 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 GNATMAKE=$ac_cv_prog_GNATMAKE
4759 if test -n "$GNATMAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4761 $as_echo "$GNATMAKE" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4769 if test -z "$ac_cv_prog_GNATMAKE"; then
4770 ac_ct_GNATMAKE=$GNATMAKE
4771 # Extract the first word of "gnatmake", so it can be a program name with args.
4772 set dummy gnatmake; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$ac_ct_GNATMAKE"; then
4779 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4799 if test -n "$ac_ct_GNATMAKE"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4801 $as_echo "$ac_ct_GNATMAKE" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4807 if test "x$ac_ct_GNATMAKE" = x; then
4810 case $cross_compiling:$ac_tool_warned in
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4814 ac_tool_warned=yes ;;
4816 GNATMAKE=$ac_ct_GNATMAKE
4819 GNATMAKE="$ac_cv_prog_GNATMAKE"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4823 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4824 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4827 cat >conftest.adb <<EOF
4828 procedure conftest is begin null; end conftest;
4830 acx_cv_cc_gcc_supports_ada=no
4831 # There is a bug in old released versions of GCC which causes the
4832 # driver to exit successfully when the appropriate language module
4833 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4834 # Therefore we must check for the error message as well as an
4835 # unsuccessful exit.
4836 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4837 # given a .adb file, but produce no object file. So we must check
4838 # if an object file was really produced to guard against this.
4839 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4840 if test x"$errors" = x && test -f conftest.$ac_objext; then
4841 acx_cv_cc_gcc_supports_ada=yes
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4846 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4848 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4855 # autoconf is lame and doesn't give us any substitution variable for this.
4856 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4857 NO_MINUS_C_MINUS_O=yes
4859 OUTPUT_OPTION='-o $@'
4864 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4865 # optimizations to be activated explicitly by the toplevel.
4867 */prev-gcc/xgcc*) ;;
4868 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4872 # Determine PICFLAG for target gnatlib.
4878 # PIC is the default on some targets or must not be used.
4880 # PIC is the default on this platform
4881 # Common symbols not allowed in MH_DYLIB files
4882 PICFLAG_FOR_TARGET=-fno-common
4885 # PIC is the default.
4888 # PIC is the default for 64-bit PA HP-UX.
4890 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4892 i[34567]86-*-interix[3-9]*)
4893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4894 # Instead, we relocate shared libraries at runtime.
4896 i[34567]86-*-nto-qnx*)
4897 # QNX uses GNU C++, but need to define -shared option too, otherwise
4899 PICFLAG_FOR_TARGET='-fPIC -shared'
4901 i[34567]86-pc-msdosdjgpp*)
4902 # DJGPP does not support shared libraries at all.
4905 # On IA64 HP-UX, PIC is the default but the pic flag
4906 # sets the default TLS model and affects inlining.
4907 PICFLAG_FOR_TARGET=-fPIC
4910 # PIC is the default.
4912 rs6000-ibm-aix* | powerpc-ibm-aix*)
4913 # All AIX code is PIC.
4916 # Some targets support both -fPIC and -fpic, but prefer the latter.
4918 i[34567]86-*-* | x86_64-*-*)
4919 PICFLAG_FOR_TARGET=-fpic
4922 PICFLAG_FOR_TARGET=-fpic
4924 # FIXME: Override -fPIC default in libgcc only?
4925 sh-*-linux* | sh[2346lbe]*-*-linux*)
4926 PICFLAG_FOR_TARGET=-fpic
4928 # FIXME: Simplify to sh*-*-netbsd*?
4929 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4930 sh64-*-netbsd* | sh64l*-*-netbsd*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 # Default to -fPIC unless specified otherwise.
4935 PICFLAG_FOR_TARGET=-fPIC
4939 # If the user explicitly uses -fpic/-fPIC, keep that.
4940 case "${CFLAGS_FOR_TARGET}" in
4942 PICFLAG_FOR_TARGET=-fpic
4945 PICFLAG_FOR_TARGET=-fPIC
4951 # -------------------------
4952 # Check C compiler features
4953 # -------------------------
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4962 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4963 # On Suns, sometimes $CPP names a directory.
4964 if test -n "$CPP" && test -d "$CPP"; then
4967 if test -z "$CPP"; then
4968 if test "${ac_cv_prog_CPP+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4971 # Double quotes because CPP needs to be expanded
4972 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4975 for ac_c_preproc_warn_flag in '' yes
4977 # Use a header file that comes with gcc, so configuring glibc
4978 # with a fresh cross-compiler works.
4979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980 # <limits.h> exists even on freestanding compilers.
4981 # On the NeXT, cc -E runs the code through the compiler's parser,
4982 # not just through cpp. "Syntax error" is here to catch this case.
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4986 # include <limits.h>
4988 # include <assert.h>
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4995 # Broken: fails on valid input.
4998 rm -f conftest.err conftest.$ac_ext
5000 # OK, works on sane cases. Now check whether nonexistent headers
5001 # can be detected and how.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #include <ac_nonexistent.h>
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007 # Broken: success on invalid input.
5010 # Passes both tests.
5014 rm -f conftest.err conftest.$ac_ext
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then :
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5032 $as_echo "$CPP" >&6; }
5034 for ac_c_preproc_warn_flag in '' yes
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5045 # include <limits.h>
5047 # include <assert.h>
5051 if ac_fn_c_try_cpp "$LINENO"; then :
5054 # Broken: fails on valid input.
5057 rm -f conftest.err conftest.$ac_ext
5059 # OK, works on sane cases. Now check whether nonexistent headers
5060 # can be detected and how.
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 #include <ac_nonexistent.h>
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066 # Broken: success on invalid input.
5069 # Passes both tests.
5073 rm -f conftest.err conftest.$ac_ext
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then :
5081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5083 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5084 See \`config.log' for more details." "$LINENO" 5; }
5088 ac_cpp='$CPP $CPPFLAGS'
5089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5096 if test "${ac_cv_path_GREP+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5099 if test -z "$GREP"; then
5100 ac_path_GREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in grep ggrep; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5110 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5111 # Check for GNU ac_path_GREP and select it if it is found.
5112 # Check for GNU $ac_path_GREP
5113 case `"$ac_path_GREP" --version 2>&1` in
5115 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 $as_echo_n 0123456789 >"conftest.in"
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo 'GREP' >> "conftest.nl"
5125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_GREP="$ac_path_GREP"
5131 ac_path_GREP_max=$ac_count
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5139 $ac_path_GREP_found && break 3
5144 if test -z "$ac_cv_path_GREP"; then
5145 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148 ac_cv_path_GREP=$GREP
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5153 $as_echo "$ac_cv_path_GREP" >&6; }
5154 GREP="$ac_cv_path_GREP"
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5158 $as_echo_n "checking for egrep... " >&6; }
5159 if test "${ac_cv_path_EGREP+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5163 then ac_cv_path_EGREP="$GREP -E"
5165 if test -z "$EGREP"; then
5166 ac_path_EGREP_found=false
5167 # Loop through the user's path and test for each of PROGNAME-LIST
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 test -z "$as_dir" && as_dir=.
5173 for ac_prog in egrep; do
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5176 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5177 # Check for GNU ac_path_EGREP and select it if it is found.
5178 # Check for GNU $ac_path_EGREP
5179 case `"$ac_path_EGREP" --version 2>&1` in
5181 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 $as_echo_n 0123456789 >"conftest.in"
5187 cat "conftest.in" "conftest.in" >"conftest.tmp"
5188 mv "conftest.tmp" "conftest.in"
5189 cp "conftest.in" "conftest.nl"
5190 $as_echo 'EGREP' >> "conftest.nl"
5191 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193 as_fn_arith $ac_count + 1 && ac_count=$as_val
5194 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5195 # Best one so far, save it but keep looking for a better one
5196 ac_cv_path_EGREP="$ac_path_EGREP"
5197 ac_path_EGREP_max=$ac_count
5199 # 10*(2^10) chars as input seems more than enough
5200 test $ac_count -gt 10 && break
5202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5205 $ac_path_EGREP_found && break 3
5210 if test -z "$ac_cv_path_EGREP"; then
5211 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 ac_cv_path_EGREP=$EGREP
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5220 $as_echo "$ac_cv_path_EGREP" >&6; }
5221 EGREP="$ac_cv_path_EGREP"
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5225 $as_echo_n "checking for ANSI C header files... " >&6; }
5226 if test "${ac_cv_header_stdc+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 ac_cv_header_stdc=yes
5247 ac_cv_header_stdc=no
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 if test $ac_cv_header_stdc = yes; then
5252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev/null 2>&1; then :
5262 ac_cv_header_stdc=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "free" >/dev/null 2>&1; then :
5279 ac_cv_header_stdc=no
5285 if test $ac_cv_header_stdc = yes; then
5286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287 if test "$cross_compiling" = yes; then :
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5294 #if ((' ' & 0x0FF) == 0x020)
5295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5298 # define ISLOWER(c) \
5299 (('a' <= (c) && (c) <= 'i') \
5300 || ('j' <= (c) && (c) <= 'r') \
5301 || ('s' <= (c) && (c) <= 'z'))
5302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5310 for (i = 0; i < 256; i++)
5311 if (XOR (islower (i), ISLOWER (i))
5312 || toupper (i) != TOUPPER (i))
5317 if ac_fn_c_try_run "$LINENO"; then :
5320 ac_cv_header_stdc=no
5322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5323 conftest.$ac_objext conftest.beam conftest.$ac_ext
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5329 $as_echo "$ac_cv_header_stdc" >&6; }
5330 if test $ac_cv_header_stdc = yes; then
5332 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5336 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338 inttypes.h stdint.h unistd.h
5340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5343 eval as_val=\$$as_ac_Header
5344 if test "x$as_val" = x""yes; then :
5345 cat >>confdefs.h <<_ACEOF
5346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5356 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5363 if test "$MINIX" = yes; then
5365 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5368 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5371 $as_echo "#define _MINIX 1" >>confdefs.h
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5377 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5378 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5384 # define __EXTENSIONS__ 1
5385 $ac_includes_default
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 ac_cv_safe_to_define___extensions__=yes
5397 ac_cv_safe_to_define___extensions__=no
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5402 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5403 test $ac_cv_safe_to_define___extensions__ = yes &&
5404 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5406 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5408 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5410 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5412 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5416 ac_cpp='$CPP $CPPFLAGS'
5417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5422 # On Suns, sometimes $CPP names a directory.
5423 if test -n "$CPP" && test -d "$CPP"; then
5426 if test -z "$CPP"; then
5427 if test "${ac_cv_prog_CPP+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5430 # Double quotes because CPP needs to be expanded
5431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5434 for ac_c_preproc_warn_flag in '' yes
5436 # Use a header file that comes with gcc, so configuring glibc
5437 # with a fresh cross-compiler works.
5438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5439 # <limits.h> exists even on freestanding compilers.
5440 # On the NeXT, cc -E runs the code through the compiler's parser,
5441 # not just through cpp. "Syntax error" is here to catch this case.
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5445 # include <limits.h>
5447 # include <assert.h>
5451 if ac_fn_c_try_cpp "$LINENO"; then :
5454 # Broken: fails on valid input.
5457 rm -f conftest.err conftest.$ac_ext
5459 # OK, works on sane cases. Now check whether nonexistent headers
5460 # can be detected and how.
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 #include <ac_nonexistent.h>
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466 # Broken: success on invalid input.
5469 # Passes both tests.
5473 rm -f conftest.err conftest.$ac_ext
5476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5477 rm -f conftest.err conftest.$ac_ext
5478 if $ac_preproc_ok; then :
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5491 $as_echo "$CPP" >&6; }
5493 for ac_c_preproc_warn_flag in '' yes
5495 # Use a header file that comes with gcc, so configuring glibc
5496 # with a fresh cross-compiler works.
5497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5498 # <limits.h> exists even on freestanding compilers.
5499 # On the NeXT, cc -E runs the code through the compiler's parser,
5500 # not just through cpp. "Syntax error" is here to catch this case.
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 # include <limits.h>
5506 # include <assert.h>
5510 if ac_fn_c_try_cpp "$LINENO"; then :
5513 # Broken: fails on valid input.
5516 rm -f conftest.err conftest.$ac_ext
5518 # OK, works on sane cases. Now check whether nonexistent headers
5519 # can be detected and how.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #include <ac_nonexistent.h>
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5525 # Broken: success on invalid input.
5528 # Passes both tests.
5532 rm -f conftest.err conftest.$ac_ext
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then :
5540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5543 See \`config.log' for more details." "$LINENO" 5; }
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5553 $as_echo_n "checking for inline... " >&6; }
5554 if test "${ac_cv_c_inline+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5558 for ac_kw in inline __inline__ __inline; do
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5563 static $ac_kw foo_t static_foo () {return 0; }
5564 $ac_kw foo_t foo () {return 0; }
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 ac_cv_c_inline=$ac_kw
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 test "$ac_cv_c_inline" != no && break
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5577 $as_echo "$ac_cv_c_inline" >&6; }
5579 case $ac_cv_c_inline in
5582 case $ac_cv_c_inline in
5584 *) ac_val=$ac_cv_c_inline;;
5586 cat >>confdefs.h <<_ACEOF
5588 #define inline $ac_val
5595 # Check whether --enable-largefile was given.
5596 if test "${enable_largefile+set}" = set; then :
5597 enableval=$enable_largefile;
5600 if test "$enable_largefile" != no; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5603 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5604 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5607 ac_cv_sys_largefile_CC=no
5608 if test "$GCC" != yes; then
5611 # IRIX 6.2 and later do not support large files by default,
5612 # so use the C compiler's -n32 option if that helps.
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 /* Check that off_t can represent 2**63 - 1 correctly.
5617 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5618 since some C++ compilers masquerading as C compilers
5619 incorrectly reject 9223372036854775807. */
5620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5621 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5622 && LARGE_OFF_T % 2147483647 == 1)
5632 if ac_fn_c_try_compile "$LINENO"; then :
5635 rm -f core conftest.err conftest.$ac_objext
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 ac_cv_sys_largefile_CC=' -n32'; break
5640 rm -f core conftest.err conftest.$ac_objext
5644 rm -f conftest.$ac_ext
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5648 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5649 if test "$ac_cv_sys_largefile_CC" != no; then
5650 CC=$CC$ac_cv_sys_largefile_CC
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5654 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5655 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 ac_cv_sys_file_offset_bits=no; break
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #define _FILE_OFFSET_BITS 64
5685 #include <sys/types.h>
5686 /* Check that off_t can represent 2**63 - 1 correctly.
5687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5688 since some C++ compilers masquerading as C compilers
5689 incorrectly reject 9223372036854775807. */
5690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5692 && LARGE_OFF_T % 2147483647 == 1)
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 ac_cv_sys_file_offset_bits=64; break
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 ac_cv_sys_file_offset_bits=unknown
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5711 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5712 case $ac_cv_sys_file_offset_bits in #(
5715 cat >>confdefs.h <<_ACEOF
5716 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5721 if test $ac_cv_sys_file_offset_bits = unknown; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5723 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5724 if test "${ac_cv_sys_large_files+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 #include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5747 if ac_fn_c_try_compile "$LINENO"; then :
5748 ac_cv_sys_large_files=no; break
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #define _LARGE_FILES 1
5754 #include <sys/types.h>
5755 /* Check that off_t can represent 2**63 - 1 correctly.
5756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5757 since some C++ compilers masquerading as C compilers
5758 incorrectly reject 9223372036854775807. */
5759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5761 && LARGE_OFF_T % 2147483647 == 1)
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 ac_cv_sys_large_files=1; break
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 ac_cv_sys_large_files=unknown
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5780 $as_echo "$ac_cv_sys_large_files" >&6; }
5781 case $ac_cv_sys_large_files in #(
5784 cat >>confdefs.h <<_ACEOF
5785 #define _LARGE_FILES $ac_cv_sys_large_files
5794 # sizeof(char) is 1 by definition.
5795 # The cast to long int works around a bug in the HP C Compiler
5796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5798 # This bug is HP SR number 8606223364.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5800 $as_echo_n "checking size of void *... " >&6; }
5801 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5807 if test "$ac_cv_type_void_p" = yes; then
5808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810 { as_fn_set_status 77
5811 as_fn_error "cannot compute sizeof (void *)
5812 See \`config.log' for more details." "$LINENO" 5; }; }
5814 ac_cv_sizeof_void_p=0
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5820 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5824 cat >>confdefs.h <<_ACEOF
5825 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5834 $as_echo_n "checking size of short... " >&6; }
5835 if test "${ac_cv_sizeof_short+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5841 if test "$ac_cv_type_short" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status 77
5845 as_fn_error "cannot compute sizeof (short)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5848 ac_cv_sizeof_short=0
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5854 $as_echo "$ac_cv_sizeof_short" >&6; }
5858 cat >>confdefs.h <<_ACEOF
5859 #define SIZEOF_SHORT $ac_cv_sizeof_short
5863 # The cast to long int works around a bug in the HP C Compiler
5864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5866 # This bug is HP SR number 8606223364.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5868 $as_echo_n "checking size of int... " >&6; }
5869 if test "${ac_cv_sizeof_int+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5875 if test "$ac_cv_type_int" = yes; then
5876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5878 { as_fn_set_status 77
5879 as_fn_error "cannot compute sizeof (int)
5880 See \`config.log' for more details." "$LINENO" 5; }; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5888 $as_echo "$ac_cv_sizeof_int" >&6; }
5892 cat >>confdefs.h <<_ACEOF
5893 #define SIZEOF_INT $ac_cv_sizeof_int
5897 # The cast to long int works around a bug in the HP C Compiler
5898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5900 # This bug is HP SR number 8606223364.
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5902 $as_echo_n "checking size of long... " >&6; }
5903 if test "${ac_cv_sizeof_long+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5906 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5909 if test "$ac_cv_type_long" = yes; then
5910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5912 { as_fn_set_status 77
5913 as_fn_error "cannot compute sizeof (long)
5914 See \`config.log' for more details." "$LINENO" 5; }; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5922 $as_echo "$ac_cv_sizeof_long" >&6; }
5926 cat >>confdefs.h <<_ACEOF
5927 #define SIZEOF_LONG $ac_cv_sizeof_long
5931 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5932 if test "x$ac_cv_type_long_long" = x""yes; then :
5934 cat >>confdefs.h <<_ACEOF
5935 #define HAVE_LONG_LONG 1
5938 # The cast to long int works around a bug in the HP C Compiler
5939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5941 # This bug is HP SR number 8606223364.
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5943 $as_echo_n "checking size of long long... " >&6; }
5944 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5947 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5950 if test "$ac_cv_type_long_long" = yes; then
5951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5953 { as_fn_set_status 77
5954 as_fn_error "cannot compute sizeof (long long)
5955 See \`config.log' for more details." "$LINENO" 5; }; }
5957 ac_cv_sizeof_long_long=0
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5963 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5967 cat >>confdefs.h <<_ACEOF
5968 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5974 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5975 if test "x$ac_cv_type___int64" = x""yes; then :
5977 cat >>confdefs.h <<_ACEOF
5978 #define HAVE___INT64 1
5981 # The cast to long int works around a bug in the HP C Compiler
5982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5984 # This bug is HP SR number 8606223364.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5986 $as_echo_n "checking size of __int64... " >&6; }
5987 if test "${ac_cv_sizeof___int64+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5990 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5993 if test "$ac_cv_type___int64" = yes; then
5994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5996 { as_fn_set_status 77
5997 as_fn_error "cannot compute sizeof (__int64)
5998 See \`config.log' for more details." "$LINENO" 5; }; }
6000 ac_cv_sizeof___int64=0
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6006 $as_echo "$ac_cv_sizeof___int64" >&6; }
6010 cat >>confdefs.h <<_ACEOF
6011 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6017 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6018 case $ac_cv_c_int8_t in #(
6022 cat >>confdefs.h <<_ACEOF
6023 #define int8_t $ac_cv_c_int8_t
6028 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6029 case $ac_cv_c_int16_t in #(
6033 cat >>confdefs.h <<_ACEOF
6034 #define int16_t $ac_cv_c_int16_t
6039 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6040 case $ac_cv_c_int32_t in #(
6044 cat >>confdefs.h <<_ACEOF
6045 #define int32_t $ac_cv_c_int32_t
6050 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6051 case $ac_cv_c_int64_t in #(
6055 cat >>confdefs.h <<_ACEOF
6056 #define int64_t $ac_cv_c_int64_t
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6063 $as_echo_n "checking for long long int... " >&6; }
6064 if test "${ac_cv_type_long_long_int+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6070 /* For now, do not test the preprocessor; as of 2007 there are too many
6071 implementations with broken preprocessors. Perhaps this can
6072 be revisited in 2012. In the meantime, code should not expect
6073 #if to work with literals wider than 32 bits. */
6074 /* Test literals. */
6075 long long int ll = 9223372036854775807ll;
6076 long long int nll = -9223372036854775807LL;
6077 unsigned long long int ull = 18446744073709551615ULL;
6078 /* Test constant expressions. */
6079 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6081 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6087 /* Test availability of runtime routines for shift and division. */
6088 long long int llmax = 9223372036854775807ll;
6089 unsigned long long int ullmax = 18446744073709551615ull;
6090 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6091 | (llmax / ll) | (llmax % ll)
6092 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6093 | (ullmax / ull) | (ullmax % ull));
6099 if ac_fn_c_try_link "$LINENO"; then :
6100 if test "$cross_compiling" = yes; then :
6101 ac_cv_type_long_long_int=yes
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6108 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6109 # define LLONG_MAX (HALF - 1 + HALF)
6114 long long int n = 1;
6118 long long int m = n << i;
6121 if (LLONG_MAX / 2 < m)
6129 if ac_fn_c_try_run "$LINENO"; then :
6130 ac_cv_type_long_long_int=yes
6132 ac_cv_type_long_long_int=no
6134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135 conftest.$ac_objext conftest.beam conftest.$ac_ext
6139 ac_cv_type_long_long_int=no
6141 rm -f core conftest.err conftest.$ac_objext \
6142 conftest$ac_exeext conftest.$ac_ext
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6145 $as_echo "$ac_cv_type_long_long_int" >&6; }
6146 if test $ac_cv_type_long_long_int = yes; then
6148 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6154 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6155 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6157 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6160 test $ac_cv_type_long_long_int = yes \
6161 && ac_type='long long int' \
6162 || ac_type='long int'
6164 cat >>confdefs.h <<_ACEOF
6165 #define intmax_t $ac_type
6172 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6175 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6178 for ac_type in 'int' 'long int' 'long long int'; do
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 $ac_includes_default
6185 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6192 if ac_fn_c_try_compile "$LINENO"; then :
6194 cat >>confdefs.h <<_ACEOF
6195 #define intptr_t $ac_type
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 test -z "$ac_type" && break
6206 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6207 case $ac_cv_c_uint8_t in #(
6211 $as_echo "#define _UINT8_T 1" >>confdefs.h
6214 cat >>confdefs.h <<_ACEOF
6215 #define uint8_t $ac_cv_c_uint8_t
6220 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6221 case $ac_cv_c_uint16_t in #(
6226 cat >>confdefs.h <<_ACEOF
6227 #define uint16_t $ac_cv_c_uint16_t
6232 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6233 case $ac_cv_c_uint32_t in #(
6237 $as_echo "#define _UINT32_T 1" >>confdefs.h
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint32_t $ac_cv_c_uint32_t
6246 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6247 case $ac_cv_c_uint64_t in #(
6251 $as_echo "#define _UINT64_T 1" >>confdefs.h
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint64_t $ac_cv_c_uint64_t
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6262 $as_echo_n "checking for unsigned long long int... " >&6; }
6263 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6269 /* For now, do not test the preprocessor; as of 2007 there are too many
6270 implementations with broken preprocessors. Perhaps this can
6271 be revisited in 2012. In the meantime, code should not expect
6272 #if to work with literals wider than 32 bits. */
6273 /* Test literals. */
6274 long long int ll = 9223372036854775807ll;
6275 long long int nll = -9223372036854775807LL;
6276 unsigned long long int ull = 18446744073709551615ULL;
6277 /* Test constant expressions. */
6278 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6280 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6286 /* Test availability of runtime routines for shift and division. */
6287 long long int llmax = 9223372036854775807ll;
6288 unsigned long long int ullmax = 18446744073709551615ull;
6289 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6290 | (llmax / ll) | (llmax % ll)
6291 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6292 | (ullmax / ull) | (ullmax % ull));
6298 if ac_fn_c_try_link "$LINENO"; then :
6299 ac_cv_type_unsigned_long_long_int=yes
6301 ac_cv_type_unsigned_long_long_int=no
6303 rm -f core conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6307 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6308 if test $ac_cv_type_unsigned_long_long_int = yes; then
6310 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6316 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6317 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6319 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6322 test $ac_cv_type_unsigned_long_long_int = yes \
6323 && ac_type='unsigned long long int' \
6324 || ac_type='unsigned long int'
6326 cat >>confdefs.h <<_ACEOF
6327 #define uintmax_t $ac_type
6334 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6337 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6340 for ac_type in 'unsigned int' 'unsigned long int' \
6341 'unsigned long long int'; do
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 $ac_includes_default
6348 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6355 if ac_fn_c_try_compile "$LINENO"; then :
6357 cat >>confdefs.h <<_ACEOF
6358 #define uintptr_t $ac_type
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 test -z "$ac_type" && break
6382 # ---------------------
6383 # Warnings and checking
6384 # ---------------------
6386 # Check $CC warning features (if it's GCC).
6387 # We want to use -pedantic, but we don't want warnings about
6390 # * overlong strings
6391 # * C++11 narrowing conversions in { }
6392 # So, we only use -pedantic if we can disable those warnings.
6395 save_CFLAGS="$CFLAGS"
6396 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6397 # Do the check with the no- prefix removed since gcc silently
6398 # accepts any -Wno-* option on purpose
6399 case $real_option in
6400 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6401 *) option=$real_option ;;
6403 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6406 $as_echo_n "checking whether $CC supports $option... " >&6; }
6407 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6408 $as_echo_n "(cached) " >&6
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 eval "$as_acx_Woption=yes"
6425 eval "$as_acx_Woption=no"
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 eval ac_res=\$$as_acx_Woption
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6432 $as_echo "$ac_res" >&6; }
6433 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6434 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6437 CFLAGS="$save_CFLAGS"
6440 save_CFLAGS="$CFLAGS"
6441 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6442 # Do the check with the no- prefix removed since gcc silently
6443 # accepts any -Wno-* option on purpose
6444 case $real_option in
6445 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6446 *) option=$real_option ;;
6448 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6451 $as_echo_n "checking whether $CC supports $option... " >&6; }
6452 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6453 $as_echo_n "(cached) " >&6
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 eval "$as_acx_Woption=yes"
6470 eval "$as_acx_Woption=no"
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 eval ac_res=\$$as_acx_Woption
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6477 $as_echo "$ac_res" >&6; }
6478 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6479 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6482 CFLAGS="$save_CFLAGS"
6485 save_CFLAGS="$CFLAGS"
6486 for real_option in -Wmissing-format-attribute; do
6487 # Do the check with the no- prefix removed since gcc silently
6488 # accepts any -Wno-* option on purpose
6489 case $real_option in
6490 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6491 *) option=$real_option ;;
6493 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6496 $as_echo_n "checking whether $CC supports $option... " >&6; }
6497 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6498 $as_echo_n "(cached) " >&6
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513 eval "$as_acx_Woption=yes"
6515 eval "$as_acx_Woption=no"
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 eval ac_res=\$$as_acx_Woption
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6522 $as_echo "$ac_res" >&6; }
6523 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6524 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6527 CFLAGS="$save_CFLAGS"
6530 save_CFLAGS="$CFLAGS"
6531 for real_option in -Wold-style-definition -Wc++-compat; do
6532 # Do the check with the no- prefix removed since gcc silently
6533 # accepts any -Wno-* option on purpose
6534 case $real_option in
6535 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6536 *) option=$real_option ;;
6538 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6541 $as_echo_n "checking whether $CC supports $option... " >&6; }
6542 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6543 $as_echo_n "(cached) " >&6
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558 eval "$as_acx_Woption=yes"
6560 eval "$as_acx_Woption=no"
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 eval ac_res=\$$as_acx_Woption
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6567 $as_echo "$ac_res" >&6; }
6568 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6569 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6572 CFLAGS="$save_CFLAGS"
6574 # Do the check with the no- prefix removed from the warning options
6575 # since gcc silently accepts any -Wno-* option on purpose
6576 if test "$GCC" = yes; then :
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6578 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6579 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6582 save_CFLAGS="$CFLAGS"
6583 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6598 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 CFLAGS="$save_CFLAGS"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6604 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6605 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6606 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6611 # Check whether --enable-werror-always was given.
6612 if test "${enable_werror_always+set}" = set; then :
6613 enableval=$enable_werror_always;
6615 enable_werror_always=no
6618 if test $enable_werror_always = yes; then :
6619 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6624 # The above macros do nothing if the compiler is not GCC. However, the
6625 # Makefile has more goo to add other flags, so these variables are used
6626 # to enable warnings only for GCC.
6629 if test "x$GCC" = "xyes"; then
6630 warn_cflags='$(GCC_WARN_CFLAGS)'
6631 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6636 # Disable exceptions and RTTI if building with g++
6638 save_CFLAGS="$CFLAGS"
6639 for real_option in -fno-exceptions -fno-rtti; do
6640 # Do the check with the no- prefix removed since gcc silently
6641 # accepts any -Wno-* option on purpose
6642 case $real_option in
6643 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6644 *) option=$real_option ;;
6646 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6649 $as_echo_n "checking whether $CC supports $option... " >&6; }
6650 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6651 $as_echo_n "(cached) " >&6
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6665 if ac_fn_c_try_compile "$LINENO"; then :
6666 eval "$as_acx_Woption=yes"
6668 eval "$as_acx_Woption=no"
6670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 eval ac_res=\$$as_acx_Woption
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6675 $as_echo "$ac_res" >&6; }
6676 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6677 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6680 CFLAGS="$save_CFLAGS"
6683 # Enable expensive internal checks
6685 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6689 # Check whether --enable-checking was given.
6690 if test "${enable_checking+set}" = set; then :
6691 enableval=$enable_checking; ac_checking_flags="${enableval}"
6694 # Determine the default checks.
6695 if test x$is_release = x ; then
6696 ac_checking_flags=yes
6698 ac_checking_flags=release
6702 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6703 for check in release $ac_checking_flags
6706 # these set all the flags to specific states
6707 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6708 ac_fold_checking= ; ac_gc_checking=1 ;
6709 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6710 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6711 ac_tree_checking=1 ; ac_valgrind_checking= ;
6712 ac_types_checking=1 ;;
6713 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6714 ac_fold_checking= ; ac_gc_checking= ;
6715 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6716 ac_rtlflag_checking= ; ac_runtime_checking= ;
6717 ac_tree_checking= ; ac_valgrind_checking= ;
6718 ac_types_checking= ;;
6719 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6720 ac_fold_checking=1 ; ac_gc_checking=1 ;
6721 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6722 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723 ac_tree_checking=1 ; ac_valgrind_checking= ;
6724 ac_types_checking=1 ;;
6725 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking= ;
6727 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6728 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6729 ac_tree_checking= ; ac_valgrind_checking= ;
6730 ac_types_checking= ;;
6731 # these enable particular checks
6732 assert) ac_assert_checking=1 ;;
6733 df) ac_df_checking=1 ;;
6734 fold) ac_fold_checking=1 ;;
6735 gc) ac_gc_checking=1 ;;
6736 gcac) ac_gc_always_collect=1 ;;
6737 gimple) ac_gimple_checking=1 ;;
6738 misc) ac_checking=1 ;;
6739 rtl) ac_rtl_checking=1 ;;
6740 rtlflag) ac_rtlflag_checking=1 ;;
6741 runtime) ac_runtime_checking=1 ;;
6742 tree) ac_tree_checking=1 ;;
6743 types) ac_types_checking=1 ;;
6744 valgrind) ac_valgrind_checking=1 ;;
6745 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6751 if test x$ac_checking != x ; then
6753 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6755 nocommon_flag=-fno-common
6758 if test x$ac_df_checking != x ; then
6760 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6763 if test x$ac_assert_checking != x ; then
6765 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6768 if test x$ac_gimple_checking != x ; then
6770 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6774 if test x$ac_runtime_checking != x ; then
6776 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6779 if test x$ac_tree_checking != x ; then
6781 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6783 TREEBROWSER=tree-browser.o
6785 if test x$ac_types_checking != x ; then
6787 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6791 if test x$ac_rtl_checking != x ; then
6793 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6796 if test x$ac_rtlflag_checking != x ; then
6798 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6801 if test x$ac_gc_checking != x ; then
6803 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6806 if test x$ac_gc_always_collect != x ; then
6808 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6811 if test x$ac_fold_checking != x ; then
6813 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6816 valgrind_path_defines=
6819 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6820 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6828 if test x$ac_valgrind_checking != x ; then
6829 # It is certainly possible that there's valgrind but no valgrind.h.
6830 # GCC relies on making annotations so we must have both.
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6832 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <valgrind/memcheck.h>
6836 #ifndef VALGRIND_DISCARD
6837 #error VALGRIND_DISCARD not defined
6840 if ac_fn_c_try_cpp "$LINENO"; then :
6841 gcc_cv_header_valgrind_memcheck_h=yes
6843 gcc_cv_header_valgrind_memcheck_h=no
6845 rm -f conftest.err conftest.$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6847 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6849 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <memcheck.h>
6853 #ifndef VALGRIND_DISCARD
6854 #error VALGRIND_DISCARD not defined
6857 if ac_fn_c_try_cpp "$LINENO"; then :
6858 gcc_cv_header_memcheck_h=yes
6860 gcc_cv_header_memcheck_h=no
6862 rm -f conftest.err conftest.$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6864 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6866 # Prepare PATH_SEPARATOR.
6867 # The user is always right.
6868 if test "${PATH_SEPARATOR+set}" != set; then
6869 echo "#! /bin/sh" >conf$$.sh
6870 echo "exit 0" >>conf$$.sh
6872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6880 # Find out how to test for executable files. Don't use a zero-byte file,
6881 # as systems may use methods other than mode bits to determine executability.
6882 cat >conf$$.file <<_ASEOF
6886 chmod +x conf$$.file
6887 if test -x conf$$.file >/dev/null 2>&1; then
6888 ac_executable_p="test -x"
6890 ac_executable_p="test -f"
6894 # Extract the first word of "valgrind", so it can be a program name with args.
6895 set dummy valgrind; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6901 case "$valgrind_path" in
6903 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6907 for ac_dir in $PATH; do
6909 test -z "$ac_dir" && ac_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6912 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6913 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6923 valgrind_path="$ac_cv_path_valgrind_path"
6924 if test -n "$valgrind_path"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6926 $as_echo "$valgrind_path" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6932 if test "x$valgrind_path" = "x" \
6933 || (test $have_valgrind_h = no \
6934 && test $gcc_cv_header_memcheck_h = no \
6935 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6936 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6938 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6939 valgrind_command="$valgrind_path -q"
6941 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6943 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6945 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6948 if test $gcc_cv_header_memcheck_h = yes; then
6950 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6957 # Enable code coverage collection
6958 # Check whether --enable-coverage was given.
6959 if test "${enable_coverage+set}" = set; then :
6960 enableval=$enable_coverage; case "${enableval}" in
6962 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6965 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6968 # a.k.a. --disable-coverage
6972 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6981 # Check whether --enable-gather-detailed-mem-stats was given.
6982 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6983 enableval=$enable_gather_detailed_mem_stats;
6985 enable_gather_detailed_mem_stats=no
6988 if test x$enable_gather_detailed_mem_stats = xyes ; then
6990 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6994 # -------------------------------
6995 # Miscenalleous configure options
6996 # -------------------------------
6998 # See if we are building gcc with C++.
6999 # Check whether --enable-build-with-cxx was given.
7000 if test "${enable_build_with_cxx+set}" = set; then :
7001 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7003 ENABLE_BUILD_WITH_CXX=no
7007 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7009 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7015 # Check whether --with-stabs was given.
7016 if test "${with_stabs+set}" = set; then :
7017 withval=$with_stabs; stabs="$with_stabs"
7023 # Determine whether or not multilibs are enabled.
7024 # Check whether --enable-multilib was given.
7025 if test "${enable_multilib+set}" = set; then :
7026 enableval=$enable_multilib;
7033 # Enable __cxa_atexit for C++.
7034 # Check whether --enable-__cxa_atexit was given.
7035 if test "${enable___cxa_atexit+set}" = set; then :
7036 enableval=$enable___cxa_atexit;
7040 # Enable C extension for decimal float if target supports it.
7042 # Check whether --enable-decimal-float was given.
7043 if test "${enable_decimal_float+set}" = set; then :
7044 enableval=$enable_decimal_float;
7045 case $enable_decimal_float in
7046 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7047 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7048 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7054 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7055 i?86*-*-mingw* | x86_64*-*-mingw* | \
7057 enable_decimal_float=yes
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7061 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7062 enable_decimal_float=no
7069 # x86's use BID format instead of DPD
7070 case x$enable_decimal_float in
7073 i?86*-*-* | x86_64*-*-*)
7074 enable_decimal_float=bid
7077 enable_decimal_float=dpd
7080 default_decimal_float=$enable_decimal_float
7083 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7084 # dependency on libdecnumber.
7085 default_decimal_float=dpd
7092 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7094 cat >>confdefs.h <<_ACEOF
7095 #define ENABLE_DECIMAL_FLOAT $dfp
7099 # Use default_decimal_float for dependency.
7100 enable_decimal_float=$default_decimal_float
7102 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7104 cat >>confdefs.h <<_ACEOF
7105 #define ENABLE_DECIMAL_BID_FORMAT $bid
7109 # Enable C extension for fixed-point arithmetic.
7110 # Check whether --enable-fixed-point was given.
7111 if test "${enable_fixed_point+set}" = set; then :
7112 enableval=$enable_fixed_point;
7117 enable_fixed_point=yes
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7124 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7125 enable_fixed_point=no
7128 enable_fixed_point=yes
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7134 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7135 enable_fixed_point=no
7143 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7145 cat >>confdefs.h <<_ACEOF
7146 #define ENABLE_FIXED_POINT $fixedpoint
7151 # Pass with no value to take the default
7152 # Pass with a value to specify a thread package
7153 # Check whether --enable-threads was given.
7154 if test "${enable_threads+set}" = set; then :
7155 enableval=$enable_threads;
7161 # Check whether --enable-tls was given.
7162 if test "${enable_tls+set}" = set; then :
7163 enableval=$enable_tls;
7166 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7167 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7175 # Check whether --enable-objc-gc was given.
7176 if test "${enable_objc_gc+set}" = set; then :
7177 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7188 # Check whether --with-dwarf2 was given.
7189 if test "${with_dwarf2+set}" = set; then :
7190 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7196 # Check whether --enable-shared was given.
7197 if test "${enable_shared+set}" = set; then :
7198 enableval=$enable_shared;
7199 case $enable_shared in
7203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7204 for pkg in $enableval; do
7205 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7220 # Check whether --with-native-system-header-dir was given.
7221 if test "${with_native_system_header_dir+set}" = set; then :
7222 withval=$with_native_system_header_dir;
7223 case ${with_native_system_header_dir} in
7224 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7225 /* | [A-Za-z]:[\\/]*) ;;
7226 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7228 configured_native_system_header_dir="${withval}"
7231 configured_native_system_header_dir=
7236 # Check whether --with-build-sysroot was given.
7237 if test "${with_build_sysroot+set}" = set; then :
7238 withval=$with_build_sysroot; if test x"$withval" != x ; then
7239 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7242 SYSROOT_CFLAGS_FOR_TARGET=
7248 # Check whether --with-sysroot was given.
7249 if test "${with_sysroot+set}" = set; then :
7250 withval=$with_sysroot;
7251 case ${with_sysroot} in
7252 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7253 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7256 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7257 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7259 if test "x$prefix" = xNONE; then
7260 test_prefix=/usr/local
7264 if test "x$exec_prefix" = xNONE; then
7265 test_exec_prefix=$test_prefix
7267 test_exec_prefix=$exec_prefix
7269 case ${TARGET_SYSTEM_ROOT} in
7270 "${test_prefix}"|"${test_prefix}/"*|\
7271 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7272 '${prefix}'|'${prefix}/'*|\
7273 '${exec_prefix}'|'${exec_prefix}/'*)
7274 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7275 TARGET_SYSTEM_ROOT_DEFINE="$t"
7282 TARGET_SYSTEM_ROOT_DEFINE=
7283 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7292 # Check whether --with-specs was given.
7293 if test "${with_specs+set}" = set; then :
7294 withval=$with_specs; CONFIGURE_SPECS=$withval
7304 # Check whether --with-pkgversion was given.
7305 if test "${with_pkgversion+set}" = set; then :
7306 withval=$with_pkgversion; case "$withval" in
7307 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7309 *) PKGVERSION="($withval) " ;;
7320 # Check whether --with-bugurl was given.
7321 if test "${with_bugurl+set}" = set; then :
7322 withval=$with_bugurl; case "$withval" in
7323 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7326 *) BUGURL="$withval"
7330 BUGURL="http://gcc.gnu.org/bugs.html"
7340 REPORT_BUGS_TO="<$BUGURL>"
7341 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7348 # Sanity check enable_languages in case someone does not run the toplevel
7349 # configure # script.
7350 # Check whether --enable-languages was given.
7351 if test "${enable_languages+set}" = set; then :
7352 enableval=$enable_languages; case ,${enable_languages}, in
7354 # go safe -- we cannot be much sure without the toplevel
7356 # analysis of which target libs are present and usable
7360 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7365 enable_languages=c,${enable_languages}
7374 # Check whether --with-multilib-list was given.
7375 if test "${with_multilib_list+set}" = set; then :
7376 withval=$with_multilib_list; :
7378 with_multilib_list=default
7382 # -------------------------
7383 # Checks for other programs
7384 # -------------------------
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7387 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7389 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7390 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7391 $as_echo_n "(cached) " >&6
7393 cat >conftest.make <<\_ACEOF
7396 @echo '@@@%%%=$(MAKE)=@@@%%%'
7398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7399 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7401 eval ac_cv_prog_make_${ac_make}_set=yes;;
7403 eval ac_cv_prog_make_${ac_make}_set=no;;
7407 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414 SET_MAKE="MAKE=${MAKE-make}"
7418 # Find some useful tools
7419 for ac_prog in gawk mawk nawk awk
7421 # Extract the first word of "$ac_prog", so it can be a program name with args.
7422 set dummy $ac_prog; ac_word=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if test "${ac_cv_prog_AWK+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7428 if test -n "$AWK"; then
7429 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_prog_AWK="$ac_prog"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 if test -n "$AWK"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7451 $as_echo "$AWK" >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7458 test -n "$AWK" && break
7461 # We need awk to create options.c and options.h.
7462 # Bail out if it's missing.
7464 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7468 $as_echo_n "checking whether ln -s works... " >&6; }
7469 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7472 rm -f conftestdata_t
7473 echo >conftestdata_f
7474 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7476 gcc_cv_prog_LN_S="ln -s"
7478 if ln conftestdata_f conftestdata_t 2>/dev/null
7482 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7484 gcc_cv_prog_LN_S="cp -p"
7490 rm -f conftestdata_f conftestdata_t
7493 LN_S="$gcc_cv_prog_LN_S"
7494 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7496 $as_echo "yes" >&6; }
7498 if test "$gcc_cv_prog_LN_S" = "ln"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7500 $as_echo "no, using ln" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7503 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7508 $as_echo_n "checking whether ln works... " >&6; }
7509 if test "${acx_cv_prog_LN+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
7512 rm -f conftestdata_t
7513 echo >conftestdata_f
7514 if ln conftestdata_f conftestdata_t 2>/dev/null
7520 rm -f conftestdata_f conftestdata_t
7523 if test $acx_cv_prog_LN = no; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7526 $as_echo "no, using $LN" >&6; }
7528 LN="$acx_cv_prog_LN"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7530 $as_echo "yes" >&6; }
7533 if test -n "$ac_tool_prefix"; then
7534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$RANLIB"; then
7542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 RANLIB=$ac_cv_prog_RANLIB
7562 if test -n "$RANLIB"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7564 $as_echo "$RANLIB" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7572 if test -z "$ac_cv_prog_RANLIB"; then
7573 ac_ct_RANLIB=$RANLIB
7574 # Extract the first word of "ranlib", so it can be a program name with args.
7575 set dummy ranlib; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7581 if test -n "$ac_ct_RANLIB"; then
7582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_prog_ac_ct_RANLIB="ranlib"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7602 if test -n "$ac_ct_RANLIB"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7604 $as_echo "$ac_ct_RANLIB" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7610 if test "x$ac_ct_RANLIB" = x; then
7613 case $cross_compiling:$ac_tool_warned in
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7619 RANLIB=$ac_ct_RANLIB
7622 RANLIB="$ac_cv_prog_RANLIB"
7628 # Find a good install program. We prefer a C program (faster),
7629 # so one script is as good as another. But avoid the broken or
7630 # incompatible versions:
7631 # SysV /etc/install, /usr/sbin/install
7632 # SunOS /usr/etc/install
7633 # IRIX /sbin/install
7635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7637 # ./install, which can be erroneously created by make from ./install.sh.
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7639 $as_echo_n "checking for a BSD compatible install... " >&6; }
7640 if test -z "$INSTALL"; then
7641 if test "${ac_cv_path_install+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
7644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7645 for ac_dir in $PATH; do
7646 # Account for people who put trailing slashes in PATH elements.
7648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7650 # OSF1 and SCO ODT 3.0 have their own names for install.
7651 for ac_prog in ginstall scoinst install; do
7652 if test -f $ac_dir/$ac_prog; then
7653 if test $ac_prog = install &&
7654 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7655 # AIX install. It has an incompatible calling convention.
7656 # OSF/1 installbsd also uses dspmsg, but is usable.
7659 ac_cv_path_install="$ac_dir/$ac_prog -c"
7670 if test "${ac_cv_path_install+set}" = set; then
7671 INSTALL="$ac_cv_path_install"
7673 # As a last resort, use the slow shell script. We don't cache a
7674 # path for INSTALL within a source directory, because that will
7675 # break other packages using the cache if that directory is
7676 # removed, or if the path is relative.
7677 INSTALL="$ac_install_sh"
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7681 $as_echo "$INSTALL" >&6; }
7683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7684 # It thinks the first close brace ends the variable substitution.
7685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7690 # See if cmp has --ignore-initial.
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7692 $as_echo_n "checking for cmp's capabilities... " >&6; }
7693 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7698 gcc_cv_prog_cmp_skip=slowcompare
7699 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7700 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7703 gcc_cv_prog_cmp_skip=gnucompare
7706 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7707 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7708 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7711 gcc_cv_prog_cmp_skip=fastcompare
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7719 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7720 make_compare_target=$gcc_cv_prog_cmp_skip
7724 # See if we have the mktemp command.
7725 # Extract the first word of "mktemp", so it can be a program name with args.
7726 set dummy mktemp; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
7732 if test -n "$have_mktemp_command"; then
7733 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742 ac_cv_prog_have_mktemp_command="yes"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7753 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7754 if test -n "$have_mktemp_command"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7756 $as_echo "$have_mktemp_command" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 # See if makeinfo has been installed and is modern enough
7765 # that we can use it.
7767 # Extract the first word of "makeinfo", so it can be a program name with args.
7768 set dummy makeinfo; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 if test -n "$MAKEINFO"; then
7775 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_MAKEINFO="makeinfo"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 MAKEINFO=$ac_cv_prog_MAKEINFO
7795 if test -n "$MAKEINFO"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7797 $as_echo "$MAKEINFO" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7804 if test -n "$MAKEINFO"; then
7805 # Found it, now check the version.
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7807 $as_echo_n "checking for modern makeinfo... " >&6; }
7808 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7811 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7812 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7814 case $ac_prog_version in
7815 '') gcc_cv_prog_makeinfo_modern=no;;
7816 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7817 *) gcc_cv_prog_makeinfo_modern=no;;
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7822 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7824 gcc_cv_prog_makeinfo_modern=no
7826 if test $gcc_cv_prog_makeinfo_modern = no; then
7827 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7830 if test $gcc_cv_prog_makeinfo_modern = no; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7832 *** Makeinfo is missing or too old.
7833 *** Info documentation will not be built." >&5
7834 $as_echo "$as_me: WARNING:
7835 *** Makeinfo is missing or too old.
7836 *** Info documentation will not be built." >&2;}
7843 # Is pod2man recent enough to regenerate manpages?
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7845 $as_echo_n "checking for recent Pod::Man... " >&6; }
7846 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7848 $as_echo "yes" >&6; }
7849 GENERATED_MANPAGES=generated-manpages
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7857 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7862 # Extract the first word of "$ac_prog", so it can be a program name with args.
7863 set dummy $ac_prog; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if test "${ac_cv_prog_FLEX+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7869 if test -n "$FLEX"; then
7870 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_FLEX="$ac_prog"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 FLEX=$ac_cv_prog_FLEX
7890 if test -n "$FLEX"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7892 $as_echo "$FLEX" >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7899 test -n "$FLEX" && break
7901 test -n "$FLEX" || FLEX="$MISSING flex"
7905 for ac_prog in bison
7907 # Extract the first word of "$ac_prog", so it can be a program name with args.
7908 set dummy $ac_prog; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_BISON+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7914 if test -n "$BISON"; then
7915 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 ac_cv_prog_BISON="$ac_prog"
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 BISON=$ac_cv_prog_BISON
7935 if test -n "$BISON"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7937 $as_echo "$BISON" >&6; }
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7944 test -n "$BISON" && break
7946 test -n "$BISON" || BISON="$MISSING bison"
7949 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7950 # check for build == host before using them.
7953 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7954 && test -d ../binutils ; then
7955 NM='${objdir}/../binutils/nm-new'
7957 # Extract the first word of "nm", so it can be a program name with args.
7958 set dummy nm; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if test "${ac_cv_prog_NM+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7964 if test -n "$NM"; then
7965 ac_cv_prog_NM="$NM" # Let the user override the test.
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7986 if test -n "$NM"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7988 $as_echo "$NM" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7998 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7999 && test -d ../binutils ; then
8000 AR='${objdir}/../binutils/ar'
8002 # Extract the first word of "ar", so it can be a program name with args.
8003 set dummy ar; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if test "${ac_cv_prog_AR+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8009 if test -n "$AR"; then
8010 ac_cv_prog_AR="$AR" # Let the user override the test.
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8031 if test -n "$AR"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8033 $as_echo "$AR" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8043 # --------------------
8044 # Checks for C headers
8045 # --------------------
8047 # Need to reject headers which give warnings, so that the -Werror bootstrap
8048 # works later. *sigh* This needs to come before all header checks.
8050 ac_c_preproc_warn_flag=yes
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8053 $as_echo_n "checking for ANSI C header files... " >&6; }
8054 if test "${ac_cv_header_stdc+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073 ac_cv_header_stdc=yes
8075 ac_cv_header_stdc=no
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 if test $ac_cv_header_stdc = yes; then
8080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8087 $EGREP "memchr" >/dev/null 2>&1; then :
8090 ac_cv_header_stdc=no
8096 if test $ac_cv_header_stdc = yes; then
8097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104 $EGREP "free" >/dev/null 2>&1; then :
8107 ac_cv_header_stdc=no
8113 if test $ac_cv_header_stdc = yes; then
8114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8115 if test "$cross_compiling" = yes; then :
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8122 #if ((' ' & 0x0FF) == 0x020)
8123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8126 # define ISLOWER(c) \
8127 (('a' <= (c) && (c) <= 'i') \
8128 || ('j' <= (c) && (c) <= 'r') \
8129 || ('s' <= (c) && (c) <= 'z'))
8130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8138 for (i = 0; i < 256; i++)
8139 if (XOR (islower (i), ISLOWER (i))
8140 || toupper (i) != TOUPPER (i))
8145 if ac_fn_c_try_run "$LINENO"; then :
8148 ac_cv_header_stdc=no
8150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8151 conftest.$ac_objext conftest.beam conftest.$ac_ext
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8157 $as_echo "$ac_cv_header_stdc" >&6; }
8158 if test $ac_cv_header_stdc = yes; then
8160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8165 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8166 if test "${ac_cv_header_time+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 #include <sys/types.h>
8172 #include <sys/time.h>
8178 if ((struct tm *) 0)
8184 if ac_fn_c_try_compile "$LINENO"; then :
8185 ac_cv_header_time=yes
8187 ac_cv_header_time=no
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8192 $as_echo "$ac_cv_header_time" >&6; }
8193 if test $ac_cv_header_time = yes; then
8195 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8200 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8201 if test "${gcc_cv_header_string+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8207 #include <strings.h>
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217 gcc_cv_header_string=yes
8219 gcc_cv_header_string=no
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8224 $as_echo "$gcc_cv_header_string" >&6; }
8225 if test $gcc_cv_header_string = yes; then
8227 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8232 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8233 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 #include <sys/types.h>
8239 #include <sys/wait.h>
8241 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8244 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8252 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8257 if ac_fn_c_try_compile "$LINENO"; then :
8258 ac_cv_header_sys_wait_h=yes
8260 ac_cv_header_sys_wait_h=no
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8265 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8266 if test $ac_cv_header_sys_wait_h = yes; then
8268 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8272 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8273 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8274 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8275 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8278 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8279 eval as_val=\$$as_ac_Header
8280 if test "x$as_val" = x""yes; then :
8281 cat >>confdefs.h <<_ACEOF
8282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8289 # Check for thread headers.
8290 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8291 if test "x$ac_cv_header_thread_h" = x""yes; then :
8297 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8298 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8305 # These tests can't be done till we know if we have limits.h.
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8307 $as_echo_n "checking for CHAR_BIT... " >&6; }
8308 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313 #ifdef HAVE_LIMITS_H
8320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8321 $EGREP "found" >/dev/null 2>&1; then :
8322 gcc_cv_decl_char_bit=yes
8324 gcc_cv_decl_char_bit=no
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8331 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8332 if test $gcc_cv_decl_char_bit = no; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8334 $as_echo_n "checking number of bits in a byte... " >&6; }
8335 if test "${gcc_cv_c_nbby+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8340 while test $i -lt 65; do
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8348 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8349 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8355 if ac_fn_c_try_compile "$LINENO"; then :
8356 gcc_cv_c_nbby=$i; break
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8365 $as_echo "$gcc_cv_c_nbby" >&6; }
8366 if test $gcc_cv_c_nbby = failed; then
8367 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8370 cat >>confdefs.h <<_ACEOF
8371 #define CHAR_BIT $gcc_cv_c_nbby
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8378 if test "${ac_cv_c_bigendian+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8381 ac_cv_c_bigendian=unknown
8382 # See if we're dealing with a universal compiler.
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 #ifndef __APPLE_CC__
8386 not a universal capable compiler
8391 if ac_fn_c_try_compile "$LINENO"; then :
8393 # Check for potential -arch flags. It is not universal unless
8394 # there are at least two -arch flags with different values.
8397 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8398 if test -n "$ac_prev"; then
8400 i?86 | x86_64 | ppc | ppc64)
8401 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8404 ac_cv_c_bigendian=universal
8410 elif test "x$ac_word" = "x-arch"; then
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 if test $ac_cv_c_bigendian = unknown; then
8417 # See if sys/param.h defines the BYTE_ORDER macro.
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 #include <sys/types.h>
8421 #include <sys/param.h>
8426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8427 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437 # It does; now see whether it defined to BIG_ENDIAN or not.
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <sys/types.h>
8441 #include <sys/param.h>
8446 #if BYTE_ORDER != BIG_ENDIAN
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455 ac_cv_c_bigendian=yes
8457 ac_cv_c_bigendian=no
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 if test $ac_cv_c_bigendian = unknown; then
8464 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8480 if ac_fn_c_try_compile "$LINENO"; then :
8481 # It does; now see whether it defined to _BIG_ENDIAN or not.
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 ac_cv_c_bigendian=yes
8500 ac_cv_c_bigendian=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 if test $ac_cv_c_bigendian = unknown; then
8507 # Compile a test program.
8508 if test "$cross_compiling" = yes; then :
8509 # Try to guess by grepping values from an object file.
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 short int ascii_mm[] =
8513 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8514 short int ascii_ii[] =
8515 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8516 int use_ascii (int i) {
8517 return ascii_mm[i] + ascii_ii[i];
8519 short int ebcdic_ii[] =
8520 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8521 short int ebcdic_mm[] =
8522 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8523 int use_ebcdic (int i) {
8524 return ebcdic_mm[i] + ebcdic_ii[i];
8531 return use_ascii (foo) == use_ebcdic (foo);
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8538 ac_cv_c_bigendian=yes
8540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8541 if test "$ac_cv_c_bigendian" = unknown; then
8542 ac_cv_c_bigendian=no
8544 # finding both strings is unlikely to happen, but who knows?
8545 ac_cv_c_bigendian=unknown
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 $ac_includes_default
8558 /* Are we little or big endian? From Harbison&Steele. */
8562 char c[sizeof (long int)];
8565 return u.c[sizeof (long int) - 1] == 1;
8571 if ac_fn_c_try_run "$LINENO"; then :
8572 ac_cv_c_bigendian=no
8574 ac_cv_c_bigendian=yes
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577 conftest.$ac_objext conftest.beam conftest.$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8583 $as_echo "$ac_cv_c_bigendian" >&6; }
8584 case $ac_cv_c_bigendian in #(
8586 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8596 as_fn_error "unknown endianness
8597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8601 # ----------------------
8602 # Checks for C++ headers
8603 # ----------------------
8606 ac_cpp='$CXXCPP $CPPFLAGS'
8607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8611 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8612 if test -z "$CXXCPP"; then
8613 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8616 # Double quotes because CXXCPP needs to be expanded
8617 for CXXCPP in "$CXX -E" "/lib/cpp"
8620 for ac_cxx_preproc_warn_flag in '' yes
8622 # Use a header file that comes with gcc, so configuring glibc
8623 # with a fresh cross-compiler works.
8624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8625 # <limits.h> exists even on freestanding compilers.
8626 # On the NeXT, cc -E runs the code through the compiler's parser,
8627 # not just through cpp. "Syntax error" is here to catch this case.
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8631 # include <limits.h>
8633 # include <assert.h>
8637 if ac_fn_cxx_try_cpp "$LINENO"; then :
8640 # Broken: fails on valid input.
8643 rm -f conftest.err conftest.$ac_ext
8645 # OK, works on sane cases. Now check whether nonexistent headers
8646 # can be detected and how.
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 #include <ac_nonexistent.h>
8651 if ac_fn_cxx_try_cpp "$LINENO"; then :
8652 # Broken: success on invalid input.
8655 # Passes both tests.
8659 rm -f conftest.err conftest.$ac_ext
8662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8663 rm -f conftest.err conftest.$ac_ext
8664 if $ac_preproc_ok; then :
8669 ac_cv_prog_CXXCPP=$CXXCPP
8672 CXXCPP=$ac_cv_prog_CXXCPP
8674 ac_cv_prog_CXXCPP=$CXXCPP
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8677 $as_echo "$CXXCPP" >&6; }
8679 for ac_cxx_preproc_warn_flag in '' yes
8681 # Use a header file that comes with gcc, so configuring glibc
8682 # with a fresh cross-compiler works.
8683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8684 # <limits.h> exists even on freestanding compilers.
8685 # On the NeXT, cc -E runs the code through the compiler's parser,
8686 # not just through cpp. "Syntax error" is here to catch this case.
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8690 # include <limits.h>
8692 # include <assert.h>
8696 if ac_fn_cxx_try_cpp "$LINENO"; then :
8699 # Broken: fails on valid input.
8702 rm -f conftest.err conftest.$ac_ext
8704 # OK, works on sane cases. Now check whether nonexistent headers
8705 # can be detected and how.
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <ac_nonexistent.h>
8710 if ac_fn_cxx_try_cpp "$LINENO"; then :
8711 # Broken: success on invalid input.
8714 # Passes both tests.
8718 rm -f conftest.err conftest.$ac_ext
8721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8722 rm -f conftest.err conftest.$ac_ext
8723 if $ac_preproc_ok; then :
8726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8729 See \`config.log' for more details." >&5
8730 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8731 See \`config.log' for more details." >&2;}; }
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8742 ac_cpp='$CXXCPP $CPPFLAGS'
8743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8750 for ac_header in unordered_map
8752 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8753 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8754 cat >>confdefs.h <<_ACEOF
8755 #define HAVE_UNORDERED_MAP 1
8761 for ac_header in tr1/unordered_map
8763 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8764 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8765 cat >>confdefs.h <<_ACEOF
8766 #define HAVE_TR1_UNORDERED_MAP 1
8772 for ac_header in ext/hash_map
8774 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8775 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_EXT_HASH_MAP 1
8785 ac_cpp='$CPP $CPPFLAGS'
8786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8796 # These libraries may be used by collect2.
8797 # We may need a special search path to get them linked.
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8799 $as_echo_n "checking for collect2 libraries... " >&6; }
8800 if test "${gcc_cv_collect2_libs+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8804 for libs in '' -lld -lmld \
8805 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8806 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8812 /* Override any GCC internal prototype to avoid an error.
8813 Use char because int might match the return type of a GCC
8814 builtin and then its argument prototype would still apply. */
8827 if ac_fn_c_try_link "$LINENO"; then :
8828 gcc_cv_collect2_libs="$libs"; break
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8834 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8837 $as_echo "$gcc_cv_collect2_libs" >&6; }
8838 case $gcc_cv_collect2_libs in
8840 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8844 # When building Ada code on Alpha, we need exc_resume which is usually in
8845 # -lexc. So test for it.
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8849 $as_echo_n "checking for library containing exc_resume... " >&6; }
8850 if test "${ac_cv_search_exc_resume+set}" = set; then :
8851 $as_echo_n "(cached) " >&6
8853 ac_func_search_save_LIBS=$LIBS
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8857 /* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8867 return exc_resume ();
8872 for ac_lib in '' exc; do
8873 if test -z "$ac_lib"; then
8874 ac_res="none required"
8877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8879 if ac_fn_c_try_link "$LINENO"; then :
8880 ac_cv_search_exc_resume=$ac_res
8882 rm -f core conftest.err conftest.$ac_objext \
8884 if test "${ac_cv_search_exc_resume+set}" = set; then :
8888 if test "${ac_cv_search_exc_resume+set}" = set; then :
8891 ac_cv_search_exc_resume=no
8894 LIBS=$ac_func_search_save_LIBS
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8897 $as_echo "$ac_cv_search_exc_resume" >&6; }
8898 ac_res=$ac_cv_search_exc_resume
8899 if test "$ac_res" != no; then :
8900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8908 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8912 $as_echo_n "checking for library containing kstat_open... " >&6; }
8913 if test "${ac_cv_search_kstat_open+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
8916 ac_func_search_save_LIBS=$LIBS
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8920 /* Override any GCC internal prototype to avoid an error.
8921 Use char because int might match the return type of a GCC
8922 builtin and then its argument prototype would still apply. */
8930 return kstat_open ();
8935 for ac_lib in '' kstat; do
8936 if test -z "$ac_lib"; then
8937 ac_res="none required"
8940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 ac_cv_search_kstat_open=$ac_res
8945 rm -f core conftest.err conftest.$ac_objext \
8947 if test "${ac_cv_search_kstat_open+set}" = set; then :
8951 if test "${ac_cv_search_kstat_open+set}" = set; then :
8954 ac_cv_search_kstat_open=no
8957 LIBS=$ac_func_search_save_LIBS
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8960 $as_echo "$ac_cv_search_kstat_open" >&6; }
8961 ac_res=$ac_cv_search_kstat_open
8962 if test "$ac_res" != no; then :
8963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8967 EXTRA_GCC_LIBS="$LIBS"
8971 # Some systems put ldexp and frexp in libm instead of libc; assume
8972 # they're both in the same place. jcf-dump needs them.
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8976 $as_echo_n "checking for library containing ldexp... " >&6; }
8977 if test "${ac_cv_search_ldexp+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8980 ac_func_search_save_LIBS=$LIBS
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8999 for ac_lib in '' m; do
9000 if test -z "$ac_lib"; then
9001 ac_res="none required"
9004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9006 if ac_fn_c_try_link "$LINENO"; then :
9007 ac_cv_search_ldexp=$ac_res
9009 rm -f core conftest.err conftest.$ac_objext \
9011 if test "${ac_cv_search_ldexp+set}" = set; then :
9015 if test "${ac_cv_search_ldexp+set}" = set; then :
9018 ac_cv_search_ldexp=no
9021 LIBS=$ac_func_search_save_LIBS
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9024 $as_echo "$ac_cv_search_ldexp" >&6; }
9025 ac_res=$ac_cv_search_ldexp
9026 if test "$ac_res" != no; then :
9027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9035 # Use <inttypes.h> only if it exists,
9036 # doesn't clash with <sys/types.h>, and declares intmax_t.
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9038 $as_echo_n "checking for inttypes.h... " >&6; }
9039 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #include <sys/types.h>
9045 #include <inttypes.h>
9054 if ac_fn_c_try_compile "$LINENO"; then :
9055 gcc_cv_header_inttypes_h=yes
9057 gcc_cv_header_inttypes_h=no
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9063 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9064 if test $gcc_cv_header_inttypes_h = yes; then
9066 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9072 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9073 sysconf strsignal getrusage nl_langinfo \
9074 gettimeofday mbstowcs wcswidth mmap setlocale \
9075 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
9077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9079 eval as_val=\$$as_ac_var
9080 if test "x$as_val" = x""yes; then :
9081 cat >>confdefs.h <<_ACEOF
9082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9089 if test x$ac_cv_func_mbstowcs = xyes; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9091 $as_echo_n "checking whether mbstowcs works... " >&6; }
9092 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9095 if test "$cross_compiling" = yes; then :
9096 gcc_cv_func_mbstowcs_works=yes
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9107 if ac_fn_c_try_run "$LINENO"; then :
9108 gcc_cv_func_mbstowcs_works=yes
9110 gcc_cv_func_mbstowcs_works=no
9112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9113 conftest.$ac_objext conftest.beam conftest.$ac_ext
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9118 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9119 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9121 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9126 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9127 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9131 cat >>confdefs.h <<_ACEOF
9137 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9138 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9142 cat >>confdefs.h <<_ACEOF
9143 #define caddr_t char *
9150 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9151 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9152 gcc_header_sys_mman_h=yes
9154 gcc_header_sys_mman_h=no
9157 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9158 if test "x$ac_cv_func_mmap" = x""yes; then :
9164 if test "$gcc_header_sys_mman_h" != yes \
9165 || test "$gcc_func_mmap" != yes; then
9166 gcc_cv_func_mmap_file=no
9167 gcc_cv_func_mmap_dev_zero=no
9168 gcc_cv_func_mmap_anon=no
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9171 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9172 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9175 # Add a system to this blacklist if
9176 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9177 # memory area containing the same data that you'd get if you applied
9178 # read() to the same fd. The only system known to have a problem here
9179 # is VMS, where text files have record structure.
9182 gcc_cv_func_mmap_file=no ;;
9184 gcc_cv_func_mmap_file=yes;;
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9188 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9190 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9191 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9194 # Add a system to this blacklist if it has mmap() but /dev/zero
9195 # does not exist, or if mmapping /dev/zero does not give anonymous
9196 # zeroed pages with both the following properties:
9197 # 1. If you map N consecutive pages in with one call, and then
9198 # unmap any subset of those pages, the pages that were not
9199 # explicitly unmapped remain accessible.
9200 # 2. If you map two adjacent blocks of memory and then unmap them
9201 # both at once, they must both go away.
9202 # Systems known to be in this category are Windows (all variants),
9205 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9206 gcc_cv_func_mmap_dev_zero=no ;;
9208 gcc_cv_func_mmap_dev_zero=yes;;
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9212 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9214 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9216 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9217 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #include <sys/types.h>
9223 #include <sys/mman.h>
9226 #ifndef MAP_ANONYMOUS
9227 #define MAP_ANONYMOUS MAP_ANON
9233 int n = MAP_ANONYMOUS;
9238 if ac_fn_c_try_compile "$LINENO"; then :
9239 gcc_cv_decl_map_anon=yes
9241 gcc_cv_decl_map_anon=no
9243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9246 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9248 if test $gcc_cv_decl_map_anon = no; then
9249 gcc_cv_func_mmap_anon=no
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9252 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9253 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9256 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9257 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9258 # doesn't give anonymous zeroed pages with the same properties listed
9259 # above for use of /dev/zero.
9260 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9262 vms* | cygwin* | pe | mingw* | sco* | udk* )
9263 gcc_cv_func_mmap_anon=no ;;
9265 gcc_cv_func_mmap_anon=yes;;
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9269 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9273 if test $gcc_cv_func_mmap_file = yes; then
9275 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9278 if test $gcc_cv_func_mmap_dev_zero = yes; then
9280 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9283 if test $gcc_cv_func_mmap_anon = yes; then
9285 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9292 # Under VMS, vfork works very differently than on Unix. The standard test
9293 # won't work, and it isn't easily adaptable. It makes more sense to
9295 ac_cv_func_vfork_works=yes
9298 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9299 if test "x$ac_cv_type_pid_t" = x""yes; then :
9303 cat >>confdefs.h <<_ACEOF
9309 for ac_header in vfork.h
9311 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9312 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9313 cat >>confdefs.h <<_ACEOF
9314 #define HAVE_VFORK_H 1
9320 for ac_func in fork vfork
9322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9324 eval as_val=\$$as_ac_var
9325 if test "x$as_val" = x""yes; then :
9326 cat >>confdefs.h <<_ACEOF
9327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9333 if test "x$ac_cv_func_fork" = xyes; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9335 $as_echo_n "checking for working fork... " >&6; }
9336 if test "${ac_cv_func_fork_works+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9339 if test "$cross_compiling" = yes; then :
9340 ac_cv_func_fork_works=cross
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 $ac_includes_default
9349 /* By Ruediger Kuhlmann. */
9356 if ac_fn_c_try_run "$LINENO"; then :
9357 ac_cv_func_fork_works=yes
9359 ac_cv_func_fork_works=no
9361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9362 conftest.$ac_objext conftest.beam conftest.$ac_ext
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9367 $as_echo "$ac_cv_func_fork_works" >&6; }
9370 ac_cv_func_fork_works=$ac_cv_func_fork
9372 if test "x$ac_cv_func_fork_works" = xcross; then
9374 *-*-amigaos* | *-*-msdosdjgpp*)
9375 # Override, as these systems have only a dummy fork() stub
9376 ac_cv_func_fork_works=no
9379 ac_cv_func_fork_works=yes
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9383 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9385 ac_cv_func_vfork_works=$ac_cv_func_vfork
9386 if test "x$ac_cv_func_vfork" = xyes; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9388 $as_echo_n "checking for working vfork... " >&6; }
9389 if test "${ac_cv_func_vfork_works+set}" = set; then :
9390 $as_echo_n "(cached) " >&6
9392 if test "$cross_compiling" = yes; then :
9393 ac_cv_func_vfork_works=cross
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 /* Thanks to Paul Eggert for this test. */
9398 $ac_includes_default
9399 #include <sys/wait.h>
9403 /* On some sparc systems, changes by the child to local and incoming
9404 argument registers are propagated back to the parent. The compiler
9405 is told about this with #include <vfork.h>, but some compilers
9406 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9407 static variable whose address is put into a register that is
9408 clobbered by the vfork. */
9411 sparc_address_test (int arg)
9413 sparc_address_test (arg) int arg;
9434 pid_t parent = getpid ();
9437 sparc_address_test (0);
9442 /* Here is another test for sparc vfork register problems. This
9443 test uses lots of local variables, at least as many local
9444 variables as main has allocated so far including compiler
9445 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9446 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9447 reuse the register of parent for one of the local variables,
9448 since it will think that parent can't possibly be used any more
9449 in this routine. Assigning to the local variable will thus
9450 munge parent in the parent process. */
9452 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9453 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9454 /* Convince the compiler that p..p7 are live; otherwise, it might
9455 use the same hardware register for all 8 local variables. */
9456 if (p != p1 || p != p2 || p != p3 || p != p4
9457 || p != p5 || p != p6 || p != p7)
9460 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9461 from child file descriptors. If the child closes a descriptor
9462 before it execs or exits, this munges the parent's descriptor
9463 as well. Test for this by closing stdout in the child. */
9464 _exit(close(fileno(stdout)) != 0);
9469 while (wait(&status) != child)
9472 /* Was there some problem with vforking? */
9475 /* Did the child fail? (This shouldn't happen.) */
9478 /* Did the vfork/compiler bug occur? */
9479 || parent != getpid()
9481 /* Did the file descriptor bug occur? */
9482 || fstat(fileno(stdout), &st) != 0
9487 if ac_fn_c_try_run "$LINENO"; then :
9488 ac_cv_func_vfork_works=yes
9490 ac_cv_func_vfork_works=no
9492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9493 conftest.$ac_objext conftest.beam conftest.$ac_ext
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9498 $as_echo "$ac_cv_func_vfork_works" >&6; }
9501 if test "x$ac_cv_func_fork_works" = xcross; then
9502 ac_cv_func_vfork_works=$ac_cv_func_vfork
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9504 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9507 if test "x$ac_cv_func_vfork_works" = xyes; then
9509 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9513 $as_echo "#define vfork fork" >>confdefs.h
9516 if test "x$ac_cv_func_fork_works" = xyes; then
9518 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9523 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9524 # iconv() prototype.
9526 if test "X$prefix" = "XNONE"; then
9527 acl_final_prefix="$ac_default_prefix"
9529 acl_final_prefix="$prefix"
9531 if test "X$exec_prefix" = "XNONE"; then
9532 acl_final_exec_prefix='${prefix}'
9534 acl_final_exec_prefix="$exec_prefix"
9536 acl_save_prefix="$prefix"
9537 prefix="$acl_final_prefix"
9538 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9539 prefix="$acl_save_prefix"
9542 # Check whether --with-gnu-ld was given.
9543 if test "${with_gnu_ld+set}" = set; then :
9544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9549 # Prepare PATH_SEPARATOR.
9550 # The user is always right.
9551 if test "${PATH_SEPARATOR+set}" != set; then
9552 echo "#! /bin/sh" >conf$$.sh
9553 echo "exit 0" >>conf$$.sh
9555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9563 if test "$GCC" = yes; then
9564 # Check if gcc -print-prog-name=ld gives a path.
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9566 $as_echo_n "checking for ld used by GCC... " >&6; }
9569 # gcc leaves a trailing carriage return which upsets mingw
9570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9575 # Accept absolute paths.
9576 [\\/]* | [A-Za-z]:[\\/]*)
9577 re_direlt='/[^/][^/]*/\.\./'
9578 # Canonicalize the path of ld
9579 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9580 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9581 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9583 test -z "$LD" && LD="$ac_prog"
9586 # If it fails, then pretend we aren't using GCC.
9590 # If it is relative, then search for the first ld in PATH.
9594 elif test "$with_gnu_ld" = yes; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9596 $as_echo_n "checking for GNU ld... " >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9599 $as_echo_n "checking for non-GNU ld... " >&6; }
9601 if test "${acl_cv_path_LD+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9604 if test -z "$LD"; then
9605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9606 for ac_dir in $PATH; do
9607 test -z "$ac_dir" && ac_dir=.
9608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9609 acl_cv_path_LD="$ac_dir/$ac_prog"
9610 # Check to see if the program is GNU ld. I'd rather use --version,
9611 # but apparently some GNU ld's only accept -v.
9612 # Break only if it was the GNU/non-GNU ld that we prefer.
9613 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9614 test "$with_gnu_ld" != no && break
9616 test "$with_gnu_ld" != yes && break
9622 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9626 LD="$acl_cv_path_LD"
9627 if test -n "$LD"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9629 $as_echo "$LD" >&6; }
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9634 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9636 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9637 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9640 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9641 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9642 acl_cv_prog_gnu_ld=yes
9644 acl_cv_prog_gnu_ld=no
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9648 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9649 with_gnu_ld=$acl_cv_prog_gnu_ld
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9654 $as_echo_n "checking for shared library run path origin... " >&6; }
9655 if test "${acl_cv_rpath+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9659 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9660 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9667 $as_echo "$acl_cv_rpath" >&6; }
9669 libext="$acl_cv_libext"
9670 shlibext="$acl_cv_shlibext"
9671 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9672 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9673 hardcode_direct="$acl_cv_hardcode_direct"
9674 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9675 # Check whether --enable-rpath was given.
9676 if test "${enable_rpath+set}" = set; then :
9677 enableval=$enable_rpath; :
9691 acl_save_prefix="$prefix"
9692 prefix="$acl_final_prefix"
9693 acl_save_exec_prefix="$exec_prefix"
9694 exec_prefix="$acl_final_exec_prefix"
9696 eval additional_includedir=\"$includedir\"
9697 eval additional_libdir=\"$libdir\"
9699 exec_prefix="$acl_save_exec_prefix"
9700 prefix="$acl_save_prefix"
9703 # Check whether --with-libiconv-prefix was given.
9704 if test "${with_libiconv_prefix+set}" = set; then :
9705 withval=$with_libiconv_prefix;
9706 if test "X$withval" = "Xno"; then
9709 if test "X$withval" = "X"; then
9711 acl_save_prefix="$prefix"
9712 prefix="$acl_final_prefix"
9713 acl_save_exec_prefix="$exec_prefix"
9714 exec_prefix="$acl_final_exec_prefix"
9716 eval additional_includedir=\"$includedir\"
9717 eval additional_libdir=\"$libdir\"
9719 exec_prefix="$acl_save_exec_prefix"
9720 prefix="$acl_save_prefix"
9723 additional_includedir="$withval/include"
9724 additional_libdir="$withval/lib"
9735 names_already_handled=
9736 names_next_round='iconv '
9737 while test -n "$names_next_round"; do
9738 names_this_round="$names_next_round"
9740 for name in $names_this_round; do
9742 for n in $names_already_handled; do
9743 if test "$n" = "$name"; then
9748 if test -z "$already_handled"; then
9749 names_already_handled="$names_already_handled $name"
9750 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9751 eval value=\"\$HAVE_LIB$uppername\"
9752 if test -n "$value"; then
9753 if test "$value" = yes; then
9754 eval value=\"\$LIB$uppername\"
9755 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9756 eval value=\"\$LTLIB$uppername\"
9757 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9766 if test $use_additional = yes; then
9767 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9768 found_dir="$additional_libdir"
9769 found_so="$additional_libdir/lib$name.$shlibext"
9770 if test -f "$additional_libdir/lib$name.la"; then
9771 found_la="$additional_libdir/lib$name.la"
9774 if test -f "$additional_libdir/lib$name.$libext"; then
9775 found_dir="$additional_libdir"
9776 found_a="$additional_libdir/lib$name.$libext"
9777 if test -f "$additional_libdir/lib$name.la"; then
9778 found_la="$additional_libdir/lib$name.la"
9783 if test "X$found_dir" = "X"; then
9784 for x in $LDFLAGS $LTLIBICONV; do
9786 acl_save_prefix="$prefix"
9787 prefix="$acl_final_prefix"
9788 acl_save_exec_prefix="$exec_prefix"
9789 exec_prefix="$acl_final_exec_prefix"
9791 exec_prefix="$acl_save_exec_prefix"
9792 prefix="$acl_save_prefix"
9796 dir=`echo "X$x" | sed -e 's/^X-L//'`
9797 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9799 found_so="$dir/lib$name.$shlibext"
9800 if test -f "$dir/lib$name.la"; then
9801 found_la="$dir/lib$name.la"
9804 if test -f "$dir/lib$name.$libext"; then
9806 found_a="$dir/lib$name.$libext"
9807 if test -f "$dir/lib$name.la"; then
9808 found_la="$dir/lib$name.la"
9814 if test "X$found_dir" != "X"; then
9819 if test "X$found_dir" != "X"; then
9820 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9821 if test "X$found_so" != "X"; then
9822 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9826 for x in $ltrpathdirs; do
9827 if test "X$x" = "X$found_dir"; then
9832 if test -z "$haveit"; then
9833 ltrpathdirs="$ltrpathdirs $found_dir"
9835 if test "$hardcode_direct" = yes; then
9836 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9838 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9839 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9841 for x in $rpathdirs; do
9842 if test "X$x" = "X$found_dir"; then
9847 if test -z "$haveit"; then
9848 rpathdirs="$rpathdirs $found_dir"
9852 for x in $LDFLAGS $LIBICONV; do
9854 acl_save_prefix="$prefix"
9855 prefix="$acl_final_prefix"
9856 acl_save_exec_prefix="$exec_prefix"
9857 exec_prefix="$acl_final_exec_prefix"
9859 exec_prefix="$acl_save_exec_prefix"
9860 prefix="$acl_save_prefix"
9862 if test "X$x" = "X-L$found_dir"; then
9867 if test -z "$haveit"; then
9868 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9870 if test "$hardcode_minus_L" != no; then
9871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9873 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9879 if test "X$found_a" != "X"; then
9880 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9882 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9885 additional_includedir=
9886 case "$found_dir" in
9888 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9889 additional_includedir="$basedir/include"
9892 if test "X$additional_includedir" != "X"; then
9893 if test "X$additional_includedir" != "X/usr/include"; then
9895 if test "X$additional_includedir" = "X/usr/local/include"; then
9896 if test -n "$GCC"; then
9898 linux*) haveit=yes;;
9902 if test -z "$haveit"; then
9903 for x in $CPPFLAGS $INCICONV; do
9905 acl_save_prefix="$prefix"
9906 prefix="$acl_final_prefix"
9907 acl_save_exec_prefix="$exec_prefix"
9908 exec_prefix="$acl_final_exec_prefix"
9910 exec_prefix="$acl_save_exec_prefix"
9911 prefix="$acl_save_prefix"
9913 if test "X$x" = "X-I$additional_includedir"; then
9918 if test -z "$haveit"; then
9919 if test -d "$additional_includedir"; then
9920 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9926 if test -n "$found_la"; then
9927 save_libdir="$libdir"
9929 */* | *\\*) . "$found_la" ;;
9930 *) . "./$found_la" ;;
9932 libdir="$save_libdir"
9933 for dep in $dependency_libs; do
9936 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9937 if test "X$additional_libdir" != "X/usr/lib"; then
9939 if test "X$additional_libdir" = "X/usr/local/lib"; then
9940 if test -n "$GCC"; then
9942 linux*) haveit=yes;;
9946 if test -z "$haveit"; then
9948 for x in $LDFLAGS $LIBICONV; do
9950 acl_save_prefix="$prefix"
9951 prefix="$acl_final_prefix"
9952 acl_save_exec_prefix="$exec_prefix"
9953 exec_prefix="$acl_final_exec_prefix"
9955 exec_prefix="$acl_save_exec_prefix"
9956 prefix="$acl_save_prefix"
9958 if test "X$x" = "X-L$additional_libdir"; then
9963 if test -z "$haveit"; then
9964 if test -d "$additional_libdir"; then
9965 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9969 for x in $LDFLAGS $LTLIBICONV; do
9971 acl_save_prefix="$prefix"
9972 prefix="$acl_final_prefix"
9973 acl_save_exec_prefix="$exec_prefix"
9974 exec_prefix="$acl_final_exec_prefix"
9976 exec_prefix="$acl_save_exec_prefix"
9977 prefix="$acl_save_prefix"
9979 if test "X$x" = "X-L$additional_libdir"; then
9984 if test -z "$haveit"; then
9985 if test -d "$additional_libdir"; then
9986 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9993 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9994 if test "$enable_rpath" != no; then
9996 for x in $rpathdirs; do
9997 if test "X$x" = "X$dir"; then
10002 if test -z "$haveit"; then
10003 rpathdirs="$rpathdirs $dir"
10006 for x in $ltrpathdirs; do
10007 if test "X$x" = "X$dir"; then
10012 if test -z "$haveit"; then
10013 ltrpathdirs="$ltrpathdirs $dir"
10018 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10021 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10024 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10025 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10031 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10032 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10038 if test "X$rpathdirs" != "X"; then
10039 if test -n "$hardcode_libdir_separator"; then
10041 for found_dir in $rpathdirs; do
10042 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10044 acl_save_libdir="$libdir"
10046 eval flag=\"$hardcode_libdir_flag_spec\"
10047 libdir="$acl_save_libdir"
10048 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10050 for found_dir in $rpathdirs; do
10051 acl_save_libdir="$libdir"
10052 libdir="$found_dir"
10053 eval flag=\"$hardcode_libdir_flag_spec\"
10054 libdir="$acl_save_libdir"
10055 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10059 if test "X$ltrpathdirs" != "X"; then
10060 for found_dir in $ltrpathdirs; do
10061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10066 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10068 ac_cpp='$CXXCPP $CPPFLAGS'
10069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10078 am_save_CPPFLAGS="$CPPFLAGS"
10080 for element in $INCICONV; do
10082 for x in $CPPFLAGS; do
10084 acl_save_prefix="$prefix"
10085 prefix="$acl_final_prefix"
10086 acl_save_exec_prefix="$exec_prefix"
10087 exec_prefix="$acl_final_exec_prefix"
10089 exec_prefix="$acl_save_exec_prefix"
10090 prefix="$acl_save_prefix"
10092 if test "X$x" = "X$element"; then
10097 if test -z "$haveit"; then
10098 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10104 $as_echo_n "checking for iconv... " >&6; }
10105 if test "${am_cv_func_iconv+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10109 am_cv_func_iconv="no, consider installing GNU libiconv"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 #include <stdlib.h>
10118 iconv_t cd = iconv_open("","");
10119 iconv(cd,NULL,NULL,NULL,NULL);
10125 if ac_fn_cxx_try_link "$LINENO"; then :
10126 am_cv_func_iconv=yes
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130 if test "$am_cv_func_iconv" != yes; then
10131 am_save_LIBS="$LIBS"
10132 LIBS="$LIBS $LIBICONV"
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 #include <stdlib.h>
10140 iconv_t cd = iconv_open("","");
10141 iconv(cd,NULL,NULL,NULL,NULL);
10147 if ac_fn_cxx_try_link "$LINENO"; then :
10148 am_cv_lib_iconv=yes
10149 am_cv_func_iconv=yes
10151 rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LIBS="$am_save_LIBS"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10158 $as_echo "$am_cv_func_iconv" >&6; }
10159 if test "$am_cv_func_iconv" = yes; then
10161 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10164 if test "$am_cv_lib_iconv" = yes; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10166 $as_echo_n "checking how to link with libiconv... " >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10168 $as_echo "$LIBICONV" >&6; }
10170 CPPFLAGS="$am_save_CPPFLAGS"
10177 if test "$am_cv_func_iconv" = yes; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10179 $as_echo_n "checking for iconv declaration... " >&6; }
10180 if test "${am_cv_proto_iconv+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10187 #include <stdlib.h>
10193 #if defined(__STDC__) || defined(__cplusplus)
10194 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10207 if ac_fn_cxx_try_compile "$LINENO"; then :
10208 am_cv_proto_iconv_arg1=""
10210 am_cv_proto_iconv_arg1="const"
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 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);"
10216 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10218 }$am_cv_proto_iconv" >&5
10220 }$am_cv_proto_iconv" >&6; }
10222 cat >>confdefs.h <<_ACEOF
10223 #define ICONV_CONST $am_cv_proto_iconv_arg1
10229 ac_cpp='$CPP $CPPFLAGS'
10230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240 am_save_CPPFLAGS="$CPPFLAGS"
10242 for element in $INCICONV; do
10244 for x in $CPPFLAGS; do
10246 acl_save_prefix="$prefix"
10247 prefix="$acl_final_prefix"
10248 acl_save_exec_prefix="$exec_prefix"
10249 exec_prefix="$acl_final_exec_prefix"
10251 exec_prefix="$acl_save_exec_prefix"
10252 prefix="$acl_save_prefix"
10254 if test "X$x" = "X$element"; then
10259 if test -z "$haveit"; then
10260 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10266 $as_echo_n "checking for iconv... " >&6; }
10267 if test "${am_cv_func_iconv+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10271 am_cv_func_iconv="no, consider installing GNU libiconv"
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #include <stdlib.h>
10280 iconv_t cd = iconv_open("","");
10281 iconv(cd,NULL,NULL,NULL,NULL);
10287 if ac_fn_c_try_link "$LINENO"; then :
10288 am_cv_func_iconv=yes
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 if test "$am_cv_func_iconv" != yes; then
10293 am_save_LIBS="$LIBS"
10294 LIBS="$LIBS $LIBICONV"
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10297 #include <stdlib.h>
10302 iconv_t cd = iconv_open("","");
10303 iconv(cd,NULL,NULL,NULL,NULL);
10309 if ac_fn_c_try_link "$LINENO"; then :
10310 am_cv_lib_iconv=yes
10311 am_cv_func_iconv=yes
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS="$am_save_LIBS"
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10320 $as_echo "$am_cv_func_iconv" >&6; }
10321 if test "$am_cv_func_iconv" = yes; then
10323 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10326 if test "$am_cv_lib_iconv" = yes; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10328 $as_echo_n "checking how to link with libiconv... " >&6; }
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10330 $as_echo "$LIBICONV" >&6; }
10332 CPPFLAGS="$am_save_CPPFLAGS"
10339 if test "$am_cv_func_iconv" = yes; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10341 $as_echo_n "checking for iconv declaration... " >&6; }
10342 if test "${am_cv_proto_iconv+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 #include <stdlib.h>
10355 #if defined(__STDC__) || defined(__cplusplus)
10356 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10369 if ac_fn_c_try_compile "$LINENO"; then :
10370 am_cv_proto_iconv_arg1=""
10372 am_cv_proto_iconv_arg1="const"
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 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);"
10378 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10380 }$am_cv_proto_iconv" >&5
10382 }$am_cv_proto_iconv" >&6; }
10384 cat >>confdefs.h <<_ACEOF
10385 #define ICONV_CONST $am_cv_proto_iconv_arg1
10392 # Until we have in-tree GNU iconv:
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10398 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10399 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 #include <locale.h>
10413 if ac_fn_c_try_link "$LINENO"; then :
10414 am_cv_val_LC_MESSAGES=yes
10416 am_cv_val_LC_MESSAGES=no
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10422 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10423 if test $am_cv_val_LC_MESSAGES = yes; then
10425 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10432 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10433 if test "${am_cv_langinfo_codeset+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10438 #include <langinfo.h>
10442 char* cs = nl_langinfo(CODESET);
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 am_cv_langinfo_codeset=yes
10450 am_cv_langinfo_codeset=no
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10457 $as_echo "$am_cv_langinfo_codeset" >&6; }
10458 if test $am_cv_langinfo_codeset = yes; then
10460 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10465 # We will need to find libiberty.h and ansidecl.h
10466 saved_CFLAGS="$CFLAGS"
10467 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10468 saved_CXXFLAGS="$CXXFLAGS"
10469 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10470 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10471 strsignal strstr stpcpy strverscmp \
10472 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10473 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
10475 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10477 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10478 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10479 $as_echo_n "(cached) " >&6
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10484 #define $ac_tr_decl 1
10486 #include "ansidecl.h"
10487 #include "system.h"
10493 char *(*pfn) = (char *(*)) $ac_func ;
10499 if ac_fn_c_try_compile "$LINENO"; then :
10500 eval "gcc_cv_have_decl_$ac_func=yes"
10502 eval "gcc_cv_have_decl_$ac_func=no"
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10510 #define $ac_tr_decl 1
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10516 #define $ac_tr_decl 0
10524 for ac_func in getrlimit setrlimit getrusage
10526 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10528 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10529 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10530 $as_echo_n "(cached) " >&6
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10535 #define $ac_tr_decl 1
10537 #include "ansidecl.h"
10538 #include "system.h"
10539 #ifdef HAVE_SYS_RESOURCE_H
10540 #include <sys/resource.h>
10548 char *(*pfn) = (char *(*)) $ac_func ;
10554 if ac_fn_c_try_compile "$LINENO"; then :
10555 eval "gcc_cv_have_decl_$ac_func=yes"
10557 eval "gcc_cv_have_decl_$ac_func=no"
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10564 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10565 #define $ac_tr_decl 1
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10571 #define $ac_tr_decl 0
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 #include "ansidecl.h"
10583 #include "system.h"
10584 #ifdef HAVE_SYS_RESOURCE_H
10585 #include <sys/resource.h>
10596 if ac_fn_c_try_compile "$LINENO"; then :
10600 $as_echo "#define rlim_t long" >>confdefs.h
10603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10606 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10607 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10608 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10609 for ac_func in ldgetname
10611 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10613 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10614 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10615 $as_echo_n "(cached) " >&6
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10620 #define $ac_tr_decl 1
10622 #include "ansidecl.h"
10623 #include "system.h"
10624 #ifdef HAVE_LDFCN_H
10635 char *(*pfn) = (char *(*)) $ac_func ;
10641 if ac_fn_c_try_compile "$LINENO"; then :
10642 eval "gcc_cv_have_decl_$ac_func=yes"
10644 eval "gcc_cv_have_decl_$ac_func=no"
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10652 #define $ac_tr_decl 1
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10658 #define $ac_tr_decl 0
10666 for ac_func in times
10668 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10670 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10671 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10672 $as_echo_n "(cached) " >&6
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10677 #define $ac_tr_decl 1
10679 #include "ansidecl.h"
10680 #include "system.h"
10681 #ifdef HAVE_SYS_TIMES_H
10682 #include <sys/times.h>
10690 char *(*pfn) = (char *(*)) $ac_func ;
10696 if ac_fn_c_try_compile "$LINENO"; then :
10697 eval "gcc_cv_have_decl_$ac_func=yes"
10699 eval "gcc_cv_have_decl_$ac_func=no"
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10706 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10707 #define $ac_tr_decl 1
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10713 #define $ac_tr_decl 0
10721 for ac_func in sigaltstack
10723 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10725 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10726 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10727 $as_echo_n "(cached) " >&6
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10732 #define $ac_tr_decl 1
10734 #include "ansidecl.h"
10735 #include "system.h"
10736 #include <signal.h>
10743 char *(*pfn) = (char *(*)) $ac_func ;
10749 if ac_fn_c_try_compile "$LINENO"; then :
10750 eval "gcc_cv_have_decl_$ac_func=yes"
10752 eval "gcc_cv_have_decl_$ac_func=no"
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10759 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10760 #define $ac_tr_decl 1
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10766 #define $ac_tr_decl 0
10774 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10776 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10778 ac_cpp='$CXXCPP $CPPFLAGS'
10779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10783 for ac_func in madvise
10785 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10787 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10788 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10789 $as_echo_n "(cached) " >&6
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 #define $ac_tr_decl 1
10796 #include "ansidecl.h"
10797 #include "system.h"
10804 char *(*pfn) = (char *(*)) $ac_func ;
10810 if ac_fn_cxx_try_compile "$LINENO"; then :
10811 eval "gcc_cv_have_decl_$ac_func=yes"
10813 eval "gcc_cv_have_decl_$ac_func=no"
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10821 #define $ac_tr_decl 1
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10827 #define $ac_tr_decl 0
10835 ac_cpp='$CPP $CPPFLAGS'
10836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10841 for ac_func in madvise
10843 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10845 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10846 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10847 $as_echo_n "(cached) " >&6
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 #define $ac_tr_decl 1
10854 #include "ansidecl.h"
10855 #include "system.h"
10862 char *(*pfn) = (char *(*)) $ac_func ;
10868 if ac_fn_c_try_compile "$LINENO"; then :
10869 eval "gcc_cv_have_decl_$ac_func=yes"
10871 eval "gcc_cv_have_decl_$ac_func=no"
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10876 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10878 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10879 #define $ac_tr_decl 1
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10885 #define $ac_tr_decl 0
10895 # More time-related stuff.
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10897 $as_echo_n "checking for struct tms... " >&6; }
10898 if test "${ac_cv_struct_tms+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10905 #include "ansidecl.h"
10906 #include "system.h"
10907 #ifdef HAVE_SYS_TIMES_H
10908 #include <sys/times.h>
10919 if ac_fn_c_try_compile "$LINENO"; then :
10920 ac_cv_struct_tms=yes
10922 ac_cv_struct_tms=no
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10927 $as_echo "$ac_cv_struct_tms" >&6; }
10928 if test $ac_cv_struct_tms = yes; then
10930 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10934 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10935 # revisit after autoconf 2.50.
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10937 $as_echo_n "checking for clock_t... " >&6; }
10938 if test "${gcc_cv_type_clock_t+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10945 #include "ansidecl.h"
10946 #include "system.h"
10956 if ac_fn_c_try_compile "$LINENO"; then :
10957 gcc_cv_type_clock_t=yes
10959 gcc_cv_type_clock_t=no
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10964 $as_echo "$gcc_cv_type_clock_t" >&6; }
10965 if test $gcc_cv_type_clock_t = yes; then
10967 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10971 # Check if F_SETLKW is supported by fcntl.
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10973 $as_echo_n "checking for F_SETLKW... " >&6; }
10974 if test "${ac_cv_f_setlkw+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10991 return fcntl (1, F_SETLKW, &fl);
10996 if ac_fn_c_try_compile "$LINENO"; then :
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11004 $as_echo "$ac_cv_f_setlkw" >&6; }
11005 if test $ac_cv_f_setlkw = yes; then
11007 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11011 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11012 CFLAGS="$saved_CFLAGS"
11013 CXXFLAGS="$saved_CXXFLAGS"
11015 # mkdir takes a single argument on some systems.
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11017 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11018 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11024 #include <sys/types.h>
11025 #ifdef HAVE_SYS_STAT_H
11026 # include <sys/stat.h>
11028 #ifdef HAVE_UNISTD_H
11029 # include <unistd.h>
11031 #ifdef HAVE_DIRECT_H
11032 # include <direct.h>
11042 if ac_fn_c_try_compile "$LINENO"; then :
11043 gcc_cv_mkdir_takes_one_arg=no
11045 gcc_cv_mkdir_takes_one_arg=yes
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11050 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11051 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11053 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11064 # With Setjmp/Longjmp based exception handling.
11065 # Check whether --enable-sjlj-exceptions was given.
11066 if test "${enable_sjlj_exceptions+set}" = set; then :
11067 enableval=$enable_sjlj_exceptions; case $target in
11069 if test $enableval != yes; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11071 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11076 force_sjlj_exceptions=yes
11080 force_sjlj_exceptions=yes
11084 force_sjlj_exceptions=no
11089 if test $force_sjlj_exceptions = yes; then
11090 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11092 cat >>confdefs.h <<_ACEOF
11093 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11098 # --------------------------------------------------------
11099 # Build, host, and target specific configuration fragments
11100 # --------------------------------------------------------
11102 # Collect build-machine-specific information.
11103 . ${srcdir}/config.build
11105 # Collect host-machine-specific information.
11106 . ${srcdir}/config.host
11110 # Collect target-machine-specific information.
11111 . ${srcdir}/config.gcc
11113 extra_objs="${host_extra_objs} ${extra_objs}"
11114 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11116 # Default the target-machine variables that were not explicitly set.
11117 if test x"$tm_file" = x
11118 then tm_file=$cpu_type/$cpu_type.h; fi
11120 if test x"$extra_headers" = x
11121 then extra_headers=; fi
11123 if test x$md_file = x
11124 then md_file=$cpu_type/$cpu_type.md; fi
11126 if test x$out_file = x
11127 then out_file=$cpu_type/$cpu_type.c; fi
11129 if test x"$tmake_file" = x
11130 then tmake_file=$cpu_type/t-$cpu_type
11133 # Support --enable-initfini-array.
11134 if test x$enable_initfini_array != xno; then
11135 tm_file="${tm_file} initfini-array.h"
11138 if test x"$dwarf2" = xyes
11139 then tm_file="$tm_file tm-dwarf2.h"
11142 # Say what files are being used for the output code and MD file.
11143 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11144 echo "Using \`$srcdir/config/$md_file' as machine description file."
11146 # If any of the xm_file variables contain nonexistent files, warn
11147 # about them and drop them.
11150 for x in $build_xm_file; do
11151 if test -f $srcdir/config/$x
11153 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11154 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11157 build_xm_file="$bx"
11160 for x in $host_xm_file; do
11161 if test -f $srcdir/config/$x
11163 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11164 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11170 for x in $xm_file; do
11171 if test -f $srcdir/config/$x
11173 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11174 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11180 for f in $tm_file; do
11183 if test $count = ax; then
11184 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11186 echo "Using the following target machine macro files:"
11187 for f in $tm_file; do
11188 echo " $srcdir/config/$f"
11192 if test x$need_64bit_hwint = xyes; then
11194 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11198 if test x$use_long_long_for_widest_fast_int = xyes; then
11200 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11204 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_GNU_LD $gnu_ld_bool
11211 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11213 cat >>confdefs.h <<_ACEOF
11214 #define HAVE_GNU_AS $gnu_as_bool
11219 for f in $host_xm_file; do
11222 if test $count = a; then
11224 elif test $count = ax; then
11225 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11227 echo "Using the following host machine macro files:"
11228 for f in $host_xm_file; do
11229 echo " $srcdir/config/$f"
11232 echo "Using ${out_host_hook_obj} for host machine hooks."
11234 if test "$host_xm_file" != "$build_xm_file"; then
11236 for f in $build_xm_file; do
11239 if test $count = a; then
11241 elif test $count = ax; then
11242 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11244 echo "Using the following build machine macro files:"
11245 for f in $build_xm_file; do
11246 echo " $srcdir/config/$f"
11251 if test -n "$configured_native_system_header_dir"; then
11252 native_system_header_dir=$configured_native_system_header_dir
11254 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11258 powerpc*-*-darwin*)
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11260 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11261 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11262 $as_echo_n "(cached) " >&6
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11267 #include <sys/cdefs.h>
11268 #include <sys/signal.h>
11269 #include <ucontext.h>
11270 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11273 if ac_fn_c_try_compile "$LINENO"; then :
11274 gcc_cv_mcontext_underscores=no
11276 gcc_cv_mcontext_underscores=yes
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11281 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11282 if test $gcc_cv_mcontext_underscores = yes; then
11284 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11294 # Check if a valid thread package
11295 case ${enable_threads} in
11298 target_thread_file='single'
11302 target_thread_file='single'
11304 aix | dce | lynx | mipssde | posix | rtems | \
11305 single | tpf | vxworks | win32)
11306 target_thread_file=${enable_threads}
11309 echo "${enable_threads} is an unknown thread package" 1>&2
11314 if test x${thread_file} = x; then
11315 # No thread file set by target-specific clauses in config.gcc,
11316 # so use file chosen by default logic above
11317 thread_file=${target_thread_file}
11325 if test x$enable___cxa_atexit = xyes || \
11326 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11327 if test x$host = x$target; then
11329 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11330 # keyed to flag_use_cxa_atexit
11335 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11336 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11339 echo "__cxa_atexit can't be enabled on this target"
11345 # We can't check for __cxa_atexit when building a cross, so assume
11349 if test x$use_cxa_atexit = xyes; then
11351 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11356 # Look for a file containing extra machine modes.
11357 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11358 extra_modes_file='$(srcdir)'/config/${extra_modes}
11361 cat >>confdefs.h <<_ACEOF
11362 #define EXTRA_MODES_FILE "config/$extra_modes"
11367 # Convert extra_options into a form suitable for Makefile use.
11370 for f in $extra_options; do
11371 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11372 all_opt_files="$all_opt_files $srcdir/config/$f"
11376 # auto-host.h is the file containing items generated by autoconf and is
11377 # the first file included by config.h.
11378 # If host=build, it is correct to have bconfig include auto-host.h
11379 # as well. If host!=build, we are in error and need to do more
11380 # work to find out the build config parameters.
11381 if test x$host = x$build
11383 build_auto=auto-host.h
11385 # We create a subdir, then run autoconf in the subdir.
11386 # To prevent recursion we set host and build for the new
11387 # invocation of configure to the build for this invocation
11394 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11395 *) realsrcdir=../${srcdir};;
11397 saved_CFLAGS="${CFLAGS}"
11398 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11399 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11400 ${realsrcdir}/configure \
11401 --enable-languages=${enable_languages-all} \
11402 --target=$target_alias --host=$build_alias --build=$build_alias
11403 CFLAGS="${saved_CFLAGS}"
11405 # We just finished tests for the build machine, so rename
11406 # the file auto-build.h in the gcc directory.
11407 mv auto-host.h ../auto-build.h
11410 build_auto=auto-build.h
11414 tm_file="${tm_file} defaults.h"
11415 tm_p_file="${tm_p_file} tm-preds.h"
11416 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11417 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11418 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11419 # put this back in temporarily.
11420 xm_file="auto-host.h ansidecl.h ${xm_file}"
11426 # Compile in configure arguments.
11427 if test -f configargs.h ; then
11428 # Being re-configured.
11429 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11430 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11432 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11435 # Double all backslashes and backslash all quotes to turn
11436 # gcc_config_arguments into a C string.
11437 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11438 $gcc_config_arguments
11440 gcc_config_arguments_str=`cat conftest.out`
11443 cat > configargs.h <<EOF
11444 /* Generated automatically. */
11445 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11446 static const char thread_model[] = "$thread_file";
11448 static const struct {
11449 const char *name, *value;
11450 } configure_default_options[] = $configure_default_options;
11453 gcc_BASEVER=`cat $srcdir/BASE-VER`
11454 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11455 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11456 if test -f $srcdir/REVISION ; then
11457 gcc_REVISION=`cat $srcdir/REVISION`
11461 cat > plugin-version.h <<EOF
11462 #include "configargs.h"
11464 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11465 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11466 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11467 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11469 static char basever[] = "$gcc_BASEVER";
11470 static char datestamp[] = "$gcc_DATESTAMP";
11471 static char devphase[] = "$gcc_DEVPHASE";
11472 static char revision[] = "$gcc_REVISION";
11474 /* FIXME plugins: We should make the version information more precise.
11475 One way to do is to add a checksum. */
11477 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11478 devphase, revision,
11479 configuration_arguments};
11482 # Internationalization
11483 # If we haven't got the data from the intl directory,
11484 # assume NLS is disabled.
11493 if test -f ../intl/config.intl; then
11494 . ../intl/config.intl
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11497 $as_echo_n "checking whether NLS is requested... " >&6; }
11498 if test x"$USE_NLS" != xyes; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11503 $as_echo "yes" >&6; }
11505 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11509 $as_echo_n "checking for catalogs to be installed... " >&6; }
11510 # Look for .po and .gmo files in the source directory.
11513 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11514 # If there aren't any .gmo files the shell will give us the
11515 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11517 case "$cat" in *\**)
11520 # The quadruple backslash is collapsed to a double backslash
11521 # by the backticks, then collapsed again by the double quotes,
11522 # leaving us with one backslash in the sed expression (right
11523 # before the dot that mustn't act as a wildcard).
11524 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11525 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11526 # The user is allowed to set LINGUAS to a list of languages to
11527 # install catalogs for. If it's empty that means "all of them."
11528 if test "x$LINGUAS" = x; then
11529 CATALOGS="$CATALOGS $cat"
11530 XLINGUAS="$XLINGUAS $lang"
11532 case "$LINGUAS" in *$lang*)
11533 CATALOGS="$CATALOGS $cat"
11534 XLINGUAS="$XLINGUAS $lang"
11539 LINGUAS="$XLINGUAS"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11541 $as_echo "$LINGUAS" >&6; }
11554 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11555 # -liconv on the link line twice.
11556 case "$LIBINTL" in *$LIBICONV*)
11560 # Check whether --enable-secureplt was given.
11561 if test "${enable_secureplt+set}" = set; then :
11562 enableval=$enable_secureplt;
11566 # Check whether --enable-leading-mingw64-underscores was given.
11567 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11568 enableval=$enable_leading_mingw64_underscores;
11571 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11573 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11577 # Check whether --enable-cld was given.
11578 if test "${enable_cld+set}" = set; then :
11579 enableval=$enable_cld;
11585 # Check whether --enable-frame-pointer was given.
11586 if test "${enable_frame_pointer+set}" = set; then :
11587 enableval=$enable_frame_pointer;
11591 linux* | darwin[8912]*)
11592 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11594 enable_frame_pointer=no
11597 enable_frame_pointer=yes
11604 # Windows32 Registry support for specifying GCC installation paths.
11605 # Check whether --enable-win32-registry was given.
11606 if test "${enable_win32_registry+set}" = set; then :
11607 enableval=$enable_win32_registry;
11612 win32 | pe | cygwin* | mingw32* | uwin*)
11613 if test "x$enable_win32_registry" != xno; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11615 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11616 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11619 ac_func_search_save_LIBS=$LIBS
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11629 char RegOpenKeyExA ();
11633 return RegOpenKeyExA ();
11638 for ac_lib in '' advapi32; do
11639 if test -z "$ac_lib"; then
11640 ac_res="none required"
11643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 ac_cv_search_RegOpenKeyExA=$ac_res
11648 rm -f core conftest.err conftest.$ac_objext \
11650 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11654 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11657 ac_cv_search_RegOpenKeyExA=no
11659 rm conftest.$ac_ext
11660 LIBS=$ac_func_search_save_LIBS
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11663 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11664 ac_res=$ac_cv_search_RegOpenKeyExA
11665 if test "$ac_res" != no; then :
11666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11669 enable_win32_registry=no
11674 if test "x$enable_win32_registry" != xno; then
11676 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11679 if test "x$enable_win32_registry" != xyes \
11680 && test "x$enable_win32_registry" != x; then
11682 cat >>confdefs.h <<_ACEOF
11683 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11691 # Get an absolute path to the GCC top-level source directory
11692 holddir=`${PWDCMD-pwd}`
11694 topdir=`${PWDCMD-pwd}`
11697 # Conditionalize the makefile for this host machine.
11699 for f in ${host_xmake_file}
11701 if test -f ${srcdir}/config/$f
11703 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11707 # Conditionalize the makefile for this target machine.
11709 for f in ${tmake_file}
11711 if test -f ${srcdir}/config/$f
11713 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11716 tmake_file="${tmake_file_}"
11718 out_object_file=`basename $out_file .c`.o
11719 common_out_object_file=`basename $common_out_file .c`.o
11721 tm_file_list="options.h"
11722 tm_include_list="options.h insn-constants.h"
11723 for f in $tm_file; do
11726 f=`echo $f | sed 's/^..//'`
11727 tm_file_list="${tm_file_list} $f"
11728 tm_include_list="${tm_include_list} $f"
11731 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11732 tm_include_list="${tm_include_list} $f"
11735 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11736 tm_include_list="${tm_include_list} config/$f"
11743 for f in $tm_p_file; do
11746 tm_p_file_list="${tm_p_file_list} $f"
11747 tm_p_include_list="${tm_p_include_list} $f"
11750 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11751 tm_p_include_list="${tm_p_include_list} config/$f"
11757 for f in $xm_file; do
11760 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11761 xm_include_list="${xm_include_list} $f"
11764 xm_file_list="${xm_file_list} $f"
11765 xm_include_list="${xm_include_list} $f"
11768 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11769 xm_include_list="${xm_include_list} config/$f"
11775 host_xm_include_list=
11776 for f in $host_xm_file; do
11779 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11780 host_xm_include_list="${host_xm_include_list} $f"
11783 host_xm_file_list="${host_xm_file_list} $f"
11784 host_xm_include_list="${host_xm_include_list} $f"
11787 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11788 host_xm_include_list="${host_xm_include_list} config/$f"
11793 build_xm_file_list=
11794 for f in $build_xm_file; do
11797 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11798 build_xm_include_list="${build_xm_include_list} $f"
11800 auto-build.h | auto-host.h )
11801 build_xm_file_list="${build_xm_file_list} $f"
11802 build_xm_include_list="${build_xm_include_list} $f"
11805 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11806 build_xm_include_list="${build_xm_include_list} config/$f"
11811 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11812 # cross-compiler which does not use the native headers and libraries.
11813 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11816 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11818 if test "x$with_build_sysroot" != x; then
11819 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11821 # This value is used, even on a native system, because
11822 # CROSS_SYSTEM_HEADER_DIR is just
11823 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11824 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11827 if test x$host != x$target
11829 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11831 SYSTEM_HEADER_DIR=$build_system_header_dir
11832 case "$host","$target" in
11833 # Darwin crosses can use the host system's libraries and headers,
11834 # because of the fat library support. Of course, it must be the
11835 # same version of Darwin on both sides. Allow the user to
11836 # just say --target=foo-darwin without a version number to mean
11837 # "the version on this system".
11838 *-*-darwin*,*-*-darwin*)
11839 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11840 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11841 if test $hostos = $targetos -o $targetos = darwin ; then
11843 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11848 i?86-*-*,x86_64-*-* \
11849 | powerpc*-*-*,powerpc64*-*-*)
11850 CROSS="$CROSS -DNATIVE_CROSS" ;;
11855 if test "x$with_headers" = x; then
11862 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11863 SYSTEM_HEADER_DIR=$build_system_header_dir
11866 # If this is a cross-compiler that does not
11867 # have its own set of headers then define
11870 # If this is using newlib, without having the headers available now,
11871 # then define inhibit_libc in LIBGCC2_CFLAGS.
11872 # This prevents libgcc2 from containing any code which requires libc
11874 : ${inhibit_libc=false}
11875 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11876 test x$with_newlib = xyes ; } &&
11877 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11882 # When building gcc with a cross-compiler, we need to adjust things so
11883 # that the generator programs are still built with the native compiler.
11884 # Also, we cannot run fixincludes.
11886 # These are the normal (build=host) settings:
11887 CC_FOR_BUILD='$(CC)'
11888 BUILD_CFLAGS='$(ALL_CFLAGS)'
11889 BUILD_LDFLAGS='$(LDFLAGS)'
11890 STMP_FIXINC=stmp-fixinc
11892 # And these apply if build != host, or we are generating coverage data
11893 if test x$build != x$host || test "x$coverage_flags" != x
11895 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11896 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11899 # Expand extra_headers to include complete path.
11900 # This substitutes for lots of t-* files.
11901 extra_headers_list=
11902 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11903 for file in ${extra_headers} ; do
11904 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11907 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11908 if test x"$use_gcc_tgmath" = xyes
11909 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11912 # Define collect2 in Makefile.
11913 case $host_can_use_collect2 in
11915 *) collect2='collect2$(exeext)' ;;
11919 # Add a definition of USE_COLLECT2 if system wants one.
11920 case $use_collect2 in
11921 no) use_collect2= ;;
11924 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11925 xm_defines="${xm_defines} USE_COLLECT2"
11926 case $host_can_use_collect2 in
11928 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11935 cat >>confdefs.h <<_ACEOF
11936 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11940 # ---------------------------
11941 # Assembler & linker features
11942 # ---------------------------
11944 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11945 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11946 # However when ld-new is first executed from the build tree, libtool will
11947 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11948 # to the build tree. While doing this we need to use the previous-stage
11949 # linker, or we have an infinite loop. The presence of a shell script as
11950 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11951 # the gcc/collect-ld script. So we need to know how libtool works, or
11952 # exec-tool will fail.
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11963 macro_version='2.2.7a'
11964 macro_revision='1.3134'
11978 ltmain="$ac_aux_dir/ltmain.sh"
11980 # Backslashify metacharacters that are still active within
11981 # double-quoted strings.
11982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11984 # Same as above, but do not quote variable references.
11985 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11987 # Sed substitution to delay expansion of an escaped shell variable in a
11988 # double_quote_subst'ed string.
11989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11991 # Sed substitution to delay expansion of an escaped single quote.
11992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11994 # Sed substitution to avoid accidental globbing in evaled expressions
11995 no_glob_subst='s/\*/\\\*/g'
11997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12002 $as_echo_n "checking how to print strings... " >&6; }
12003 # Test print first, because it will be a builtin if present.
12004 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12010 # Use this function as a fallback that always works.
12011 func_fallback_echo ()
12013 eval 'cat <<_LTECHO_EOF
12017 ECHO='func_fallback_echo'
12020 # func_echo_all arg...
12021 # Invoke $ECHO with all args, space-separated.
12028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12029 $as_echo "printf" >&6; } ;;
12030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12031 $as_echo "print -r" >&6; } ;;
12032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12033 $as_echo "cat" >&6; } ;;
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12050 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12051 if test "${ac_cv_path_SED+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12055 for ac_i in 1 2 3 4 5 6 7; do
12056 ac_script="$ac_script$as_nl$ac_script"
12058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12059 { ac_script=; unset ac_script;}
12060 if test -z "$SED"; then
12061 ac_path_SED_found=false
12062 # Loop through the user's path and test for each of PROGNAME-LIST
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12067 test -z "$as_dir" && as_dir=.
12068 for ac_prog in sed gsed; do
12069 for ac_exec_ext in '' $ac_executable_extensions; do
12070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12071 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12072 # Check for GNU ac_path_SED and select it if it is found.
12073 # Check for GNU $ac_path_SED
12074 case `"$ac_path_SED" --version 2>&1` in
12076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12079 $as_echo_n 0123456789 >"conftest.in"
12082 cat "conftest.in" "conftest.in" >"conftest.tmp"
12083 mv "conftest.tmp" "conftest.in"
12084 cp "conftest.in" "conftest.nl"
12085 $as_echo '' >> "conftest.nl"
12086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12088 as_fn_arith $ac_count + 1 && ac_count=$as_val
12089 if test $ac_count -gt ${ac_path_SED_max-0}; then
12090 # Best one so far, save it but keep looking for a better one
12091 ac_cv_path_SED="$ac_path_SED"
12092 ac_path_SED_max=$ac_count
12094 # 10*(2^10) chars as input seems more than enough
12095 test $ac_count -gt 10 && break
12097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12100 $ac_path_SED_found && break 3
12105 if test -z "$ac_cv_path_SED"; then
12106 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12109 ac_cv_path_SED=$SED
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12114 $as_echo "$ac_cv_path_SED" >&6; }
12115 SED="$ac_cv_path_SED"
12118 test -z "$SED" && SED=sed
12119 Xsed="$SED -e 1s/^X//"
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12132 $as_echo_n "checking for fgrep... " >&6; }
12133 if test "${ac_cv_path_FGREP+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12136 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12137 then ac_cv_path_FGREP="$GREP -F"
12139 if test -z "$FGREP"; then
12140 ac_path_FGREP_found=false
12141 # Loop through the user's path and test for each of PROGNAME-LIST
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12146 test -z "$as_dir" && as_dir=.
12147 for ac_prog in fgrep; do
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12150 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12151 # Check for GNU ac_path_FGREP and select it if it is found.
12152 # Check for GNU $ac_path_FGREP
12153 case `"$ac_path_FGREP" --version 2>&1` in
12155 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12158 $as_echo_n 0123456789 >"conftest.in"
12161 cat "conftest.in" "conftest.in" >"conftest.tmp"
12162 mv "conftest.tmp" "conftest.in"
12163 cp "conftest.in" "conftest.nl"
12164 $as_echo 'FGREP' >> "conftest.nl"
12165 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12167 as_fn_arith $ac_count + 1 && ac_count=$as_val
12168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12169 # Best one so far, save it but keep looking for a better one
12170 ac_cv_path_FGREP="$ac_path_FGREP"
12171 ac_path_FGREP_max=$ac_count
12173 # 10*(2^10) chars as input seems more than enough
12174 test $ac_count -gt 10 && break
12176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12179 $ac_path_FGREP_found && break 3
12184 if test -z "$ac_cv_path_FGREP"; then
12185 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12188 ac_cv_path_FGREP=$FGREP
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12194 $as_echo "$ac_cv_path_FGREP" >&6; }
12195 FGREP="$ac_cv_path_FGREP"
12198 test -z "$GREP" && GREP=grep
12218 # Check whether --with-gnu-ld was given.
12219 if test "${with_gnu_ld+set}" = set; then :
12220 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12226 if test "$GCC" = yes; then
12227 # Check if gcc -print-prog-name=ld gives a path.
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12229 $as_echo_n "checking for ld used by $CC... " >&6; }
12232 # gcc leaves a trailing carriage return which upsets mingw
12233 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12235 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12238 # Accept absolute paths.
12240 re_direlt='/[^/][^/]*/\.\./'
12241 # Canonicalize the pathname of ld
12242 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12243 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12244 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12246 test -z "$LD" && LD="$ac_prog"
12249 # If it fails, then pretend we aren't using GCC.
12253 # If it is relative, then search for the first ld in PATH.
12254 with_gnu_ld=unknown
12257 elif test "$with_gnu_ld" = yes; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12259 $as_echo_n "checking for GNU ld... " >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12262 $as_echo_n "checking for non-GNU ld... " >&6; }
12264 if test "${lt_cv_path_LD+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12267 if test -z "$LD"; then
12268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12269 for ac_dir in $PATH; do
12271 test -z "$ac_dir" && ac_dir=.
12272 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12273 lt_cv_path_LD="$ac_dir/$ac_prog"
12274 # Check to see if the program is GNU ld. I'd rather use --version,
12275 # but apparently some variants of GNU ld only accept -v.
12276 # Break only if it was the GNU/non-GNU ld that we prefer.
12277 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12278 *GNU* | *'with BFD'*)
12279 test "$with_gnu_ld" != no && break
12282 test "$with_gnu_ld" != yes && break
12289 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12293 LD="$lt_cv_path_LD"
12294 if test -n "$LD"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12296 $as_echo "$LD" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12301 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12303 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12304 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12307 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12308 case `$LD -v 2>&1 </dev/null` in
12309 *GNU* | *'with BFD'*)
12310 lt_cv_prog_gnu_ld=yes
12313 lt_cv_prog_gnu_ld=no
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12318 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12319 with_gnu_ld=$lt_cv_prog_gnu_ld
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12330 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12331 if test "${lt_cv_path_NM+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12334 if test -n "$NM"; then
12335 # Let the user override the test.
12336 lt_cv_path_NM="$NM"
12338 lt_nm_to_check="${ac_tool_prefix}nm"
12339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12340 lt_nm_to_check="$lt_nm_to_check nm"
12342 for lt_tmp_nm in $lt_nm_to_check; do
12343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12344 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12346 test -z "$ac_dir" && ac_dir=.
12347 tmp_nm="$ac_dir/$lt_tmp_nm"
12348 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12349 # Check to see if the nm accepts a BSD-compat flag.
12350 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12351 # nm: unknown option "B" ignored
12352 # Tru64's nm complains that /dev/null is an invalid object file
12353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12354 */dev/null* | *'Invalid file or object type'*)
12355 lt_cv_path_NM="$tmp_nm -B"
12359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12361 lt_cv_path_NM="$tmp_nm -p"
12365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12366 continue # so that we can try to find one that supports BSD flags
12375 : ${lt_cv_path_NM=no}
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12379 $as_echo "$lt_cv_path_NM" >&6; }
12380 if test "$lt_cv_path_NM" != "no"; then
12381 NM="$lt_cv_path_NM"
12383 # Didn't find any BSD compatible name lister, look for dumpbin.
12384 if test -n "$DUMPBIN"; then :
12385 # Let the user override the test.
12387 if test -n "$ac_tool_prefix"; then
12388 for ac_prog in dumpbin "link -dump"
12390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12397 if test -n "$DUMPBIN"; then
12398 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12407 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 DUMPBIN=$ac_cv_prog_DUMPBIN
12418 if test -n "$DUMPBIN"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12420 $as_echo "$DUMPBIN" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12427 test -n "$DUMPBIN" && break
12430 if test -z "$DUMPBIN"; then
12431 ac_ct_DUMPBIN=$DUMPBIN
12432 for ac_prog in dumpbin "link -dump"
12434 # Extract the first word of "$ac_prog", so it can be a program name with args.
12435 set dummy $ac_prog; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
12441 if test -n "$ac_ct_DUMPBIN"; then
12442 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12451 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12462 if test -n "$ac_ct_DUMPBIN"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12464 $as_echo "$ac_ct_DUMPBIN" >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12471 test -n "$ac_ct_DUMPBIN" && break
12474 if test "x$ac_ct_DUMPBIN" = x; then
12477 case $cross_compiling:$ac_tool_warned in
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12481 ac_tool_warned=yes ;;
12483 DUMPBIN=$ac_ct_DUMPBIN
12487 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12489 DUMPBIN="$DUMPBIN -symbols"
12497 if test "$DUMPBIN" != ":"; then
12501 test -z "$NM" && NM=nm
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12509 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12510 if test "${lt_cv_nm_interface+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12513 lt_cv_nm_interface="BSD nm"
12514 echo "int some_variable = 0;" > conftest.$ac_ext
12515 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12516 (eval "$ac_compile" 2>conftest.err)
12517 cat conftest.err >&5
12518 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12519 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12520 cat conftest.err >&5
12521 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12522 cat conftest.out >&5
12523 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12524 lt_cv_nm_interface="MS dumpbin"
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12529 $as_echo "$lt_cv_nm_interface" >&6; }
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12532 $as_echo_n "checking whether ln -s works... " >&6; }
12534 if test "$LN_S" = "ln -s"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 $as_echo "yes" >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12539 $as_echo "no, using $LN_S" >&6; }
12542 # find the maximum length of command line arguments
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12544 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12545 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12553 # On DJGPP, this test can blow up pretty badly due to problems in libc
12554 # (any single argument exceeding 2000 bytes causes a buffer overrun
12555 # during glob expansion). Even if it were fixed, the result of this
12556 # check would be larger than it should be.
12557 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12561 # Under GNU Hurd, this test is not required because there is
12562 # no limit to the length of command line arguments.
12563 # Libtool will interpret -1 as no limit whatsoever
12564 lt_cv_sys_max_cmd_len=-1;
12567 cygwin* | mingw* | cegcc*)
12568 # On Win9x/ME, this test blows up -- it succeeds, but takes
12569 # about 5 minutes as the teststring grows exponentially.
12570 # Worse, since 9x/ME are not pre-emptively multitasking,
12571 # you end up with a "frozen" computer, even though with patience
12572 # the test eventually succeeds (with a max line length of 256k).
12573 # Instead, let's just punt: use the minimum linelength reported by
12574 # all of the supported platforms: 8192 (on NT/2K/XP).
12575 lt_cv_sys_max_cmd_len=8192;
12579 # On MiNT this can take a long time and run out of memory.
12580 lt_cv_sys_max_cmd_len=8192;
12584 # On AmigaOS with pdksh, this test takes hours, literally.
12585 # So we just punt and use a minimum line length of 8192.
12586 lt_cv_sys_max_cmd_len=8192;
12589 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12590 # This has been around since 386BSD, at least. Likely further.
12591 if test -x /sbin/sysctl; then
12592 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12593 elif test -x /usr/sbin/sysctl; then
12594 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12596 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12598 # And add a safety zone
12599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12604 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12605 lt_cv_sys_max_cmd_len=196608
12609 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12610 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12611 # nice to cause kernel panics so lets avoid the loop below.
12612 # First set a reasonable default.
12613 lt_cv_sys_max_cmd_len=16384
12615 if test -x /sbin/sysconfig; then
12616 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12617 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12622 lt_cv_sys_max_cmd_len=102400
12624 sysv5* | sco5v6* | sysv4.2uw2*)
12625 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12626 if test -n "$kargmax"; then
12627 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12629 lt_cv_sys_max_cmd_len=32768
12633 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12634 if test -n "$lt_cv_sys_max_cmd_len"; then
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`
12638 # Make teststring a little bigger before we do anything with it.
12639 # a 1K string should be a reasonable start.
12640 for i in 1 2 3 4 5 6 7 8 ; do
12641 teststring=$teststring$teststring
12643 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12644 # If test is not a shell built-in, we'll probably end up computing a
12645 # maximum length that is only half of the actual maximum length, but
12647 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12648 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12649 test $i != 17 # 1/2 MB should be enough
12652 teststring=$teststring$teststring
12654 # Only check the string length outside the loop.
12655 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12657 # Add a significant safety factor because C++ compilers can tack on
12658 # massive amounts of additional arguments before passing them to the
12659 # linker. It appears as though 1/2 is a usable value.
12660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12667 if test -n $lt_cv_sys_max_cmd_len ; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12672 $as_echo "none" >&6; }
12674 max_cmd_len=$lt_cv_sys_max_cmd_len
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12687 # Try some XSI features
12689 ( _lt_dummy="a/b/c"
12690 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12692 && eval 'test $(( 1 + 1 )) -eq 2 \
12693 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12696 $as_echo "$xsi_shell" >&6; }
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12704 && lt_shell_append=yes
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12706 $as_echo "$lt_shell_append" >&6; }
12709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12719 # test EBCDIC or ASCII
12720 case `echo X|tr X '\101'` in
12721 A) # ASCII based system
12722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12723 lt_SP2NL='tr \040 \012'
12724 lt_NL2SP='tr \015\012 \040\040'
12726 *) # EBCDIC based system
12727 lt_SP2NL='tr \100 \n'
12728 lt_NL2SP='tr \r\n \100\100'
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12741 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12742 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12745 lt_cv_ld_reload_flag='-r'
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12749 reload_flag=$lt_cv_ld_reload_flag
12750 case $reload_flag in
12752 *) reload_flag=" $reload_flag" ;;
12754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12757 if test "$GCC" = yes; then
12758 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12773 if test -n "$ac_tool_prefix"; then
12774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12781 if test -n "$OBJDUMP"; then
12782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 OBJDUMP=$ac_cv_prog_OBJDUMP
12802 if test -n "$OBJDUMP"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12804 $as_echo "$OBJDUMP" >&6; }
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12812 if test -z "$ac_cv_prog_OBJDUMP"; then
12813 ac_ct_OBJDUMP=$OBJDUMP
12814 # Extract the first word of "objdump", so it can be a program name with args.
12815 set dummy objdump; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12821 if test -n "$ac_ct_OBJDUMP"; then
12822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12842 if test -n "$ac_ct_OBJDUMP"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12844 $as_echo "$ac_ct_OBJDUMP" >&6; }
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12850 if test "x$ac_ct_OBJDUMP" = x; then
12853 case $cross_compiling:$ac_tool_warned in
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12857 ac_tool_warned=yes ;;
12859 OBJDUMP=$ac_ct_OBJDUMP
12862 OBJDUMP="$ac_cv_prog_OBJDUMP"
12865 test -z "$OBJDUMP" && OBJDUMP=objdump
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12877 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12880 lt_cv_file_magic_cmd='$MAGIC_CMD'
12881 lt_cv_file_magic_test_file=
12882 lt_cv_deplibs_check_method='unknown'
12883 # Need to set the preceding variable on all platforms that support
12884 # interlibrary dependencies.
12885 # 'none' -- dependencies not supported.
12886 # `unknown' -- same as none, but documents that we really don't know.
12887 # 'pass_all' -- all dependencies passed with no checks.
12888 # 'test_compile' -- check by making test program.
12889 # 'file_magic [[regex]]' -- check by looking for files in library path
12890 # which responds to the $file_magic_cmd with a given extended regex.
12891 # If you have `file' or equivalent on your system and you're not sure
12892 # whether `pass_all' will *always* work, you probably want this one.
12896 lt_cv_deplibs_check_method=pass_all
12900 lt_cv_deplibs_check_method=pass_all
12904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12905 lt_cv_file_magic_cmd='/usr/bin/file -L'
12906 lt_cv_file_magic_test_file=/shlib/libc.so
12910 # func_win32_libid is a shell function defined in ltmain.sh
12911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12912 lt_cv_file_magic_cmd='func_win32_libid'
12916 # Base MSYS/MinGW do not provide the 'file' command needed by
12917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12918 # unless we find 'file', for example because we are cross-compiling.
12919 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12920 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12922 lt_cv_file_magic_cmd='func_win32_libid'
12924 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12925 lt_cv_file_magic_cmd='$OBJDUMP -f'
12930 # use the weaker test based on 'objdump'. See mingw*.
12931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12932 lt_cv_file_magic_cmd='$OBJDUMP -f'
12935 darwin* | rhapsody*)
12936 lt_cv_deplibs_check_method=pass_all
12939 freebsd* | dragonfly*)
12940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12943 # Not sure whether the presence of OpenBSD here was a mistake.
12944 # Let's accept both of them until this is cleared up.
12945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12946 lt_cv_file_magic_cmd=/usr/bin/file
12947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12951 lt_cv_deplibs_check_method=pass_all
12956 lt_cv_deplibs_check_method=pass_all
12960 lt_cv_deplibs_check_method=pass_all
12963 hpux10.20* | hpux11*)
12964 lt_cv_file_magic_cmd=/usr/bin/file
12967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12971 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]'
12972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12986 irix5* | irix6* | nonstopux*)
12988 *-32|*"-32 ") libmagic=32-bit;;
12989 *-n32|*"-n32 ") libmagic=N32;;
12990 *-64|*"-64 ") libmagic=64-bit;;
12991 *) libmagic=never-match;;
12993 lt_cv_deplibs_check_method=pass_all
12996 # This must be Linux ELF.
12997 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12998 lt_cv_deplibs_check_method=pass_all
13002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13011 lt_cv_file_magic_cmd=/usr/bin/file
13012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13016 lt_cv_deplibs_check_method=pass_all
13020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13027 osf3* | osf4* | osf5*)
13028 lt_cv_deplibs_check_method=pass_all
13032 lt_cv_deplibs_check_method=pass_all
13036 lt_cv_deplibs_check_method=pass_all
13039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13040 lt_cv_deplibs_check_method=pass_all
13044 case $host_vendor in
13046 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]'
13047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13050 lt_cv_deplibs_check_method=pass_all
13053 lt_cv_file_magic_cmd='/bin/file'
13054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13057 lt_cv_file_magic_cmd='/bin/file'
13058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13059 lt_cv_file_magic_test_file=/lib/libc.so
13062 lt_cv_deplibs_check_method=pass_all
13065 lt_cv_deplibs_check_method=pass_all
13071 lt_cv_deplibs_check_method=pass_all
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13077 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13078 file_magic_cmd=$lt_cv_file_magic_cmd
13079 deplibs_check_method=$lt_cv_deplibs_check_method
13080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13093 if test -n "$ac_tool_prefix"; then
13094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13095 set dummy ${ac_tool_prefix}ar; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if test "${ac_cv_prog_AR+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13101 if test -n "$AR"; then
13102 ac_cv_prog_AR="$AR" # Let the user override the test.
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_prog_AR="${ac_tool_prefix}ar"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 if test -n "$AR"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13124 $as_echo "$AR" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13132 if test -z "$ac_cv_prog_AR"; then
13134 # Extract the first word of "ar", so it can be a program name with args.
13135 set dummy ar; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13141 if test -n "$ac_ct_AR"; then
13142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_ac_ct_AR="ar"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13162 if test -n "$ac_ct_AR"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13164 $as_echo "$ac_ct_AR" >&6; }
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13170 if test "x$ac_ct_AR" = x; then
13173 case $cross_compiling:$ac_tool_warned in
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13177 ac_tool_warned=yes ;;
13182 AR="$ac_cv_prog_AR"
13185 test -z "$AR" && AR=ar
13186 test -z "$AR_FLAGS" && AR_FLAGS=cru
13198 if test -n "$ac_tool_prefix"; then
13199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13200 set dummy ${ac_tool_prefix}strip; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if test "${ac_cv_prog_STRIP+set}" = set; then :
13204 $as_echo_n "(cached) " >&6
13206 if test -n "$STRIP"; then
13207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226 STRIP=$ac_cv_prog_STRIP
13227 if test -n "$STRIP"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13229 $as_echo "$STRIP" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13237 if test -z "$ac_cv_prog_STRIP"; then
13239 # Extract the first word of "strip", so it can be a program name with args.
13240 set dummy strip; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13244 $as_echo_n "(cached) " >&6
13246 if test -n "$ac_ct_STRIP"; then
13247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256 ac_cv_prog_ac_ct_STRIP="strip"
13257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13267 if test -n "$ac_ct_STRIP"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13269 $as_echo "$ac_ct_STRIP" >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13275 if test "x$ac_ct_STRIP" = x; then
13278 case $cross_compiling:$ac_tool_warned in
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13282 ac_tool_warned=yes ;;
13287 STRIP="$ac_cv_prog_STRIP"
13290 test -z "$STRIP" && STRIP=:
13297 if test -n "$ac_tool_prefix"; then
13298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13301 $as_echo_n "checking for $ac_word... " >&6; }
13302 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13305 if test -n "$RANLIB"; then
13306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309 for as_dir in $PATH
13312 test -z "$as_dir" && as_dir=.
13313 for ac_exec_ext in '' $ac_executable_extensions; do
13314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13325 RANLIB=$ac_cv_prog_RANLIB
13326 if test -n "$RANLIB"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13328 $as_echo "$RANLIB" >&6; }
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13331 $as_echo "no" >&6; }
13336 if test -z "$ac_cv_prog_RANLIB"; then
13337 ac_ct_RANLIB=$RANLIB
13338 # Extract the first word of "ranlib", so it can be a program name with args.
13339 set dummy ranlib; ac_word=$2
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341 $as_echo_n "checking for $ac_word... " >&6; }
13342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13343 $as_echo_n "(cached) " >&6
13345 if test -n "$ac_ct_RANLIB"; then
13346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13352 test -z "$as_dir" && as_dir=.
13353 for ac_exec_ext in '' $ac_executable_extensions; do
13354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13355 ac_cv_prog_ac_ct_RANLIB="ranlib"
13356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13366 if test -n "$ac_ct_RANLIB"; then
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13368 $as_echo "$ac_ct_RANLIB" >&6; }
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13374 if test "x$ac_ct_RANLIB" = x; then
13377 case $cross_compiling:$ac_tool_warned in
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13381 ac_tool_warned=yes ;;
13383 RANLIB=$ac_ct_RANLIB
13386 RANLIB="$ac_cv_prog_RANLIB"
13389 test -z "$RANLIB" && RANLIB=:
13396 # Determine commands to create old-style static archives.
13397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13398 old_postinstall_cmds='chmod 644 $oldlib'
13399 old_postuninstall_cmds=
13401 if test -n "$RANLIB"; then
13404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13415 lock_old_archive_extraction=yes ;;
13417 lock_old_archive_extraction=no ;;
13458 # If no C compiler was specified, use CC.
13461 # If no C compiler flags were specified, use CFLAGS.
13462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13464 # Allow CC to be a program name with arguments.
13468 # Check for command to grab the raw symbol name followed by C symbol from nm.
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13470 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13471 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13475 # These are sane defaults that work on at least a few old systems.
13476 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13478 # Character class describing NM global symbol codes.
13479 symcode='[BCDEGRST]'
13481 # Regexp to match symbols that can be accessed directly from C.
13482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13484 # Define system-specific variables.
13489 cygwin* | mingw* | pw32* | cegcc*)
13490 symcode='[ABCDGISTW]'
13493 if test "$host_cpu" = ia64; then
13494 symcode='[ABCDEGRST]'
13497 irix* | nonstopux*)
13498 symcode='[BCDEGRST]'
13501 symcode='[BCDEGQRST]'
13512 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13520 # If we're using GNU nm, then use its standard symbol codes.
13521 case `$NM -V 2>&1` in
13522 *GNU* | *'with BFD'*)
13523 symcode='[ABCDGIRSTW]' ;;
13526 # Transform an extracted symbol line into a proper C declaration.
13527 # Some systems (esp. on ia64) link data and code symbols differently,
13528 # so use this general approach.
13529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13531 # Transform an extracted symbol line into symbol name and symbol address
13532 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13533 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'"
13535 # Handle CRLF in mingw tool chain
13539 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13543 # Try without a prefix underscore, then with it.
13544 for ac_symprfx in "" "_"; do
13546 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13547 symxfrm="\\1 $ac_symprfx\\2 \\2"
13549 # Write the raw and C identifiers.
13550 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13551 # Fake it for dumpbin and say T for any non-static function
13552 # and D for any global variable.
13553 # Also find C++ and __fastcall symbols from MSVC++,
13554 # which start with @ or ?.
13555 lt_cv_sys_global_symbol_pipe="$AWK '"\
13556 " {last_section=section; section=\$ 3};"\
13557 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13558 " \$ 0!~/External *\|/{next};"\
13559 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13560 " {if(hide[section]) next};"\
13561 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13562 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13563 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13564 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13565 " ' prfx=^$ac_symprfx"
13567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13570 # Check to see that the pipe works correctly.
13574 cat > conftest.$ac_ext <<_LT_EOF
13579 void nm_test_func(void);
13580 void nm_test_func(void){}
13584 int main(){nm_test_var='a';nm_test_func();return(0);}
13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13588 (eval $ac_compile) 2>&5
13590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13591 test $ac_status = 0; }; then
13592 # Now try to grab the symbols.
13594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13595 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598 test $ac_status = 0; } && test -s "$nlist"; then
13599 # Try sorting and uniquifying the output.
13600 if sort "$nlist" | uniq > "$nlist"T; then
13601 mv -f "$nlist"T "$nlist"
13606 # Make sure that we snagged all the symbols we need.
13607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13609 cat <<_LT_EOF > conftest.$ac_ext
13615 # Now generate the symbol file.
13616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13618 cat <<_LT_EOF >> conftest.$ac_ext
13620 /* The mapping between symbol names and symbols. */
13625 lt__PROGRAM__LTX_preloaded_symbols[] =
13627 { "@PROGRAM@", (void *) 0 },
13629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13630 cat <<\_LT_EOF >> conftest.$ac_ext
13634 /* This works around a problem in FreeBSD linker */
13635 #ifdef FREEBSD_WORKAROUND
13636 static const void *lt_preloaded_setup() {
13637 return lt__PROGRAM__LTX_preloaded_symbols;
13645 # Now try linking the two files.
13646 mv conftest.$ac_objext conftstm.$ac_objext
13647 lt_save_LIBS="$LIBS"
13648 lt_save_CFLAGS="$CFLAGS"
13649 LIBS="conftstm.$ac_objext"
13650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13652 (eval $ac_link) 2>&5
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13658 LIBS="$lt_save_LIBS"
13659 CFLAGS="$lt_save_CFLAGS"
13661 echo "cannot find nm_test_func in $nlist" >&5
13664 echo "cannot find nm_test_var in $nlist" >&5
13667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13670 echo "$progname: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13673 rm -rf conftest* conftst*
13675 # Do not use the global_symbol_pipe unless it works.
13676 if test "$pipe_works" = yes; then
13679 lt_cv_sys_global_symbol_pipe=
13685 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13686 lt_cv_sys_global_symbol_to_cdecl=
13688 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13690 $as_echo "failed" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13693 $as_echo "ok" >&6; }
13717 # Check whether --enable-libtool-lock was given.
13718 if test "${enable_libtool_lock+set}" = set; then :
13719 enableval=$enable_libtool_lock;
13722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13724 # Some flags need to be propagated to the compiler or linker for good
13728 # Find out which ABI we are using.
13729 echo 'int i;' > conftest.$ac_ext
13730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13731 (eval $ac_compile) 2>&5
13733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734 test $ac_status = 0; }; then
13735 case `/usr/bin/file conftest.$ac_objext` in
13737 HPUX_IA64_MODE="32"
13740 HPUX_IA64_MODE="64"
13747 # Find out which ABI we are using.
13748 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13750 (eval $ac_compile) 2>&5
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }; then
13754 if test "$lt_cv_prog_gnu_ld" = yes; then
13755 case `/usr/bin/file conftest.$ac_objext` in
13757 LD="${LD-ld} -melf32bsmip"
13760 LD="${LD-ld} -melf32bmipn32"
13763 LD="${LD-ld} -melf64bmip"
13767 case `/usr/bin/file conftest.$ac_objext` in
13783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13785 # Find out which ABI we are using.
13786 echo 'int i;' > conftest.$ac_ext
13787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13788 (eval $ac_compile) 2>&5
13790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13791 test $ac_status = 0; }; then
13792 case `/usr/bin/file conftest.o` in
13795 x86_64-*kfreebsd*-gnu)
13796 LD="${LD-ld} -m elf_i386_fbsd"
13799 LD="${LD-ld} -m elf_i386"
13801 ppc64-*linux*|powerpc64-*linux*)
13802 LD="${LD-ld} -m elf32ppclinux"
13805 LD="${LD-ld} -m elf_s390"
13808 LD="${LD-ld} -m elf32_sparc"
13814 x86_64-*kfreebsd*-gnu)
13815 LD="${LD-ld} -m elf_x86_64_fbsd"
13818 LD="${LD-ld} -m elf_x86_64"
13820 ppc*-*linux*|powerpc*-*linux*)
13821 LD="${LD-ld} -m elf64ppc"
13823 s390*-*linux*|s390*-*tpf*)
13824 LD="${LD-ld} -m elf64_s390"
13827 LD="${LD-ld} -m elf64_sparc"
13837 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13838 SAVE_CFLAGS="$CFLAGS"
13839 CFLAGS="$CFLAGS -belf"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13841 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13842 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13843 $as_echo_n "(cached) " >&6
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 lt_cv_cc_needs_belf=yes
13865 lt_cv_cc_needs_belf=no
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13870 ac_cpp='$CPP $CPPFLAGS'
13871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13877 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13878 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13880 CFLAGS="$SAVE_CFLAGS"
13884 # Find out which ABI we are using.
13885 echo 'int i;' > conftest.$ac_ext
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887 (eval $ac_compile) 2>&5
13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; }; then
13891 case `/usr/bin/file conftest.o` in
13893 case $lt_cv_prog_gnu_ld in
13894 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13896 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13908 need_locks="$enable_libtool_lock"
13912 rhapsody* | darwin*)
13913 if test -n "$ac_tool_prefix"; then
13914 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13915 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13919 $as_echo_n "(cached) " >&6
13921 if test -n "$DSYMUTIL"; then
13922 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13931 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13942 if test -n "$DSYMUTIL"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13944 $as_echo "$DSYMUTIL" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13952 if test -z "$ac_cv_prog_DSYMUTIL"; then
13953 ac_ct_DSYMUTIL=$DSYMUTIL
13954 # Extract the first word of "dsymutil", so it can be a program name with args.
13955 set dummy dsymutil; ac_word=$2
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13957 $as_echo_n "checking for $ac_word... " >&6; }
13958 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13961 if test -n "$ac_ct_DSYMUTIL"; then
13962 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13965 for as_dir in $PATH
13968 test -z "$as_dir" && as_dir=.
13969 for ac_exec_ext in '' $ac_executable_extensions; do
13970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13971 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13981 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13982 if test -n "$ac_ct_DSYMUTIL"; then
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13984 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987 $as_echo "no" >&6; }
13990 if test "x$ac_ct_DSYMUTIL" = x; then
13993 case $cross_compiling:$ac_tool_warned in
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13997 ac_tool_warned=yes ;;
13999 DSYMUTIL=$ac_ct_DSYMUTIL
14002 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14005 if test -n "$ac_tool_prefix"; then
14006 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14007 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14009 $as_echo_n "checking for $ac_word... " >&6; }
14010 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14013 if test -n "$NMEDIT"; then
14014 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
14022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14023 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14033 NMEDIT=$ac_cv_prog_NMEDIT
14034 if test -n "$NMEDIT"; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14036 $as_echo "$NMEDIT" >&6; }
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14044 if test -z "$ac_cv_prog_NMEDIT"; then
14045 ac_ct_NMEDIT=$NMEDIT
14046 # Extract the first word of "nmedit", so it can be a program name with args.
14047 set dummy nmedit; ac_word=$2
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14049 $as_echo_n "checking for $ac_word... " >&6; }
14050 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14051 $as_echo_n "(cached) " >&6
14053 if test -n "$ac_ct_NMEDIT"; then
14054 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14057 for as_dir in $PATH
14060 test -z "$as_dir" && as_dir=.
14061 for ac_exec_ext in '' $ac_executable_extensions; do
14062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14063 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14073 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14074 if test -n "$ac_ct_NMEDIT"; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14076 $as_echo "$ac_ct_NMEDIT" >&6; }
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079 $as_echo "no" >&6; }
14082 if test "x$ac_ct_NMEDIT" = x; then
14085 case $cross_compiling:$ac_tool_warned in
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14089 ac_tool_warned=yes ;;
14091 NMEDIT=$ac_ct_NMEDIT
14094 NMEDIT="$ac_cv_prog_NMEDIT"
14097 if test -n "$ac_tool_prefix"; then
14098 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14099 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101 $as_echo_n "checking for $ac_word... " >&6; }
14102 if test "${ac_cv_prog_LIPO+set}" = set; then :
14103 $as_echo_n "(cached) " >&6
14105 if test -n "$LIPO"; then
14106 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14115 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 LIPO=$ac_cv_prog_LIPO
14126 if test -n "$LIPO"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14128 $as_echo "$LIPO" >&6; }
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14136 if test -z "$ac_cv_prog_LIPO"; then
14138 # Extract the first word of "lipo", so it can be a program name with args.
14139 set dummy lipo; ac_word=$2
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14141 $as_echo_n "checking for $ac_word... " >&6; }
14142 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14143 $as_echo_n "(cached) " >&6
14145 if test -n "$ac_ct_LIPO"; then
14146 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14149 for as_dir in $PATH
14152 test -z "$as_dir" && as_dir=.
14153 for ac_exec_ext in '' $ac_executable_extensions; do
14154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14155 ac_cv_prog_ac_ct_LIPO="lipo"
14156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14165 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14166 if test -n "$ac_ct_LIPO"; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14168 $as_echo "$ac_ct_LIPO" >&6; }
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 $as_echo "no" >&6; }
14174 if test "x$ac_ct_LIPO" = x; then
14177 case $cross_compiling:$ac_tool_warned in
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14181 ac_tool_warned=yes ;;
14186 LIPO="$ac_cv_prog_LIPO"
14189 if test -n "$ac_tool_prefix"; then
14190 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14191 set dummy ${ac_tool_prefix}otool; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 $as_echo_n "checking for $ac_word... " >&6; }
14194 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14195 $as_echo_n "(cached) " >&6
14197 if test -n "$OTOOL"; then
14198 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14207 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14217 OTOOL=$ac_cv_prog_OTOOL
14218 if test -n "$OTOOL"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14220 $as_echo "$OTOOL" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14228 if test -z "$ac_cv_prog_OTOOL"; then
14230 # Extract the first word of "otool", so it can be a program name with args.
14231 set dummy otool; ac_word=$2
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14233 $as_echo_n "checking for $ac_word... " >&6; }
14234 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14235 $as_echo_n "(cached) " >&6
14237 if test -n "$ac_ct_OTOOL"; then
14238 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14241 for as_dir in $PATH
14244 test -z "$as_dir" && as_dir=.
14245 for ac_exec_ext in '' $ac_executable_extensions; do
14246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14247 ac_cv_prog_ac_ct_OTOOL="otool"
14248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14257 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14258 if test -n "$ac_ct_OTOOL"; then
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14260 $as_echo "$ac_ct_OTOOL" >&6; }
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14263 $as_echo "no" >&6; }
14266 if test "x$ac_ct_OTOOL" = x; then
14269 case $cross_compiling:$ac_tool_warned in
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14273 ac_tool_warned=yes ;;
14278 OTOOL="$ac_cv_prog_OTOOL"
14281 if test -n "$ac_tool_prefix"; then
14282 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14283 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14289 if test -n "$OTOOL64"; then
14290 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14309 OTOOL64=$ac_cv_prog_OTOOL64
14310 if test -n "$OTOOL64"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14312 $as_echo "$OTOOL64" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14320 if test -z "$ac_cv_prog_OTOOL64"; then
14321 ac_ct_OTOOL64=$OTOOL64
14322 # Extract the first word of "otool64", so it can be a program name with args.
14323 set dummy otool64; ac_word=$2
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14329 if test -n "$ac_ct_OTOOL64"; then
14330 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14333 for as_dir in $PATH
14336 test -z "$as_dir" && as_dir=.
14337 for ac_exec_ext in '' $ac_executable_extensions; do
14338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14339 ac_cv_prog_ac_ct_OTOOL64="otool64"
14340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14349 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14350 if test -n "$ac_ct_OTOOL64"; then
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14352 $as_echo "$ac_ct_OTOOL64" >&6; }
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14358 if test "x$ac_ct_OTOOL64" = x; then
14361 case $cross_compiling:$ac_tool_warned in
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14365 ac_tool_warned=yes ;;
14367 OTOOL64=$ac_ct_OTOOL64
14370 OTOOL64="$ac_cv_prog_OTOOL64"
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14400 $as_echo_n "checking for -single_module linker flag... " >&6; }
14401 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14404 lt_cv_apple_cc_single_mod=no
14405 if test -z "${LT_MULTI_MODULE}"; then
14406 # By default we will add the -single_module flag. You can override
14407 # by either setting the environment variable LT_MULTI_MODULE
14408 # non-empty at configure time, or by adding -multi_module to the
14410 rm -rf libconftest.dylib*
14411 echo "int foo(void){return 1;}" > conftest.c
14412 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14413 -dynamiclib -Wl,-single_module conftest.c" >&5
14414 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14415 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14417 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14418 lt_cv_apple_cc_single_mod=yes
14420 cat conftest.err >&5
14422 rm -rf libconftest.dylib*
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14427 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14429 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14430 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14431 $as_echo_n "(cached) " >&6
14433 lt_cv_ld_exported_symbols_list=no
14434 save_LDFLAGS=$LDFLAGS
14435 echo "_main" > conftest.sym
14436 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14448 if ac_fn_c_try_link "$LINENO"; then :
14449 lt_cv_ld_exported_symbols_list=yes
14451 lt_cv_ld_exported_symbols_list=no
14453 rm -f core conftest.err conftest.$ac_objext \
14454 conftest$ac_exeext conftest.$ac_ext
14455 LDFLAGS="$save_LDFLAGS"
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14459 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14461 $as_echo_n "checking for -force_load linker flag... " >&6; }
14462 if test "${lt_cv_ld_force_load+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14465 lt_cv_ld_force_load=no
14466 cat > conftest.c << _LT_EOF
14467 int forced_loaded() { return 2;}
14469 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14470 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14471 echo "$AR cru libconftest.a conftest.o" >&5
14472 $AR cru libconftest.a conftest.o 2>&5
14473 cat > conftest.c << _LT_EOF
14474 int main() { return 0;}
14476 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14477 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14479 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14480 lt_cv_ld_force_load=yes
14482 cat conftest.err >&5
14484 rm -f conftest.err libconftest.a conftest conftest.c
14485 rm -rf conftest.dSYM
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14489 $as_echo "$lt_cv_ld_force_load" >&6; }
14491 rhapsody* | darwin1.[012])
14492 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14494 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14495 darwin*) # darwin 5.x on
14496 # if running on 10.5 or later, the deployment target defaults
14497 # to the OS version, if on x86, and 10.4, the deployment
14498 # target defaults to 10.4. Don't you love it?
14499 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14500 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14503 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14509 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14510 _lt_dar_single_mod='$single_module'
14512 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14513 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14515 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14517 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14518 _lt_dsymutil='~$DSYMUTIL $lib || :'
14525 for ac_header in dlfcn.h
14527 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14528 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14529 cat >>confdefs.h <<_ACEOF
14530 #define HAVE_DLFCN_H 1
14547 enable_win32_dll=no
14550 # Check whether --enable-shared was given.
14551 if test "${enable_shared+set}" = set; then :
14552 enableval=$enable_shared; p=${PACKAGE-default}
14554 yes) enable_shared=yes ;;
14555 no) enable_shared=no ;;
14558 # Look at the argument we got. We use all the common list separators.
14559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14560 for pkg in $enableval; do
14562 if test "X$pkg" = "X$p"; then
14581 # Check whether --enable-static was given.
14582 if test "${enable_static+set}" = set; then :
14583 enableval=$enable_static; p=${PACKAGE-default}
14585 yes) enable_static=yes ;;
14586 no) enable_static=no ;;
14589 # Look at the argument we got. We use all the common list separators.
14590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14591 for pkg in $enableval; do
14593 if test "X$pkg" = "X$p"; then
14613 # Check whether --with-pic was given.
14614 if test "${with_pic+set}" = set; then :
14615 withval=$with_pic; pic_mode="$withval"
14621 test -z "$pic_mode" && pic_mode=default
14629 # Check whether --enable-fast-install was given.
14630 if test "${enable_fast_install+set}" = set; then :
14631 enableval=$enable_fast_install; p=${PACKAGE-default}
14633 yes) enable_fast_install=yes ;;
14634 no) enable_fast_install=no ;;
14636 enable_fast_install=no
14637 # Look at the argument we got. We use all the common list separators.
14638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14639 for pkg in $enableval; do
14641 if test "X$pkg" = "X$p"; then
14642 enable_fast_install=yes
14649 enable_fast_install=yes
14662 # This can be used to rebuild libtool when needed
14663 LIBTOOL_DEPS="$ltmain"
14665 # Always use our own libtool.
14666 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14693 test -z "$LN_S" && LN_S="ln -s"
14708 if test -n "${ZSH_VERSION+set}" ; then
14709 setopt NO_GLOB_SUBST
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14713 $as_echo_n "checking for objdir... " >&6; }
14714 if test "${lt_cv_objdir+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14717 rm -f .libs 2>/dev/null
14718 mkdir .libs 2>/dev/null
14719 if test -d .libs; then
14722 # MS-DOS does not allow filenames that begin with a dot.
14725 rmdir .libs 2>/dev/null
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14728 $as_echo "$lt_cv_objdir" >&6; }
14729 objdir=$lt_cv_objdir
14735 cat >>confdefs.h <<_ACEOF
14736 #define LT_OBJDIR "$lt_cv_objdir/"
14744 # AIX sometimes has problems with the GCC collect2 program. For some
14745 # reason, if we set the COLLECT_NAMES environment variable, the problems
14746 # vanish in a puff of smoke.
14747 if test "X${COLLECT_NAMES+set}" != Xset; then
14749 export COLLECT_NAMES
14754 # Global variables:
14756 can_build_shared=yes
14758 # All known linkers require a `.a' archive for static linking (except MSVC,
14759 # which needs '.lib').
14762 with_gnu_ld="$lt_cv_prog_gnu_ld"
14765 old_CFLAGS="$CFLAGS"
14767 # Set sane defaults for various variables
14768 test -z "$CC" && CC=cc
14769 test -z "$LTCC" && LTCC=$CC
14770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14771 test -z "$LD" && LD=ld
14772 test -z "$ac_objext" && ac_objext=o
14774 for cc_temp in $compiler""; do
14776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14782 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14785 # Only perform the check for file, if the check method requires it
14786 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14787 case $deplibs_check_method in
14789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14791 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14792 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14793 $as_echo_n "(cached) " >&6
14797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14800 lt_save_MAGIC_CMD="$MAGIC_CMD"
14801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14803 for ac_dir in $ac_dummy; do
14805 test -z "$ac_dir" && ac_dir=.
14806 if test -f $ac_dir/${ac_tool_prefix}file; then
14807 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14808 if test -n "$file_magic_test_file"; then
14809 case $deplibs_check_method in
14811 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14814 $EGREP "$file_magic_regex" > /dev/null; then
14819 *** Warning: the command libtool uses to detect shared libraries,
14820 *** $file_magic_cmd, produces output that libtool cannot recognize.
14821 *** The result is that libtool may fail to recognize shared libraries
14822 *** as such. This will affect the creation of libtool libraries that
14823 *** depend on shared libraries, but programs linked with such libtool
14824 *** libraries will work regardless of this problem. Nevertheless, you
14825 *** may want to report the problem to your system manager and/or to
14826 *** bug-libtool@gnu.org
14836 MAGIC_CMD="$lt_save_MAGIC_CMD"
14841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14842 if test -n "$MAGIC_CMD"; then
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14844 $as_echo "$MAGIC_CMD" >&6; }
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847 $as_echo "no" >&6; }
14854 if test -z "$lt_cv_path_MAGIC_CMD"; then
14855 if test -n "$ac_tool_prefix"; then
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14857 $as_echo_n "checking for file... " >&6; }
14858 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14859 $as_echo_n "(cached) " >&6
14863 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14866 lt_save_MAGIC_CMD="$MAGIC_CMD"
14867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14868 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14869 for ac_dir in $ac_dummy; do
14871 test -z "$ac_dir" && ac_dir=.
14872 if test -f $ac_dir/file; then
14873 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14874 if test -n "$file_magic_test_file"; then
14875 case $deplibs_check_method in
14877 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14879 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14880 $EGREP "$file_magic_regex" > /dev/null; then
14885 *** Warning: the command libtool uses to detect shared libraries,
14886 *** $file_magic_cmd, produces output that libtool cannot recognize.
14887 *** The result is that libtool may fail to recognize shared libraries
14888 *** as such. This will affect the creation of libtool libraries that
14889 *** depend on shared libraries, but programs linked with such libtool
14890 *** libraries will work regardless of this problem. Nevertheless, you
14891 *** may want to report the problem to your system manager and/or to
14892 *** bug-libtool@gnu.org
14902 MAGIC_CMD="$lt_save_MAGIC_CMD"
14907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14908 if test -n "$MAGIC_CMD"; then
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14910 $as_echo "$MAGIC_CMD" >&6; }
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14913 $as_echo "no" >&6; }
14926 # Use C for the default configuration in the libtool script
14930 ac_cpp='$CPP $CPPFLAGS'
14931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14936 # Source file extension for C test sources.
14939 # Object file extension for compiled C test sources.
14943 # Code to be used in simple compile tests
14944 lt_simple_compile_test_code="int some_variable = 0;"
14946 # Code to be used in simple link tests
14947 lt_simple_link_test_code='int main(){return(0);}'
14955 # If no C compiler was specified, use CC.
14958 # If no C compiler flags were specified, use CFLAGS.
14959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14961 # Allow CC to be a program name with arguments.
14964 # Save the default compiler, since it gets overwritten when the other
14965 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14966 compiler_DEFAULT=$CC
14968 # save warnings/boilerplate of simple test code
14969 ac_outfile=conftest.$ac_objext
14970 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14971 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14972 _lt_compiler_boilerplate=`cat conftest.err`
14975 ac_outfile=conftest.$ac_objext
14976 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14977 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14978 _lt_linker_boilerplate=`cat conftest.err`
14983 ## There is no encapsulation within the following macros, do not change
14984 ## the running order or otherwise move them around unless you know exactly
14985 ## what you are doing...
14986 if test -n "$compiler"; then
14988 lt_prog_compiler_no_builtin_flag=
14990 if test "$GCC" = yes; then
14991 case $cc_basename in
14993 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14995 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14999 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15000 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15001 $as_echo_n "(cached) " >&6
15003 lt_cv_prog_compiler_rtti_exceptions=no
15004 ac_outfile=conftest.$ac_objext
15005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15006 lt_compiler_flag="-fno-rtti -fno-exceptions"
15007 # Insert the option either (1) after the last *FLAGS variable, or
15008 # (2) before a word containing "conftest.", or (3) at the end.
15009 # Note that $ac_compile itself does not contain backslashes and begins
15010 # with a dollar sign (not a hyphen), so the echo should work correctly.
15011 # The option is referenced via a variable to avoid confusing sed.
15012 lt_compile=`echo "$ac_compile" | $SED \
15013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15015 -e 's:$: $lt_compiler_flag:'`
15016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15017 (eval "$lt_compile" 2>conftest.err)
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 if (exit $ac_status) && test -s "$ac_outfile"; then
15022 # The compiler can only warn and ignore the option if not recognized
15023 # So say no if there are warnings other than the usual output.
15024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15027 lt_cv_prog_compiler_rtti_exceptions=yes
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15034 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15036 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15037 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15049 lt_prog_compiler_wl=
15050 lt_prog_compiler_pic=
15051 lt_prog_compiler_static=
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15056 if test "$GCC" = yes; then
15057 lt_prog_compiler_wl='-Wl,'
15058 lt_prog_compiler_static='-static'
15062 # All AIX code is PIC.
15063 if test "$host_cpu" = ia64; then
15064 # AIX 5 now supports IA64 processor
15065 lt_prog_compiler_static='-Bstatic'
15072 # see comment about AmigaOS4 .so support
15073 lt_prog_compiler_pic='-fPIC'
15076 # FIXME: we need at least 68020 code to build shared libraries, but
15077 # adding the `-m68020' flag to GCC prevents building anything better,
15079 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15084 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15085 # PIC is the default for these OSes.
15088 mingw* | cygwin* | pw32* | os2* | cegcc*)
15089 # This hack is so that the source file can tell whether it is being
15090 # built for inclusion in a dll (and should export symbols for example).
15091 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15092 # (--disable-auto-import) libraries
15093 lt_prog_compiler_pic='-DDLL_EXPORT'
15096 darwin* | rhapsody*)
15097 # PIC is the default on this platform
15098 # Common symbols not allowed in MH_DYLIB files
15099 lt_prog_compiler_pic='-fno-common'
15103 # PIC is the default for Haiku.
15104 # The "-static" flag exists, but is broken.
15105 lt_prog_compiler_static=
15109 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15110 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15111 # sets the default TLS model and affects inlining.
15117 lt_prog_compiler_pic='-fPIC'
15123 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15124 # Instead, we relocate shared libraries at runtime.
15128 # Just because we use GCC doesn't mean we suddenly get shared libraries
15129 # on systems that don't support them.
15130 lt_prog_compiler_can_build_shared=no
15135 # QNX uses GNU C++, but need to define -shared option too, otherwise
15136 # it will coredump.
15137 lt_prog_compiler_pic='-fPIC -shared'
15141 if test -d /usr/nec; then
15142 lt_prog_compiler_pic=-Kconform_pic
15147 lt_prog_compiler_pic='-fPIC'
15151 case $cc_basename in
15152 nvcc*) # Cuda Compiler Driver 2.2
15153 lt_prog_compiler_wl='-Xlinker '
15154 lt_prog_compiler_pic='-Xcompiler -fPIC'
15158 # PORTME Check for flag to pass linker flags through the system compiler.
15161 lt_prog_compiler_wl='-Wl,'
15162 if test "$host_cpu" = ia64; then
15163 # AIX 5 now supports IA64 processor
15164 lt_prog_compiler_static='-Bstatic'
15166 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15170 mingw* | cygwin* | pw32* | os2* | cegcc*)
15171 # This hack is so that the source file can tell whether it is being
15172 # built for inclusion in a dll (and should export symbols for example).
15173 lt_prog_compiler_pic='-DDLL_EXPORT'
15176 hpux9* | hpux10* | hpux11*)
15177 lt_prog_compiler_wl='-Wl,'
15178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15179 # not for PA HP-UX.
15185 lt_prog_compiler_pic='+Z'
15188 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15189 lt_prog_compiler_static='${wl}-a ${wl}archive'
15192 irix5* | irix6* | nonstopux*)
15193 lt_prog_compiler_wl='-Wl,'
15194 # PIC (with -KPIC) is the default.
15195 lt_prog_compiler_static='-non_shared'
15198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15199 case $cc_basename in
15200 # old Intel for x86_64 which still supported -KPIC.
15202 lt_prog_compiler_wl='-Wl,'
15203 lt_prog_compiler_pic='-KPIC'
15204 lt_prog_compiler_static='-static'
15206 # icc used to be incompatible with GCC.
15207 # ICC 10 doesn't accept -KPIC any more.
15209 lt_prog_compiler_wl='-Wl,'
15210 lt_prog_compiler_pic='-fPIC'
15211 lt_prog_compiler_static='-static'
15213 # Lahey Fortran 8.1.
15215 lt_prog_compiler_wl='-Wl,'
15216 lt_prog_compiler_pic='--shared'
15217 lt_prog_compiler_static='--static'
15219 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15220 # Portland Group compilers (*not* the Pentium gcc compiler,
15221 # which looks to be a dead project)
15222 lt_prog_compiler_wl='-Wl,'
15223 lt_prog_compiler_pic='-fpic'
15224 lt_prog_compiler_static='-Bstatic'
15227 lt_prog_compiler_wl='-Wl,'
15228 # All Alpha code is PIC.
15229 lt_prog_compiler_static='-non_shared'
15231 xl* | bgxl* | bgf* | mpixl*)
15232 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15233 lt_prog_compiler_wl='-Wl,'
15234 lt_prog_compiler_pic='-qpic'
15235 lt_prog_compiler_static='-qstaticlink'
15238 case `$CC -V 2>&1 | sed 5q` in
15239 *Sun\ F* | *Sun*Fortran*)
15240 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15241 lt_prog_compiler_pic='-KPIC'
15242 lt_prog_compiler_static='-Bstatic'
15243 lt_prog_compiler_wl=''
15247 lt_prog_compiler_pic='-KPIC'
15248 lt_prog_compiler_static='-Bstatic'
15249 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-KPIC'
15258 lt_prog_compiler_static='-Bstatic'
15262 # QNX uses GNU C++, but need to define -shared option too, otherwise
15263 # it will coredump.
15264 lt_prog_compiler_pic='-fPIC -shared'
15267 osf3* | osf4* | osf5*)
15268 lt_prog_compiler_wl='-Wl,'
15269 # All OSF/1 code is PIC.
15270 lt_prog_compiler_static='-non_shared'
15274 lt_prog_compiler_static='-non_shared'
15278 lt_prog_compiler_pic='-KPIC'
15279 lt_prog_compiler_static='-Bstatic'
15280 case $cc_basename in
15281 f77* | f90* | f95*)
15282 lt_prog_compiler_wl='-Qoption ld ';;
15284 lt_prog_compiler_wl='-Wl,';;
15289 lt_prog_compiler_wl='-Qoption ld '
15290 lt_prog_compiler_pic='-PIC'
15291 lt_prog_compiler_static='-Bstatic'
15294 sysv4 | sysv4.2uw2* | sysv4.3*)
15295 lt_prog_compiler_wl='-Wl,'
15296 lt_prog_compiler_pic='-KPIC'
15297 lt_prog_compiler_static='-Bstatic'
15301 if test -d /usr/nec ;then
15302 lt_prog_compiler_pic='-Kconform_pic'
15303 lt_prog_compiler_static='-Bstatic'
15307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15308 lt_prog_compiler_wl='-Wl,'
15309 lt_prog_compiler_pic='-KPIC'
15310 lt_prog_compiler_static='-Bstatic'
15314 lt_prog_compiler_wl='-Wl,'
15315 lt_prog_compiler_can_build_shared=no
15319 lt_prog_compiler_pic='-pic'
15320 lt_prog_compiler_static='-Bstatic'
15324 lt_prog_compiler_can_build_shared=no
15330 # For platforms which do not support PIC, -DPIC is meaningless:
15332 lt_prog_compiler_pic=
15335 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15339 $as_echo "$lt_prog_compiler_pic" >&6; }
15347 # Check to make sure the PIC flag actually works.
15349 if test -n "$lt_prog_compiler_pic"; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15351 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15352 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15353 $as_echo_n "(cached) " >&6
15355 lt_cv_prog_compiler_pic_works=no
15356 ac_outfile=conftest.$ac_objext
15357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15358 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15359 # Insert the option either (1) after the last *FLAGS variable, or
15360 # (2) before a word containing "conftest.", or (3) at the end.
15361 # Note that $ac_compile itself does not contain backslashes and begins
15362 # with a dollar sign (not a hyphen), so the echo should work correctly.
15363 # The option is referenced via a variable to avoid confusing sed.
15364 lt_compile=`echo "$ac_compile" | $SED \
15365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15367 -e 's:$: $lt_compiler_flag:'`
15368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15369 (eval "$lt_compile" 2>conftest.err)
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 if (exit $ac_status) && test -s "$ac_outfile"; then
15374 # The compiler can only warn and ignore the option if not recognized
15375 # So say no if there are warnings other than the usual output.
15376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15379 lt_cv_prog_compiler_pic_works=yes
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15386 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15388 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15389 case $lt_prog_compiler_pic in
15391 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15394 lt_prog_compiler_pic=
15395 lt_prog_compiler_can_build_shared=no
15406 # Check to make sure the static flag actually works.
15408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15410 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15411 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15412 $as_echo_n "(cached) " >&6
15414 lt_cv_prog_compiler_static_works=no
15415 save_LDFLAGS="$LDFLAGS"
15416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15419 # The linker can only warn and ignore the option if not recognized
15420 # So say no if there are warnings
15421 if test -s conftest.err; then
15422 # Append any errors to the config.log.
15423 cat conftest.err 1>&5
15424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15426 if diff conftest.exp conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_static_works=yes
15430 lt_cv_prog_compiler_static_works=yes
15434 LDFLAGS="$save_LDFLAGS"
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15438 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15440 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15443 lt_prog_compiler_static=
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15454 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15455 $as_echo_n "(cached) " >&6
15457 lt_cv_prog_compiler_c_o=no
15458 $RM -r conftest 2>/dev/null
15462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15464 lt_compiler_flag="-o out/conftest2.$ac_objext"
15465 # Insert the option either (1) after the last *FLAGS variable, or
15466 # (2) before a word containing "conftest.", or (3) at the end.
15467 # Note that $ac_compile itself does not contain backslashes and begins
15468 # with a dollar sign (not a hyphen), so the echo should work correctly.
15469 lt_compile=`echo "$ac_compile" | $SED \
15470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15472 -e 's:$: $lt_compiler_flag:'`
15473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15474 (eval "$lt_compile" 2>out/conftest.err)
15476 cat out/conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15480 # The compiler can only warn and ignore the option if not recognized
15481 # So say no if there are warnings
15482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15485 lt_cv_prog_compiler_c_o=yes
15490 # SGI C++ compiler will create directory out/ii_files/ for
15491 # template instantiation
15492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15493 $RM out/* && rmdir out
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15509 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15510 $as_echo_n "(cached) " >&6
15512 lt_cv_prog_compiler_c_o=no
15513 $RM -r conftest 2>/dev/null
15517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15519 lt_compiler_flag="-o out/conftest2.$ac_objext"
15520 # Insert the option either (1) after the last *FLAGS variable, or
15521 # (2) before a word containing "conftest.", or (3) at the end.
15522 # Note that $ac_compile itself does not contain backslashes and begins
15523 # with a dollar sign (not a hyphen), so the echo should work correctly.
15524 lt_compile=`echo "$ac_compile" | $SED \
15525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15527 -e 's:$: $lt_compiler_flag:'`
15528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15529 (eval "$lt_compile" 2>out/conftest.err)
15531 cat out/conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15535 # The compiler can only warn and ignore the option if not recognized
15536 # So say no if there are warnings
15537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15540 lt_cv_prog_compiler_c_o=yes
15545 # SGI C++ compiler will create directory out/ii_files/ for
15546 # template instantiation
15547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15548 $RM out/* && rmdir out
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15555 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15560 hard_links="nottested"
15561 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15562 # do not overwrite the value of need_locks provided by the user
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15564 $as_echo_n "checking if we can lock with hard links... " >&6; }
15567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15569 ln conftest.a conftest.b 2>&5 || hard_links=no
15570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15572 $as_echo "$hard_links" >&6; }
15573 if test "$hard_links" = no; then
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15575 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15588 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15591 allow_undefined_flag=
15592 always_export_symbols=no
15594 archive_expsym_cmds=
15595 compiler_needs_object=no
15596 enable_shared_with_static_runtimes=no
15597 export_dynamic_flag_spec=
15598 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15599 hardcode_automatic=no
15601 hardcode_direct_absolute=no
15602 hardcode_libdir_flag_spec=
15603 hardcode_libdir_flag_spec_ld=
15604 hardcode_libdir_separator=
15605 hardcode_minus_L=no
15606 hardcode_shlibpath_var=unsupported
15608 link_all_deplibs=unknown
15610 module_expsym_cmds=
15611 old_archive_from_new_cmds=
15612 old_archive_from_expsyms_cmds=
15613 thread_safe_flag_spec=
15614 whole_archive_flag_spec=
15615 # include_expsyms should be a list of space-separated symbols to be *always*
15616 # included in the symbol list
15618 # exclude_expsyms can be an extended regexp of symbols to exclude
15619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15621 # as well as any symbol that contains `d'.
15622 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15624 # platforms (ab)use it in PIC code, but their linkers get confused if
15625 # the symbol is explicitly referenced. Since portable code cannot
15626 # rely on this symbol name, it's probably fine to never include it in
15627 # preloaded symbol tables.
15628 # Exclude shared library initialization/finalization symbols.
15629 extract_expsyms_cmds=
15632 cygwin* | mingw* | pw32* | cegcc*)
15633 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15634 # When not using gcc, we currently assume that we are using
15635 # Microsoft Visual C++.
15636 if test "$GCC" != yes; then
15641 # we just hope/assume this is gcc and not c89 (= MSVC++)
15651 # On some targets, GNU ld is compatible enough with the native linker
15652 # that we're better off using the native interface for both.
15653 lt_use_gnu_ld_interface=no
15654 if test "$with_gnu_ld" = yes; then
15657 # The AIX port of GNU ld has always aspired to compatibility
15658 # with the native linker. However, as the warning in the GNU ld
15659 # block says, versions before 2.19.5* couldn't really create working
15660 # shared libraries, regardless of the interface used.
15661 case `$LD -v 2>&1` in
15662 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15663 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15664 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15666 lt_use_gnu_ld_interface=yes
15671 lt_use_gnu_ld_interface=yes
15676 if test "$lt_use_gnu_ld_interface" = yes; then
15677 # If archive_cmds runs LD, not CC, wlarc should be empty
15680 # Set some defaults for GNU ld with shared library support. These
15681 # are reset later if shared libraries are not supported. Putting them
15682 # here allows them to be overridden if necessary.
15683 runpath_var=LD_RUN_PATH
15684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15685 export_dynamic_flag_spec='${wl}--export-dynamic'
15686 # ancient GNU ld didn't support --whole-archive et. al.
15687 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15688 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15690 whole_archive_flag_spec=
15692 supports_anon_versioning=no
15693 case `$LD -v 2>&1` in
15694 *GNU\ gold*) supports_anon_versioning=yes ;;
15695 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15696 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15697 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15698 *\ 2.11.*) ;; # other 2.11 versions
15699 *) supports_anon_versioning=yes ;;
15702 # See if GNU ld supports shared libraries.
15705 # On AIX/PPC, the GNU linker is very broken
15706 if test "$host_cpu" != ia64; then
15710 *** Warning: the GNU linker, at least up to release 2.19, is reported
15711 *** to be unable to reliably create shared libraries on AIX.
15712 *** Therefore, libtool is disabling shared libraries support. If you
15713 *** really care for shared libraries, you may want to install binutils
15714 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15715 *** You will then need to restart the configuration process.
15724 # see comment about AmigaOS4 .so support
15725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15726 archive_expsym_cmds=''
15729 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)'
15730 hardcode_libdir_flag_spec='-L$libdir'
15731 hardcode_minus_L=yes
15737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15738 allow_undefined_flag=unsupported
15739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15740 # support --undefined. This deserves some investigation. FIXME
15741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15747 cygwin* | mingw* | pw32* | cegcc*)
15748 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15749 # as there is no search path for DLLs.
15750 hardcode_libdir_flag_spec='-L$libdir'
15751 export_dynamic_flag_spec='${wl}--export-all-symbols'
15752 allow_undefined_flag=unsupported
15753 always_export_symbols=no
15754 enable_shared_with_static_runtimes=yes
15755 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15759 # If the export-symbols file already is a .def file (1st line
15760 # is EXPORTS), use it as is; otherwise, prepend...
15761 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15762 cp $export_symbols $output_objdir/$soname.def;
15764 echo EXPORTS > $output_objdir/$soname.def;
15765 cat $export_symbols >> $output_objdir/$soname.def;
15767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15775 link_all_deplibs=yes
15780 hardcode_shlibpath_var=no
15781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15782 export_dynamic_flag_spec='${wl}-E'
15783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15784 # Instead, shared libraries are loaded at an image base (0x10000000 by
15785 # default) and relocated if they conflict, which is a slow very memory
15786 # consuming and fragmenting process. To avoid this, we pick a random,
15787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15790 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'
15793 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15795 if test "$host_os" = linux-dietlibc; then
15796 case $cc_basename in
15797 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15800 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15801 && test "$tmp_diet" = no
15804 tmp_sharedflag='-shared'
15805 case $cc_basename,$host_cpu in
15806 pgcc*) # Portland Group C compiler
15807 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'
15808 tmp_addflag=' $pic_flag'
15810 pgf77* | pgf90* | pgf95* | pgfortran*)
15811 # Portland Group f77 and f90 compilers
15812 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'
15813 tmp_addflag=' $pic_flag -Mnomain' ;;
15814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15815 tmp_addflag=' -i_dynamic' ;;
15816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15817 tmp_addflag=' -i_dynamic -nofor_main' ;;
15818 ifc* | ifort*) # Intel Fortran compiler
15819 tmp_addflag=' -nofor_main' ;;
15820 lf95*) # Lahey Fortran 8.1
15821 whole_archive_flag_spec=
15822 tmp_sharedflag='--shared' ;;
15823 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15824 tmp_sharedflag='-qmkshrobj'
15826 nvcc*) # Cuda Compiler Driver 2.2
15827 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'
15828 compiler_needs_object=yes
15831 case `$CC -V 2>&1 | sed 5q` in
15832 *Sun\ C*) # Sun C 5.9
15833 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'
15834 compiler_needs_object=yes
15835 tmp_sharedflag='-G' ;;
15836 *Sun\ F*) # Sun Fortran 8.3
15837 tmp_sharedflag='-G' ;;
15839 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15841 if test "x$supports_anon_versioning" = xyes; then
15842 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15844 echo "local: *; };" >> $output_objdir/$libname.ver~
15845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15848 case $cc_basename in
15849 xlf* | bgf* | bgxlf* | mpixlf*)
15850 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15851 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15852 hardcode_libdir_flag_spec=
15853 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15854 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15855 if test "x$supports_anon_versioning" = xyes; then
15856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15858 echo "local: *; };" >> $output_objdir/$libname.ver~
15859 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15870 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15879 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15884 *** create shared libraries on Solaris systems. Therefore, libtool
15885 *** is disabling shared libraries support. We urge you to upgrade GNU
15886 *** binutils to release 2.9.1 or newer. Another option is to modify
15887 *** your PATH or compiler configuration so that the native linker is
15888 *** used, and then restart.
15891 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15900 case `$LD -v 2>&1` in
15901 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15906 *** reliably create shared libraries on SCO systems. Therefore, libtool
15907 *** is disabling shared libraries support. We urge you to upgrade GNU
15908 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15909 *** your PATH or compiler configuration so that the native linker is
15910 *** used, and then restart.
15915 # For security reasons, it is highly recommended that you always
15916 # use absolute paths for naming shared libraries, and exclude the
15917 # DT_RUNPATH tag from executables and libraries. But doing so
15918 # requires that you compile everything twice, which is a pain.
15919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15931 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15933 hardcode_direct=yes
15934 hardcode_shlibpath_var=no
15938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15947 if test "$ld_shlibs" = no; then
15949 hardcode_libdir_flag_spec=
15950 export_dynamic_flag_spec=
15951 whole_archive_flag_spec=
15954 # PORTME fill in a description of your system's linker (not GNU ld)
15957 allow_undefined_flag=unsupported
15958 always_export_symbols=yes
15959 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'
15960 # Note: this linker hardcodes the directories in LIBPATH if there
15961 # are no directories specified by -L.
15962 hardcode_minus_L=yes
15963 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15964 # Neither direct hardcoding nor static linking is supported with a
15966 hardcode_direct=unsupported
15971 if test "$host_cpu" = ia64; then
15972 # On IA64, the linker does run time linking by default, so we don't
15973 # have to do anything special.
15974 aix_use_runtimelinking=no
15975 exp_sym_flag='-Bexport'
15978 # If we're using GNU nm, then we don't want the "-C" option.
15979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15980 # Also, AIX nm treats weak defined symbols like other global
15981 # defined symbols, whereas GNU nm marks them as "W".
15982 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15983 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'
15985 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'
15987 aix_use_runtimelinking=no
15989 # Test if we are trying to use run time linking or normal
15990 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15991 # need to do runtime linking.
15992 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15993 for ld_flag in $LDFLAGS; do
15994 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15995 aix_use_runtimelinking=yes
16002 exp_sym_flag='-bexport'
16003 no_entry_flag='-bnoentry'
16006 # When large executables or shared objects are built, AIX ld can
16007 # have problems creating the table of contents. If linking a library
16008 # or program results in "error TOC overflow" add -mminimal-toc to
16009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16013 hardcode_direct=yes
16014 hardcode_direct_absolute=yes
16015 hardcode_libdir_separator=':'
16016 link_all_deplibs=yes
16017 file_list_spec='${wl}-f,'
16019 if test "$GCC" = yes; then
16020 case $host_os in aix4.[012]|aix4.[012].*)
16021 # We only want to do this on AIX 4.2 and lower, the check
16022 # below for broken collect2 doesn't work under 4.3+
16023 collect2name=`${CC} -print-prog-name=collect2`
16024 if test -f "$collect2name" &&
16025 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16027 # We have reworked collect2
16030 # We have old collect2
16031 hardcode_direct=unsupported
16032 # It fails to find uninstalled libraries when the uninstalled
16033 # path is not listed in the libpath. Setting hardcode_minus_L
16034 # to unsupported forces relinking
16035 hardcode_minus_L=yes
16036 hardcode_libdir_flag_spec='-L$libdir'
16037 hardcode_libdir_separator=
16041 shared_flag='-shared'
16042 if test "$aix_use_runtimelinking" = yes; then
16043 shared_flag="$shared_flag "'${wl}-G'
16047 if test "$host_cpu" = ia64; then
16048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16049 # chokes on -Wl,-G. The following line is correct:
16052 if test "$aix_use_runtimelinking" = yes; then
16053 shared_flag='${wl}-G'
16055 shared_flag='${wl}-bM:SRE'
16060 export_dynamic_flag_spec='${wl}-bexpall'
16061 # It seems that -bexpall does not export symbols beginning with
16062 # underscore (_), so it is better to generate a list of symbols to export.
16063 always_export_symbols=yes
16064 if test "$aix_use_runtimelinking" = yes; then
16065 # Warning - without using the other runtime loading flags (-brtl),
16066 # -berok will link without error, but may produce a broken library.
16067 allow_undefined_flag='-berok'
16068 # Determine the default libpath from the value encoded in an
16069 # empty executable.
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16081 if ac_fn_c_try_link "$LINENO"; then :
16083 lt_aix_libpath_sed='
16084 /Import File Strings/,/^$/ {
16090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16091 # Check for a 64-bit object if we didn't find anything.
16092 if test -z "$aix_libpath"; then
16093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16096 rm -f core conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16100 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16101 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"
16103 if test "$host_cpu" = ia64; then
16104 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16105 allow_undefined_flag="-z nodefs"
16106 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"
16108 # Determine the default libpath from the value encoded in an
16109 # empty executable.
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h. */
16121 if ac_fn_c_try_link "$LINENO"; then :
16123 lt_aix_libpath_sed='
16124 /Import File Strings/,/^$/ {
16130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16131 # Check for a 64-bit object if we didn't find anything.
16132 if test -z "$aix_libpath"; then
16133 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16136 rm -f core conftest.err conftest.$ac_objext \
16137 conftest$ac_exeext conftest.$ac_ext
16138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16140 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16141 # Warning - without using the other run time loading flags,
16142 # -berok will link without error, but may produce a broken library.
16143 no_undefined_flag=' ${wl}-bernotok'
16144 allow_undefined_flag=' ${wl}-berok'
16145 if test "$with_gnu_ld" = yes; then
16146 # We only use this code for GNU lds that support --whole-archive.
16147 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16149 # Exported symbols can be pulled into shared objects from archives
16150 whole_archive_flag_spec='$convenience'
16152 archive_cmds_need_lc=yes
16153 # This is similar to how AIX traditionally builds its shared libraries.
16154 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'
16162 # see comment about AmigaOS4 .so support
16163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16164 archive_expsym_cmds=''
16167 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)'
16168 hardcode_libdir_flag_spec='-L$libdir'
16169 hardcode_minus_L=yes
16175 export_dynamic_flag_spec=-rdynamic
16178 cygwin* | mingw* | pw32* | cegcc*)
16179 # When not using gcc, we currently assume that we are using
16180 # Microsoft Visual C++.
16181 # hardcode_libdir_flag_spec is actually meaningless, as there is
16182 # no search path for DLLs.
16183 hardcode_libdir_flag_spec=' '
16184 allow_undefined_flag=unsupported
16185 # Tell ltmain to make .lib files, not .a files.
16187 # Tell ltmain to make .dll files, not .so files.
16189 # FIXME: Setting linknames here is a bad hack.
16190 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16191 # The linker will automatically build a .lib file if we build a DLL.
16192 old_archive_from_new_cmds='true'
16193 # FIXME: Should let the user specify the lib program.
16194 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16195 fix_srcfile_path='`cygpath -w "$srcfile"`'
16196 enable_shared_with_static_runtimes=yes
16199 darwin* | rhapsody*)
16202 archive_cmds_need_lc=no
16204 hardcode_automatic=yes
16205 hardcode_shlibpath_var=unsupported
16206 if test "$lt_cv_ld_force_load" = "yes"; then
16207 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\"`'
16209 whole_archive_flag_spec=''
16211 link_all_deplibs=yes
16212 allow_undefined_flag="$_lt_dar_allow_undefined"
16213 case $cc_basename in
16214 ifort*) _lt_dar_can_shared=yes ;;
16215 *) _lt_dar_can_shared=$GCC ;;
16217 if test "$_lt_dar_can_shared" = "yes"; then
16218 output_verbose_link_cmd=func_echo_all
16219 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16220 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16221 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}"
16222 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}"
16231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_libdir_flag_spec='-L$libdir'
16233 hardcode_shlibpath_var=no
16236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16237 # support. Future versions do this automatically, but an explicit c++rt0.o
16238 # does not break anything, and helps significantly (at the cost of a little
16241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16242 hardcode_libdir_flag_spec='-R$libdir'
16243 hardcode_direct=yes
16244 hardcode_shlibpath_var=no
16247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16250 hardcode_direct=yes
16251 hardcode_minus_L=yes
16252 hardcode_shlibpath_var=no
16255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16256 freebsd* | dragonfly*)
16257 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16258 hardcode_libdir_flag_spec='-R$libdir'
16259 hardcode_direct=yes
16260 hardcode_shlibpath_var=no
16264 if test "$GCC" = yes; then
16265 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'
16267 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'
16269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16270 hardcode_libdir_separator=:
16271 hardcode_direct=yes
16273 # hardcode_minus_L: Not really in the search PATH,
16274 # but as the default location of the library.
16275 hardcode_minus_L=yes
16276 export_dynamic_flag_spec='${wl}-E'
16280 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16285 if test "$with_gnu_ld" = no; then
16286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16287 hardcode_libdir_flag_spec_ld='+b $libdir'
16288 hardcode_libdir_separator=:
16289 hardcode_direct=yes
16290 hardcode_direct_absolute=yes
16291 export_dynamic_flag_spec='${wl}-E'
16292 # hardcode_minus_L: Not really in the search PATH,
16293 # but as the default location of the library.
16294 hardcode_minus_L=yes
16299 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16302 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16305 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16321 # Older versions of the 11.00 compiler do not understand -b yet
16322 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16324 $as_echo_n "checking if $CC understands -b... " >&6; }
16325 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16326 $as_echo_n "(cached) " >&6
16328 lt_cv_prog_compiler__b=no
16329 save_LDFLAGS="$LDFLAGS"
16330 LDFLAGS="$LDFLAGS -b"
16331 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16333 # The linker can only warn and ignore the option if not recognized
16334 # So say no if there are warnings
16335 if test -s conftest.err; then
16336 # Append any errors to the config.log.
16337 cat conftest.err 1>&5
16338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16340 if diff conftest.exp conftest.er2 >/dev/null; then
16341 lt_cv_prog_compiler__b=yes
16344 lt_cv_prog_compiler__b=yes
16348 LDFLAGS="$save_LDFLAGS"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16352 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16354 if test x"$lt_cv_prog_compiler__b" = xyes; then
16355 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16363 if test "$with_gnu_ld" = no; then
16364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16365 hardcode_libdir_separator=:
16370 hardcode_shlibpath_var=no
16373 hardcode_direct=yes
16374 hardcode_direct_absolute=yes
16375 export_dynamic_flag_spec='${wl}-E'
16377 # hardcode_minus_L: Not really in the search PATH,
16378 # but as the default location of the library.
16379 hardcode_minus_L=yes
16385 irix5* | irix6* | nonstopux*)
16386 if test "$GCC" = yes; then
16387 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'
16388 # Try to use the -exported_symbol ld option, if it does not
16389 # work, assume that -exports_file does not work either and
16390 # implicitly export all symbols.
16391 save_LDFLAGS="$LDFLAGS"
16392 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h. */
16397 if ac_fn_c_try_link "$LINENO"; then :
16398 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'
16401 rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403 LDFLAGS="$save_LDFLAGS"
16405 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'
16406 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'
16408 archive_cmds_need_lc='no'
16409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16410 hardcode_libdir_separator=:
16412 link_all_deplibs=yes
16416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16421 hardcode_libdir_flag_spec='-R$libdir'
16422 hardcode_direct=yes
16423 hardcode_shlibpath_var=no
16427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16428 hardcode_direct=yes
16429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16430 hardcode_libdir_separator=:
16431 hardcode_shlibpath_var=no
16438 if test -f /usr/libexec/ld.so; then
16439 hardcode_direct=yes
16440 hardcode_shlibpath_var=no
16441 hardcode_direct_absolute=yes
16442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16444 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16445 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16446 export_dynamic_flag_spec='${wl}-E'
16449 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_libdir_flag_spec='-R$libdir'
16454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16465 hardcode_libdir_flag_spec='-L$libdir'
16466 hardcode_minus_L=yes
16467 allow_undefined_flag=unsupported
16468 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'
16469 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16473 if test "$GCC" = yes; then
16474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16475 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'
16477 allow_undefined_flag=' -expect_unresolved \*'
16478 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'
16480 archive_cmds_need_lc='no'
16481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16482 hardcode_libdir_separator=:
16485 osf4* | osf5*) # as osf3* with the addition of -msym flag
16486 if test "$GCC" = yes; then
16487 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16488 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'
16489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16491 allow_undefined_flag=' -expect_unresolved \*'
16492 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'
16493 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~
16494 $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'
16496 # Both c and cxx compiler support -rpath directly
16497 hardcode_libdir_flag_spec='-rpath $libdir'
16499 archive_cmds_need_lc='no'
16500 hardcode_libdir_separator=:
16504 no_undefined_flag=' -z defs'
16505 if test "$GCC" = yes; then
16507 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16509 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16511 case `$CC -V 2>&1` in
16514 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16515 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16516 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16520 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16522 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16526 hardcode_libdir_flag_spec='-R$libdir'
16527 hardcode_shlibpath_var=no
16529 solaris2.[0-5] | solaris2.[0-5].*) ;;
16531 # The compiler driver will combine and reorder linker options,
16532 # but understands `-z linker_flag'. GCC discards it without `$wl',
16533 # but is careful enough not to reorder.
16534 # Supported since Solaris 2.6 (maybe 2.5.1?)
16535 if test "$GCC" = yes; then
16536 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16538 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16542 link_all_deplibs=yes
16546 if test "x$host_vendor" = xsequent; then
16547 # Use $CC to link under sequent, because it throws in some extra .o
16548 # files that make .init and .fini sections work.
16549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16553 hardcode_libdir_flag_spec='-L$libdir'
16554 hardcode_direct=yes
16555 hardcode_minus_L=yes
16556 hardcode_shlibpath_var=no
16560 case $host_vendor in
16562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_direct=yes # is this really true???
16566 ## LD is ld it makes a PLAMLIB
16567 ## CC just makes a GrossModule.
16568 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16569 reload_cmds='$CC -r -o $output$reload_objs'
16573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16577 runpath_var='LD_RUN_PATH'
16578 hardcode_shlibpath_var=no
16582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583 hardcode_shlibpath_var=no
16584 export_dynamic_flag_spec='-Bexport'
16588 if test -d /usr/nec; then
16589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590 hardcode_shlibpath_var=no
16591 runpath_var=LD_RUN_PATH
16592 hardcode_runpath_var=yes
16597 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16598 no_undefined_flag='${wl}-z,text'
16599 archive_cmds_need_lc=no
16600 hardcode_shlibpath_var=no
16601 runpath_var='LD_RUN_PATH'
16603 if test "$GCC" = yes; then
16604 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16605 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16607 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16608 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16612 sysv5* | sco3.2v5* | sco5v6*)
16613 # Note: We can NOT use -z defs as we might desire, because we do not
16614 # link with -lc, and that would cause any symbols used from libc to
16615 # always be unresolved, which means just about no library would
16616 # ever link correctly. If we're not using GNU ld we use -z text
16617 # though, which does catch some bad symbols but isn't as heavy-handed
16619 no_undefined_flag='${wl}-z,text'
16620 allow_undefined_flag='${wl}-z,nodefs'
16621 archive_cmds_need_lc=no
16622 hardcode_shlibpath_var=no
16623 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16624 hardcode_libdir_separator=':'
16625 link_all_deplibs=yes
16626 export_dynamic_flag_spec='${wl}-Bexport'
16627 runpath_var='LD_RUN_PATH'
16629 if test "$GCC" = yes; then
16630 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16633 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16634 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640 hardcode_libdir_flag_spec='-L$libdir'
16641 hardcode_shlibpath_var=no
16649 if test x$host_vendor = xsni; then
16651 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16652 export_dynamic_flag_spec='${wl}-Blargedynsym'
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16659 $as_echo "$ld_shlibs" >&6; }
16660 test "$ld_shlibs" = no && can_build_shared=no
16662 with_gnu_ld=$with_gnu_ld
16679 # Do we need to explicitly link libc?
16681 case "x$archive_cmds_need_lc" in
16683 # Assume -lc should be added
16684 archive_cmds_need_lc=yes
16686 if test "$enable_shared" = yes && test "$GCC" = yes; then
16687 case $archive_cmds in
16689 # FIXME: we may have to deal with multi-command sequences.
16692 # Test whether the compiler implicitly links with -lc since on some
16693 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16694 # to ld, don't add -lc before -lgcc.
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16696 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16697 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16698 $as_echo_n "(cached) " >&6
16701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16704 (eval $ac_compile) 2>&5
16706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16707 test $ac_status = 0; } 2>conftest.err; then
16710 libobjs=conftest.$ac_objext
16712 wl=$lt_prog_compiler_wl
16713 pic_flag=$lt_prog_compiler_pic
16719 lt_save_allow_undefined_flag=$allow_undefined_flag
16720 allow_undefined_flag=
16721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16722 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16725 test $ac_status = 0; }
16727 lt_cv_archive_cmds_need_lc=no
16729 lt_cv_archive_cmds_need_lc=yes
16731 allow_undefined_flag=$lt_save_allow_undefined_flag
16733 cat conftest.err 1>&5
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16739 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16740 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16904 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16906 if test "$GCC" = yes; then
16908 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16909 *) lt_awk_arg="/^libraries:/" ;;
16912 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16913 *) lt_sed_strip_eq="s,=/,/,g" ;;
16915 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16916 case $lt_search_path_spec in
16918 # if the path contains ";" then we assume it to be the separator
16919 # otherwise default to the standard path separator (i.e. ":") - it is
16920 # assumed that no part of a normal pathname contains ";" but that should
16921 # okay in the real world where ";" in dirpaths is itself problematic.
16922 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16925 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16928 # Ok, now we have the path, separated by spaces, we can step through it
16929 # and add multilib dir if necessary.
16930 lt_tmp_lt_search_path_spec=
16931 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16932 for lt_sys_path in $lt_search_path_spec; do
16933 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16934 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16936 test -d "$lt_sys_path" && \
16937 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16940 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16941 BEGIN {RS=" "; FS="/|\n";} {
16944 for (lt_i = NF; lt_i > 0; lt_i--) {
16945 if ($lt_i != "" && $lt_i != ".") {
16946 if ($lt_i == "..") {
16949 if (lt_count == 0) {
16950 lt_foo="/" $lt_i lt_foo;
16957 if (lt_foo != "") { lt_freq[lt_foo]++; }
16958 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16960 # AWK program above erroneously prepends '/' to C:/dos/paths
16963 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16964 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16966 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16970 library_names_spec=
16971 libname_spec='lib$name'
16975 postuninstall_cmds=
16979 shlibpath_overrides_runpath=unknown
16981 dynamic_linker="$host_os ld.so"
16982 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16983 need_lib_prefix=unknown
16984 hardcode_into_libs=no
16986 # when you set need_version to no, make sure it does not cause -set_version
16987 # flags to be left without arguments
16988 need_version=unknown
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16994 shlibpath_var=LIBPATH
16996 # AIX 3 has no versioning support, so we append a major version to the name.
16997 soname_spec='${libname}${release}${shared_ext}$major'
17004 hardcode_into_libs=yes
17005 if test "$host_cpu" = ia64; then
17006 # AIX 5 supports IA64
17007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17008 shlibpath_var=LD_LIBRARY_PATH
17010 # With GCC up to 2.95.x, collect2 would create an import file
17011 # for dependence libraries. The import file would start with
17012 # the line `#! .'. This would cause the generated library to
17013 # depend on `.', always an invalid library. This was fixed in
17014 # development snapshots of GCC prior to 3.0.
17016 aix4 | aix4.[01] | aix4.[01].*)
17017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17019 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17022 can_build_shared=no
17026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17027 # soname into executable. Probably we can add versioning support to
17028 # collect2, so additional links can be useful in future.
17029 if test "$aix_use_runtimelinking" = yes; then
17030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17031 # instead of lib<name>.a to let people know that these are not
17032 # typical AIX shared libraries.
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17035 # We preserve .a as extension for shared libraries through AIX4.2
17036 # and later when we are not doing run time linking.
17037 library_names_spec='${libname}${release}.a $libname.a'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17040 shlibpath_var=LIBPATH
17047 # Since July 2007 AmigaOS4 officially supports .so libraries.
17048 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 library_names_spec='$libname.ixlibrary $libname.a'
17053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17054 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'
17060 library_names_spec='${libname}${shared_ext}'
17061 dynamic_linker="$host_os ld.so"
17062 shlibpath_var=LIBRARY_PATH
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17071 shlibpath_var=LD_LIBRARY_PATH
17072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17074 # the default ld.so.conf also contains /usr/contrib/lib and
17075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17076 # libtool to hard-code these into programs
17079 cygwin* | mingw* | pw32* | cegcc*)
17080 version_type=windows
17085 case $GCC,$host_os in
17086 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17087 library_names_spec='$libname.dll.a'
17088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17089 postinstall_cmds='base_file=`basename \${file}`~
17090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17091 dldir=$destdir/`dirname \$dlpath`~
17092 test -d \$dldir || mkdir -p \$dldir~
17093 $install_prog $dir/$dlname \$dldir/$dlname~
17094 chmod a+x \$dldir/$dlname~
17095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17099 dlpath=$dir/\$dldll~
17101 shlibpath_overrides_runpath=yes
17105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17108 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17111 # MinGW DLLs use traditional 'lib' prefix
17112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17115 # pw32 DLLs use 'pw' prefix rather than 'lib'
17116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17122 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17125 dynamic_linker='Win32 ld.exe'
17126 # FIXME: first we should search . and the directory the executable is in
17130 darwin* | rhapsody*)
17131 dynamic_linker="$host_os dyld"
17132 version_type=darwin
17135 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17136 soname_spec='${libname}${release}${major}$shared_ext'
17137 shlibpath_overrides_runpath=yes
17138 shlibpath_var=DYLD_LIBRARY_PATH
17139 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17141 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LD_LIBRARY_PATH
17154 freebsd* | dragonfly*)
17155 # DragonFly does not have aout. When/if they implement a new
17156 # versioning mechanism, adjust this.
17157 if test -x /usr/bin/objformat; then
17158 objformat=`/usr/bin/objformat`
17161 freebsd[23].*) objformat=aout ;;
17162 *) objformat=elf ;;
17165 version_type=freebsd-$objformat
17166 case $version_type in
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17177 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=yes
17182 freebsd3.[01]* | freebsdelf3.[01]*)
17183 shlibpath_overrides_runpath=yes
17184 hardcode_into_libs=yes
17186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17188 shlibpath_overrides_runpath=no
17189 hardcode_into_libs=yes
17191 *) # from 4.6 on, and DragonFly
17192 shlibpath_overrides_runpath=yes
17193 hardcode_into_libs=yes
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17203 soname_spec='${libname}${release}${shared_ext}$major'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 hardcode_into_libs=yes
17212 dynamic_linker="$host_os runtime_loader"
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 shlibpath_var=LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17217 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17218 hardcode_into_libs=yes
17221 hpux9* | hpux10* | hpux11*)
17222 # Give a soname corresponding to the major version so that dld.sl refuses to
17223 # link against other versions.
17230 hardcode_into_libs=yes
17231 dynamic_linker="$host_os dld.so"
17232 shlibpath_var=LD_LIBRARY_PATH
17233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 if test "X$HPUX_IA64_MODE" = X32; then
17237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17245 hardcode_into_libs=yes
17246 dynamic_linker="$host_os dld.sl"
17247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17256 dynamic_linker="$host_os dld.sl"
17257 shlibpath_var=SHLIB_PATH
17258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17263 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17264 postinstall_cmds='chmod 555 $lib'
17265 # or fails outright, so override atomically:
17266 install_override_mode=555
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=no
17278 hardcode_into_libs=yes
17281 irix5* | irix6* | nonstopux*)
17283 nonstopux*) version_type=nonstopux ;;
17285 if test "$lt_cv_prog_gnu_ld" = yes; then
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17296 irix5* | nonstopux*)
17297 libsuff= shlibsuff=
17300 case $LD in # libtool.m4 will add one of these switches to LD
17301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17302 libsuff= shlibsuff= libmagic=32-bit;;
17303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17304 libsuff=32 shlibsuff=N32 libmagic=N32;;
17305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17307 *) libsuff= shlibsuff= libmagic=never-match;;
17311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17312 shlibpath_overrides_runpath=no
17313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17315 hardcode_into_libs=yes
17318 # No shared lib support for Linux oldld, aout, or coff.
17319 linux*oldld* | linux*aout* | linux*coff*)
17323 # This must be Linux ELF.
17324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17331 shlibpath_var=LD_LIBRARY_PATH
17332 shlibpath_overrides_runpath=no
17334 # Some binutils ld are patched to set DT_RUNPATH
17335 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17336 $as_echo_n "(cached) " >&6
17338 lt_cv_shlibpath_overrides_runpath=no
17339 save_LDFLAGS=$LDFLAGS
17340 save_libdir=$libdir
17341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17354 if ac_fn_c_try_link "$LINENO"; then :
17355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17356 lt_cv_shlibpath_overrides_runpath=yes
17359 rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17361 LDFLAGS=$save_LDFLAGS
17362 libdir=$save_libdir
17366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17368 # This implies no fast_install, which is unacceptable.
17369 # Some rework will be needed to allow for fast_install
17370 # before this can be enabled.
17371 hardcode_into_libs=yes
17373 # Append ld.so.conf contents to the search path
17374 if test -f /etc/ld.so.conf; then
17375 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' ' '`
17376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17379 # We used to test for /lib/ld.so.1 and disable shared libraries on
17380 # powerpc, because MkLinux only supported shared libraries with the
17381 # GNU dynamic linker. Since this was broken with cross compilers,
17382 # most powerpc-linux boxes support dynamic linking these days and
17383 # people can always --disable-shared, the test was removed, and we
17384 # assume the GNU/Linux dynamic linker is in use.
17385 dynamic_linker='GNU/Linux ld.so'
17392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17395 dynamic_linker='NetBSD (a.out) ld.so'
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 dynamic_linker='NetBSD ld.elf_so'
17401 shlibpath_var=LD_LIBRARY_PATH
17402 shlibpath_overrides_runpath=yes
17403 hardcode_into_libs=yes
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 shlibpath_overrides_runpath=yes
17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 shlibpath_overrides_runpath=no
17421 hardcode_into_libs=yes
17422 dynamic_linker='ldqnx.so'
17427 sys_lib_dlsearch_path_spec="/usr/lib"
17429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17432 *) need_version=no ;;
17434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17436 shlibpath_var=LD_LIBRARY_PATH
17437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17439 openbsd2.[89] | openbsd2.[89].*)
17440 shlibpath_overrides_runpath=no
17443 shlibpath_overrides_runpath=yes
17447 shlibpath_overrides_runpath=yes
17452 libname_spec='$name'
17455 library_names_spec='$libname${shared_ext} $libname.a'
17456 dynamic_linker='OS/2 ld.exe'
17457 shlibpath_var=LIBPATH
17460 osf3* | osf4* | osf5*)
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 shlibpath_var=LD_LIBRARY_PATH
17467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480 soname_spec='${libname}${release}${shared_ext}$major'
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=yes
17483 hardcode_into_libs=yes
17484 # ldd complains unless libraries are executable
17485 postinstall_cmds='chmod +x $lib'
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17492 shlibpath_var=LD_LIBRARY_PATH
17493 shlibpath_overrides_runpath=yes
17494 if test "$with_gnu_ld" = yes; then
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503 soname_spec='${libname}${release}${shared_ext}$major'
17504 shlibpath_var=LD_LIBRARY_PATH
17505 case $host_vendor in
17507 shlibpath_overrides_runpath=no
17509 runpath_var=LD_RUN_PATH
17517 shlibpath_overrides_runpath=no
17518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17524 if test -d /usr/nec ;then
17526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17527 soname_spec='$libname${shared_ext}.$major'
17528 shlibpath_var=LD_LIBRARY_PATH
17532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17533 version_type=freebsd-elf
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 shlibpath_overrides_runpath=yes
17540 hardcode_into_libs=yes
17541 if test "$with_gnu_ld" = yes; then
17542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17551 sys_lib_dlsearch_path_spec='/usr/lib'
17555 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560 shlibpath_var=LD_LIBRARY_PATH
17561 shlibpath_overrides_runpath=no
17562 hardcode_into_libs=yes
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 soname_spec='${libname}${release}${shared_ext}$major'
17569 shlibpath_var=LD_LIBRARY_PATH
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17577 $as_echo "$dynamic_linker" >&6; }
17578 test "$dynamic_linker" = no && can_build_shared=no
17580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17581 if test "$GCC" = yes; then
17582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17586 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17589 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17684 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17686 if test -n "$hardcode_libdir_flag_spec" ||
17687 test -n "$runpath_var" ||
17688 test "X$hardcode_automatic" = "Xyes" ; then
17690 # We can hardcode non-existent directories.
17691 if test "$hardcode_direct" != no &&
17692 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17693 # have to relink, otherwise we might link with an installed library
17694 # when we should be linking with a yet-to-be-installed one
17695 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17696 test "$hardcode_minus_L" != no; then
17697 # Linking always hardcodes the temporary library directory.
17698 hardcode_action=relink
17700 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17701 hardcode_action=immediate
17704 # We cannot hardcode anything, or else we can only hardcode existing
17706 hardcode_action=unsupported
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17709 $as_echo "$hardcode_action" >&6; }
17711 if test "$hardcode_action" = relink ||
17712 test "$inherit_rpath" = yes; then
17713 # Fast installation is not supported
17714 enable_fast_install=no
17715 elif test "$shlibpath_overrides_runpath" = yes ||
17716 test "$enable_shared" = no; then
17717 # Fast installation is not necessary
17718 enable_fast_install=needless
17726 if test "x$enable_dlopen" != xyes; then
17727 enable_dlopen=unknown
17728 enable_dlopen_self=unknown
17729 enable_dlopen_self_static=unknown
17736 lt_cv_dlopen="load_add_on"
17738 lt_cv_dlopen_self=yes
17741 mingw* | pw32* | cegcc*)
17742 lt_cv_dlopen="LoadLibrary"
17747 lt_cv_dlopen="dlopen"
17752 # if libdl is installed we need to link against it
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17755 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17758 ac_check_lib_save_LIBS=$LIBS
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17763 /* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17778 if ac_fn_c_try_link "$LINENO"; then :
17779 ac_cv_lib_dl_dlopen=yes
17781 ac_cv_lib_dl_dlopen=no
17783 rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17789 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17793 lt_cv_dlopen="dyld"
17795 lt_cv_dlopen_self=yes
17802 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17803 if test "x$ac_cv_func_shl_load" = x""yes; then :
17804 lt_cv_dlopen="shl_load"
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17807 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17808 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17811 ac_check_lib_save_LIBS=$LIBS
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17826 return shl_load ();
17831 if ac_fn_c_try_link "$LINENO"; then :
17832 ac_cv_lib_dld_shl_load=yes
17834 ac_cv_lib_dld_shl_load=no
17836 rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17841 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17842 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17843 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17845 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17846 if test "x$ac_cv_func_dlopen" = x""yes; then :
17847 lt_cv_dlopen="dlopen"
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17854 ac_check_lib_save_LIBS=$LIBS
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17859 /* Override any GCC internal prototype to avoid an error.
17860 Use char because int might match the return type of a GCC
17861 builtin and then its argument prototype would still apply. */
17874 if ac_fn_c_try_link "$LINENO"; then :
17875 ac_cv_lib_dl_dlopen=yes
17877 ac_cv_lib_dl_dlopen=no
17879 rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881 LIBS=$ac_check_lib_save_LIBS
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17885 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17889 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17890 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-lsvld $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 ac_cv_lib_svld_dlopen=yes
17916 ac_cv_lib_svld_dlopen=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17923 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17924 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17928 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17929 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17930 $as_echo_n "(cached) " >&6
17932 ac_check_lib_save_LIBS=$LIBS
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17937 /* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17947 return dld_link ();
17952 if ac_fn_c_try_link "$LINENO"; then :
17953 ac_cv_lib_dld_dld_link=yes
17955 ac_cv_lib_dld_dld_link=no
17957 rm -f core conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17962 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17963 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17964 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17985 if test "x$lt_cv_dlopen" != xno; then
17991 case $lt_cv_dlopen in
17993 save_CPPFLAGS="$CPPFLAGS"
17994 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17996 save_LDFLAGS="$LDFLAGS"
17997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18000 LIBS="$lt_cv_dlopen_libs $LIBS"
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18003 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18004 if test "${lt_cv_dlopen_self+set}" = set; then :
18005 $as_echo_n "(cached) " >&6
18007 if test "$cross_compiling" = yes; then :
18008 lt_cv_dlopen_self=cross
18010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18011 lt_status=$lt_dlunknown
18012 cat > conftest.$ac_ext <<_LT_EOF
18013 #line 18013 "configure"
18014 #include "confdefs.h"
18023 # define LT_DLGLOBAL RTLD_GLOBAL
18026 # define LT_DLGLOBAL DL_GLOBAL
18028 # define LT_DLGLOBAL 0
18032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18033 find out it does not work in some platform. */
18034 #ifndef LT_DLLAZY_OR_NOW
18036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18039 # define LT_DLLAZY_OR_NOW DL_LAZY
18042 # define LT_DLLAZY_OR_NOW RTLD_NOW
18045 # define LT_DLLAZY_OR_NOW DL_NOW
18047 # define LT_DLLAZY_OR_NOW 0
18054 /* When -fvisbility=hidden is used, assume the code has been annotated
18055 correspondingly for the symbols needed. */
18056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18057 void fnord () __attribute__((visibility("default")));
18060 void fnord () { int i=42; }
18063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18064 int status = $lt_dlunknown;
18068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18072 else puts (dlerror ());
18074 /* dlclose (self); */
18082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18083 (eval $ac_link) 2>&5
18085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18087 (./conftest; exit; ) >&5 2>/dev/null
18089 case x$lt_status in
18090 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18091 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18092 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18095 # compilation failed
18096 lt_cv_dlopen_self=no
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18104 $as_echo "$lt_cv_dlopen_self" >&6; }
18106 if test "x$lt_cv_dlopen_self" = xyes; then
18107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18109 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18110 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18111 $as_echo_n "(cached) " >&6
18113 if test "$cross_compiling" = yes; then :
18114 lt_cv_dlopen_self_static=cross
18116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18117 lt_status=$lt_dlunknown
18118 cat > conftest.$ac_ext <<_LT_EOF
18119 #line 18119 "configure"
18120 #include "confdefs.h"
18129 # define LT_DLGLOBAL RTLD_GLOBAL
18132 # define LT_DLGLOBAL DL_GLOBAL
18134 # define LT_DLGLOBAL 0
18138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18139 find out it does not work in some platform. */
18140 #ifndef LT_DLLAZY_OR_NOW
18142 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18145 # define LT_DLLAZY_OR_NOW DL_LAZY
18148 # define LT_DLLAZY_OR_NOW RTLD_NOW
18151 # define LT_DLLAZY_OR_NOW DL_NOW
18153 # define LT_DLLAZY_OR_NOW 0
18160 /* When -fvisbility=hidden is used, assume the code has been annotated
18161 correspondingly for the symbols needed. */
18162 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18163 void fnord () __attribute__((visibility("default")));
18166 void fnord () { int i=42; }
18169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18170 int status = $lt_dlunknown;
18174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18177 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18178 else puts (dlerror ());
18180 /* dlclose (self); */
18188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18189 (eval $ac_link) 2>&5
18191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18192 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18193 (./conftest; exit; ) >&5 2>/dev/null
18195 case x$lt_status in
18196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18201 # compilation failed
18202 lt_cv_dlopen_self_static=no
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18210 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18213 CPPFLAGS="$save_CPPFLAGS"
18214 LDFLAGS="$save_LDFLAGS"
18219 case $lt_cv_dlopen_self in
18220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18221 *) enable_dlopen_self=unknown ;;
18224 case $lt_cv_dlopen_self_static in
18225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18226 *) enable_dlopen_self_static=unknown ;;
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18249 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18250 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18254 $as_echo "yes" >&6; }
18256 # FIXME - insert some real tests, host_os isn't really good enough
18259 if test -n "$STRIP" ; then
18260 striplib="$STRIP -x"
18261 old_striplib="$STRIP -S"
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18263 $as_echo "yes" >&6; }
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18266 $as_echo "no" >&6; }
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18271 $as_echo "no" >&6; }
18287 # Report which library types will actually be built
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18289 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18291 $as_echo "$can_build_shared" >&6; }
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18294 $as_echo_n "checking whether to build shared libraries... " >&6; }
18295 test "$can_build_shared" = "no" && enable_shared=no
18297 # On AIX, shared libraries and static libraries use the same namespace, and
18298 # are all built from PIC.
18301 test "$enable_shared" = yes && enable_static=no
18302 if test -n "$RANLIB"; then
18303 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18304 postinstall_cmds='$RANLIB $lib'
18309 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18310 test "$enable_shared" = yes && enable_static=no
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18315 $as_echo "$enable_shared" >&6; }
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18318 $as_echo_n "checking whether to build static libraries... " >&6; }
18319 # Make sure either enable_shared or enable_static is yes.
18320 test "$enable_shared" = yes || enable_static=yes
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18322 $as_echo "$enable_static" >&6; }
18329 ac_cpp='$CPP $CPPFLAGS'
18330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18336 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18337 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18338 (test "X$CXX" != "Xg++"))) ; then
18340 ac_cpp='$CXXCPP $CPPFLAGS'
18341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18345 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18346 if test -z "$CXXCPP"; then
18347 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18348 $as_echo_n "(cached) " >&6
18350 # Double quotes because CXXCPP needs to be expanded
18351 for CXXCPP in "$CXX -E" "/lib/cpp"
18353 ac_preproc_ok=false
18354 for ac_cxx_preproc_warn_flag in '' yes
18356 # Use a header file that comes with gcc, so configuring glibc
18357 # with a fresh cross-compiler works.
18358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18359 # <limits.h> exists even on freestanding compilers.
18360 # On the NeXT, cc -E runs the code through the compiler's parser,
18361 # not just through cpp. "Syntax error" is here to catch this case.
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18365 # include <limits.h>
18367 # include <assert.h>
18371 if ac_fn_cxx_try_cpp "$LINENO"; then :
18374 # Broken: fails on valid input.
18377 rm -f conftest.err conftest.$ac_ext
18379 # OK, works on sane cases. Now check whether nonexistent headers
18380 # can be detected and how.
18381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18382 /* end confdefs.h. */
18383 #include <ac_nonexistent.h>
18385 if ac_fn_cxx_try_cpp "$LINENO"; then :
18386 # Broken: success on invalid input.
18389 # Passes both tests.
18393 rm -f conftest.err conftest.$ac_ext
18396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18397 rm -f conftest.err conftest.$ac_ext
18398 if $ac_preproc_ok; then :
18403 ac_cv_prog_CXXCPP=$CXXCPP
18406 CXXCPP=$ac_cv_prog_CXXCPP
18408 ac_cv_prog_CXXCPP=$CXXCPP
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18411 $as_echo "$CXXCPP" >&6; }
18412 ac_preproc_ok=false
18413 for ac_cxx_preproc_warn_flag in '' yes
18415 # Use a header file that comes with gcc, so configuring glibc
18416 # with a fresh cross-compiler works.
18417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18418 # <limits.h> exists even on freestanding compilers.
18419 # On the NeXT, cc -E runs the code through the compiler's parser,
18420 # not just through cpp. "Syntax error" is here to catch this case.
18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18424 # include <limits.h>
18426 # include <assert.h>
18430 if ac_fn_cxx_try_cpp "$LINENO"; then :
18433 # Broken: fails on valid input.
18436 rm -f conftest.err conftest.$ac_ext
18438 # OK, works on sane cases. Now check whether nonexistent headers
18439 # can be detected and how.
18440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18442 #include <ac_nonexistent.h>
18444 if ac_fn_cxx_try_cpp "$LINENO"; then :
18445 # Broken: success on invalid input.
18448 # Passes both tests.
18452 rm -f conftest.err conftest.$ac_ext
18455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18456 rm -f conftest.err conftest.$ac_ext
18457 if $ac_preproc_ok; then :
18460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18462 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18463 See \`config.log' for more details." "$LINENO" 5; }
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18473 _lt_caught_CXX_error=yes
18477 ac_cpp='$CXXCPP $CPPFLAGS'
18478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482 archive_cmds_need_lc_CXX=no
18483 allow_undefined_flag_CXX=
18484 always_export_symbols_CXX=no
18485 archive_expsym_cmds_CXX=
18486 compiler_needs_object_CXX=no
18487 export_dynamic_flag_spec_CXX=
18488 hardcode_direct_CXX=no
18489 hardcode_direct_absolute_CXX=no
18490 hardcode_libdir_flag_spec_CXX=
18491 hardcode_libdir_flag_spec_ld_CXX=
18492 hardcode_libdir_separator_CXX=
18493 hardcode_minus_L_CXX=no
18494 hardcode_shlibpath_var_CXX=unsupported
18495 hardcode_automatic_CXX=no
18496 inherit_rpath_CXX=no
18498 module_expsym_cmds_CXX=
18499 link_all_deplibs_CXX=unknown
18500 old_archive_cmds_CXX=$old_archive_cmds
18501 reload_flag_CXX=$reload_flag
18502 reload_cmds_CXX=$reload_cmds
18503 no_undefined_flag_CXX=
18504 whole_archive_flag_spec_CXX=
18505 enable_shared_with_static_runtimes_CXX=no
18507 # Source file extension for C++ test sources.
18510 # Object file extension for compiled C++ test sources.
18514 # No sense in running all these tests if we already determined that
18515 # the CXX compiler isn't working. Some variables (like enable_shared)
18516 # are currently assumed to apply to all compilers on this platform,
18517 # and will be corrupted by setting them based on a non-working compiler.
18518 if test "$_lt_caught_CXX_error" != yes; then
18519 # Code to be used in simple compile tests
18520 lt_simple_compile_test_code="int some_variable = 0;"
18522 # Code to be used in simple link tests
18523 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18525 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18532 # If no C compiler was specified, use CC.
18535 # If no C compiler flags were specified, use CFLAGS.
18536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18538 # Allow CC to be a program name with arguments.
18542 # save warnings/boilerplate of simple test code
18543 ac_outfile=conftest.$ac_objext
18544 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18546 _lt_compiler_boilerplate=`cat conftest.err`
18549 ac_outfile=conftest.$ac_objext
18550 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18552 _lt_linker_boilerplate=`cat conftest.err`
18556 # Allow CC to be a program name with arguments.
18561 lt_save_with_gnu_ld=$with_gnu_ld
18562 lt_save_path_LD=$lt_cv_path_LD
18563 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18564 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18566 $as_unset lt_cv_prog_gnu_ld
18568 if test -n "${lt_cv_path_LDCXX+set}"; then
18569 lt_cv_path_LD=$lt_cv_path_LDCXX
18571 $as_unset lt_cv_path_LD
18573 test -z "${LDCXX+set}" || LD=$LDCXX
18577 for cc_temp in $compiler""; do
18579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18585 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18588 if test -n "$compiler"; then
18589 # We don't want -fno-exception when compiling C++ code, so set the
18590 # no_builtin_flag separately
18591 if test "$GXX" = yes; then
18592 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18594 lt_prog_compiler_no_builtin_flag_CXX=
18597 if test "$GXX" = yes; then
18598 # Set up default GNU C++ configuration
18602 # Check whether --with-gnu-ld was given.
18603 if test "${with_gnu_ld+set}" = set; then :
18604 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18610 if test "$GCC" = yes; then
18611 # Check if gcc -print-prog-name=ld gives a path.
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18613 $as_echo_n "checking for ld used by $CC... " >&6; }
18616 # gcc leaves a trailing carriage return which upsets mingw
18617 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18619 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18622 # Accept absolute paths.
18624 re_direlt='/[^/][^/]*/\.\./'
18625 # Canonicalize the pathname of ld
18626 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18627 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18628 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18630 test -z "$LD" && LD="$ac_prog"
18633 # If it fails, then pretend we aren't using GCC.
18637 # If it is relative, then search for the first ld in PATH.
18638 with_gnu_ld=unknown
18641 elif test "$with_gnu_ld" = yes; then
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18643 $as_echo_n "checking for GNU ld... " >&6; }
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18646 $as_echo_n "checking for non-GNU ld... " >&6; }
18648 if test "${lt_cv_path_LD+set}" = set; then :
18649 $as_echo_n "(cached) " >&6
18651 if test -z "$LD"; then
18652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18653 for ac_dir in $PATH; do
18655 test -z "$ac_dir" && ac_dir=.
18656 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18657 lt_cv_path_LD="$ac_dir/$ac_prog"
18658 # Check to see if the program is GNU ld. I'd rather use --version,
18659 # but apparently some variants of GNU ld only accept -v.
18660 # Break only if it was the GNU/non-GNU ld that we prefer.
18661 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18662 *GNU* | *'with BFD'*)
18663 test "$with_gnu_ld" != no && break
18666 test "$with_gnu_ld" != yes && break
18673 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18677 LD="$lt_cv_path_LD"
18678 if test -n "$LD"; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18680 $as_echo "$LD" >&6; }
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683 $as_echo "no" >&6; }
18685 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18687 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18688 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18689 $as_echo_n "(cached) " >&6
18691 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18692 case `$LD -v 2>&1 </dev/null` in
18693 *GNU* | *'with BFD'*)
18694 lt_cv_prog_gnu_ld=yes
18697 lt_cv_prog_gnu_ld=no
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18702 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18703 with_gnu_ld=$lt_cv_prog_gnu_ld
18711 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18712 # archiving commands below assume that GNU ld is being used.
18713 if test "$with_gnu_ld" = yes; then
18714 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18715 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'
18717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18720 # If archive_cmds runs LD, not CC, wlarc should be empty
18721 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18722 # investigate it a little bit more. (MM)
18725 # ancient GNU ld didn't support --whole-archive et. al.
18726 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18727 $GREP 'no-whole-archive' > /dev/null; then
18728 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18730 whole_archive_flag_spec_CXX=
18736 # A generic and very simple default shared library creation
18737 # command for GNU C++ for the case where it uses the native
18738 # linker, instead of GNU ld. If possible, this setting should
18739 # overridden to take advantage of the native linker features on
18740 # the platform it is being used on.
18741 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18744 # Commands to make compiler produce verbose output that lists
18745 # what "hidden" libraries, object files and flags are used when
18746 # linking a shared library.
18747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18755 # PORTME: fill in a description of your system's C++ link characteristics
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18761 # FIXME: insert proper C++ library support
18765 if test "$host_cpu" = ia64; then
18766 # On IA64, the linker does run time linking by default, so we don't
18767 # have to do anything special.
18768 aix_use_runtimelinking=no
18769 exp_sym_flag='-Bexport'
18772 aix_use_runtimelinking=no
18774 # Test if we are trying to use run time linking or normal
18775 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18776 # need to do runtime linking.
18777 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18778 for ld_flag in $LDFLAGS; do
18781 aix_use_runtimelinking=yes
18789 exp_sym_flag='-bexport'
18790 no_entry_flag='-bnoentry'
18793 # When large executables or shared objects are built, AIX ld can
18794 # have problems creating the table of contents. If linking a library
18795 # or program results in "error TOC overflow" add -mminimal-toc to
18796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18799 archive_cmds_CXX=''
18800 hardcode_direct_CXX=yes
18801 hardcode_direct_absolute_CXX=yes
18802 hardcode_libdir_separator_CXX=':'
18803 link_all_deplibs_CXX=yes
18804 file_list_spec_CXX='${wl}-f,'
18806 if test "$GXX" = yes; then
18807 case $host_os in aix4.[012]|aix4.[012].*)
18808 # We only want to do this on AIX 4.2 and lower, the check
18809 # below for broken collect2 doesn't work under 4.3+
18810 collect2name=`${CC} -print-prog-name=collect2`
18811 if test -f "$collect2name" &&
18812 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18814 # We have reworked collect2
18817 # We have old collect2
18818 hardcode_direct_CXX=unsupported
18819 # It fails to find uninstalled libraries when the uninstalled
18820 # path is not listed in the libpath. Setting hardcode_minus_L
18821 # to unsupported forces relinking
18822 hardcode_minus_L_CXX=yes
18823 hardcode_libdir_flag_spec_CXX='-L$libdir'
18824 hardcode_libdir_separator_CXX=
18827 shared_flag='-shared'
18828 if test "$aix_use_runtimelinking" = yes; then
18829 shared_flag="$shared_flag "'${wl}-G'
18833 if test "$host_cpu" = ia64; then
18834 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18835 # chokes on -Wl,-G. The following line is correct:
18838 if test "$aix_use_runtimelinking" = yes; then
18839 shared_flag='${wl}-G'
18841 shared_flag='${wl}-bM:SRE'
18846 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18847 # It seems that -bexpall does not export symbols beginning with
18848 # underscore (_), so it is better to generate a list of symbols to
18850 always_export_symbols_CXX=yes
18851 if test "$aix_use_runtimelinking" = yes; then
18852 # Warning - without using the other runtime loading flags (-brtl),
18853 # -berok will link without error, but may produce a broken library.
18854 allow_undefined_flag_CXX='-berok'
18855 # Determine the default libpath from the value encoded in an empty
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18868 if ac_fn_cxx_try_link "$LINENO"; then :
18870 lt_aix_libpath_sed='
18871 /Import File Strings/,/^$/ {
18877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 # Check for a 64-bit object if we didn't find anything.
18879 if test -z "$aix_libpath"; then
18880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18883 rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
18885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18887 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18889 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"
18891 if test "$host_cpu" = ia64; then
18892 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18893 allow_undefined_flag_CXX="-z nodefs"
18894 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"
18896 # Determine the default libpath from the value encoded in an
18897 # empty executable.
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18909 if ac_fn_cxx_try_link "$LINENO"; then :
18911 lt_aix_libpath_sed='
18912 /Import File Strings/,/^$/ {
18918 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18919 # Check for a 64-bit object if we didn't find anything.
18920 if test -z "$aix_libpath"; then
18921 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18928 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18929 # Warning - without using the other run time loading flags,
18930 # -berok will link without error, but may produce a broken library.
18931 no_undefined_flag_CXX=' ${wl}-bernotok'
18932 allow_undefined_flag_CXX=' ${wl}-berok'
18933 if test "$with_gnu_ld" = yes; then
18934 # We only use this code for GNU lds that support --whole-archive.
18935 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18937 # Exported symbols can be pulled into shared objects from archives
18938 whole_archive_flag_spec_CXX='$convenience'
18940 archive_cmds_need_lc_CXX=yes
18941 # This is similar to how AIX traditionally builds its shared
18943 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'
18949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18950 allow_undefined_flag_CXX=unsupported
18951 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18952 # support --undefined. This deserves some investigation. FIXME
18953 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18960 case $cc_basename in
18962 # FIXME: insert proper C++ library support
18968 cygwin* | mingw* | pw32* | cegcc*)
18969 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18970 # as there is no search path for DLLs.
18971 hardcode_libdir_flag_spec_CXX='-L$libdir'
18972 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18973 allow_undefined_flag_CXX=unsupported
18974 always_export_symbols_CXX=no
18975 enable_shared_with_static_runtimes_CXX=yes
18977 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18978 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'
18979 # If the export-symbols file already is a .def file (1st line
18980 # is EXPORTS), use it as is; otherwise, prepend...
18981 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18982 cp $export_symbols $output_objdir/$soname.def;
18984 echo EXPORTS > $output_objdir/$soname.def;
18985 cat $export_symbols >> $output_objdir/$soname.def;
18987 $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'
18992 darwin* | rhapsody*)
18995 archive_cmds_need_lc_CXX=no
18996 hardcode_direct_CXX=no
18997 hardcode_automatic_CXX=yes
18998 hardcode_shlibpath_var_CXX=unsupported
18999 if test "$lt_cv_ld_force_load" = "yes"; then
19000 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\"`'
19002 whole_archive_flag_spec_CXX=''
19004 link_all_deplibs_CXX=yes
19005 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19006 case $cc_basename in
19007 ifort*) _lt_dar_can_shared=yes ;;
19008 *) _lt_dar_can_shared=$GCC ;;
19010 if test "$_lt_dar_can_shared" = "yes"; then
19011 output_verbose_link_cmd=func_echo_all
19012 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}"
19013 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19014 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}"
19015 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}"
19016 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19017 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}"
19018 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}"
19028 case $cc_basename in
19030 # FIXME: insert proper C++ library support
19034 # Green Hills C++ Compiler
19035 # FIXME: insert proper C++ library support
19039 # FIXME: insert proper C++ library support
19046 # C++ shared libraries reported to be fairly broken before
19052 archive_cmds_need_lc_CXX=no
19055 freebsd* | dragonfly*)
19056 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19065 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19066 link_all_deplibs_CXX=yes
19070 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19071 hardcode_libdir_separator_CXX=:
19072 export_dynamic_flag_spec_CXX='${wl}-E'
19073 hardcode_direct_CXX=yes
19074 hardcode_minus_L_CXX=yes # Not in the search PATH,
19075 # but as the default
19076 # location of the library.
19078 case $cc_basename in
19080 # FIXME: insert proper C++ library support
19084 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'
19085 # Commands to make compiler produce verbose output that lists
19086 # what "hidden" libraries, object files and flags are used when
19087 # linking a shared library.
19089 # There doesn't appear to be a way to prevent this compiler from
19090 # explicitly linking system object files so we need to strip them
19091 # from the output so that they don't get included in the library
19093 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"'
19096 if test "$GXX" = yes; then
19097 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'
19099 # FIXME: insert proper C++ library support
19107 if test $with_gnu_ld = no; then
19108 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19109 hardcode_libdir_separator_CXX=:
19115 export_dynamic_flag_spec_CXX='${wl}-E'
19121 hardcode_direct_CXX=no
19122 hardcode_shlibpath_var_CXX=no
19125 hardcode_direct_CXX=yes
19126 hardcode_direct_absolute_CXX=yes
19127 hardcode_minus_L_CXX=yes # Not in the search PATH,
19128 # but as the default
19129 # location of the library.
19133 case $cc_basename in
19135 # FIXME: insert proper C++ library support
19141 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19147 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19150 # Commands to make compiler produce verbose output that lists
19151 # what "hidden" libraries, object files and flags are used when
19152 # linking a shared library.
19154 # There doesn't appear to be a way to prevent this compiler from
19155 # explicitly linking system object files so we need to strip them
19156 # from the output so that they don't get included in the library
19158 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"'
19161 if test "$GXX" = yes; then
19162 if test $with_gnu_ld = no; then
19165 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19168 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19171 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'
19176 # FIXME: insert proper C++ library support
19184 hardcode_direct_CXX=no
19185 hardcode_shlibpath_var_CXX=no
19186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19187 export_dynamic_flag_spec_CXX='${wl}-E'
19188 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19189 # Instead, shared libraries are loaded at an image base (0x10000000 by
19190 # default) and relocated if they conflict, which is a slow very memory
19191 # consuming and fragmenting process. To avoid this, we pick a random,
19192 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19193 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19194 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'
19195 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'
19198 case $cc_basename in
19201 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'
19203 # Archives containing C++ object files must be created using
19204 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19205 # necessary to make sure instantiated templates are included
19207 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19210 if test "$GXX" = yes; then
19211 if test "$with_gnu_ld" = no; then
19212 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'
19214 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'
19217 link_all_deplibs_CXX=yes
19220 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19221 hardcode_libdir_separator_CXX=:
19222 inherit_rpath_CXX=yes
19225 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19226 case $cc_basename in
19228 # Kuck and Associates, Inc. (KAI) C++ Compiler
19230 # KCC will only create a shared library if the output file
19231 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19232 # to its proper name (with version) after linking.
19233 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'
19234 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'
19235 # Commands to make compiler produce verbose output that lists
19236 # what "hidden" libraries, object files and flags are used when
19237 # linking a shared library.
19239 # There doesn't appear to be a way to prevent this compiler from
19240 # explicitly linking system object files so we need to strip them
19241 # from the output so that they don't get included in the library
19243 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"'
19245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19246 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19248 # Archives containing C++ object files must be created using
19249 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19250 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19255 # version 8.0 and above of icpc choke on multiply defined symbols
19256 # if we add $predep_objects and $postdep_objects, however 7.1 and
19257 # earlier do not add the objects themselves.
19258 case `$CC -V 2>&1` in
19260 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19261 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'
19263 *) # Version 8.0 or newer
19266 ia64*) tmp_idyn=' -i_dynamic';;
19268 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19269 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'
19272 archive_cmds_need_lc_CXX=no
19273 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19274 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19275 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19278 # Portland Group C++ compiler
19280 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19281 prelink_cmds_CXX='tpldir=Template.dir~
19283 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19284 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19285 old_archive_cmds_CXX='tpldir=Template.dir~
19287 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19288 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19290 archive_cmds_CXX='tpldir=Template.dir~
19292 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19293 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19294 archive_expsym_cmds_CXX='tpldir=Template.dir~
19296 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19297 $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'
19299 *) # Version 6 and above use weak symbols
19300 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19301 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'
19305 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19306 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19307 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'
19311 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19312 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'
19314 runpath_var=LD_RUN_PATH
19315 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19316 hardcode_libdir_separator_CXX=:
19318 # Commands to make compiler produce verbose output that lists
19319 # what "hidden" libraries, object files and flags are used when
19320 # linking a shared library.
19322 # There doesn't appear to be a way to prevent this compiler from
19323 # explicitly linking system object files so we need to strip them
19324 # from the output so that they don't get included in the library
19326 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'
19328 xl* | mpixl* | bgxl*)
19329 # IBM XL 8.0 on PPC, with GNU ld
19330 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19331 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19332 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19333 if test "x$supports_anon_versioning" = xyes; then
19334 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19335 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19336 echo "local: *; };" >> $output_objdir/$libname.ver~
19337 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19341 case `$CC -V 2>&1 | sed 5q` in
19344 no_undefined_flag_CXX=' -zdefs'
19345 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19346 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'
19347 hardcode_libdir_flag_spec_CXX='-R$libdir'
19348 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'
19349 compiler_needs_object_CXX=yes
19351 # Not sure whether something based on
19352 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19354 output_verbose_link_cmd='func_echo_all'
19356 # Archives containing C++ object files must be created using
19357 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19358 # necessary to make sure instantiated templates are included
19360 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19368 # FIXME: insert proper C++ library support
19373 # FIXME: insert proper C++ library support
19378 case $cc_basename in
19380 # FIXME: insert proper C++ library support
19384 # FIXME: insert proper C++ library support
19391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19392 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19394 hardcode_libdir_flag_spec_CXX='-R$libdir'
19395 hardcode_direct_CXX=yes
19396 hardcode_shlibpath_var_CXX=no
19398 # Workaround some broken pre-1.5 toolchains
19399 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19407 # C++ shared libraries are fairly broken
19412 if test -f /usr/libexec/ld.so; then
19413 hardcode_direct_CXX=yes
19414 hardcode_shlibpath_var_CXX=no
19415 hardcode_direct_absolute_CXX=yes
19416 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19419 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19420 export_dynamic_flag_spec_CXX='${wl}-E'
19421 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19423 output_verbose_link_cmd=func_echo_all
19429 osf3* | osf4* | osf5*)
19430 case $cc_basename in
19432 # Kuck and Associates, Inc. (KAI) C++ Compiler
19434 # KCC will only create a shared library if the output file
19435 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19436 # to its proper name (with version) after linking.
19437 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'
19439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19440 hardcode_libdir_separator_CXX=:
19442 # Archives containing C++ object files must be created using
19443 # the KAI C++ compiler.
19445 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19446 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19450 # Rational C++ 2.4.1
19451 # FIXME: insert proper C++ library support
19457 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19458 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'
19459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19462 allow_undefined_flag_CXX=' -expect_unresolved \*'
19463 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'
19464 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19465 echo "-hidden">> $lib.exp~
19466 $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~
19468 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19472 hardcode_libdir_separator_CXX=:
19474 # Commands to make compiler produce verbose output that lists
19475 # what "hidden" libraries, object files and flags are used when
19476 # linking a shared library.
19478 # There doesn't appear to be a way to prevent this compiler from
19479 # explicitly linking system object files so we need to strip them
19480 # from the output so that they don't get included in the library
19482 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"'
19485 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19486 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19489 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'
19492 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'
19496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19497 hardcode_libdir_separator_CXX=:
19499 # Commands to make compiler produce verbose output that lists
19500 # what "hidden" libraries, object files and flags are used when
19501 # linking a shared library.
19502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19505 # FIXME: insert proper C++ library support
19513 # FIXME: insert proper C++ library support
19518 case $cc_basename in
19521 # FIXME: insert proper C++ library support
19526 # FIXME: insert proper C++ library support
19530 # FIXME: insert proper C++ library support
19537 case $cc_basename in
19539 # Sun C++ 4.2, 5.x and Centerline C++
19540 archive_cmds_need_lc_CXX=yes
19541 no_undefined_flag_CXX=' -zdefs'
19542 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19543 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19544 $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'
19546 hardcode_libdir_flag_spec_CXX='-R$libdir'
19547 hardcode_shlibpath_var_CXX=no
19549 solaris2.[0-5] | solaris2.[0-5].*) ;;
19551 # The compiler driver will combine and reorder linker options,
19552 # but understands `-z linker_flag'.
19553 # Supported since Solaris 2.6 (maybe 2.5.1?)
19554 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19557 link_all_deplibs_CXX=yes
19559 output_verbose_link_cmd='func_echo_all'
19561 # Archives containing C++ object files must be created using
19562 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19563 # necessary to make sure instantiated templates are included
19565 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19568 # Green Hills C++ Compiler
19569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19571 # The C++ compiler must be used to create the archive.
19572 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19575 # GNU C++ compiler with Solaris linker
19576 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19577 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19578 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19579 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19580 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19581 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19583 # Commands to make compiler produce verbose output that lists
19584 # what "hidden" libraries, object files and flags are used when
19585 # linking a shared library.
19586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19588 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19590 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19592 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19594 # Commands to make compiler produce verbose output that lists
19595 # what "hidden" libraries, object files and flags are used when
19596 # linking a shared library.
19597 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19600 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19602 solaris2.[0-5] | solaris2.[0-5].*) ;;
19604 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19612 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19613 no_undefined_flag_CXX='${wl}-z,text'
19614 archive_cmds_need_lc_CXX=no
19615 hardcode_shlibpath_var_CXX=no
19616 runpath_var='LD_RUN_PATH'
19618 case $cc_basename in
19620 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19621 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19624 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19625 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19630 sysv5* | sco3.2v5* | sco5v6*)
19631 # Note: We can NOT use -z defs as we might desire, because we do not
19632 # link with -lc, and that would cause any symbols used from libc to
19633 # always be unresolved, which means just about no library would
19634 # ever link correctly. If we're not using GNU ld we use -z text
19635 # though, which does catch some bad symbols but isn't as heavy-handed
19637 no_undefined_flag_CXX='${wl}-z,text'
19638 allow_undefined_flag_CXX='${wl}-z,nodefs'
19639 archive_cmds_need_lc_CXX=no
19640 hardcode_shlibpath_var_CXX=no
19641 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19642 hardcode_libdir_separator_CXX=':'
19643 link_all_deplibs_CXX=yes
19644 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19645 runpath_var='LD_RUN_PATH'
19647 case $cc_basename in
19649 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19650 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19651 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19652 '"$old_archive_cmds_CXX"
19653 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19654 '"$reload_cmds_CXX"
19657 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19658 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19664 case $cc_basename in
19666 # NonStop-UX NCC 3.20
19667 # FIXME: insert proper C++ library support
19671 # FIXME: insert proper C++ library support
19678 # FIXME: insert proper C++ library support
19683 # FIXME: insert proper C++ library support
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19689 $as_echo "$ld_shlibs_CXX" >&6; }
19690 test "$ld_shlibs_CXX" = no && can_build_shared=no
19696 ## There is no encapsulation within the following macros, do not change
19697 ## the running order or otherwise move them around unless you know exactly
19698 ## what you are doing...
19699 # Dependencies to place before and after the object being linked:
19700 predep_objects_CXX=
19701 postdep_objects_CXX=
19704 compiler_lib_search_path_CXX=
19706 cat > conftest.$ac_ext <<_LT_EOF
19710 Foo (void) { a = 0; }
19716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19717 (eval $ac_compile) 2>&5
19719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19720 test $ac_status = 0; }; then
19721 # Parse the compiler output and extract the necessary
19722 # objects, libraries and library flags.
19724 # Sentinel used to keep track of whether or not we are before
19725 # the conftest object file.
19726 pre_test_object_deps_done=no
19728 for p in `eval "$output_verbose_link_cmd"`; do
19732 # Some compilers place space between "-{L,R}" and the path.
19733 # Remove the space.
19734 if test $p = "-L" ||
19735 test $p = "-R"; then
19742 if test "$pre_test_object_deps_done" = no; then
19745 # Internal compiler library paths should come after those
19746 # provided the user. The postdeps already come after the
19747 # user supplied libs so there is no need to process them.
19748 if test -z "$compiler_lib_search_path_CXX"; then
19749 compiler_lib_search_path_CXX="${prev}${p}"
19751 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19754 # The "-l" case would never come before the object being
19755 # linked, so don't bother handling this case.
19758 if test -z "$postdeps_CXX"; then
19759 postdeps_CXX="${prev}${p}"
19761 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19767 # This assumes that the test object file only shows up
19768 # once in the compiler output.
19769 if test "$p" = "conftest.$objext"; then
19770 pre_test_object_deps_done=yes
19774 if test "$pre_test_object_deps_done" = no; then
19775 if test -z "$predep_objects_CXX"; then
19776 predep_objects_CXX="$p"
19778 predep_objects_CXX="$predep_objects_CXX $p"
19781 if test -z "$postdep_objects_CXX"; then
19782 postdep_objects_CXX="$p"
19784 postdep_objects_CXX="$postdep_objects_CXX $p"
19789 *) ;; # Ignore the rest.
19797 echo "libtool.m4: error: problem compiling CXX test program"
19800 $RM -f confest.$objext
19802 # PORTME: override above test on systems where it is broken
19805 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19806 # hack all around it, let's just trust "g++" to DTRT.
19807 predep_objects_CXX=
19808 postdep_objects_CXX=
19813 case `$CC -V 2>&1 | sed 5q` in
19817 # The more standards-conforming stlport4 library is
19818 # incompatible with the Cstd library. Avoid specifying
19819 # it if it's in CXXFLAGS. Ignore libCrun as
19820 # -library=stlport4 depends on it.
19821 case " $CXX $CXXFLAGS " in
19822 *" -library=stlport4 "*)
19823 solaris_use_stlport4=yes
19827 if test "$solaris_use_stlport4" != yes; then
19828 postdeps_CXX='-library=Cstd -library=Crun'
19835 case $cc_basename in
19837 # The more standards-conforming stlport4 library is
19838 # incompatible with the Cstd library. Avoid specifying
19839 # it if it's in CXXFLAGS. Ignore libCrun as
19840 # -library=stlport4 depends on it.
19841 case " $CXX $CXXFLAGS " in
19842 *" -library=stlport4 "*)
19843 solaris_use_stlport4=yes
19847 # Adding this requires a known-good setup of shared libraries for
19848 # Sun compiler versions before 5.6, else PIC objects from an old
19849 # archive will be linked into the output, leading to subtle bugs.
19850 if test "$solaris_use_stlport4" != yes; then
19851 postdeps_CXX='-library=Cstd -library=Crun'
19859 case " $postdeps_CXX " in
19860 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19862 compiler_lib_search_dirs_CXX=
19863 if test -n "${compiler_lib_search_path_CXX}"; then
19864 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19897 lt_prog_compiler_wl_CXX=
19898 lt_prog_compiler_pic_CXX=
19899 lt_prog_compiler_static_CXX=
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19902 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19904 # C++ specific cases for pic, static, wl, etc.
19905 if test "$GXX" = yes; then
19906 lt_prog_compiler_wl_CXX='-Wl,'
19907 lt_prog_compiler_static_CXX='-static'
19911 # All AIX code is PIC.
19912 if test "$host_cpu" = ia64; then
19913 # AIX 5 now supports IA64 processor
19914 lt_prog_compiler_static_CXX='-Bstatic'
19921 # see comment about AmigaOS4 .so support
19922 lt_prog_compiler_pic_CXX='-fPIC'
19925 # FIXME: we need at least 68020 code to build shared libraries, but
19926 # adding the `-m68020' flag to GCC prevents building anything better,
19928 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19933 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19934 # PIC is the default for these OSes.
19936 mingw* | cygwin* | os2* | pw32* | cegcc*)
19937 # This hack is so that the source file can tell whether it is being
19938 # built for inclusion in a dll (and should export symbols for example).
19939 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19940 # (--disable-auto-import) libraries
19941 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19943 darwin* | rhapsody*)
19944 # PIC is the default on this platform
19945 # Common symbols not allowed in MH_DYLIB files
19946 lt_prog_compiler_pic_CXX='-fno-common'
19949 # DJGPP does not support shared libraries at all
19950 lt_prog_compiler_pic_CXX=
19953 # PIC is the default for Haiku.
19954 # The "-static" flag exists, but is broken.
19955 lt_prog_compiler_static_CXX=
19958 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19959 # Instead, we relocate shared libraries at runtime.
19962 if test -d /usr/nec; then
19963 lt_prog_compiler_pic_CXX=-Kconform_pic
19967 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19968 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19969 # sets the default TLS model and affects inlining.
19974 lt_prog_compiler_pic_CXX='-fPIC'
19979 # QNX uses GNU C++, but need to define -shared option too, otherwise
19980 # it will coredump.
19981 lt_prog_compiler_pic_CXX='-fPIC -shared'
19984 lt_prog_compiler_pic_CXX='-fPIC'
19990 # All AIX code is PIC.
19991 if test "$host_cpu" = ia64; then
19992 # AIX 5 now supports IA64 processor
19993 lt_prog_compiler_static_CXX='-Bstatic'
19995 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19999 case $cc_basename in
20001 # Green Hills C++ Compiler
20002 # _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"
20007 case $cc_basename in
20009 lt_prog_compiler_pic_CXX='-KPIC'
20012 # Green Hills C++ Compiler
20013 lt_prog_compiler_pic_CXX='-pic'
20019 freebsd* | dragonfly*)
20020 # FreeBSD uses GNU C++
20022 hpux9* | hpux10* | hpux11*)
20023 case $cc_basename in
20025 lt_prog_compiler_wl_CXX='-Wl,'
20026 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20027 if test "$host_cpu" != ia64; then
20028 lt_prog_compiler_pic_CXX='+Z'
20032 lt_prog_compiler_wl_CXX='-Wl,'
20033 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20039 lt_prog_compiler_pic_CXX='+Z'
20048 # This is c89, which is MS Visual C++ (no shared libs)
20049 # Anyone wants to do a port?
20051 irix5* | irix6* | nonstopux*)
20052 case $cc_basename in
20054 lt_prog_compiler_wl_CXX='-Wl,'
20055 lt_prog_compiler_static_CXX='-non_shared'
20056 # CC pic flag -KPIC is the default.
20062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20063 case $cc_basename in
20066 lt_prog_compiler_wl_CXX='--backend -Wl,'
20067 lt_prog_compiler_pic_CXX='-fPIC'
20070 # old Intel C++ for x86_64 which still supported -KPIC.
20071 lt_prog_compiler_wl_CXX='-Wl,'
20072 lt_prog_compiler_pic_CXX='-KPIC'
20073 lt_prog_compiler_static_CXX='-static'
20076 # Intel C++, used to be incompatible with GCC.
20077 # ICC 10 doesn't accept -KPIC any more.
20078 lt_prog_compiler_wl_CXX='-Wl,'
20079 lt_prog_compiler_pic_CXX='-fPIC'
20080 lt_prog_compiler_static_CXX='-static'
20083 # Portland Group C++ compiler
20084 lt_prog_compiler_wl_CXX='-Wl,'
20085 lt_prog_compiler_pic_CXX='-fpic'
20086 lt_prog_compiler_static_CXX='-Bstatic'
20090 # Make sure the PIC flag is empty. It appears that all Alpha
20091 # Linux and Compaq Tru64 Unix objects are PIC.
20092 lt_prog_compiler_pic_CXX=
20093 lt_prog_compiler_static_CXX='-non_shared'
20095 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20096 # IBM XL 8.0, 9.0 on PPC and BlueGene
20097 lt_prog_compiler_wl_CXX='-Wl,'
20098 lt_prog_compiler_pic_CXX='-qpic'
20099 lt_prog_compiler_static_CXX='-qstaticlink'
20102 case `$CC -V 2>&1 | sed 5q` in
20105 lt_prog_compiler_pic_CXX='-KPIC'
20106 lt_prog_compiler_static_CXX='-Bstatic'
20107 lt_prog_compiler_wl_CXX='-Qoption ld '
20118 case $cc_basename in
20120 lt_prog_compiler_pic_CXX='-W c,exportall'
20129 # QNX uses GNU C++, but need to define -shared option too, otherwise
20130 # it will coredump.
20131 lt_prog_compiler_pic_CXX='-fPIC -shared'
20133 osf3* | osf4* | osf5*)
20134 case $cc_basename in
20136 lt_prog_compiler_wl_CXX='--backend -Wl,'
20139 # Rational C++ 2.4.1
20140 lt_prog_compiler_pic_CXX='-pic'
20143 # Digital/Compaq C++
20144 lt_prog_compiler_wl_CXX='-Wl,'
20145 # Make sure the PIC flag is empty. It appears that all Alpha
20146 # Linux and Compaq Tru64 Unix objects are PIC.
20147 lt_prog_compiler_pic_CXX=
20148 lt_prog_compiler_static_CXX='-non_shared'
20157 case $cc_basename in
20159 # Sun C++ 4.2, 5.x and Centerline C++
20160 lt_prog_compiler_pic_CXX='-KPIC'
20161 lt_prog_compiler_static_CXX='-Bstatic'
20162 lt_prog_compiler_wl_CXX='-Qoption ld '
20165 # Green Hills C++ Compiler
20166 lt_prog_compiler_pic_CXX='-PIC'
20173 case $cc_basename in
20176 lt_prog_compiler_pic_CXX='-pic'
20177 lt_prog_compiler_static_CXX='-Bstatic'
20181 lt_prog_compiler_pic_CXX='-pic'
20187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20188 case $cc_basename in
20190 lt_prog_compiler_wl_CXX='-Wl,'
20191 lt_prog_compiler_pic_CXX='-KPIC'
20192 lt_prog_compiler_static_CXX='-Bstatic'
20197 case $cc_basename in
20199 # NonStop-UX NCC 3.20
20200 lt_prog_compiler_pic_CXX='-KPIC'
20209 lt_prog_compiler_can_build_shared_CXX=no
20215 # For platforms which do not support PIC, -DPIC is meaningless:
20217 lt_prog_compiler_pic_CXX=
20220 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20224 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20229 # Check to make sure the PIC flag actually works.
20231 if test -n "$lt_prog_compiler_pic_CXX"; then
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20233 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20234 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20235 $as_echo_n "(cached) " >&6
20237 lt_cv_prog_compiler_pic_works_CXX=no
20238 ac_outfile=conftest.$ac_objext
20239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20240 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20241 # Insert the option either (1) after the last *FLAGS variable, or
20242 # (2) before a word containing "conftest.", or (3) at the end.
20243 # Note that $ac_compile itself does not contain backslashes and begins
20244 # with a dollar sign (not a hyphen), so the echo should work correctly.
20245 # The option is referenced via a variable to avoid confusing sed.
20246 lt_compile=`echo "$ac_compile" | $SED \
20247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20249 -e 's:$: $lt_compiler_flag:'`
20250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20251 (eval "$lt_compile" 2>conftest.err)
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 if (exit $ac_status) && test -s "$ac_outfile"; then
20256 # The compiler can only warn and ignore the option if not recognized
20257 # So say no if there are warnings other than the usual output.
20258 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20260 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20261 lt_cv_prog_compiler_pic_works_CXX=yes
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20268 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20270 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20271 case $lt_prog_compiler_pic_CXX in
20273 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20276 lt_prog_compiler_pic_CXX=
20277 lt_prog_compiler_can_build_shared_CXX=no
20285 # Check to make sure the static flag actually works.
20287 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20289 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20290 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20291 $as_echo_n "(cached) " >&6
20293 lt_cv_prog_compiler_static_works_CXX=no
20294 save_LDFLAGS="$LDFLAGS"
20295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20298 # The linker can only warn and ignore the option if not recognized
20299 # So say no if there are warnings
20300 if test -s conftest.err; then
20301 # Append any errors to the config.log.
20302 cat conftest.err 1>&5
20303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20305 if diff conftest.exp conftest.er2 >/dev/null; then
20306 lt_cv_prog_compiler_static_works_CXX=yes
20309 lt_cv_prog_compiler_static_works_CXX=yes
20313 LDFLAGS="$save_LDFLAGS"
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20317 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20319 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20322 lt_prog_compiler_static_CXX=
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20330 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20331 $as_echo_n "(cached) " >&6
20333 lt_cv_prog_compiler_c_o_CXX=no
20334 $RM -r conftest 2>/dev/null
20338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20340 lt_compiler_flag="-o out/conftest2.$ac_objext"
20341 # Insert the option either (1) after the last *FLAGS variable, or
20342 # (2) before a word containing "conftest.", or (3) at the end.
20343 # Note that $ac_compile itself does not contain backslashes and begins
20344 # with a dollar sign (not a hyphen), so the echo should work correctly.
20345 lt_compile=`echo "$ac_compile" | $SED \
20346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20348 -e 's:$: $lt_compiler_flag:'`
20349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20350 (eval "$lt_compile" 2>out/conftest.err)
20352 cat out/conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20356 # The compiler can only warn and ignore the option if not recognized
20357 # So say no if there are warnings
20358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20361 lt_cv_prog_compiler_c_o_CXX=yes
20366 # SGI C++ compiler will create directory out/ii_files/ for
20367 # template instantiation
20368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20369 $RM out/* && rmdir out
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20376 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20381 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20382 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20383 $as_echo_n "(cached) " >&6
20385 lt_cv_prog_compiler_c_o_CXX=no
20386 $RM -r conftest 2>/dev/null
20390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20392 lt_compiler_flag="-o out/conftest2.$ac_objext"
20393 # Insert the option either (1) after the last *FLAGS variable, or
20394 # (2) before a word containing "conftest.", or (3) at the end.
20395 # Note that $ac_compile itself does not contain backslashes and begins
20396 # with a dollar sign (not a hyphen), so the echo should work correctly.
20397 lt_compile=`echo "$ac_compile" | $SED \
20398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20400 -e 's:$: $lt_compiler_flag:'`
20401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20402 (eval "$lt_compile" 2>out/conftest.err)
20404 cat out/conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20408 # The compiler can only warn and ignore the option if not recognized
20409 # So say no if there are warnings
20410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20413 lt_cv_prog_compiler_c_o_CXX=yes
20418 # SGI C++ compiler will create directory out/ii_files/ for
20419 # template instantiation
20420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20421 $RM out/* && rmdir out
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20428 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20433 hard_links="nottested"
20434 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20435 # do not overwrite the value of need_locks provided by the user
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20437 $as_echo_n "checking if we can lock with hard links... " >&6; }
20440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20442 ln conftest.a conftest.b 2>&5 || hard_links=no
20443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20445 $as_echo "$hard_links" >&6; }
20446 if test "$hard_links" = no; then
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20448 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20458 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20460 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20463 # If we're using GNU nm, then we don't want the "-C" option.
20464 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20465 # Also, AIX nm treats weak defined symbols like other global defined
20466 # symbols, whereas GNU nm marks them as "W".
20467 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20468 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'
20470 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'
20474 export_symbols_cmds_CXX="$ltdll_cmds"
20476 cygwin* | mingw* | cegcc*)
20477 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'
20480 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20483 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20486 $as_echo "$ld_shlibs_CXX" >&6; }
20487 test "$ld_shlibs_CXX" = no && can_build_shared=no
20489 with_gnu_ld_CXX=$with_gnu_ld
20497 # Do we need to explicitly link libc?
20499 case "x$archive_cmds_need_lc_CXX" in
20501 # Assume -lc should be added
20502 archive_cmds_need_lc_CXX=yes
20504 if test "$enable_shared" = yes && test "$GCC" = yes; then
20505 case $archive_cmds_CXX in
20507 # FIXME: we may have to deal with multi-command sequences.
20510 # Test whether the compiler implicitly links with -lc since on some
20511 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20512 # to ld, don't add -lc before -lgcc.
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20514 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20515 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20516 $as_echo_n "(cached) " >&6
20519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20522 (eval $ac_compile) 2>&5
20524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20525 test $ac_status = 0; } 2>conftest.err; then
20528 libobjs=conftest.$ac_objext
20530 wl=$lt_prog_compiler_wl_CXX
20531 pic_flag=$lt_prog_compiler_pic_CXX
20537 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20538 allow_undefined_flag_CXX=
20539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20540 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20543 test $ac_status = 0; }
20545 lt_cv_archive_cmds_need_lc_CXX=no
20547 lt_cv_archive_cmds_need_lc_CXX=yes
20549 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20551 cat conftest.err 1>&5
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20557 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20558 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20629 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20631 library_names_spec=
20632 libname_spec='lib$name'
20636 postuninstall_cmds=
20640 shlibpath_overrides_runpath=unknown
20642 dynamic_linker="$host_os ld.so"
20643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20644 need_lib_prefix=unknown
20645 hardcode_into_libs=no
20647 # when you set need_version to no, make sure it does not cause -set_version
20648 # flags to be left without arguments
20649 need_version=unknown
20654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20655 shlibpath_var=LIBPATH
20657 # AIX 3 has no versioning support, so we append a major version to the name.
20658 soname_spec='${libname}${release}${shared_ext}$major'
20665 hardcode_into_libs=yes
20666 if test "$host_cpu" = ia64; then
20667 # AIX 5 supports IA64
20668 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20669 shlibpath_var=LD_LIBRARY_PATH
20671 # With GCC up to 2.95.x, collect2 would create an import file
20672 # for dependence libraries. The import file would start with
20673 # the line `#! .'. This would cause the generated library to
20674 # depend on `.', always an invalid library. This was fixed in
20675 # development snapshots of GCC prior to 3.0.
20677 aix4 | aix4.[01] | aix4.[01].*)
20678 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20680 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20683 can_build_shared=no
20687 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20688 # soname into executable. Probably we can add versioning support to
20689 # collect2, so additional links can be useful in future.
20690 if test "$aix_use_runtimelinking" = yes; then
20691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20692 # instead of lib<name>.a to let people know that these are not
20693 # typical AIX shared libraries.
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20696 # We preserve .a as extension for shared libraries through AIX4.2
20697 # and later when we are not doing run time linking.
20698 library_names_spec='${libname}${release}.a $libname.a'
20699 soname_spec='${libname}${release}${shared_ext}$major'
20701 shlibpath_var=LIBPATH
20708 # Since July 2007 AmigaOS4 officially supports .so libraries.
20709 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20713 library_names_spec='$libname.ixlibrary $libname.a'
20714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20715 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'
20721 library_names_spec='${libname}${shared_ext}'
20722 dynamic_linker="$host_os ld.so"
20723 shlibpath_var=LIBRARY_PATH
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20735 # the default ld.so.conf also contains /usr/contrib/lib and
20736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20737 # libtool to hard-code these into programs
20740 cygwin* | mingw* | pw32* | cegcc*)
20741 version_type=windows
20746 case $GCC,$host_os in
20747 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20748 library_names_spec='$libname.dll.a'
20749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20750 postinstall_cmds='base_file=`basename \${file}`~
20751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20752 dldir=$destdir/`dirname \$dlpath`~
20753 test -d \$dldir || mkdir -p \$dldir~
20754 $install_prog $dir/$dlname \$dldir/$dlname~
20755 chmod a+x \$dldir/$dlname~
20756 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20757 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20760 dlpath=$dir/\$dldll~
20762 shlibpath_overrides_runpath=yes
20766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20771 # MinGW DLLs use traditional 'lib' prefix
20772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20775 # pw32 DLLs use 'pw' prefix rather than 'lib'
20776 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20782 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20785 dynamic_linker='Win32 ld.exe'
20786 # FIXME: first we should search . and the directory the executable is in
20790 darwin* | rhapsody*)
20791 dynamic_linker="$host_os dyld"
20792 version_type=darwin
20795 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20796 soname_spec='${libname}${release}${major}$shared_ext'
20797 shlibpath_overrides_runpath=yes
20798 shlibpath_var=DYLD_LIBRARY_PATH
20799 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20809 soname_spec='${libname}${release}${shared_ext}$major'
20810 shlibpath_var=LD_LIBRARY_PATH
20813 freebsd* | dragonfly*)
20814 # DragonFly does not have aout. When/if they implement a new
20815 # versioning mechanism, adjust this.
20816 if test -x /usr/bin/objformat; then
20817 objformat=`/usr/bin/objformat`
20820 freebsd[23].*) objformat=aout ;;
20821 *) objformat=elf ;;
20824 version_type=freebsd-$objformat
20825 case $version_type in
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20836 shlibpath_var=LD_LIBRARY_PATH
20839 shlibpath_overrides_runpath=yes
20841 freebsd3.[01]* | freebsdelf3.[01]*)
20842 shlibpath_overrides_runpath=yes
20843 hardcode_into_libs=yes
20845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20847 shlibpath_overrides_runpath=no
20848 hardcode_into_libs=yes
20850 *) # from 4.6 on, and DragonFly
20851 shlibpath_overrides_runpath=yes
20852 hardcode_into_libs=yes
20861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20862 soname_spec='${libname}${release}${shared_ext}$major'
20863 shlibpath_var=LD_LIBRARY_PATH
20864 hardcode_into_libs=yes
20871 dynamic_linker="$host_os runtime_loader"
20872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20873 soname_spec='${libname}${release}${shared_ext}$major'
20874 shlibpath_var=LIBRARY_PATH
20875 shlibpath_overrides_runpath=yes
20876 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20877 hardcode_into_libs=yes
20880 hpux9* | hpux10* | hpux11*)
20881 # Give a soname corresponding to the major version so that dld.sl refuses to
20882 # link against other versions.
20889 hardcode_into_libs=yes
20890 dynamic_linker="$host_os dld.so"
20891 shlibpath_var=LD_LIBRARY_PATH
20892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 if test "X$HPUX_IA64_MODE" = X32; then
20896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20904 hardcode_into_libs=yes
20905 dynamic_linker="$host_os dld.sl"
20906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20915 dynamic_linker="$host_os dld.sl"
20916 shlibpath_var=SHLIB_PATH
20917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20919 soname_spec='${libname}${release}${shared_ext}$major'
20922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20923 postinstall_cmds='chmod 555 $lib'
20924 # or fails outright, so override atomically:
20925 install_override_mode=555
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20935 shlibpath_var=LD_LIBRARY_PATH
20936 shlibpath_overrides_runpath=no
20937 hardcode_into_libs=yes
20940 irix5* | irix6* | nonstopux*)
20942 nonstopux*) version_type=nonstopux ;;
20944 if test "$lt_cv_prog_gnu_ld" = yes; then
20952 soname_spec='${libname}${release}${shared_ext}$major'
20953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20955 irix5* | nonstopux*)
20956 libsuff= shlibsuff=
20959 case $LD in # libtool.m4 will add one of these switches to LD
20960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20961 libsuff= shlibsuff= libmagic=32-bit;;
20962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20963 libsuff=32 shlibsuff=N32 libmagic=N32;;
20964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20966 *) libsuff= shlibsuff= libmagic=never-match;;
20970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20971 shlibpath_overrides_runpath=no
20972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20974 hardcode_into_libs=yes
20977 # No shared lib support for Linux oldld, aout, or coff.
20978 linux*oldld* | linux*aout* | linux*coff*)
20982 # This must be Linux ELF.
20983 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 soname_spec='${libname}${release}${shared_ext}$major'
20989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20990 shlibpath_var=LD_LIBRARY_PATH
20991 shlibpath_overrides_runpath=no
20993 # Some binutils ld are patched to set DT_RUNPATH
20994 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20995 $as_echo_n "(cached) " >&6
20997 lt_cv_shlibpath_overrides_runpath=no
20998 save_LDFLAGS=$LDFLAGS
20999 save_libdir=$libdir
21000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h. */
21013 if ac_fn_cxx_try_link "$LINENO"; then :
21014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21015 lt_cv_shlibpath_overrides_runpath=yes
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LDFLAGS=$save_LDFLAGS
21021 libdir=$save_libdir
21025 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21027 # This implies no fast_install, which is unacceptable.
21028 # Some rework will be needed to allow for fast_install
21029 # before this can be enabled.
21030 hardcode_into_libs=yes
21032 # Append ld.so.conf contents to the search path
21033 if test -f /etc/ld.so.conf; then
21034 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' ' '`
21035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21038 # We used to test for /lib/ld.so.1 and disable shared libraries on
21039 # powerpc, because MkLinux only supported shared libraries with the
21040 # GNU dynamic linker. Since this was broken with cross compilers,
21041 # most powerpc-linux boxes support dynamic linking these days and
21042 # people can always --disable-shared, the test was removed, and we
21043 # assume the GNU/Linux dynamic linker is in use.
21044 dynamic_linker='GNU/Linux ld.so'
21051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21054 dynamic_linker='NetBSD (a.out) ld.so'
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21057 soname_spec='${libname}${release}${shared_ext}$major'
21058 dynamic_linker='NetBSD ld.elf_so'
21060 shlibpath_var=LD_LIBRARY_PATH
21061 shlibpath_overrides_runpath=yes
21062 hardcode_into_libs=yes
21067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21068 shlibpath_var=LD_LIBRARY_PATH
21069 shlibpath_overrides_runpath=yes
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 shlibpath_var=LD_LIBRARY_PATH
21079 shlibpath_overrides_runpath=no
21080 hardcode_into_libs=yes
21081 dynamic_linker='ldqnx.so'
21086 sys_lib_dlsearch_path_spec="/usr/lib"
21088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21091 *) need_version=no ;;
21093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21095 shlibpath_var=LD_LIBRARY_PATH
21096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21098 openbsd2.[89] | openbsd2.[89].*)
21099 shlibpath_overrides_runpath=no
21102 shlibpath_overrides_runpath=yes
21106 shlibpath_overrides_runpath=yes
21111 libname_spec='$name'
21114 library_names_spec='$libname${shared_ext} $libname.a'
21115 dynamic_linker='OS/2 ld.exe'
21116 shlibpath_var=LIBPATH
21119 osf3* | osf4* | osf5*)
21123 soname_spec='${libname}${release}${shared_ext}$major'
21124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21125 shlibpath_var=LD_LIBRARY_PATH
21126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21139 soname_spec='${libname}${release}${shared_ext}$major'
21140 shlibpath_var=LD_LIBRARY_PATH
21141 shlibpath_overrides_runpath=yes
21142 hardcode_into_libs=yes
21143 # ldd complains unless libraries are executable
21144 postinstall_cmds='chmod +x $lib'
21149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21151 shlibpath_var=LD_LIBRARY_PATH
21152 shlibpath_overrides_runpath=yes
21153 if test "$with_gnu_ld" = yes; then
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21162 soname_spec='${libname}${release}${shared_ext}$major'
21163 shlibpath_var=LD_LIBRARY_PATH
21164 case $host_vendor in
21166 shlibpath_overrides_runpath=no
21168 runpath_var=LD_RUN_PATH
21176 shlibpath_overrides_runpath=no
21177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21183 if test -d /usr/nec ;then
21185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21186 soname_spec='$libname${shared_ext}.$major'
21187 shlibpath_var=LD_LIBRARY_PATH
21191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21192 version_type=freebsd-elf
21195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21196 soname_spec='${libname}${release}${shared_ext}$major'
21197 shlibpath_var=LD_LIBRARY_PATH
21198 shlibpath_overrides_runpath=yes
21199 hardcode_into_libs=yes
21200 if test "$with_gnu_ld" = yes; then
21201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21210 sys_lib_dlsearch_path_spec='/usr/lib'
21214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21219 shlibpath_var=LD_LIBRARY_PATH
21220 shlibpath_overrides_runpath=no
21221 hardcode_into_libs=yes
21226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21227 soname_spec='${libname}${release}${shared_ext}$major'
21228 shlibpath_var=LD_LIBRARY_PATH
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21236 $as_echo "$dynamic_linker" >&6; }
21237 test "$dynamic_linker" = no && can_build_shared=no
21239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21240 if test "$GCC" = yes; then
21241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21245 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21248 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21289 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21290 hardcode_action_CXX=
21291 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21292 test -n "$runpath_var_CXX" ||
21293 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21295 # We can hardcode non-existent directories.
21296 if test "$hardcode_direct_CXX" != no &&
21297 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21298 # have to relink, otherwise we might link with an installed library
21299 # when we should be linking with a yet-to-be-installed one
21300 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21301 test "$hardcode_minus_L_CXX" != no; then
21302 # Linking always hardcodes the temporary library directory.
21303 hardcode_action_CXX=relink
21305 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21306 hardcode_action_CXX=immediate
21309 # We cannot hardcode anything, or else we can only hardcode existing
21311 hardcode_action_CXX=unsupported
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21314 $as_echo "$hardcode_action_CXX" >&6; }
21316 if test "$hardcode_action_CXX" = relink ||
21317 test "$inherit_rpath_CXX" = yes; then
21318 # Fast installation is not supported
21319 enable_fast_install=no
21320 elif test "$shlibpath_overrides_runpath" = yes ||
21321 test "$enable_shared" = no; then
21322 # Fast installation is not necessary
21323 enable_fast_install=needless
21332 fi # test -n "$compiler"
21338 with_gnu_ld=$lt_save_with_gnu_ld
21339 lt_cv_path_LDCXX=$lt_cv_path_LD
21340 lt_cv_path_LD=$lt_save_path_LD
21341 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21342 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21343 fi # test "$_lt_caught_CXX_error" != yes
21346 ac_cpp='$CPP $CPPFLAGS'
21347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21366 # Only expand once:
21372 # Identify the assembler which will work hand-in-glove with the newly
21373 # built GCC, so that we can examine its features. This is the assembler
21374 # which will be driven by the driver program.
21376 # If build != host, and we aren't building gas in-tree, we identify a
21377 # build->target assembler and hope that it will have the same features
21378 # as the host->target assembler we'll be using.
21379 gcc_cv_gas_major_version=
21380 gcc_cv_gas_minor_version=
21381 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21383 if test "${gcc_cv_as+set}" = set; then :
21387 if test -x "$DEFAULT_ASSEMBLER"; then
21388 gcc_cv_as="$DEFAULT_ASSEMBLER"
21389 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21390 && test -f ../gas/Makefile \
21391 && test x$build = x$host; then
21392 gcc_cv_as=../gas/as-new$build_exeext
21393 elif test -x as$build_exeext; then
21394 # Build using assembler in the current directory.
21395 gcc_cv_as=./as$build_exeext
21396 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21397 gcc_cv_as="$AS_FOR_TARGET"
21399 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21400 set dummy $AS_FOR_TARGET; ac_word=$2
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21402 $as_echo_n "checking for $ac_word... " >&6; }
21403 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21408 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21412 for as_dir in $PATH
21415 test -z "$as_dir" && as_dir=.
21416 for ac_exec_ext in '' $ac_executable_extensions; do
21417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21418 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21429 gcc_cv_as=$ac_cv_path_gcc_cv_as
21430 if test -n "$gcc_cv_as"; then
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21432 $as_echo "$gcc_cv_as" >&6; }
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21435 $as_echo "no" >&6; }
21442 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21444 case "$ORIGINAL_AS_FOR_TARGET" in
21445 ./as | ./as$build_exeext) ;;
21446 *) ac_config_files="$ac_config_files as:exec-tool.in"
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21451 $as_echo_n "checking what assembler to use... " >&6; }
21452 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21453 # Single tree build which includes gas. We want to prefer it
21454 # over whatever linker top-level may have detected, since
21455 # we'll use what we're building after installation anyway.
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21457 $as_echo "newly built gas" >&6; }
21459 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21460 for f in $gcc_cv_as_bfd_srcdir/configure \
21461 $gcc_cv_as_gas_srcdir/configure \
21462 $gcc_cv_as_gas_srcdir/configure.in \
21463 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21464 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21465 if test x$gcc_cv_gas_version != x; then
21469 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21470 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21471 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21472 case $gcc_cv_gas_patch_version in
21473 "") gcc_cv_gas_patch_version="0" ;;
21475 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21476 + $gcc_cv_gas_minor_version \) \* 1000 \
21477 + $gcc_cv_gas_patch_version`
21479 in_tree_gas_is_elf=no
21480 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21481 || (grep 'obj_format = multi' ../gas/Makefile \
21482 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21484 in_tree_gas_is_elf=yes
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21488 $as_echo "$gcc_cv_as" >&6; }
21492 # Identify the linker which will work hand-in-glove with the newly
21493 # built GCC, so that we can examine its features. This is the linker
21494 # which will be driven by the driver program.
21496 # If build != host, and we aren't building gas in-tree, we identify a
21497 # build->target linker and hope that it will have the same features
21498 # as the host->target linker we'll be using.
21499 gcc_cv_gld_major_version=
21500 gcc_cv_gld_minor_version=
21501 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21502 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21504 if test "${gcc_cv_ld+set}" = set; then :
21508 if test -x "$DEFAULT_LINKER"; then
21509 gcc_cv_ld="$DEFAULT_LINKER"
21510 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21511 && test -f ../ld/Makefile \
21512 && test x$build = x$host; then
21513 gcc_cv_ld=../ld/ld-new$build_exeext
21514 elif test -x collect-ld$build_exeext; then
21515 # Build using linker in the current directory.
21516 gcc_cv_ld=./collect-ld$build_exeext
21517 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21518 gcc_cv_ld="$LD_FOR_TARGET"
21520 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21521 set dummy $LD_FOR_TARGET; ac_word=$2
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21523 $as_echo_n "checking for $ac_word... " >&6; }
21524 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21525 $as_echo_n "(cached) " >&6
21529 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21533 for as_dir in $PATH
21536 test -z "$as_dir" && as_dir=.
21537 for ac_exec_ext in '' $ac_executable_extensions; do
21538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21539 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21550 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21551 if test -n "$gcc_cv_ld"; then
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21553 $as_echo "$gcc_cv_ld" >&6; }
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21556 $as_echo "no" >&6; }
21563 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21564 PLUGIN_LD=`basename $gcc_cv_ld`
21566 # Check whether --with-plugin-ld was given.
21567 if test "${with_plugin_ld+set}" = set; then :
21568 withval=$with_plugin_ld; if test x"$withval" != x; then
21569 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21570 PLUGIN_LD="$withval"
21576 cat >>confdefs.h <<_ACEOF
21577 #define PLUGIN_LD "$PLUGIN_LD"
21581 # Check to see if we are using gold instead of ld
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21583 $as_echo_n "checking whether we are using gold... " >&6; }
21585 if test x$gcc_cv_ld != x; then
21586 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21587 | grep "GNU gold" > /dev/null; then
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21592 $as_echo "$ld_is_gold" >&6; }
21594 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21596 case "$ORIGINAL_LD_FOR_TARGET" in
21597 ./collect-ld | ./collect-ld$build_exeext) ;;
21598 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21603 $as_echo_n "checking what linker to use... " >&6; }
21604 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21605 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21606 # Single tree build which includes ld. We want to prefer it
21607 # over whatever linker top-level may have detected, since
21608 # we'll use what we're building after installation anyway.
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21610 $as_echo "newly built ld" >&6; }
21612 in_tree_ld_is_elf=no
21613 if (grep 'EMUL = .*elf' ../ld/Makefile \
21614 || grep 'EMUL = .*linux' ../ld/Makefile \
21615 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21616 in_tree_ld_is_elf=yes
21617 elif test "$ld_is_gold" = yes; then
21618 in_tree_ld_is_elf=yes
21620 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
21622 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21623 if test x$gcc_cv_gld_version != x; then
21627 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21628 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21631 $as_echo "$gcc_cv_ld" >&6; }
21635 # Figure out what nm we will be using.
21636 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21637 if test "${gcc_cv_nm+set}" = set; then :
21641 if test -f $gcc_cv_binutils_srcdir/configure.in \
21642 && test -f ../binutils/Makefile \
21643 && test x$build = x$host; then
21644 gcc_cv_nm=../binutils/nm-new$build_exeext
21645 elif test -x nm$build_exeext; then
21646 gcc_cv_nm=./nm$build_exeext
21647 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21648 gcc_cv_nm="$NM_FOR_TARGET"
21650 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21651 set dummy $NM_FOR_TARGET; ac_word=$2
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21653 $as_echo_n "checking for $ac_word... " >&6; }
21654 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21655 $as_echo_n "(cached) " >&6
21659 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21663 for as_dir in $PATH
21666 test -z "$as_dir" && as_dir=.
21667 for ac_exec_ext in '' $ac_executable_extensions; do
21668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21669 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21680 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21681 if test -n "$gcc_cv_nm"; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21683 $as_echo "$gcc_cv_nm" >&6; }
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 $as_echo "no" >&6; }
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21694 $as_echo_n "checking what nm to use... " >&6; }
21695 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21696 # Single tree build which includes binutils.
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21698 $as_echo "newly built nm" >&6; }
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21702 $as_echo "$gcc_cv_nm" >&6; }
21706 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21708 case "$ORIGINAL_NM_FOR_TARGET" in
21709 ./nm | ./nm$build_exeext) ;;
21710 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21715 # Figure out what objdump we will be using.
21716 if test "${gcc_cv_objdump+set}" = set; then :
21720 if test -f $gcc_cv_binutils_srcdir/configure.in \
21721 && test -f ../binutils/Makefile \
21722 && test x$build = x$host; then
21723 # Single tree build which includes binutils.
21724 gcc_cv_objdump=../binutils/objdump$build_exeext
21725 elif test -x objdump$build_exeext; then
21726 gcc_cv_objdump=./objdump$build_exeext
21727 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21728 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21730 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21731 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21733 $as_echo_n "checking for $ac_word... " >&6; }
21734 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21735 $as_echo_n "(cached) " >&6
21737 case $gcc_cv_objdump in
21739 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21743 for as_dir in $PATH
21746 test -z "$as_dir" && as_dir=.
21747 for ac_exec_ext in '' $ac_executable_extensions; do
21748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21749 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21760 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21761 if test -n "$gcc_cv_objdump"; then
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21763 $as_echo "$gcc_cv_objdump" >&6; }
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21766 $as_echo "no" >&6; }
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21774 $as_echo_n "checking what objdump to use... " >&6; }
21775 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21776 # Single tree build which includes binutils.
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21778 $as_echo "newly built objdump" >&6; }
21779 elif test x$gcc_cv_objdump = x; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21781 $as_echo "not found" >&6; }
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21784 $as_echo "$gcc_cv_objdump" >&6; }
21787 # Figure out what readelf we will be using.
21788 if test "${gcc_cv_readelf+set}" = set; then :
21792 if test -f $gcc_cv_binutils_srcdir/configure.in \
21793 && test -f ../binutils/Makefile \
21794 && test x$build = x$host; then
21795 # Single tree build which includes binutils.
21796 gcc_cv_readelf=../binutils/readelf$build_exeext
21797 elif test -x readelf$build_exeext; then
21798 gcc_cv_readelf=./readelf$build_exeext
21800 # Extract the first word of "readelf", so it can be a program name with args.
21801 set dummy readelf; ac_word=$2
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21803 $as_echo_n "checking for $ac_word... " >&6; }
21804 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21807 case $gcc_cv_readelf in
21809 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21816 test -z "$as_dir" && as_dir=.
21817 for ac_exec_ext in '' $ac_executable_extensions; do
21818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21819 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21830 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21831 if test -n "$gcc_cv_readelf"; then
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21833 $as_echo "$gcc_cv_readelf" >&6; }
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21844 $as_echo_n "checking what readelf to use... " >&6; }
21845 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21846 # Single tree build which includes binutils.
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21848 $as_echo "newly built readelf" >&6; }
21849 elif test x$gcc_cv_readelf = x; then
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21851 $as_echo "not found" >&6; }
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21854 $as_echo "$gcc_cv_readelf" >&6; }
21857 # Figure out what assembler alignment features are present.
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21859 $as_echo_n "checking assembler flags... " >&6; }
21860 if test "${gcc_cv_as_flags+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21864 i[34567]86-*-linux*)
21865 gcc_cv_as_flags="--32"
21867 powerpc*-*-darwin*)
21868 gcc_cv_as_flags="-arch ppc"
21871 gcc_cv_as_flags=" "
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21876 $as_echo "$gcc_cv_as_flags" >&6; }
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21879 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21880 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21881 $as_echo_n "(cached) " >&6
21883 gcc_cv_as_balign_and_p2align=no
21884 if test $in_tree_gas = yes; then
21885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21886 then gcc_cv_as_balign_and_p2align=yes
21888 elif test x$gcc_cv_as != x; then
21889 $as_echo '.balign 4
21890 .p2align 2' > conftest.s
21891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21893 (eval $ac_try) 2>&5
21895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21896 test $ac_status = 0; }; }
21898 gcc_cv_as_balign_and_p2align=yes
21900 echo "configure: failed program was" >&5
21903 rm -f conftest.o conftest.s
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21907 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21908 if test $gcc_cv_as_balign_and_p2align = yes; then
21910 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21915 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21916 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21917 $as_echo_n "(cached) " >&6
21919 gcc_cv_as_max_skip_p2align=no
21920 if test $in_tree_gas = yes; then
21921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21922 then gcc_cv_as_max_skip_p2align=yes
21924 elif test x$gcc_cv_as != x; then
21925 $as_echo '.p2align 4,,7' > conftest.s
21926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21928 (eval $ac_try) 2>&5
21930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21931 test $ac_status = 0; }; }
21933 gcc_cv_as_max_skip_p2align=yes
21935 echo "configure: failed program was" >&5
21938 rm -f conftest.o conftest.s
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21942 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21943 if test $gcc_cv_as_max_skip_p2align = yes; then
21945 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21950 $as_echo_n "checking assembler for .literal16... " >&6; }
21951 if test "${gcc_cv_as_literal16+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21954 gcc_cv_as_literal16=no
21955 if test $in_tree_gas = yes; then
21956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21957 then gcc_cv_as_literal16=yes
21959 elif test x$gcc_cv_as != x; then
21960 $as_echo '.literal16' > conftest.s
21961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21963 (eval $ac_try) 2>&5
21965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21966 test $ac_status = 0; }; }
21968 gcc_cv_as_literal16=yes
21970 echo "configure: failed program was" >&5
21973 rm -f conftest.o conftest.s
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21977 $as_echo "$gcc_cv_as_literal16" >&6; }
21978 if test $gcc_cv_as_literal16 = yes; then
21980 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21985 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21986 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21989 gcc_cv_as_subsection_m1=no
21990 if test $in_tree_gas = yes; then
21991 if test $in_tree_gas_is_elf = yes \
21992 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21993 then gcc_cv_as_subsection_m1=yes
21995 elif test x$gcc_cv_as != x; then
21996 $as_echo 'conftest_label1: .word 0
21998 conftest_label2: .word 0
21999 .previous' > conftest.s
22000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22002 (eval $ac_try) 2>&5
22004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22005 test $ac_status = 0; }; }
22007 if test x$gcc_cv_nm != x; then
22008 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22009 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22010 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22012 else gcc_cv_as_subsection_m1=yes
22014 rm -f conftest.nm1 conftest.nm2
22017 echo "configure: failed program was" >&5
22020 rm -f conftest.o conftest.s
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22024 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22025 if test $gcc_cv_as_subsection_m1 = yes; then
22027 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22032 $as_echo_n "checking assembler for .weak... " >&6; }
22033 if test "${gcc_cv_as_weak+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22037 if test $in_tree_gas = yes; then
22038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22039 then gcc_cv_as_weak=yes
22041 elif test x$gcc_cv_as != x; then
22042 $as_echo ' .weak foobar' > conftest.s
22043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22045 (eval $ac_try) 2>&5
22047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22048 test $ac_status = 0; }; }
22052 echo "configure: failed program was" >&5
22055 rm -f conftest.o conftest.s
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22059 $as_echo "$gcc_cv_as_weak" >&6; }
22060 if test $gcc_cv_as_weak = yes; then
22062 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22067 $as_echo_n "checking assembler for .weakref... " >&6; }
22068 if test "${gcc_cv_as_weakref+set}" = set; then :
22069 $as_echo_n "(cached) " >&6
22071 gcc_cv_as_weakref=no
22072 if test $in_tree_gas = yes; then
22073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22074 then gcc_cv_as_weakref=yes
22076 elif test x$gcc_cv_as != x; then
22077 $as_echo ' .weakref foobar, barfnot' > conftest.s
22078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080 (eval $ac_try) 2>&5
22082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083 test $ac_status = 0; }; }
22085 gcc_cv_as_weakref=yes
22087 echo "configure: failed program was" >&5
22090 rm -f conftest.o conftest.s
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22094 $as_echo "$gcc_cv_as_weakref" >&6; }
22095 if test $gcc_cv_as_weakref = yes; then
22097 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22102 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22103 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22104 $as_echo_n "(cached) " >&6
22106 gcc_cv_as_nsubspa_comdat=no
22107 if test $in_tree_gas = yes; then
22108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22109 then gcc_cv_as_nsubspa_comdat=yes
22111 elif test x$gcc_cv_as != x; then
22112 $as_echo ' .SPACE $TEXT$
22113 .NSUBSPA $CODE$,COMDAT' > 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_nsubspa_comdat=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_nsubspa_comdat" >&5
22130 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22131 if test $gcc_cv_as_nsubspa_comdat = yes; then
22133 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22137 # .hidden needs to be supported in both the assembler and the linker,
22138 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22139 # This is irritatingly difficult to feature test for; we have to check the
22140 # date string after the version number. If we've got an in-tree
22141 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22143 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22145 $as_echo_n "checking assembler for .hidden... " >&6; }
22146 if test "${gcc_cv_as_hidden+set}" = set; then :
22147 $as_echo_n "(cached) " >&6
22149 gcc_cv_as_hidden=no
22150 if test $in_tree_gas = yes; then
22151 if test $in_tree_gas_is_elf = yes \
22152 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22153 then gcc_cv_as_hidden=yes
22155 elif test x$gcc_cv_as != x; then
22156 $as_echo ' .hidden foobar
22157 foobar:' > conftest.s
22158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22160 (eval $ac_try) 2>&5
22162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22163 test $ac_status = 0; }; }
22166 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22167 # STV_HIDDEN, so disable .hidden support if so.
22168 case "${target}" in
22169 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22170 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22171 cat > conftest.s <<EOF
22176 .set default,hidden
22178 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22179 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22180 grep '\.hidden default' > /dev/null; then
22181 gcc_cv_as_hidden=no
22183 gcc_cv_as_hidden=yes
22186 # Assume bug is present if objdump is missing.
22187 gcc_cv_as_hidden=no
22191 gcc_cv_as_hidden=yes
22195 echo "configure: failed program was" >&5
22198 rm -f conftest.o conftest.s
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22202 $as_echo "$gcc_cv_as_hidden" >&6; }
22204 case "${target}" in
22206 # Darwin as has some visibility support, though with a different syntax.
22207 gcc_cv_as_hidden=yes
22211 # gnu_indirect_function type is an extension proposed at
22212 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22213 # selection of function implementation
22214 # Check whether --enable-gnu-indirect-function was given.
22215 if test "${enable_gnu_indirect_function+set}" = set; then :
22216 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22218 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22219 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22222 enable_gnu_indirect_function="$default_gnu_indirect_function"
22225 if test x$enable_gnu_indirect_function = xyes; then
22227 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22231 if test $in_tree_ld != yes ; then
22232 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22233 if echo "$ld_ver" | grep GNU > /dev/null; then
22234 if test x"$ld_is_gold" = xyes; then
22235 # GNU gold --version looks like this:
22237 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22239 # We extract the binutils version which is more familiar and specific
22240 # than the gold version.
22241 ld_vers=`echo $ld_ver | sed -n \
22242 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22244 # GNU ld --version looks like this:
22246 # GNU ld (GNU Binutils) 2.21.51.20110225
22247 ld_vers=`echo $ld_ver | sed -n \
22248 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22250 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'`
22251 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22252 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22253 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22255 case "${target}" in
22257 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22260 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22261 # /usr/ccs/bin/ld has been configured.
22262 ld_ver=`$gcc_cv_ld -V 2>&1`
22263 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22264 ld_vers=`echo $ld_ver | sed -n \
22265 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22266 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22267 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22275 $as_echo_n "checking linker for .hidden support... " >&6; }
22276 if test "${gcc_cv_ld_hidden+set}" = set; then :
22277 $as_echo_n "(cached) " >&6
22279 if test $in_tree_ld = yes ; then
22280 gcc_cv_ld_hidden=no
22281 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 \
22282 && test $in_tree_ld_is_elf = yes; then
22283 gcc_cv_ld_hidden=yes
22286 gcc_cv_ld_hidden=yes
22287 if test x"$ld_is_gold" = xyes; then
22289 elif echo "$ld_ver" | grep GNU > /dev/null; then
22290 if test 0"$ld_date" -lt 20020404; then
22291 if test -n "$ld_date"; then
22292 # If there was date string, but was earlier than 2002-04-04, fail
22293 gcc_cv_ld_hidden=no
22294 elif test -z "$ld_vers"; then
22295 # If there was no date string nor ld version number, something is wrong
22296 gcc_cv_ld_hidden=no
22298 test -z "$ld_vers_patch" && ld_vers_patch=0
22299 if test "$ld_vers_major" -lt 2; then
22300 gcc_cv_ld_hidden=no
22301 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22302 gcc_cv_ld_hidden="no"
22303 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22304 gcc_cv_ld_hidden=no
22309 case "${target}" in
22311 # Darwin ld has some visibility support.
22312 gcc_cv_ld_hidden=yes
22314 hppa64*-*-hpux* | ia64*-*-hpux*)
22315 gcc_cv_ld_hidden=yes
22318 # .hidden support was backported to Solaris 8, starting with ld
22320 if test "$ld_vers_minor" -ge 276; then
22321 gcc_cv_ld_hidden=yes
22323 gcc_cv_ld_hidden=no
22326 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22327 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22328 # .symbolic was only added in Solaris 9 12/02.
22329 gcc_cv_ld_hidden=yes
22332 gcc_cv_ld_hidden=no
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22339 $as_echo "$gcc_cv_ld_hidden" >&6; }
22340 libgcc_visibility=no
22343 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22344 libgcc_visibility=yes
22346 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22351 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22352 gcc_cv_ld_ro_rw_mix=unknown
22353 if test $in_tree_ld = yes ; then
22354 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 \
22355 && test $in_tree_ld_is_elf = yes; then
22356 gcc_cv_ld_ro_rw_mix=read-write
22358 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22359 echo '.section myfoosect, "a"' > conftest1.s
22360 echo '.section myfoosect, "aw"' > conftest2.s
22361 echo '.byte 1' >> conftest2.s
22362 echo '.section myfoosect, "a"' > conftest3.s
22363 echo '.byte 0' >> conftest3.s
22364 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22365 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22366 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22367 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22368 conftest2.o conftest3.o > /dev/null 2>&1; then
22369 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22370 | sed -e '/myfoosect/!d' -e N`
22371 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22372 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22373 gcc_cv_ld_ro_rw_mix=read-only
22375 gcc_cv_ld_ro_rw_mix=read-write
22379 rm -f conftest.* conftest[123].*
22381 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22383 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22387 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22389 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22390 case "${target}" in
22393 # Solaris 2 ld -V output looks like this for a regular version:
22395 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22397 # but test versions add stuff at the end:
22399 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22401 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22402 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22403 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22404 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22405 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22406 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22412 # Check whether --enable-initfini-array was given.
22413 if test "${enable_initfini_array+set}" = set; then :
22414 enableval=$enable_initfini_array;
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22418 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22419 if test "${gcc_cv_initfini_array+set}" = set; then :
22420 $as_echo_n "(cached) " >&6
22422 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22423 case "${target}" in
22425 if test "$cross_compiling" = yes; then :
22426 gcc_cv_initfini_array=no
22428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22429 /* end confdefs.h. */
22432 #error Not an ELF OS
22434 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22435 if it can be used. */
22437 int main (void) { return x; }
22438 int foo (void) { x = 0; }
22439 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22442 if ac_fn_c_try_run "$LINENO"; then :
22443 gcc_cv_initfini_array=yes
22445 gcc_cv_initfini_array=no
22447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22448 conftest.$ac_objext conftest.beam conftest.$ac_ext
22452 gcc_cv_initfini_array=no
22453 if test $in_tree_ld = yes ; then
22454 if test "$gcc_cv_gld_major_version" -eq 2 \
22455 -a "$gcc_cv_gld_minor_version" -ge 22 \
22456 -o "$gcc_cv_gld_major_version" -gt 2 \
22457 && test $in_tree_ld_is_elf = yes; then
22458 gcc_cv_initfini_array=yes
22460 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22461 cat > conftest.s <<\EOF
22462 .section .dtors,"a",%progbits
22464 .byte 'A', 'A', 'A', 'A'
22465 .section .ctors,"a",%progbits
22467 .byte 'B', 'B', 'B', 'B'
22468 .section .fini_array.65530,"a",%progbits
22470 .byte 'C', 'C', 'C', 'C'
22471 .section .init_array.65530,"a",%progbits
22473 .byte 'D', 'D', 'D', 'D'
22474 .section .dtors.64528,"a",%progbits
22476 .byte 'E', 'E', 'E', 'E'
22477 .section .ctors.64528,"a",%progbits
22479 .byte 'F', 'F', 'F', 'F'
22480 .section .fini_array.01005,"a",%progbits
22482 .byte 'G', 'G', 'G', 'G'
22483 .section .init_array.01005,"a",%progbits
22485 .byte 'H', 'H', 'H', 'H'
22490 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22491 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22492 && $gcc_cv_objdump -s -j .init_array conftest \
22493 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22494 && $gcc_cv_objdump -s -j .fini_array conftest \
22495 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22496 gcc_cv_initfini_array=yes
22498 rm -f conftest conftest.*
22500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22501 /* end confdefs.h. */
22504 # error Not an ELF OS
22506 #include <stdlib.h>
22507 #if defined __GLIBC_PREREQ
22508 # if __GLIBC_PREREQ (2, 4)
22510 # error GLIBC 2.4 required
22513 # if defined __sun__ && defined __svr4__
22514 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22516 # error The C library not known to support .init_array/.fini_array
22521 if ac_fn_c_try_cpp "$LINENO"; then :
22523 case "${target}" in
22525 # .init_array/.fini_array support was introduced in Solaris 8
22526 # patches 109147-08 (sparc) and 109148-08 (x86). Since ld.so.1 and
22527 # ld are guaranteed to be updated in lockstep, we can check ld -V
22528 # instead. Unfortunately, proper ld version numbers were only
22529 # introduced in rev. -14, so we check for that.
22530 if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then
22531 gcc_cv_initfini_array=no
22534 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22535 # .init_array/.fini_array support is present since Solaris 9 FCS.
22540 gcc_cv_initfini_array=no
22542 rm -f conftest.err conftest.$ac_ext;;
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22546 $as_echo_n "checking cross compile... guessing... " >&6; }
22547 gcc_cv_initfini_array=no
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22551 $as_echo "$gcc_cv_initfini_array" >&6; }
22552 enable_initfini_array=$gcc_cv_initfini_array
22556 if test $enable_initfini_array = yes; then
22558 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22562 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22564 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22565 if test "${gcc_cv_as_leb128+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22568 gcc_cv_as_leb128=no
22569 if test $in_tree_gas = yes; then
22570 if test $in_tree_gas_is_elf = yes \
22571 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22572 then gcc_cv_as_leb128=yes
22574 elif test x$gcc_cv_as != x; then
22581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22583 (eval $ac_try) 2>&5
22585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22586 test $ac_status = 0; }; }
22588 # GAS versions before 2.11 do not support uleb128,
22589 # despite appearing to.
22590 # ??? There exists an elf-specific test that will crash
22591 # the assembler. Perhaps it's better to figure out whether
22592 # arbitrary sections are supported and try the test.
22593 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22594 if echo "$as_ver" | grep GNU > /dev/null; then
22595 as_vers=`echo $as_ver | sed -n \
22596 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22597 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22598 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22599 if test $as_major -eq 2 && test $as_minor -lt 11
22601 else gcc_cv_as_leb128=yes
22605 echo "configure: failed program was" >&5
22608 rm -f conftest.o conftest.s
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22612 $as_echo "$gcc_cv_as_leb128" >&6; }
22613 if test $gcc_cv_as_leb128 = yes; then
22615 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22619 # Check if we have assembler support for unwind directives.
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22621 $as_echo_n "checking assembler for cfi directives... " >&6; }
22622 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22623 $as_echo_n "(cached) " >&6
22625 gcc_cv_as_cfi_directive=no
22626 if test x$gcc_cv_as != x; then
22632 .cfi_escape 1, 2, 3, 4, 5
22633 .cfi_endproc' > conftest.s
22634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22636 (eval $ac_try) 2>&5
22638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22639 test $ac_status = 0; }; }
22643 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22644 # read-only and read-write sections, we need to make sure that the
22645 # assembler used emits read-write .eh_frame sections.
22646 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22647 if test "x$gcc_cv_objdump" != x; then
22648 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22649 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22650 gcc_cv_as_cfi_directive=no
22653 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22654 # On Solaris/x86, make sure that GCC and gas agree on using
22655 # read-only .eh_frame sections for 64-bit.
22656 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22657 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22658 sed -e /.eh_frame/!d -e N | \
22659 grep READONLY > /dev/null; then
22660 gcc_cv_as_cfi_directive=yes
22662 gcc_cv_as_cfi_directive=no
22666 gcc_cv_as_cfi_directive=yes
22671 # no objdump, err on the side of caution
22672 gcc_cv_as_cfi_directive=no
22675 gcc_cv_as_cfi_directive=yes
22679 gcc_cv_as_cfi_directive=yes
22683 echo "configure: failed program was" >&5
22686 rm -f conftest.o conftest.s
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22690 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22692 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22694 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22695 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22696 $as_echo_n "(cached) " >&6
22698 gcc_cv_as_cfi_advance_working=no
22699 if test x$gcc_cv_as != x; then
22702 .cfi_adjust_cfa_offset 64
22704 .cfi_adjust_cfa_offset 128
22705 .cfi_endproc' > conftest.s
22706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22708 (eval $ac_try) 2>&5
22710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22711 test $ac_status = 0; }; }
22714 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22715 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22716 gcc_cv_as_cfi_advance_working=yes
22720 echo "configure: failed program was" >&5
22723 rm -f conftest.o conftest.s
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22727 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22730 # no objdump, err on the side of caution
22731 gcc_cv_as_cfi_advance_working=no
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22737 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22743 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22744 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22745 $as_echo_n "(cached) " >&6
22747 gcc_cv_as_cfi_personality_directive=no
22748 if test x$gcc_cv_as != x; then
22751 .cfi_personality 0, symbol
22752 .cfi_endproc' > conftest.s
22753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22755 (eval $ac_try) 2>&5
22757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22758 test $ac_status = 0; }; }
22760 gcc_cv_as_cfi_personality_directive=yes
22762 echo "configure: failed program was" >&5
22765 rm -f conftest.o conftest.s
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22769 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22772 cat >>confdefs.h <<_ACEOF
22773 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22774 then echo 1; else echo 0; fi`
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22779 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22780 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22781 $as_echo_n "(cached) " >&6
22783 gcc_cv_as_cfi_sections_directive=no
22784 if test x$gcc_cv_as != x; then
22786 .cfi_sections .debug_frame, .eh_frame
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; }; }
22797 win32 | pe | cygwin* | mingw32* | uwin*)
22798 # Need to check that we generated the correct relocation for the
22799 # .debug_frame section. This was fixed for binutils 2.21.
22800 gcc_cv_as_cfi_sections_directive=no
22801 if test "x$gcc_cv_objdump" != x; then
22802 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22803 grep secrel > /dev/null; then
22804 gcc_cv_as_cfi_sections_directive=yes
22809 gcc_cv_as_cfi_sections_directive=yes
22813 echo "configure: failed program was" >&5
22816 rm -f conftest.o conftest.s
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22820 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22824 cat >>confdefs.h <<_ACEOF
22825 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22826 then echo 1; else echo 0; fi`
22830 # GAS versions up to and including 2.11.0 may mis-optimize
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22833 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22834 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22835 $as_echo_n "(cached) " >&6
22837 gcc_cv_as_eh_frame=no
22838 if test $in_tree_gas = yes; then
22839 if test $in_tree_gas_is_elf = yes \
22840 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22841 then gcc_cv_as_eh_frame=yes
22843 elif test x$gcc_cv_as != x; then
22850 .section .eh_frame,"aw",@progbits
22852 .4byte .LECIE1-.LSCIE1
22866 .4byte .LEFDE1-.LASFDE1
22868 .4byte .LASFDE1-__FRAME_BEGIN__
22875 .LEFDE1:' > conftest.s
22876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878 (eval $ac_try) 2>&5
22880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881 test $ac_status = 0; }; }
22883 cat > conftest.lit <<EOF
22884 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22885 0010 01000000 12000000 18000000 00000000 ................
22886 0020 08000000 04080000 0044 .........D
22888 cat > conftest.big <<EOF
22889 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22890 0010 00000001 00000012 00000018 00000000 ................
22891 0020 00000008 04000000 0844 .........D
22893 # If the assembler didn't choke, and we can objdump,
22894 # and we got the correct data, then succeed.
22895 # The text in the here-document typically retains its unix-style line
22896 # endings, while the output of objdump will use host line endings.
22897 # Therefore, use diff -b for the comparisons.
22898 if test x$gcc_cv_objdump != x \
22899 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22900 | tail -3 > conftest.got \
22901 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22902 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22904 gcc_cv_as_eh_frame=yes
22905 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907 (eval $ac_try) 2>&5
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; }; then
22911 gcc_cv_as_eh_frame=buggy
22913 # Uh oh, what do we do now?
22914 gcc_cv_as_eh_frame=no
22917 echo "configure: failed program was" >&5
22920 rm -f conftest.o conftest.s
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22924 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22927 if test $gcc_cv_as_eh_frame = buggy; then
22929 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22934 $as_echo_n "checking assembler for section merging support... " >&6; }
22935 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22936 $as_echo_n "(cached) " >&6
22938 gcc_cv_as_shf_merge=no
22939 if test $in_tree_gas = yes; then
22940 if test $in_tree_gas_is_elf = yes \
22941 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22942 then gcc_cv_as_shf_merge=yes
22944 elif test x$gcc_cv_as != x; then
22945 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22948 (eval $ac_try) 2>&5
22950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22951 test $ac_status = 0; }; }
22953 gcc_cv_as_shf_merge=yes
22955 echo "configure: failed program was" >&5
22958 rm -f conftest.o conftest.s
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22962 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22964 if test $gcc_cv_as_shf_merge = no; then
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22966 $as_echo_n "checking assembler for section merging support... " >&6; }
22967 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22968 $as_echo_n "(cached) " >&6
22970 gcc_cv_as_shf_merge=no
22971 if test $in_tree_gas = yes; then
22972 if test $in_tree_gas_is_elf = yes \
22973 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22974 then gcc_cv_as_shf_merge=yes
22976 elif test x$gcc_cv_as != x; then
22977 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22980 (eval $ac_try) 2>&5
22982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22983 test $ac_status = 0; }; }
22985 gcc_cv_as_shf_merge=yes
22987 echo "configure: failed program was" >&5
22990 rm -f conftest.o conftest.s
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22994 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22998 cat >>confdefs.h <<_ACEOF
22999 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23004 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23005 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23006 $as_echo_n "(cached) " >&6
23008 gcc_cv_as_comdat_group=no
23009 if test $in_tree_gas = yes; then
23010 if test $in_tree_gas_is_elf = yes \
23011 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23012 then gcc_cv_as_comdat_group=yes
23014 elif test x$gcc_cv_as != x; then
23015 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018 (eval $ac_try) 2>&5
23020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021 test $ac_status = 0; }; }
23023 gcc_cv_as_comdat_group=yes
23025 echo "configure: failed program was" >&5
23028 rm -f conftest.o conftest.s
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23032 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23034 if test $gcc_cv_as_comdat_group = yes; then
23035 gcc_cv_as_comdat_group_percent=no
23036 gcc_cv_as_comdat_group_group=no
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23039 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23040 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23041 $as_echo_n "(cached) " >&6
23043 gcc_cv_as_comdat_group_percent=no
23044 if test $in_tree_gas = yes; then
23045 if test $in_tree_gas_is_elf = yes \
23046 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23047 then gcc_cv_as_comdat_group_percent=yes
23049 elif test x$gcc_cv_as != x; then
23050 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23053 (eval $ac_try) 2>&5
23055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23056 test $ac_status = 0; }; }
23058 gcc_cv_as_comdat_group_percent=yes
23060 echo "configure: failed program was" >&5
23063 rm -f conftest.o conftest.s
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23067 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23069 if test $gcc_cv_as_comdat_group_percent = yes; then
23070 gcc_cv_as_comdat_group_group=no
23072 case "${target}" in
23073 # Sun as uses a completely different syntax.
23075 case "${target}" in
23076 sparc*-*-solaris2*)
23078 .group foo,".text%foo",#comdat
23079 .section ".text%foo", #alloc,#execinstr,#progbits
23084 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23086 .group foo,.text%foo,#comdat
23087 .section .text%foo, "ax", @progbits
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23094 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23095 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23096 $as_echo_n "(cached) " >&6
23098 gcc_cv_as_comdat_group_group=no
23099 if test x$gcc_cv_as != x; then
23100 $as_echo "$conftest_s" > conftest.s
23101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23103 (eval $ac_try) 2>&5
23105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23106 test $ac_status = 0; }; }
23108 gcc_cv_as_comdat_group_group=yes
23110 echo "configure: failed program was" >&5
23113 rm -f conftest.o conftest.s
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23117 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23123 if test x"$ld_is_gold" = xyes; then
23125 elif test $in_tree_ld = yes ; then
23127 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 \
23128 && test $in_tree_ld_is_elf = yes; then
23131 elif echo "$ld_ver" | grep GNU > /dev/null; then
23133 if test 0"$ld_date" -lt 20050308; then
23134 if test -n "$ld_date"; then
23135 # If there was date string, but was earlier than 2005-03-08, fail
23137 elif test "$ld_vers_major" -lt 2; then
23139 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23144 case "${target}" in
23145 *-*-solaris2.1[1-9]*)
23147 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23148 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23151 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23152 # least ld version 1.2267.
23153 if test "$ld_vers_major" -gt 1; then
23155 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23157 elif test "$ld_vers_minor" -ge 2267; then
23162 # Assume linkers other than GNU ld don't support COMDAT group.
23167 # Allow overriding the automatic COMDAT group tests above.
23168 # Check whether --enable-comdat was given.
23169 if test "${enable_comdat+set}" = set; then :
23170 enableval=$enable_comdat; comdat_group="$enable_comdat"
23173 if test $comdat_group = no; then
23174 gcc_cv_as_comdat_group=no
23175 gcc_cv_as_comdat_group_percent=no
23176 gcc_cv_as_comdat_group_group=no
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23181 || test $gcc_cv_as_comdat_group_percent = yes \
23182 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23187 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23188 if test "${gcc_cv_as_discriminator+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23191 gcc_cv_as_discriminator=no
23192 if test $in_tree_gas = yes; then
23193 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23194 then gcc_cv_as_discriminator=yes
23196 elif test x$gcc_cv_as != x; then
23199 .loc 1 1 0 discriminator 1' > conftest.s
23200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23202 (eval $ac_try) 2>&5
23204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23205 test $ac_status = 0; }; }
23207 gcc_cv_as_discriminator=yes
23209 echo "configure: failed program was" >&5
23212 rm -f conftest.o conftest.s
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23216 $as_echo "$gcc_cv_as_discriminator" >&6; }
23217 if test $gcc_cv_as_discriminator = yes; then
23219 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23223 # Thread-local storage - the check is heavily parameterized.
23231 .section ".tdata","awT",@progbits
23234 ldq $27,__tls_get_addr($29) !literal!1
23235 lda $16,foo($29) !tlsgd!1
23236 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23237 ldq $27,__tls_get_addr($29) !literal!2
23238 lda $16,foo($29) !tlsldm!2
23239 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23240 ldq $1,foo($29) !gotdtprel
23241 ldah $2,foo($29) !dtprelhi
23242 lda $3,foo($2) !dtprello
23243 lda $4,foo($29) !dtprel
23244 ldq $1,foo($29) !gottprel
23245 ldah $2,foo($29) !tprelhi
23246 lda $3,foo($2) !tprello
23247 lda $4,foo($29) !tprel'
23250 tls_as_opt=--fatal-warnings
23252 cris-*-*|crisv32-*-*)
23254 .section ".tdata","awT",@progbits
23261 tls_as_opt=--fatal-warnings
23265 .section ".tdata","awT",@progbits
23268 call #gettlsoff(x)'
23277 .section ".tdata","awT",@progbits
23281 addil LT%foo-$tls_gdidx$,gp
23282 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23285 addil LT%foo-$tls_ldidx$,gp
23287 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23288 addil LR%foo-$tls_dtpoff$,%ret0
23289 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23291 addil LT%foo-$tls_ieoff$,gp
23292 ldw RT%foo-$tls_ieoff$(%r1),%t2
23295 addil LR%foo-$tls_leoff$,%t1
23296 ldo RR%foo-$tls_leoff$(%r1),%t2'
23299 tls_as_opt=--fatal-warnings
23303 .section ".tdata","awT",%progbits
23306 .word foo(gottpoff)
23314 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23316 i[34567]86-*-solaris2.*)
23318 tga_func=___tls_get_addr
23320 x86_64-*-solaris2.1[0-9]*)
23322 tga_func=__tls_get_addr
23328 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23330 .section .tdata,"awt",@progbits'
23334 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23338 .section ".tdata","awT",@progbits'
23341 tls_as_opt="--fatal-warnings"
23343 conftest_s="$conftest_s
23347 leal foo@tlsgd(,%ebx,1), %eax
23348 leal foo@tlsldm(%ebx), %eax
23349 leal foo@dtpoff(%eax), %edx
23350 movl foo@gottpoff(%ebx), %eax
23351 subl foo@gottpoff(%ebx), %eax
23352 addl foo@gotntpoff(%ebx), %eax
23353 movl foo@indntpoff, %eax
23354 movl \$foo@tpoff, %eax
23355 subl \$foo@tpoff, %eax
23356 leal foo@ntpoff(%ecx), %eax"
23360 .section ".tdata","awT",@progbits
23364 leaq foo@TLSGD(%rip), %rdi
23365 leaq foo@TLSLD(%rip), %rdi
23366 leaq foo@DTPOFF(%rax), %rdx
23367 movq foo@GOTTPOFF(%rip), %rax
23368 movq $foo@TPOFF, %rax'
23371 tls_as_opt=--fatal-warnings
23375 .section ".tdata","awT",@progbits
23378 addl r16 = @ltoff(@dtpmod(foo#)), gp
23379 addl r17 = @ltoff(@dtprel(foo#)), gp
23380 addl r18 = @ltoff(@tprel(foo#)), gp
23381 addl r19 = @dtprel(foo#), gp
23382 adds r21 = @dtprel(foo#), r13
23383 movl r23 = @dtprel(foo#)
23384 addl r20 = @tprel(foo#), gp
23385 adds r22 = @tprel(foo#), r13
23386 movl r24 = @tprel(foo#)'
23389 tls_as_opt=--fatal-warnings
23393 .section .tdata,"awT",@progbits
23397 addiu $4, $28, %tlsgd(x)
23398 addiu $4, $28, %tlsldm(x)
23399 lui $4, %dtprel_hi(x)
23400 addiu $4, $4, %dtprel_lo(x)
23401 lw $4, %gottprel(x)($28)
23402 lui $4, %tprel_hi(x)
23403 addiu $4, $4, %tprel_lo(x)'
23406 tls_as_opt='-32 --fatal-warnings'
23410 .section .tdata,"awT",@progbits
23415 move.l x@TLSGD(%a5),%a0
23416 move.l x@TLSLDM(%a5),%a0
23417 move.l x@TLSLDO(%a5),%a0
23418 move.l x@TLSIE(%a5),%a0
23419 move.l x@TLSLE(%a5),%a0'
23422 tls_as_opt='--fatal-warnings'
23426 .section ".tdata","awT",@progbits
23434 addi 3,31,ld0@got@tlsgd
23436 addi 3,31,x1@got@tlsld
23439 addis 9,3,x2@dtprel@ha
23440 addi 9,9,x2@dtprel@l
23441 lwz 9,x3@got@tprel(31)
23444 addis 9,2,x2@tprel@ha
23445 addi 9,9,x2@tprel@l'
23448 tls_as_opt="-a32 --fatal-warnings"
23452 .section ".tdata","awT",@progbits
23460 addi 3,2,ld0@got@tlsgd
23466 addi 3,2,x1@got@tlsld
23472 addis 9,3,x2@dtprel@ha
23473 addi 9,9,x2@dtprel@l
23476 ld 9,x3@got@dtprel(2)
23482 tls_as_opt="-a64 --fatal-warnings"
23486 .section ".tdata","awT",@progbits
23493 .long foo@GOTNTPOFF
23494 .long foo@INDNTPOFF
23495 l %r1,foo@GOTNTPOFF(%r12)
23496 l %r1,0(%r1):tls_load:foo
23497 bas %r14,0(%r1,%r13):tls_gdcall:foo
23498 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23501 tls_as_opt="-m31 --fatal-warnings"
23505 .section ".tdata","awT",@progbits
23512 .quad foo@GOTNTPOFF
23513 lg %r1,foo@GOTNTPOFF(%r12)
23514 larl %r1,foo@INDNTPOFF
23515 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23516 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23519 tls_as_opt="-m64 -Aesame --fatal-warnings"
23521 sh-*-* | sh[34]-*-*)
23523 .section ".tdata","awT",@progbits
23533 tls_as_opt=--fatal-warnings
23537 sparc*-sun-solaris2.*)
23539 tga_func=__tls_get_addr
23545 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23547 .section ".tdata",#alloc,#write,#tls'
23552 .section ".tdata","awT",@progbits'
23555 tls_as_opt="-32 --fatal-warnings"
23557 conftest_s="$conftest_s
23560 sethi %tgd_hi22(foo), %o0
23561 add %o0, %tgd_lo10(foo), %o1
23562 add %l7, %o1, %o0, %tgd_add(foo)
23563 call __tls_get_addr, %tgd_call(foo)
23564 sethi %tldm_hi22(foo), %l1
23565 add %l1, %tldm_lo10(foo), %l2
23566 add %l7, %l2, %o0, %tldm_add(foo)
23567 call __tls_get_addr, %tldm_call(foo)
23568 sethi %tldo_hix22(foo), %l3
23569 xor %l3, %tldo_lox10(foo), %l4
23570 add %o0, %l4, %l5, %tldo_add(foo)
23571 sethi %tie_hi22(foo), %o3
23572 add %o3, %tie_lo10(foo), %o3
23573 ld [%l7 + %o3], %o2, %tie_ld(foo)
23574 add %g7, %o2, %o4, %tie_add(foo)
23575 sethi %tle_hix22(foo), %l1
23576 xor %l1, %tle_lox10(foo), %o5
23577 ld [%g7 + %o5], %o1"
23581 .section ".tdata","awT",@progbits
23584 addli r0, zero, tls_gd(foo)
23585 auli r0, zero, tls_gd_ha16(foo)
23586 addli r0, r0, tls_gd_lo16(foo)
23588 addli r0, zero, tls_ie(foo)
23589 auli r0, r0, tls_ie_ha16(foo)
23590 addli r0, r0, tls_ie_lo16(foo)'
23593 tls_as_opt="--fatal-warnings"
23597 .section ".tdata","awT",@progbits
23600 shl16insli r0, zero, hw0_last_tls_gd(foo)
23601 shl16insli r0, zero, hw1_last_tls_gd(foo)
23602 shl16insli r0, r0, hw0_tls_gd(foo)
23604 shl16insli r0, zero, hw1_last_tls_ie(foo)
23605 shl16insli r0, r0, hw0_tls_ie(foo)'
23608 tls_as_opt="--fatal-warnings"
23612 .section ".tdata","awT",@progbits
23615 movi a8, foo@TLSFUNC
23616 movi a10, foo@TLSARG
23617 callx8.tls a8, foo@TLSCALL'
23623 if test "x$enable_tls" = xno ; then
23624 : # TLS explicitly disabled.
23625 elif test "x$enable_tls" = xyes ; then
23626 set_have_as_tls=yes # TLS explicitly enabled.
23627 elif test -z "$tls_first_major"; then
23628 : # If we don't have a check, assume no support.
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23631 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23632 if test "${gcc_cv_as_tls+set}" = set; then :
23633 $as_echo_n "(cached) " >&6
23636 if test $in_tree_gas = yes; then
23637 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23638 then gcc_cv_as_tls=yes
23640 elif test x$gcc_cv_as != x; then
23641 $as_echo "$conftest_s" > conftest.s
23642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23644 (eval $ac_try) 2>&5
23646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23647 test $ac_status = 0; }; }
23651 echo "configure: failed program was" >&5
23654 rm -f conftest.o conftest.s
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23658 $as_echo "$gcc_cv_as_tls" >&6; }
23659 if test $gcc_cv_as_tls = yes; then
23660 set_have_as_tls=yes
23665 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23666 # with TLS support are in use, native TLS cannot work.
23670 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23671 # gld with TLS support are in use, native TLS cannot work.
23674 # TLS was introduced in the Solaris 9 FCS release and backported to
23675 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23676 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23677 # ld and GCC don't support any longer.
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23680 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23682 # Check ld and ld.so.1 TLS support.
23683 if echo "$ld_ver" | grep GNU > /dev/null; then
23684 # Assume all interesting versions of GNU ld have TLS support.
23685 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23689 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23691 min_tls_ld_vers_minor=280
23693 # Solaris 8/SPARC ld has TLS support since version 1.272.
23694 sparc*-*-solaris2.8)
23695 min_tls_ld_vers_minor=272
23697 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23699 min_tls_ld_vers_minor=374
23701 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23702 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23703 min_tls_ld_vers_minor=343
23706 if test "$ld_vers_major" -gt 1 || \
23707 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23714 $as_echo "$ld_tls_support" >&6; }
23717 save_LDFLAGS="$LDFLAGS"
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23722 $as_echo_n "checking alternate thread library... " >&6; }
23724 # TLS support was backported to Solaris 8 patches, but only lives in
23725 # the alternate thread library which became the default in Solaris 9.
23726 # We want to always use that, irrespective of TLS support.
23728 # Take multilib subdir into account. There's no spec to handle
23729 # this. The 64 symlink exists since Solaris 8.
23730 lwp_dir=/usr/lib/lwp
23731 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23732 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23739 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23741 cat >>confdefs.h <<_ACEOF
23742 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23746 $as_echo "$lwp_dir" >&6; }
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23749 $as_echo_n "checking library containing $tga_func... " >&6; }
23750 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23751 # (32-bit x86) only lived in libthread, so check for that. Keep
23752 # set_have_as_tls if found, disable if not.
23753 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23755 $as_echo_n "checking for library containing $tga_func... " >&6; }
23756 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23757 $as_echo_n "(cached) " >&6
23759 ac_func_search_save_LIBS=$LIBS
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h. */
23763 /* Override any GCC internal prototype to avoid an error.
23764 Use char because int might match the return type of a GCC
23765 builtin and then its argument prototype would still apply. */
23773 return $tga_func ();
23778 for ac_lib in '' thread; do
23779 if test -z "$ac_lib"; then
23780 ac_res="none required"
23783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23785 if ac_fn_c_try_link "$LINENO"; then :
23786 eval "$as_ac_Search=\$ac_res"
23788 rm -f core conftest.err conftest.$ac_objext \
23790 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23794 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23797 eval "$as_ac_Search=no"
23799 rm conftest.$ac_ext
23800 LIBS=$ac_func_search_save_LIBS
23802 eval ac_res=\$$as_ac_Search
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23804 $as_echo "$ac_res" >&6; }
23805 eval ac_res=\$$as_ac_Search
23806 if test "$ac_res" != no; then :
23807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23813 # Clear LIBS if we cannot support TLS.
23814 if test $set_have_as_tls = no; then
23817 # Even without TLS support on Solaris 8, explicitly link with libthread
23818 # to guarantee that the alternate thread library is used.
23824 # Always define LIB_TLS_SPEC, even without TLS support.
23826 cat >>confdefs.h <<_ACEOF
23827 #define LIB_TLS_SPEC "$LIBS"
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23831 $as_echo "$LIBS" >&6; }
23834 LDFLAGS="$save_LDFLAGS"
23837 if test $set_have_as_tls = yes ; then
23839 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23843 # Target-specific assembler checks.
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23846 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23847 gcc_cv_ld_static_dynamic=no
23848 gcc_cv_ld_static_option='-Bstatic'
23849 gcc_cv_ld_dynamic_option='-Bdynamic'
23850 if test $in_tree_ld = yes ; then
23851 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
23852 gcc_cv_ld_static_dynamic=yes
23854 elif test x$gcc_cv_ld != x; then
23855 # Check if linker supports -Bstatic/-Bdynamic option
23856 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23857 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23858 gcc_cv_ld_static_dynamic=yes
23861 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23863 gcc_cv_ld_static_dynamic=yes
23864 gcc_cv_ld_static_option="-noso"
23865 gcc_cv_ld_dynamic_option="-so_archive"
23867 # HP-UX ld uses -a flags to select between shared and archive.
23869 if test x"$gnu_ld" = xno; then
23870 gcc_cv_ld_static_dynamic=yes
23871 gcc_cv_ld_static_option="-aarchive_shared"
23872 gcc_cv_ld_dynamic_option="-adefault"
23875 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23877 gcc_cv_ld_static_dynamic=yes
23879 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23881 gcc_cv_ld_static_dynamic=yes
23886 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23888 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23891 cat >>confdefs.h <<_ACEOF
23892 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23896 cat >>confdefs.h <<_ACEOF
23897 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23902 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23904 if test x"$demangler_in_ld" = xyes; then
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23906 $as_echo_n "checking linker --demangle support... " >&6; }
23907 gcc_cv_ld_demangle=no
23908 if test $in_tree_ld = yes; then
23909 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 \
23910 gcc_cv_ld_demangle=yes
23912 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23913 # Check if the GNU linker supports --demangle option
23914 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23915 gcc_cv_ld_demangle=yes
23918 if test x"$gcc_cv_ld_demangle" = xyes; then
23920 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23924 $as_echo "$gcc_cv_ld_demangle" >&6; }
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23928 $as_echo_n "checking linker plugin support... " >&6; }
23929 gcc_cv_lto_plugin=0
23930 if test -f liblto_plugin.la; then
23931 save_ld_ver="$ld_ver"
23932 save_ld_vers_major="$ld_vers_major"
23933 save_ld_vers_minor="$ld_vers_minor"
23934 save_ld_is_gold="$ld_is_gold"
23938 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23940 # FIXME: ld_is_gold?
23941 ld_vers_major="$gcc_cv_gld_major_version"
23942 ld_vers_minor="$gcc_cv_gld_minor_version"
23944 # Determine plugin linker version.
23945 # FIXME: Partial duplicate from above, generalize.
23946 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23947 if echo "$ld_ver" | grep GNU > /dev/null; then
23948 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23950 ld_vers=`echo $ld_ver | sed -n \
23951 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23953 ld_vers=`echo $ld_ver | sed -n \
23954 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23956 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23957 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23961 # Determine plugin support.
23962 if echo "$ld_ver" | grep GNU > /dev/null; then
23963 # Require GNU ld or gold 2.21+ for plugin support by default.
23964 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23965 gcc_cv_lto_plugin=2
23966 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23967 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23968 gcc_cv_lto_plugin=1
23972 ld_ver="$save_ld_ver"
23973 ld_vers_major="$save_ld_vers_major"
23974 ld_vers_minor="$save_ld_vers_minor"
23975 ld_is_gold="$save_ld_is_gold"
23978 cat >>confdefs.h <<_ACEOF
23979 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23983 $as_echo "$gcc_cv_lto_plugin" >&6; }
23986 # All TARGET_ABI_OSF targets.
23987 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23989 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23990 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23991 $as_echo_n "(cached) " >&6
23993 gcc_cv_as_alpha_explicit_relocs=no
23994 if test $in_tree_gas = yes; then
23995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23996 then gcc_cv_as_alpha_explicit_relocs=yes
23998 elif test x$gcc_cv_as != x; then
23999 $as_echo ' .set nomacro
24001 extbl $3, $2, $3 !lituse_bytoff!1
24002 ldq $2, a($29) !literal!1
24003 ldq $4, b($29) !literal!2
24004 ldq_u $3, 0($2) !lituse_base!1
24005 ldq $27, f($29) !literal!5
24006 jsr $26, ($27), f !lituse_jsr!5
24007 ldah $29, 0($26) !gpdisp!3
24008 lda $0, c($29) !gprel
24009 ldah $1, d($29) !gprelhigh
24010 lda $1, d($1) !gprellow
24011 lda $29, 0($29) !gpdisp!3' > conftest.s
24012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24019 gcc_cv_as_alpha_explicit_relocs=yes
24021 echo "configure: failed program was" >&5
24024 rm -f conftest.o conftest.s
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24028 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24029 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24031 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24035 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24036 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24037 $as_echo_n "(cached) " >&6
24039 gcc_cv_as_alpha_jsrdirect_relocs=no
24040 if test $in_tree_gas = yes; then
24041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24042 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24044 elif test x$gcc_cv_as != x; then
24045 $as_echo ' .set nomacro
24047 ldq $27, a($29) !literal!1
24048 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051 (eval $ac_try) 2>&5
24053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054 test $ac_status = 0; }; }
24056 gcc_cv_as_alpha_jsrdirect_relocs=yes
24058 echo "configure: failed program was" >&5
24061 rm -f conftest.o conftest.s
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24065 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24066 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24068 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24075 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24076 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24079 gcc_cv_as_cris_no_mul_bug=no
24080 if test $in_tree_gas = yes; then
24081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24082 then gcc_cv_as_cris_no_mul_bug=yes
24084 elif test x$gcc_cv_as != x; then
24085 $as_echo '.text' > conftest.s
24086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24088 (eval $ac_try) 2>&5
24090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24091 test $ac_status = 0; }; }
24093 gcc_cv_as_cris_no_mul_bug=yes
24095 echo "configure: failed program was" >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24102 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24103 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24105 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24112 $as_echo_n "checking assembler for .register... " >&6; }
24113 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24114 $as_echo_n "(cached) " >&6
24116 gcc_cv_as_sparc_register_op=no
24117 if test x$gcc_cv_as != x; then
24118 $as_echo '.register %g2, #scratch' > conftest.s
24119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; }
24126 gcc_cv_as_sparc_register_op=yes
24128 echo "configure: failed program was" >&5
24131 rm -f conftest.o conftest.s
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24135 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24136 if test $gcc_cv_as_sparc_register_op = yes; then
24138 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24143 $as_echo_n "checking assembler for -relax option... " >&6; }
24144 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24147 gcc_cv_as_sparc_relax=no
24148 if test x$gcc_cv_as != x; then
24149 $as_echo '.text' > conftest.s
24150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }
24157 gcc_cv_as_sparc_relax=yes
24159 echo "configure: failed program was" >&5
24162 rm -f conftest.o conftest.s
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24166 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24167 if test $gcc_cv_as_sparc_relax = yes; then
24169 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24174 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24175 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24176 $as_echo_n "(cached) " >&6
24178 gcc_cv_as_sparc_gotdata_op=no
24179 if test x$gcc_cv_as != x; then
24185 sethi %gdop_hix22(foo), %g1
24186 xor %g1, %gdop_lox10(foo), %g1
24187 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24190 (eval $ac_try) 2>&5
24192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24193 test $ac_status = 0; }; }
24195 if test x$gcc_cv_ld != x \
24196 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24197 if test x$gcc_cv_objdump != x; then
24198 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24199 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24200 gcc_cv_as_sparc_gotdata_op=no
24202 gcc_cv_as_sparc_gotdata_op=yes
24208 echo "configure: failed program was" >&5
24211 rm -f conftest.o conftest.s
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24215 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24216 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24218 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24223 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24224 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24225 $as_echo_n "(cached) " >&6
24227 gcc_cv_as_sparc_ua_pcrel=no
24228 if test x$gcc_cv_as != x; then
24235 .uaword %r_disp32(foo)' > conftest.s
24236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }
24243 if test x$gcc_cv_ld != x \
24244 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24245 gcc_cv_as_sparc_ua_pcrel=yes
24249 echo "configure: failed program was" >&5
24252 rm -f conftest.o conftest.s
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24256 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24257 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24259 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24263 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24264 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24267 gcc_cv_as_sparc_ua_pcrel_hidden=no
24268 if test x$gcc_cv_as != x; then
24272 .uaword %r_disp32(foo)
24273 .byte 0x32, 0x33, 0x34
24277 .skip 4' > 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 && test x$gcc_cv_objdump != x \
24286 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24287 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24288 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24289 if $gcc_cv_objdump -R conftest 2> /dev/null \
24290 | grep 'DISP32' > /dev/null 2>&1; then
24293 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24298 echo "configure: failed program was" >&5
24301 rm -f conftest.o conftest.s
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24305 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24306 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24308 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24312 fi # unaligned pcrel relocs
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24315 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24316 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24319 gcc_cv_as_sparc_offsetable_lo10=no
24320 if test x$gcc_cv_as != x; then
24322 or %g1, %lo(ab) + 12, %g1
24323 or %g1, %lo(ab + 12), %g1' > conftest.s
24324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24326 (eval $ac_try) 2>&5
24328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329 test $ac_status = 0; }; }
24331 if test x$gcc_cv_objdump != x \
24332 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24333 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24334 gcc_cv_as_sparc_offsetable_lo10=yes
24337 echo "configure: failed program was" >&5
24340 rm -f conftest.o conftest.s
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24344 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24345 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24347 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24352 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24353 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24356 gcc_cv_as_sparc_fmaf=no
24357 if test x$gcc_cv_as != x; then
24359 .register %g2, #scratch
24360 .register %g3, #scratch
24362 fmaddd %f0, %f2, %f4, %f6
24363 addxccc %g1, %g2, %g3
24364 fsrl32 %f2, %f4, %f8
24365 fnaddd %f10, %f12, %f14' > conftest.s
24366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -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 gcc_cv_as_sparc_fmaf=yes
24375 echo "configure: failed program was" >&5
24378 rm -f conftest.o conftest.s
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24382 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24383 if test $gcc_cv_as_sparc_fmaf = yes; then
24385 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24390 i[34567]86-*-* | x86_64-*-*)
24393 # Full C++ conformance when using a shared libstdc++-v3 requires some
24394 # support from the Cygwin DLL, which in more recent versions exports
24395 # wrappers to aid in interposing and redirecting operators new, delete,
24396 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24397 # are configuring for a version of Cygwin that exports the wrappers.
24398 if test x$host = x$target; then
24399 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24400 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24401 gcc_ac_cygwin_dll_wrappers=yes
24403 gcc_ac_cygwin_dll_wrappers=no
24407 # Can't check presence of libc functions during cross-compile, so
24408 # we just have to assume we're building for an up-to-date target.
24409 gcc_ac_cygwin_dll_wrappers=yes
24412 cat >>confdefs.h <<_ACEOF
24413 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24418 cygwin* | pe | mingw32* | interix*)
24419 # Recent binutils allows the three-operand form of ".comm" on PE. This
24420 # definition is used unconditionally to initialise the default state of
24421 # the target option variable that governs usage of the feature.
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24423 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24424 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24425 $as_echo_n "(cached) " >&6
24427 gcc_cv_as_comm_has_align=no
24428 if test $in_tree_gas = yes; then
24429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24430 then gcc_cv_as_comm_has_align=yes
24432 elif test x$gcc_cv_as != x; then
24433 $as_echo '.comm foo,1,32' > conftest.s
24434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24436 (eval $ac_try) 2>&5
24438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24439 test $ac_status = 0; }; }
24441 gcc_cv_as_comm_has_align=yes
24443 echo "configure: failed program was" >&5
24446 rm -f conftest.o conftest.s
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24450 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24457 # Used for DWARF 2 in PE
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24459 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24460 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24461 $as_echo_n "(cached) " >&6
24463 gcc_cv_as_ix86_pe_secrel32=no
24464 if test $in_tree_gas = yes; then
24465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24466 then gcc_cv_as_ix86_pe_secrel32=yes
24468 elif test x$gcc_cv_as != x; then
24472 .secrel32 foo' > conftest.s
24473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475 (eval $ac_try) 2>&5
24477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478 test $ac_status = 0; }; }
24480 if test x$gcc_cv_ld != x \
24481 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24482 gcc_cv_as_ix86_pe_secrel32=yes
24486 echo "configure: failed program was" >&5
24489 rm -f conftest.o conftest.s
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24493 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24494 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24496 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24499 # Test if the assembler supports the extended form of the .section
24500 # directive that specifies section alignment. LTO support uses this,
24501 # but normally only after installation, so we warn but don't fail the
24502 # configure if LTO is enabled but the assembler does not support it.
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24504 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24505 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24508 gcc_cv_as_section_has_align=no
24509 if test $in_tree_gas = yes; then
24510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24511 then gcc_cv_as_section_has_align=yes
24513 elif test x$gcc_cv_as != x; then
24514 $as_echo '.section lto_test,"dr0"' > conftest.s
24515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -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 gcc_cv_as_section_has_align=yes
24524 echo "configure: failed program was" >&5
24527 rm -f conftest.o conftest.s
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24531 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24533 if test x$gcc_cv_as_section_has_align != xyes; then
24534 case ",$enable_languages," in
24536 { $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
24537 $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;}
24541 # Test if the assembler supports the section flag 'e' for specifying
24542 # an excluded section.
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24544 $as_echo_n "checking assembler for .section with e... " >&6; }
24545 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24546 $as_echo_n "(cached) " >&6
24548 gcc_cv_as_section_has_e=no
24549 if test $in_tree_gas = yes; then
24550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24551 then gcc_cv_as_section_has_e=yes
24553 elif test x$gcc_cv_as != x; then
24554 $as_echo '.section foo1,"e"
24555 .byte 0,0,0,0' > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24563 gcc_cv_as_section_has_e=yes
24565 echo "configure: failed program was" >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24572 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24575 cat >>confdefs.h <<_ACEOF
24576 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24583 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24584 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24585 $as_echo_n "(cached) " >&6
24587 gcc_cv_as_ix86_filds=no
24588 if test x$gcc_cv_as != x; then
24589 $as_echo 'filds mem; fists mem' > conftest.s
24590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24592 (eval $ac_try) 2>&5
24594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24595 test $ac_status = 0; }; }
24597 gcc_cv_as_ix86_filds=yes
24599 echo "configure: failed program was" >&5
24602 rm -f conftest.o conftest.s
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24606 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24607 if test $gcc_cv_as_ix86_filds = yes; then
24609 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24614 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24615 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24616 $as_echo_n "(cached) " >&6
24618 gcc_cv_as_ix86_fildq=no
24619 if test x$gcc_cv_as != x; then
24620 $as_echo 'fildq mem; fistpq mem' > conftest.s
24621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623 (eval $ac_try) 2>&5
24625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626 test $ac_status = 0; }; }
24628 gcc_cv_as_ix86_fildq=yes
24630 echo "configure: failed program was" >&5
24633 rm -f conftest.o conftest.s
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24637 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24638 if test $gcc_cv_as_ix86_fildq = yes; then
24640 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24645 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24646 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24647 $as_echo_n "(cached) " >&6
24649 gcc_cv_as_ix86_cmov_sun_syntax=no
24650 if test x$gcc_cv_as != x; then
24651 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24654 (eval $ac_try) 2>&5
24656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24657 test $ac_status = 0; }; }
24659 gcc_cv_as_ix86_cmov_sun_syntax=yes
24661 echo "configure: failed program was" >&5
24664 rm -f conftest.o conftest.s
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24668 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24669 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24671 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24676 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24677 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24678 $as_echo_n "(cached) " >&6
24680 gcc_cv_as_ix86_ffreep=no
24681 if test x$gcc_cv_as != x; then
24682 $as_echo 'ffreep %st(1)' > conftest.s
24683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685 (eval $ac_try) 2>&5
24687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688 test $ac_status = 0; }; }
24690 gcc_cv_as_ix86_ffreep=yes
24692 echo "configure: failed program was" >&5
24695 rm -f conftest.o conftest.s
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24699 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24700 if test $gcc_cv_as_ix86_ffreep = yes; then
24702 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24707 $as_echo_n "checking assembler for .quad directive... " >&6; }
24708 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24711 gcc_cv_as_ix86_quad=no
24712 if test x$gcc_cv_as != x; then
24713 $as_echo '.quad 0' > conftest.s
24714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24716 (eval $ac_try) 2>&5
24718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719 test $ac_status = 0; }; }
24721 gcc_cv_as_ix86_quad=yes
24723 echo "configure: failed program was" >&5
24726 rm -f conftest.o conftest.s
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24730 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24731 if test $gcc_cv_as_ix86_quad = yes; then
24733 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24738 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24739 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24740 $as_echo_n "(cached) " >&6
24742 gcc_cv_as_ix86_sahf=no
24743 if test x$gcc_cv_as != x; then
24746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24753 gcc_cv_as_ix86_sahf=yes
24755 echo "configure: failed program was" >&5
24758 rm -f conftest.o conftest.s
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24762 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24763 if test $gcc_cv_as_ix86_sahf = yes; then
24765 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24770 $as_echo_n "checking assembler for swap suffix... " >&6; }
24771 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24772 $as_echo_n "(cached) " >&6
24774 gcc_cv_as_ix86_swap=no
24775 if test x$gcc_cv_as != x; then
24776 $as_echo 'movl.s %esp, %ebp' > conftest.s
24777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24779 (eval $ac_try) 2>&5
24781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24782 test $ac_status = 0; }; }
24784 gcc_cv_as_ix86_swap=yes
24786 echo "configure: failed program was" >&5
24789 rm -f conftest.o conftest.s
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24793 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24794 if test $gcc_cv_as_ix86_swap = yes; then
24796 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24801 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24802 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24803 $as_echo_n "(cached) " >&6
24805 gcc_cv_as_ix86_diff_sect_delta=no
24806 if test x$gcc_cv_as != x; then
24807 $as_echo '.section .rodata
24813 .L2: nop' > conftest.s
24814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816 (eval $ac_try) 2>&5
24818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819 test $ac_status = 0; }; }
24821 gcc_cv_as_ix86_diff_sect_delta=yes
24823 echo "configure: failed program was" >&5
24826 rm -f conftest.o conftest.s
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24830 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24831 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24833 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24837 # These two are used unconditionally by i386.[ch]; it is to be defined
24838 # to 1 if the feature is present, 0 otherwise.
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24840 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24841 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24842 $as_echo_n "(cached) " >&6
24844 gcc_cv_as_ix86_gotoff_in_data=no
24845 if test $in_tree_gas = yes; then
24846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24847 then gcc_cv_as_ix86_gotoff_in_data=yes
24849 elif test x$gcc_cv_as != x; then
24854 .long .L0@GOTOFF' > conftest.s
24855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24857 (eval $ac_try) 2>&5
24859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860 test $ac_status = 0; }; }
24862 gcc_cv_as_ix86_gotoff_in_data=yes
24864 echo "configure: failed program was" >&5
24867 rm -f conftest.o conftest.s
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24871 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24874 cat >>confdefs.h <<_ACEOF
24875 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24880 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24881 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24882 $as_echo_n "(cached) " >&6
24884 gcc_cv_as_ix86_rep_lock_prefix=no
24885 if test x$gcc_cv_as != x; then
24886 $as_echo 'rep movsl
24887 lock addl %edi, (%eax,%esi)
24888 lock orl $0, (%esp)' > conftest.s
24889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24896 gcc_cv_as_ix86_rep_lock_prefix=yes
24898 echo "configure: failed program was" >&5
24901 rm -f conftest.o conftest.s
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24905 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24906 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24908 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24913 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24914 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24915 $as_echo_n "(cached) " >&6
24917 gcc_cv_as_ix86_tlsgdplt=no
24918 if test x$gcc_cv_as != x; then
24919 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24927 if test x$gcc_cv_ld != x \
24928 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24929 gcc_cv_as_ix86_tlsgdplt=yes
24933 echo "configure: failed program was" >&5
24936 rm -f conftest.o conftest.s
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24940 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24941 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24943 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24948 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24949 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24950 $as_echo_n "(cached) " >&6
24952 gcc_cv_as_ix86_tlsldmplt=no
24953 if test x$gcc_cv_as != x; then
24955 call tls_ld@tlsldmplt' > conftest.s
24956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24958 (eval $ac_try) 2>&5
24960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961 test $ac_status = 0; }; }
24963 if test x$gcc_cv_ld != x \
24964 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24965 gcc_cv_as_ix86_tlsldmplt=yes
24969 echo "configure: failed program was" >&5
24972 rm -f conftest.o conftest.s
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24976 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24977 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24979 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24987 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24988 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24989 $as_echo_n "(cached) " >&6
24991 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24992 if test $in_tree_gas = yes; then
24993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24994 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24996 elif test x$gcc_cv_as != x; then
24998 addl r15 = @ltoffx(x#), gp
25000 ld8.mov r16 = [r15], x#' > conftest.s
25001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25003 (eval $ac_try) 2>&5
25005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25006 test $ac_status = 0; }; }
25008 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25010 echo "configure: failed program was" >&5
25013 rm -f conftest.o conftest.s
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25017 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25018 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25020 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25028 *-*-aix*) conftest_s=' .machine "pwr5"
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25033 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25034 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25035 $as_echo_n "(cached) " >&6
25037 gcc_cv_as_machine_directive=no
25038 if test x$gcc_cv_as != x; then
25039 $as_echo ' .machine ppc7400' > conftest.s
25040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25042 (eval $ac_try) 2>&5
25044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25045 test $ac_status = 0; }; }
25047 gcc_cv_as_machine_directive=yes
25049 echo "configure: failed program was" >&5
25052 rm -f conftest.o conftest.s
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25056 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25058 if test x$gcc_cv_as_machine_directive != xyes; then
25059 echo "*** This target requires an assembler supporting \".machine\"" >&2
25060 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25061 test x$build = x$target && exit 1
25065 *) conftest_s=' .machine power4
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25071 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25072 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25073 $as_echo_n "(cached) " >&6
25075 gcc_cv_as_powerpc_mfcrf=no
25076 if test $in_tree_gas = yes; then
25077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25078 then gcc_cv_as_powerpc_mfcrf=yes
25080 elif test x$gcc_cv_as != x; then
25081 $as_echo "$conftest_s" > 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_powerpc_mfcrf=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_powerpc_mfcrf" >&5
25098 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25099 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25101 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25106 *-*-aix*) conftest_s=' .machine "pwr5"
25109 *) conftest_s=' .machine power5
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25115 $as_echo_n "checking assembler for popcntb support... " >&6; }
25116 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25117 $as_echo_n "(cached) " >&6
25119 gcc_cv_as_powerpc_popcntb=no
25120 if test $in_tree_gas = yes; then
25121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25122 then gcc_cv_as_powerpc_popcntb=yes
25124 elif test x$gcc_cv_as != x; then
25125 $as_echo "$conftest_s" > conftest.s
25126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25128 (eval $ac_try) 2>&5
25130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25131 test $ac_status = 0; }; }
25133 gcc_cv_as_powerpc_popcntb=yes
25135 echo "configure: failed program was" >&5
25138 rm -f conftest.o conftest.s
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25142 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25143 if test $gcc_cv_as_powerpc_popcntb = yes; then
25145 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25150 *-*-aix*) conftest_s=' .machine "pwr5x"
25153 *) conftest_s=' .machine power5
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25159 $as_echo_n "checking assembler for fp round support... " >&6; }
25160 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25161 $as_echo_n "(cached) " >&6
25163 gcc_cv_as_powerpc_fprnd=no
25164 if test $in_tree_gas = yes; then
25165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25166 then gcc_cv_as_powerpc_fprnd=yes
25168 elif test x$gcc_cv_as != x; then
25169 $as_echo "$conftest_s" > conftest.s
25170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25172 (eval $ac_try) 2>&5
25174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25175 test $ac_status = 0; }; }
25177 gcc_cv_as_powerpc_fprnd=yes
25179 echo "configure: failed program was" >&5
25182 rm -f conftest.o conftest.s
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25186 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25187 if test $gcc_cv_as_powerpc_fprnd = yes; then
25189 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25194 *-*-aix*) conftest_s=' .machine "pwr6"
25197 *) conftest_s=' .machine power6
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25203 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25204 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25207 gcc_cv_as_powerpc_mfpgpr=no
25208 if test $in_tree_gas = yes; then
25209 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25210 then gcc_cv_as_powerpc_mfpgpr=yes
25212 elif test x$gcc_cv_as != x; then
25213 $as_echo "$conftest_s" > conftest.s
25214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25216 (eval $ac_try) 2>&5
25218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219 test $ac_status = 0; }; }
25221 gcc_cv_as_powerpc_mfpgpr=yes
25223 echo "configure: failed program was" >&5
25226 rm -f conftest.o conftest.s
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25230 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25231 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25233 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25238 *-*-aix*) conftest_s=' .csect .text[PR]
25240 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25244 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25245 *) conftest_s=' .text
25247 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25251 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25252 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25253 $as_echo_n "(cached) " >&6
25255 gcc_cv_as_powerpc_rel16=no
25256 if test $in_tree_gas = yes; then
25257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25258 then gcc_cv_as_powerpc_rel16=yes
25260 elif test x$gcc_cv_as != x; then
25261 $as_echo "$conftest_s" > conftest.s
25262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25264 (eval $ac_try) 2>&5
25266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25267 test $ac_status = 0; }; }
25269 gcc_cv_as_powerpc_rel16=yes
25271 echo "configure: failed program was" >&5
25274 rm -f conftest.o conftest.s
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25278 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25279 if test $gcc_cv_as_powerpc_rel16 = yes; then
25281 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25286 *-*-aix*) conftest_s=' .machine "pwr6"
25289 *) conftest_s=' .machine power6
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25295 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25296 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25297 $as_echo_n "(cached) " >&6
25299 gcc_cv_as_powerpc_cmpb=no
25300 if test $in_tree_gas = yes; then
25301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25302 then gcc_cv_as_powerpc_cmpb=yes
25304 elif test x$gcc_cv_as != x; then
25305 $as_echo "$conftest_s" > conftest.s
25306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25308 (eval $ac_try) 2>&5
25310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25311 test $ac_status = 0; }; }
25313 gcc_cv_as_powerpc_cmpb=yes
25315 echo "configure: failed program was" >&5
25318 rm -f conftest.o conftest.s
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25322 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25323 if test $gcc_cv_as_powerpc_cmpb = yes; then
25325 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25330 *-*-aix*) conftest_s=' .machine "pwr6"
25333 *) conftest_s=' .machine power6
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25339 $as_echo_n "checking assembler for decimal float support... " >&6; }
25340 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25343 gcc_cv_as_powerpc_dfp=no
25344 if test $in_tree_gas = yes; then
25345 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25346 then gcc_cv_as_powerpc_dfp=yes
25348 elif test x$gcc_cv_as != x; then
25349 $as_echo "$conftest_s" > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25357 gcc_cv_as_powerpc_dfp=yes
25359 echo "configure: failed program was" >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25366 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25367 if test $gcc_cv_as_powerpc_dfp = yes; then
25369 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25374 *-*-aix*) conftest_s=' .machine "pwr7"
25377 *) conftest_s=' .machine power7
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25383 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25384 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25385 $as_echo_n "(cached) " >&6
25387 gcc_cv_as_powerpc_vsx=no
25388 if test $in_tree_gas = yes; then
25389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25390 then gcc_cv_as_powerpc_vsx=yes
25392 elif test x$gcc_cv_as != x; then
25393 $as_echo "$conftest_s" > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25401 gcc_cv_as_powerpc_vsx=yes
25403 echo "configure: failed program was" >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25410 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25411 if test $gcc_cv_as_powerpc_vsx = yes; then
25413 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25418 *-*-aix*) conftest_s=' .machine "pwr7"
25421 *) conftest_s=' .machine power7
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25427 $as_echo_n "checking assembler for popcntd support... " >&6; }
25428 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25429 $as_echo_n "(cached) " >&6
25431 gcc_cv_as_powerpc_popcntd=no
25432 if test $in_tree_gas = yes; then
25433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25434 then gcc_cv_as_powerpc_popcntd=yes
25436 elif test x$gcc_cv_as != x; then
25437 $as_echo "$conftest_s" > conftest.s
25438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25440 (eval $ac_try) 2>&5
25442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25443 test $ac_status = 0; }; }
25445 gcc_cv_as_powerpc_popcntd=yes
25447 echo "configure: failed program was" >&5
25450 rm -f conftest.o conftest.s
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25454 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25455 if test $gcc_cv_as_powerpc_popcntd = yes; then
25457 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25462 *-*-aix*) conftest_s=' .csect .text[PR]
25464 *) conftest_s=' .text
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25469 $as_echo_n "checking assembler for lwsync support... " >&6; }
25470 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25471 $as_echo_n "(cached) " >&6
25473 gcc_cv_as_powerpc_lwsync=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_lwsync=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_lwsync=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_lwsync" >&5
25496 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25497 if test $gcc_cv_as_powerpc_lwsync = yes; then
25499 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25504 *-*-aix*) conftest_s=' .machine "476"
25507 *) conftest_s=' .machine "476"
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25513 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25514 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25517 gcc_cv_as_powerpc_dci=no
25518 if test $in_tree_gas = yes; then
25519 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25520 then gcc_cv_as_powerpc_dci=yes
25522 elif test x$gcc_cv_as != x; then
25523 $as_echo "$conftest_s" > conftest.s
25524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25526 (eval $ac_try) 2>&5
25528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25529 test $ac_status = 0; }; }
25531 gcc_cv_as_powerpc_dci=yes
25533 echo "configure: failed program was" >&5
25536 rm -f conftest.o conftest.s
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25540 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25541 if test $gcc_cv_as_powerpc_dci = yes; then
25543 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25548 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25549 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25550 $as_echo_n "(cached) " >&6
25552 gcc_cv_as_powerpc_gnu_attribute=no
25553 if test $in_tree_gas = yes; then
25554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25555 then gcc_cv_as_powerpc_gnu_attribute=yes
25557 elif test x$gcc_cv_as != x; then
25558 $as_echo '.gnu_attribute 4,1' > conftest.s
25559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25561 (eval $ac_try) 2>&5
25563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25564 test $ac_status = 0; }; }
25566 gcc_cv_as_powerpc_gnu_attribute=yes
25568 echo "configure: failed program was" >&5
25571 rm -f conftest.o conftest.s
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25575 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25576 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25578 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25583 $as_echo_n "checking assembler for tls marker support... " >&6; }
25584 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25585 $as_echo_n "(cached) " >&6
25587 gcc_cv_as_powerpc_tls_markers=no
25588 if test $in_tree_gas = yes; then
25589 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25590 then gcc_cv_as_powerpc_tls_markers=yes
25592 elif test x$gcc_cv_as != x; then
25593 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25596 (eval $ac_try) 2>&5
25598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25599 test $ac_status = 0; }; }
25601 gcc_cv_as_powerpc_tls_markers=yes
25603 echo "configure: failed program was" >&5
25606 rm -f conftest.o conftest.s
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25610 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25611 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25613 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25620 $as_echo_n "checking assembler for .ref support... " >&6; }
25621 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25622 $as_echo_n "(cached) " >&6
25624 gcc_cv_as_aix_ref=no
25625 if test $in_tree_gas = yes; then
25626 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25629 elif test x$gcc_cv_as != x; then
25630 $as_echo ' .csect stuff[rw]
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_aix_ref=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_aix_ref" >&5
25652 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25653 if test $gcc_cv_as_aix_ref = yes; then
25655 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25664 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25665 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25668 gcc_cv_as_mips_explicit_relocs=no
25669 if test $in_tree_gas = yes; then
25670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25671 then gcc_cv_as_mips_explicit_relocs=yes
25673 elif test x$gcc_cv_as != x; then
25674 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25677 (eval $ac_try) 2>&5
25679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25680 test $ac_status = 0; }; }
25682 gcc_cv_as_mips_explicit_relocs=yes
25684 echo "configure: failed program was" >&5
25687 rm -f conftest.o conftest.s
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25691 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25692 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25693 if test x$target_cpu_default = x
25694 then target_cpu_default=MASK_EXPLICIT_RELOCS
25695 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25699 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25700 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25703 gcc_cv_as_mips_no_shared=no
25704 if test $in_tree_gas = yes; then
25705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25706 then gcc_cv_as_mips_no_shared=yes
25708 elif test x$gcc_cv_as != x; then
25709 $as_echo 'nop' > conftest.s
25710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; }
25717 gcc_cv_as_mips_no_shared=yes
25719 echo "configure: failed program was" >&5
25722 rm -f conftest.o conftest.s
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25726 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25727 if test $gcc_cv_as_mips_no_shared = yes; then
25729 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25734 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25735 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25736 $as_echo_n "(cached) " >&6
25738 gcc_cv_as_mips_gnu_attribute=no
25739 if test $in_tree_gas = yes; then
25740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25741 then gcc_cv_as_mips_gnu_attribute=yes
25743 elif test x$gcc_cv_as != x; then
25744 $as_echo '.gnu_attribute 4,1' > conftest.s
25745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25752 gcc_cv_as_mips_gnu_attribute=yes
25754 echo "configure: failed program was" >&5
25757 rm -f conftest.o conftest.s
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25761 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25762 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25764 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25769 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25770 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25771 $as_echo_n "(cached) " >&6
25773 gcc_cv_as_mips_dtprelword=no
25774 if test $in_tree_gas = yes; then
25775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25776 then gcc_cv_as_mips_dtprelword=yes
25778 elif test x$gcc_cv_as != x; then
25779 $as_echo '.section .tdata,"awT",@progbits
25783 .dtprelword x+0x8000' > conftest.s
25784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25791 gcc_cv_as_mips_dtprelword=yes
25793 echo "configure: failed program was" >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25800 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25801 if test $gcc_cv_as_mips_dtprelword = yes; then
25803 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25808 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25809 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25810 $as_echo_n "(cached) " >&6
25812 gcc_cv_as_mips_dspr1_mult=no
25813 if test x$gcc_cv_as != x; then
25814 $as_echo ' .set mips32r2
25822 multu $ac3,$4,$5' > conftest.s
25823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825 (eval $ac_try) 2>&5
25827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828 test $ac_status = 0; }; }
25830 gcc_cv_as_mips_dspr1_mult=yes
25832 echo "configure: failed program was" >&5
25835 rm -f conftest.o conftest.s
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25839 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25840 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25842 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25847 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25848 gcc_cv_as_ld_jalr_reloc=no
25849 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25850 if test $in_tree_ld = yes ; then
25851 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 \
25852 && test $in_tree_ld_is_elf = yes; then
25853 gcc_cv_as_ld_jalr_reloc=yes
25855 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25856 echo ' .ent x' > conftest.s
25857 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25858 echo ' ld $25,%call16(y)($28)' >> conftest.s
25859 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25860 echo '1: jalr $25' >> conftest.s
25861 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25862 echo '1: jalr $25' >> conftest.s
25863 echo ' .end x' >> conftest.s
25864 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25865 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25866 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25867 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25868 gcc_cv_as_ld_jalr_reloc=yes
25874 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25875 if test x$target_cpu_default = x; then
25876 target_cpu_default=MASK_RELAX_PIC_CALLS
25878 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25882 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25885 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25886 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25887 $as_echo_n "(cached) " >&6
25889 gcc_cv_ld_mips_personality_relaxation=no
25890 if test $in_tree_ld = yes ; then
25891 if test "$gcc_cv_gld_major_version" -eq 2 \
25892 -a "$gcc_cv_gld_minor_version" -ge 21 \
25893 -o "$gcc_cv_gld_major_version" -gt 2; then
25894 gcc_cv_ld_mips_personality_relaxation=yes
25896 elif test x$gcc_cv_as != x \
25897 -a x$gcc_cv_ld != x \
25898 -a x$gcc_cv_readelf != x ; then
25899 cat > conftest.s <<EOF
25901 .cfi_personality 0x80,indirect_ptr
25908 .section .data,"aw",@progbits
25912 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25913 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25914 if $gcc_cv_readelf -d conftest 2>&1 \
25915 | grep TEXTREL > /dev/null 2>&1; then
25917 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25918 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25921 gcc_cv_ld_mips_personality_relaxation=yes
25925 rm -f conftest.s conftest.o conftest
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25928 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25929 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25931 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25937 # Mips and HP-UX need the GNU assembler.
25938 # Linux on IA64 might be able to use the Intel assembler.
25941 mips*-*-* | *-*-hpux* )
25942 if test x$gas_flag = xyes \
25943 || test x"$host" != x"$build" \
25944 || test ! -x "$gcc_cv_as" \
25945 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25948 echo "*** This configuration requires the GNU assembler" >&2
25954 # ??? Not all targets support dwarf2 debug_line, even within a version
25955 # of gas. Moreover, we need to emit a valid instruction to trigger any
25956 # info to the output file. So, as supported targets are added to gas 2.11,
25957 # add some instruction here to (also) show we expect this might work.
25958 # ??? Once 2.11 is released, probably need to add first known working
25959 # version to the per-target configury.
25960 case "$cpu_type" in
25961 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25962 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25972 if test x"$insn" != x; then
25974 .file 1 \"conftest.s\"
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25978 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25979 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25982 gcc_cv_as_dwarf2_debug_line=no
25983 if test $in_tree_gas = yes; then
25984 if test $in_tree_gas_is_elf = yes \
25985 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25986 then gcc_cv_as_dwarf2_debug_line=yes
25988 elif test x$gcc_cv_as != x; then
25989 $as_echo "$conftest_s" > conftest.s
25990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992 (eval $ac_try) 2>&5
25994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995 test $ac_status = 0; }; }
25997 if test x$gcc_cv_objdump != x \
25998 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25999 | grep debug_line > /dev/null 2>&1; then
26000 gcc_cv_as_dwarf2_debug_line=yes
26003 echo "configure: failed program was" >&5
26006 rm -f conftest.o conftest.s
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26010 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26013 # The .debug_line file table must be in the exact order that
26014 # we specified the files, since these indices are also used
26015 # by DW_AT_decl_file. Approximate this test by testing if
26016 # the assembler bitches if the same index is assigned twice.
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26018 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26019 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26020 $as_echo_n "(cached) " >&6
26022 gcc_cv_as_dwarf2_file_buggy=no
26023 if test x$gcc_cv_as != x; then
26024 $as_echo ' .file 1 "foo.s"
26025 .file 1 "bar.s"' > conftest.s
26026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028 (eval $ac_try) 2>&5
26030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031 test $ac_status = 0; }; }
26033 gcc_cv_as_dwarf2_file_buggy=yes
26035 echo "configure: failed program was" >&5
26038 rm -f conftest.o conftest.s
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26042 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26045 if test $gcc_cv_as_dwarf2_debug_line = yes \
26046 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26048 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26053 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26054 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26055 $as_echo_n "(cached) " >&6
26057 gcc_cv_as_gdwarf2_flag=no
26058 if test $in_tree_gas = yes; then
26059 if test $in_tree_gas_is_elf = yes \
26060 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26061 then gcc_cv_as_gdwarf2_flag=yes
26063 elif test x$gcc_cv_as != x; then
26064 $as_echo "$insn" > conftest.s
26065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26067 (eval $ac_try) 2>&5
26069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26070 test $ac_status = 0; }; }
26072 gcc_cv_as_gdwarf2_flag=yes
26074 echo "configure: failed program was" >&5
26077 rm -f conftest.o conftest.s
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26081 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26082 if test $gcc_cv_as_gdwarf2_flag = yes; then
26084 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26089 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26090 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26091 $as_echo_n "(cached) " >&6
26093 gcc_cv_as_gstabs_flag=no
26094 if test $in_tree_gas = yes; then
26095 if test $in_tree_gas_is_elf = yes \
26096 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26097 then gcc_cv_as_gstabs_flag=yes
26099 elif test x$gcc_cv_as != x; then
26100 $as_echo "$insn" > conftest.s
26101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26103 (eval $ac_try) 2>&5
26105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26106 test $ac_status = 0; }; }
26108 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26109 # and warns about it, but still exits successfully. So check for
26111 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113 (eval $ac_try) 2>&5
26115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116 test $ac_status = 0; }; }
26118 else gcc_cv_as_gstabs_flag=yes
26121 echo "configure: failed program was" >&5
26124 rm -f conftest.o conftest.s
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26128 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26129 if test $gcc_cv_as_gstabs_flag = yes; then
26131 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26136 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26137 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26138 $as_echo_n "(cached) " >&6
26140 gcc_cv_as_debug_prefix_map_flag=no
26141 if test $in_tree_gas = yes; then
26142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26143 then gcc_cv_as_debug_prefix_map_flag=yes
26145 elif test x$gcc_cv_as != x; then
26146 $as_echo "$insn" > conftest.s
26147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26154 gcc_cv_as_debug_prefix_map_flag=yes
26156 echo "configure: failed program was" >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26163 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26164 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26166 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26172 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26173 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26174 $as_echo_n "(cached) " >&6
26176 gcc_cv_as_lcomm_with_alignment=no
26177 if test x$gcc_cv_as != x; then
26178 $as_echo '.lcomm bar,4,16' > conftest.s
26179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26181 (eval $ac_try) 2>&5
26183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26184 test $ac_status = 0; }; }
26186 gcc_cv_as_lcomm_with_alignment=yes
26188 echo "configure: failed program was" >&5
26191 rm -f conftest.o conftest.s
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26195 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26196 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26198 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26202 # Check whether --enable-gnu-unique-object was given.
26203 if test "${enable_gnu_unique_object+set}" = set; then :
26204 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26206 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26207 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26211 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26212 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26213 $as_echo_n "(cached) " >&6
26215 gcc_cv_as_gnu_unique_object=no
26216 if test $in_tree_gas = yes; then
26217 if test $in_tree_gas_is_elf = yes \
26218 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26219 then gcc_cv_as_gnu_unique_object=yes
26221 elif test x$gcc_cv_as != x; then
26222 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26225 (eval $ac_try) 2>&5
26227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26228 test $ac_status = 0; }; }
26230 gcc_cv_as_gnu_unique_object=yes
26232 echo "configure: failed program was" >&5
26235 rm -f conftest.o conftest.s
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26239 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26240 if test $gcc_cv_as_gnu_unique_object = yes; then
26241 # We need to unquote above to to use the definition from config.gcc.
26242 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26243 if test x$host = x$build -a x$host = x$target &&
26244 ldd --version 2>/dev/null &&
26245 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26246 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26247 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26248 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26249 if test "$glibcnum" -ge 2011 ; then
26250 enable_gnu_unique_object=yes
26256 if test x$enable_gnu_unique_object = xyes; then
26258 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26263 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26264 if test "${gcc_cv_as_line_zero+set}" = set; then :
26265 $as_echo_n "(cached) " >&6
26267 gcc_cv_as_line_zero=no
26268 if test $in_tree_gas = yes; then
26269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26270 then gcc_cv_as_line_zero=yes
26272 elif test "x$gcc_cv_as" != x; then
26273 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26276 (eval $ac_try) 2>&5
26278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26279 test $ac_status = 0; }; } &&
26280 test "x`cat conftest.out`" = x
26282 gcc_cv_as_line_zero=yes
26284 echo "configure: failed program was" >&5
26286 echo "configure: error output was" >&5
26287 cat conftest.out >&5
26289 rm -f conftest.o conftest.s conftest.out
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26293 $as_echo "$gcc_cv_as_line_zero" >&6; }
26294 if test "x$gcc_cv_as_line_zero" = xyes; then
26296 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26301 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26302 gcc_cv_ld_eh_frame_hdr=no
26303 if test $in_tree_ld = yes ; then
26304 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 \
26305 && test $in_tree_ld_is_elf = yes; then
26306 gcc_cv_ld_eh_frame_hdr=yes
26308 elif test x$gcc_cv_ld != x; then
26309 if echo "$ld_ver" | grep GNU > /dev/null; then
26310 # Check if linker supports --eh-frame-hdr option
26311 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26312 gcc_cv_ld_eh_frame_hdr=yes
26317 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26318 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26319 gcc_cv_ld_eh_frame_hdr=yes
26326 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26328 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26332 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26335 $as_echo_n "checking linker position independent executable support... " >&6; }
26337 if test $in_tree_ld = yes ; then
26338 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 \
26339 && test $in_tree_ld_is_elf = yes; then
26342 elif test x$gcc_cv_ld != x; then
26343 # Check if linker supports -pie option
26344 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26348 if test x"$gcc_cv_ld_pie" = xyes; then
26350 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26354 $as_echo "$gcc_cv_ld_pie" >&6; }
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26357 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26358 gcc_cv_ld_eh_gc_sections=no
26359 if test $in_tree_ld = yes ; then
26360 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 \
26361 && test $in_tree_ld_is_elf = yes; then
26362 gcc_cv_ld_eh_gc_sections=yes
26364 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26365 cat > conftest.s <<EOF
26368 .type _start, @function
26371 .size _start, .-_start
26372 .section .text.foo,"ax",@progbits
26373 .type foo, @function
26377 .section .gcc_except_table.foo,"a",@progbits
26380 .section .eh_frame,"a",@progbits
26383 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26384 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26385 | grep "gc-sections option ignored" > /dev/null; then
26386 gcc_cv_ld_eh_gc_sections=no
26387 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26388 | grep gcc_except_table > /dev/null; then
26389 gcc_cv_ld_eh_gc_sections=yes
26390 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26391 if test x$gcc_cv_as_comdat_group != xyes; then
26392 gcc_cv_ld_eh_gc_sections=no
26393 cat > conftest.s <<EOF
26396 .type _start, @function
26399 .size _start, .-_start
26400 .section .gnu.linkonce.t.foo,"ax",@progbits
26401 .type foo, @function
26405 .section .gcc_except_table.foo,"a",@progbits
26408 .section .eh_frame,"a",@progbits
26411 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26412 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26413 | grep "gc-sections option ignored" > /dev/null; then
26414 gcc_cv_ld_eh_gc_sections=no
26415 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26416 | grep gcc_except_table > /dev/null; then
26417 gcc_cv_ld_eh_gc_sections=yes
26423 rm -f conftest.s conftest.o conftest
26427 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26428 gcc_cv_ld_eh_gc_sections=no
26431 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26433 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26437 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26440 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26441 gcc_cv_ld_eh_gc_sections_bug=no
26442 if test $in_tree_ld = yes ; then
26443 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 \
26444 && test $in_tree_ld_is_elf = yes; then
26445 gcc_cv_ld_eh_gc_sections_bug=yes
26447 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
26448 gcc_cv_ld_eh_gc_sections_bug=yes
26449 cat > conftest.s <<EOF
26452 .type _start, @function
26455 .size _start, .-_start
26456 .section .text.startup.foo,"ax",@progbits
26457 .type foo, @function
26461 .section .gcc_except_table.foo,"a",@progbits
26464 .section .eh_frame,"a",@progbits
26467 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26468 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26469 | grep "gc-sections option ignored" > /dev/null; then
26471 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26472 | grep gcc_except_table > /dev/null; then
26473 gcc_cv_ld_eh_gc_sections_bug=no
26476 rm -f conftest.s conftest.o conftest
26478 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26480 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26484 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26491 $as_echo_n "checking linker --as-needed support... " >&6; }
26492 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26493 $as_echo_n "(cached) " >&6
26495 gcc_cv_ld_as_needed=no
26496 if test $in_tree_ld = yes ; then
26497 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 \
26498 && test $in_tree_ld_is_elf = yes; then
26499 gcc_cv_ld_as_needed=yes
26501 elif test x$gcc_cv_ld != x; then
26502 # Check if linker supports --as-needed and --no-as-needed options
26503 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26504 gcc_cv_ld_as_needed=yes
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26510 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26511 if test x"$gcc_cv_ld_as_needed" = xyes; then
26513 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26517 case "$target:$tm_file" in
26518 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26521 emul_name="-melf64ppc"
26524 emul_name="-melf64ppc_fbsd"
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26528 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26529 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26530 $as_echo_n "(cached) " >&6
26532 gcc_cv_ld_no_dot_syms=no
26533 if test x"$ld_is_gold" = xyes; then
26534 gcc_cv_ld_no_dot_syms=yes
26535 elif test $in_tree_ld = yes ; then
26536 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
26537 gcc_cv_ld_no_dot_syms=yes
26539 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26540 cat > conftest1.s <<EOF
26544 cat > conftest2.s <<EOF
26545 .section ".opd","aw"
26548 .type foo,@function
26550 .quad .LEfoo,.TOC.@tocbase,0
26556 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26557 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26558 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26559 gcc_cv_ld_no_dot_syms=yes
26561 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26566 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26567 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26569 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26574 $as_echo_n "checking linker large toc support... " >&6; }
26575 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26576 $as_echo_n "(cached) " >&6
26578 gcc_cv_ld_large_toc=no
26579 if test x"$ld_is_gold" = xyes; then
26580 gcc_cv_ld_large_toc=yes
26581 elif test $in_tree_ld = yes ; then
26582 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
26583 gcc_cv_ld_large_toc=yes
26585 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26586 cat > conftest.s <<EOF
26587 .section ".tbss","awT",@nobits
26593 addis 9,13,ie0@got@tprel@ha
26594 ld 9,ie0@got@tprel@l(9)
26596 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26597 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26598 gcc_cv_ld_large_toc=yes
26600 rm -f conftest conftest.o conftest.s
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26605 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26606 if test x"$gcc_cv_ld_large_toc" = xyes; then
26608 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26615 $as_echo_n "checking linker --build-id support... " >&6; }
26616 if test "${gcc_cv_ld_buildid+set}" = set; then :
26617 $as_echo_n "(cached) " >&6
26619 gcc_cv_ld_buildid=no
26620 if test $in_tree_ld = yes ; then
26621 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26622 "$gcc_cv_gld_minor_version" -ge 18 -o \
26623 "$gcc_cv_gld_major_version" -gt 2 \
26624 && test $in_tree_ld_is_elf = yes; then
26625 gcc_cv_ld_buildid=yes
26627 elif test x$gcc_cv_ld != x; then
26628 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26629 gcc_cv_ld_buildid=yes
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26634 $as_echo "$gcc_cv_ld_buildid" >&6; }
26635 if test x"$gcc_cv_ld_buildid" = xyes; then
26637 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26641 # Check whether --enable-linker-build-id was given.
26642 if test "${enable_linker_build_id+set}" = set; then :
26643 enableval=$enable_linker_build_id;
26645 enable_linker_build_id=no
26649 if test x"$enable_linker_build_id" = xyes; then
26650 if test x"$gcc_cv_ld_buildid" = xyes; then
26652 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26656 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26660 # In binutils 2.21, GNU ld gained support for new emulations fully
26661 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26663 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26664 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26665 $as_echo_n "(cached) " >&6
26667 gcc_cv_ld_sol2_emulation=no
26668 if test $in_tree_ld = yes ; then
26669 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26670 "$gcc_cv_gld_minor_version" -ge 21 -o \
26671 "$gcc_cv_gld_major_version" -gt 2 \
26672 && test $in_tree_ld_is_elf = yes; then
26673 gcc_cv_ld_sol2_emulation=yes
26675 elif test x$gcc_cv_ld != x; then
26676 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26677 grep _sol2 > /dev/null; then
26678 gcc_cv_ld_sol2_emulation=yes
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26683 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26684 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26686 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26691 $as_echo_n "checking linker --sysroot support... " >&6; }
26692 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26693 $as_echo_n "(cached) " >&6
26695 gcc_cv_ld_sysroot=no
26696 if test $in_tree_ld = yes ; then
26697 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
26698 gcc_cv_ld_sysroot=yes
26700 elif test x$gcc_cv_ld != x; then
26701 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26702 gcc_cv_ld_sysroot=yes
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26707 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26708 if test x"$gcc_cv_ld_sysroot" = xyes; then
26710 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26714 if test x$with_sysroot = x && test x$host = x$target \
26715 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26716 && test "$prefix" != "NONE"; then
26718 cat >>confdefs.h <<_ACEOF
26719 #define PREFIX_INCLUDE_DIR "$prefix/include"
26724 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26725 if test "x$with_headers" != x; then
26726 target_header_dir=$with_headers
26727 elif test "x$with_sysroot" = x; then
26728 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26729 elif test "x$with_build_sysroot" != "x"; then
26730 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26731 elif test "x$with_sysroot" = xyes; then
26732 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26734 target_header_dir="${with_sysroot}${native_system_header_dir}"
26737 target_header_dir=${native_system_header_dir}
26740 # Test for stack protector support in target C library.
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26742 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26743 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26744 $as_echo_n "(cached) " >&6
26746 gcc_cv_libc_provides_ssp=no
26748 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26749 # glibc 2.4 and later provides __stack_chk_fail and
26750 # either __stack_chk_guard, or TLS access to stack guard canary.
26751 if test -f $target_header_dir/features.h \
26752 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26753 $target_header_dir/features.h > /dev/null; then
26754 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26755 $target_header_dir/features.h > /dev/null; then
26756 gcc_cv_libc_provides_ssp=yes
26757 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26758 $target_header_dir/features.h > /dev/null \
26759 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26760 $target_header_dir/features.h > /dev/null; then
26761 gcc_cv_libc_provides_ssp=yes
26762 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26763 $target_header_dir/features.h > /dev/null && \
26764 test -f $target_header_dir/bits/uClibc_config.h && \
26765 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26766 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26767 gcc_cv_libc_provides_ssp=yes
26769 # all versions of Bionic support stack protector
26770 elif test -f $target_header_dir/sys/cdefs.h \
26771 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26772 $target_header_dir/sys/cdefs.h > /dev/null; then
26773 gcc_cv_libc_provides_ssp=yes
26777 # Avoid complicated tests (see
26778 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26779 # simply assert that glibc does provide this, which is true for all
26780 # realistically usable GNU/Hurd configurations.
26781 gcc_cv_libc_provides_ssp=yes;;
26782 *-*-darwin* | *-*-freebsd*)
26783 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26784 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26785 gcc_cv_libc_provides_ssp=yes
26787 echo "no __stack_chk_fail on this target"
26791 *) gcc_cv_libc_provides_ssp=no ;;
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26795 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26797 if test x$gcc_cv_libc_provides_ssp = xyes; then
26799 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26803 # Test for <sys/sdt.h> on the target.
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26806 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26808 if test -f $target_header_dir/sys/sdt.h; then
26811 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26815 $as_echo "$have_sys_sdt_h" >&6; }
26817 # Check if TFmode long double should be used by default or not.
26818 # Some glibc targets used DFmode long double, but with glibc 2.4
26819 # and later they can use TFmode.
26821 powerpc*-*-linux* | \
26822 sparc*-*-linux* | \
26826 # Check whether --with-long-double-128 was given.
26827 if test "${with_long_double_128+set}" = set; then :
26828 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26830 gcc_cv_target_ldbl128=no
26831 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26832 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26833 && gcc_cv_target_ldbl128=yes
26839 if test x$gcc_cv_target_ldbl128 = xyes; then
26841 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26846 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26847 gcc_cv_target_dl_iterate_phdr=unknown
26849 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26850 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26851 # libdl there, both complicating its use and breaking compatibility
26852 # between Solaris 10 updates.
26853 *-*-solaris2.1[1-9]*)
26854 # <link.h> needs both a dl_iterate_phdr declaration and support for
26855 # compilation with largefile support.
26856 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26857 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26858 gcc_cv_target_dl_iterate_phdr=yes
26860 gcc_cv_target_dl_iterate_phdr=no
26865 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26867 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26871 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26873 # Find out what GC implementation we want, or may, use.
26875 # Check whether --with-gc was given.
26876 if test "${with_gc+set}" = set; then :
26877 withval=$with_gc; case "$withval" in
26884 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26888 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26896 echo "Using $GGC for garbage collection."
26898 # Libraries to use on the host. This will normally be set by the top
26899 # level Makefile. Here we simply capture the value for our Makefile.
26900 if test -z "${HOST_LIBS+set}"; then
26905 # Use the system's zlib library.
26907 zlibinc="-I\$(srcdir)/../zlib"
26909 # Check whether --with-system-zlib was given.
26910 if test "${with_system_zlib+set}" = set; then :
26911 withval=$with_system_zlib; zlibdir=
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26921 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26922 # Check whether --enable-maintainer-mode was given.
26923 if test "${enable_maintainer_mode+set}" = set; then :
26924 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26931 $as_echo "$maintainer_mode" >&6; }
26933 if test "$maintainer_mode" = "yes"; then
26943 # Make empty files to contain the specs and options for each language.
26944 # Then add #include lines to for a compiler that has specs and/or options.
26950 # These (without "all_") are set in each config-lang.in.
26951 # `language' must be a single word so is spelled singularly.
26954 all_outputs='Makefile'
26955 # List of language makefile fragments.
26956 all_lang_makefrags=
26957 # Additional files for gengtype
26958 all_gtfiles="$target_gtfiles"
26960 # These are the languages that are set in --enable-languages,
26961 # and are available in the GCC tree.
26962 all_selected_languages=
26964 # Add the language fragments.
26965 # Languages are added via two mechanisms. Some information must be
26966 # recorded in makefile variables, these are defined in config-lang.in.
26967 # We accumulate them and plug them into the main Makefile.
26968 # The other mechanism is a set of hooks for each of the main targets
26969 # like `clean', `install', etc.
26971 language_hooks="Make-hooks"
26973 for lang in ${srcdir}/*/config-lang.in
26975 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26977 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26978 if test "x$lang_alias" = x
26980 echo "$lang doesn't set \$language." 1>&2
26983 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26984 subdirs="$subdirs $subdir"
26986 # $gcc_subdir is where the gcc integration files are to be found
26987 # for a language, both for internal compiler purposes (compiler
26988 # sources implementing front-end to GCC tree converters), and for
26989 # build infrastructure purposes (Make-lang.in, etc.)
26991 # This will be <subdir> (relative to $srcdir) if a line like
26992 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26993 # is found in <langdir>/config-lang.in, and will remain <langdir>
26996 # Except for the language alias (fetched above), the regular
26997 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26998 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26999 # only this and the language alias.
27001 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27002 if [ "$gcc_subdir" = "" ]; then
27003 gcc_subdir="$subdir"
27006 case ",$enable_languages," in
27008 all_selected_languages="$all_selected_languages $lang_alias"
27009 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27010 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27021 . ${srcdir}/$gcc_subdir/config-lang.in
27022 if test "x$language" = x
27024 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27029 case ",$enable_languages," in
27030 *,$lang_alias,*) ;;
27032 for i in $subdir_requires; do
27033 test -f "${srcdir}/$i/config-lang.in" && continue
27041 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27042 if test -f $srcdir/$gcc_subdir/lang.opt; then
27043 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27044 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27046 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27047 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27049 all_languages="$all_languages $language"
27050 all_compilers="$all_compilers $compilers"
27051 all_outputs="$all_outputs $outputs"
27052 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27053 case ",$enable_languages," in
27056 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27065 # Pick up gtfiles for c
27067 . ${srcdir}/c-config-lang.in
27068 all_gtfiles="$all_gtfiles [c] $gtfiles"
27071 for language in $all_selected_languages
27073 check_languages="$check_languages check-$language"
27076 # We link each language in with a set of hooks, reached indirectly via
27077 # lang.${target}. Only do so for selected languages.
27081 target_list="all.cross start.encap rest.encap tags \
27082 install-common install-man install-info install-pdf install-html dvi \
27083 pdf html uninstall info man srcextra srcman srcinfo \
27084 mostlyclean clean distclean maintainer-clean install-plugin"
27086 for t in $target_list
27089 for lang in $all_selected_languages
27093 echo "lang.$t: $x" >> Make-hooks
27097 # Option include files
27100 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27101 option_includes="option-includes.mk"
27110 echo "dir ." > .gdbinit
27111 echo "dir ${srcdir}" >> .gdbinit
27112 if test x$gdb_needs_out_file_path = xyes
27114 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27116 if test "x$subdirs" != x; then
27119 echo "dir ${srcdir}/$s" >> .gdbinit
27122 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27124 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27128 # Find a directory in which to install a shared libgcc.
27130 # Check whether --enable-version-specific-runtime-libs was given.
27131 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27132 enableval=$enable_version_specific_runtime_libs;
27136 # Substitute configuration variables
27201 if test x${build} = x${host} ; then
27202 if test x${host} = x${target} ; then
27203 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27205 echo "Links are now set up to build a cross-compiler" 1>&2
27206 echo " from ${host} to ${target}." 1>&2
27209 if test x${host} = x${target} ; then
27210 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27211 echo " for ${target}." 1>&2
27213 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27214 echo " from ${host} to ${target}." 1>&2
27226 if test "x${CLOOGLIBS}" != "x" ; then
27228 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27232 # Check for plugin support
27233 # Check whether --enable-plugin was given.
27234 if test "${enable_plugin+set}" = set; then :
27235 enableval=$enable_plugin; enable_plugin=$enableval
27237 enable_plugin=yes; default_plugin=yes
27245 if test x$build = x$host; then
27246 export_sym_check="nm${exeext} -g"
27247 elif test x$host = x$target; then
27248 export_sym_check="$gcc_cv_nm -g"
27254 if test x$build = x$host; then
27255 export_sym_check="objdump${exeext} -T"
27256 elif test x$host = x$target; then
27257 export_sym_check="$gcc_cv_objdump -T"
27264 if test x"$enable_plugin" = x"yes"; then
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27267 $as_echo_n "checking for exported symbols... " >&6; }
27268 if test "x$export_sym_check" != x; then
27269 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27270 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27271 if $export_sym_check conftest | grep foobar > /dev/null; then
27272 : # No need to use a flag
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27274 $as_echo "yes" >&6; }
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27277 $as_echo "yes" >&6; }
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27279 $as_echo_n "checking for -rdynamic... " >&6; }
27280 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27281 if $export_sym_check conftest | grep foobar > /dev/null; then
27282 plugin_rdynamic=yes
27283 pluginlibs="-rdynamic"
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27289 $as_echo "$plugin_rdynamic" >&6; }
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27293 $as_echo "unable to check" >&6; }
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27299 $as_echo_n "checking for library containing dlopen... " >&6; }
27300 if test "${ac_cv_search_dlopen+set}" = set; then :
27301 $as_echo_n "(cached) " >&6
27303 ac_func_search_save_LIBS=$LIBS
27304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27305 /* end confdefs.h. */
27307 /* Override any GCC internal prototype to avoid an error.
27308 Use char because int might match the return type of a GCC
27309 builtin and then its argument prototype would still apply. */
27322 for ac_lib in '' dl; do
27323 if test -z "$ac_lib"; then
27324 ac_res="none required"
27327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27329 if ac_fn_c_try_link "$LINENO"; then :
27330 ac_cv_search_dlopen=$ac_res
27332 rm -f core conftest.err conftest.$ac_objext \
27334 if test "${ac_cv_search_dlopen+set}" = set; then :
27338 if test "${ac_cv_search_dlopen+set}" = set; then :
27341 ac_cv_search_dlopen=no
27343 rm conftest.$ac_ext
27344 LIBS=$ac_func_search_save_LIBS
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27347 $as_echo "$ac_cv_search_dlopen" >&6; }
27348 ac_res=$ac_cv_search_dlopen
27349 if test "$ac_res" != no; then :
27350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27354 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27355 pluginlibs="$pluginlibs -ldl"
27359 # Check that we can build shared objects with -fPIC -shared
27360 saved_LDFLAGS="$LDFLAGS"
27361 saved_CFLAGS="$CFLAGS"
27364 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27365 CFLAGS="$CFLAGS -fPIC"
27366 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27369 CFLAGS="$CFLAGS -fPIC"
27370 LDFLAGS="$LDFLAGS -fPIC -shared"
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27374 $as_echo_n "checking for -fPIC -shared... " >&6; }
27375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h. */
27386 if ac_fn_c_try_link "$LINENO"; then :
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27388 $as_echo "yes" >&6; }; have_pic_shared=yes
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27391 $as_echo "no" >&6; }; have_pic_shared=no
27393 rm -f core conftest.err conftest.$ac_objext \
27394 conftest$ac_exeext conftest.$ac_ext
27395 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27399 LDFLAGS="$saved_LDFLAGS"
27400 CFLAGS="$saved_CFLAGS"
27402 # If plugin support had been requested but not available, fail.
27403 if test x"$enable_plugin" = x"no" ; then
27404 if test x"$default_plugin" != x"yes"; then
27406 Building GCC with plugin support requires a host that supports
27407 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27414 if test x"$enable_plugin" = x"yes"; then
27416 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27421 # Check whether --enable-libquadmath-support was given.
27422 if test "${enable_libquadmath_support+set}" = set; then :
27423 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27425 ENABLE_LIBQUADMATH_SUPPORT=yes
27428 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27430 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27435 # Specify what hash style to use by default.
27437 # Check whether --with-linker-hash-style was given.
27438 if test "${with_linker_hash_style+set}" = set; then :
27439 withval=$with_linker_hash_style; case x"$withval" in
27441 LINKER_HASH_STYLE=sysv
27444 LINKER_HASH_STYLE=gnu
27447 LINKER_HASH_STYLE=both
27450 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27454 LINKER_HASH_STYLE=''
27457 if test x"${LINKER_HASH_STYLE}" != x; then
27459 cat >>confdefs.h <<_ACEOF
27460 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27465 # Configure the subdirectories
27466 # AC_CONFIG_SUBDIRS($subdirs)
27468 # Create the Makefile
27469 # and configure language subdirectories
27470 ac_config_files="$ac_config_files $all_outputs"
27473 ac_config_commands="$ac_config_commands default"
27475 cat >confcache <<\_ACEOF
27476 # This file is a shell script that caches the results of configure
27477 # tests run on this system so they can be shared between configure
27478 # scripts and configure runs, see configure's option --config-cache.
27479 # It is not useful on other systems. If it contains results you don't
27480 # want to keep, you may remove or edit it.
27482 # config.status only pays attention to the cache file if you give it
27483 # the --recheck option to rerun configure.
27485 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27487 # following values.
27491 # The following way of writing the cache mishandles newlines in values,
27492 # but we know of no workaround that is simple, portable, and efficient.
27493 # So, we kill variables containing newlines.
27494 # Ultrix sh set writes to stderr and can't be redirected directly,
27495 # and sets the high bit in the cache file unless we assign to the vars.
27497 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27498 eval ac_val=\$$ac_var
27502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27503 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27506 _ | IFS | as_nl) ;; #(
27507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27508 *) { eval $ac_var=; unset $ac_var;} ;;
27514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27515 *${as_nl}ac_space=\ *)
27516 # `set' does not quote correctly, so add quotes: double-quote
27517 # substitution turns \\\\ into \\, and sed turns \\ into \.
27520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27523 # `set' quotes correctly as required by POSIX, so do not add quotes.
27524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27538 if test -w "$cache_file"; then
27539 test "x$cache_file" != "x/dev/null" &&
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27541 $as_echo "$as_me: updating cache $cache_file" >&6;}
27542 cat confcache >$cache_file
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27545 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27551 # Let make expand exec_prefix.
27552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27554 DEFS=-DHAVE_CONFIG_H
27558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27559 # 1. Remove the extension, and $U if already installed.
27560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27561 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27563 # will be set to the directory where LIBOBJS objects are built.
27564 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27565 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27567 LIBOBJS=$ac_libobjs
27569 LTLIBOBJS=$ac_ltlibobjs
27574 : ${CONFIG_STATUS=./config.status}
27576 ac_clean_files_save=$ac_clean_files
27577 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27579 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27581 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27583 # Generated by $as_me.
27584 # Run this file to recreate the current configuration.
27585 # Compiler output produced by configure, useful for debugging
27586 # configure, is in config.log if it exists.
27589 ac_cs_recheck=false
27592 SHELL=\${CONFIG_SHELL-$SHELL}
27595 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27596 ## -------------------- ##
27597 ## M4sh Initialization. ##
27598 ## -------------------- ##
27600 # Be more Bourne compatible
27601 DUALCASE=1; export DUALCASE # for MKS sh
27602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27606 # is contrary to our usage. Disable this feature.
27607 alias -g '${1+"$@"}'='"$@"'
27608 setopt NO_GLOB_SUBST
27610 case `(set -o) 2>/dev/null` in #(
27622 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27623 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27626 # Prefer a ksh shell builtin over an external printf program on Solaris,
27627 # but without wasting forks for bash or zsh.
27628 if test -z "$BASH_VERSION$ZSH_VERSION" \
27629 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27630 as_echo='print -r --'
27631 as_echo_n='print -rn --'
27632 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27633 as_echo='printf %s\n'
27634 as_echo_n='printf %s'
27636 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27637 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27638 as_echo_n='/usr/ucb/echo -n'
27640 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27641 as_echo_n_body='eval
27645 expr "X$arg" : "X\\(.*\\)$as_nl";
27646 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27648 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27650 export as_echo_n_body
27651 as_echo_n='sh -c $as_echo_n_body as_echo'
27653 export as_echo_body
27654 as_echo='sh -c $as_echo_body as_echo'
27657 # The user is always right.
27658 if test "${PATH_SEPARATOR+set}" != set; then
27660 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27661 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27668 # We need space, tab and new line, in precisely that order. Quoting is
27669 # there to prevent editors from complaining about space-tab.
27670 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27671 # splitting by setting IFS to empty value.)
27674 # Find who we are. Look in the path if we contain no directory separator.
27676 *[\\/]* ) as_myself=$0 ;;
27677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27678 for as_dir in $PATH
27681 test -z "$as_dir" && as_dir=.
27682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27688 # We did not find ourselves, most probably we were run as `sh COMMAND'
27689 # in which case we are not to be found in the path.
27690 if test "x$as_myself" = x; then
27693 if test ! -f "$as_myself"; then
27694 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27698 # Unset variables that we do not need and which cause bugs (e.g. in
27699 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27700 # suppresses any "Segmentation fault" message there. '((' could
27701 # trigger a bug in pdksh 5.2.14.
27702 for as_var in BASH_ENV ENV MAIL MAILPATH
27703 do eval test x\${$as_var+set} = xset \
27704 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27720 # as_fn_error ERROR [LINENO LOG_FD]
27721 # ---------------------------------
27722 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27723 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27724 # script with status $?, using 1 if that was 0.
27727 as_status=$?; test $as_status -eq 0 && as_status=1
27729 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27730 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27732 $as_echo "$as_me: error: $1" >&2
27733 as_fn_exit $as_status
27737 # as_fn_set_status STATUS
27738 # -----------------------
27739 # Set $? to STATUS, without forking.
27740 as_fn_set_status ()
27743 } # as_fn_set_status
27745 # as_fn_exit STATUS
27746 # -----------------
27747 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27751 as_fn_set_status $1
27757 # Portably unset VAR.
27760 { eval $1=; unset $1;}
27762 as_unset=as_fn_unset
27763 # as_fn_append VAR VALUE
27764 # ----------------------
27765 # Append the text in VALUE to the end of the definition contained in VAR. Take
27766 # advantage of any shell optimizations that allow amortized linear growth over
27767 # repeated appends, instead of the typical quadratic growth present in naive
27769 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27770 eval 'as_fn_append ()
27781 # as_fn_arith ARG...
27782 # ------------------
27783 # Perform arithmetic evaluation on the ARGs, and store the result in the
27784 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27785 # must be portable across $(()) and expr.
27786 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27787 eval 'as_fn_arith ()
27794 as_val=`expr "$@" || test $? -eq 1`
27799 if expr a : '\(a\)' >/dev/null 2>&1 &&
27800 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27806 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27807 as_basename=basename
27812 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27818 as_me=`$as_basename -- "$0" ||
27819 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27820 X"$0" : 'X\(//\)$' \| \
27821 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27823 sed '/^.*\/\([^/][^/]*\)\/*$/{
27837 # Avoid depending upon Character Ranges.
27838 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27839 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27840 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27841 as_cr_digits='0123456789'
27842 as_cr_alnum=$as_cr_Letters$as_cr_digits
27844 ECHO_C= ECHO_N= ECHO_T=
27845 case `echo -n x` in #(((((
27847 case `echo 'xy\c'` in
27848 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27850 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27857 rm -f conf$$ conf$$.exe conf$$.file
27858 if test -d conf$$.dir; then
27859 rm -f conf$$.dir/conf$$.file
27862 mkdir conf$$.dir 2>/dev/null
27864 if (echo >conf$$.file) 2>/dev/null; then
27865 if ln -s conf$$.file conf$$ 2>/dev/null; then
27867 # ... but there are two gotchas:
27868 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27869 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27870 # In both cases, we have to default to `cp -p'.
27871 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27873 elif ln conf$$.file conf$$ 2>/dev/null; then
27881 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27882 rmdir conf$$.dir 2>/dev/null
27887 # Create "$as_dir" as a directory, including parents if necessary.
27892 -*) as_dir=./$as_dir;;
27894 test -d "$as_dir" || eval $as_mkdir_p || {
27898 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27899 *) as_qdir=$as_dir;;
27901 as_dirs="'$as_qdir' $as_dirs"
27902 as_dir=`$as_dirname -- "$as_dir" ||
27903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27904 X"$as_dir" : 'X\(//\)[^/]' \| \
27905 X"$as_dir" : 'X\(//\)$' \| \
27906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27907 $as_echo X"$as_dir" |
27908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27912 /^X\(\/\/\)[^/].*/{
27925 test -d "$as_dir" && break
27927 test -z "$as_dirs" || eval "mkdir $as_dirs"
27928 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27932 if mkdir -p . 2>/dev/null; then
27933 as_mkdir_p='mkdir -p "$as_dir"'
27935 test -d ./-p && rmdir ./-p
27939 if test -x / >/dev/null 2>&1; then
27940 as_test_x='test -x'
27942 if ls -dL / >/dev/null 2>&1; then
27949 if test -d "$1"; then
27955 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27956 ???[sx]*):;;*)false;;esac;fi
27960 as_executable_p=$as_test_x
27962 # Sed expression to map a string onto a valid CPP name.
27963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27965 # Sed expression to map a string onto a valid variable name.
27966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27970 ## ----------------------------------- ##
27971 ## Main body of $CONFIG_STATUS script. ##
27972 ## ----------------------------------- ##
27974 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27977 # Save the log message, to keep $0 and so on meaningful, and to
27978 # report actual input values of CONFIG_FILES etc. instead of their
27979 # values after options handling.
27981 This file was extended by $as_me, which was
27982 generated by GNU Autoconf 2.64. Invocation command line was
27984 CONFIG_FILES = $CONFIG_FILES
27985 CONFIG_HEADERS = $CONFIG_HEADERS
27986 CONFIG_LINKS = $CONFIG_LINKS
27987 CONFIG_COMMANDS = $CONFIG_COMMANDS
27990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27995 case $ac_config_files in *"
27996 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27999 case $ac_config_headers in *"
28000 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28005 # Files that config.status was made for.
28006 config_files="$ac_config_files"
28007 config_headers="$ac_config_headers"
28008 config_commands="$ac_config_commands"
28012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28014 \`$as_me' instantiates files and other configuration actions
28015 from templates according to the current configuration. Unless the files
28016 and actions are specified as TAGs, all are instantiated by default.
28018 Usage: $0 [OPTION]... [TAG]...
28020 -h, --help print this help, then exit
28021 -V, --version print version number and configuration settings, then exit
28022 -q, --quiet, --silent
28023 do not print progress messages
28024 -d, --debug don't remove temporary files
28025 --recheck update $as_me by reconfiguring in the same conditions
28026 --file=FILE[:TEMPLATE]
28027 instantiate the configuration file FILE
28028 --header=FILE[:TEMPLATE]
28029 instantiate the configuration header FILE
28031 Configuration files:
28034 Configuration headers:
28037 Configuration commands:
28040 Report bugs to the package provider."
28043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28046 configured by $0, generated by GNU Autoconf 2.64,
28047 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28049 Copyright (C) 2009 Free Software Foundation, Inc.
28050 This config.status script is free software; the Free Software Foundation
28051 gives unlimited permission to copy, distribute and modify it."
28056 test -n "\$AWK" || AWK=awk
28059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28060 # The default lists apply if the user does not specify any file.
28066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28078 # Handling of the options.
28079 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28081 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28082 $as_echo "$ac_cs_version"; exit ;;
28083 --debug | --debu | --deb | --de | --d | -d )
28085 --file | --fil | --fi | --f )
28088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28090 as_fn_append CONFIG_FILES " '$ac_optarg'"
28091 ac_need_defaults=false;;
28092 --header | --heade | --head | --hea )
28095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28097 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28098 ac_need_defaults=false;;
28100 # Conflict between --help and --header
28101 as_fn_error "ambiguous option: \`$1'
28102 Try \`$0 --help' for more information.";;
28103 --help | --hel | -h )
28104 $as_echo "$ac_cs_usage"; exit ;;
28105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28109 # This is an error.
28110 -*) as_fn_error "unrecognized option: \`$1'
28111 Try \`$0 --help' for more information." ;;
28113 *) as_fn_append ac_config_targets " $1"
28114 ac_need_defaults=false ;;
28120 ac_configure_extra_args=
28122 if $ac_cs_silent; then
28124 ac_configure_extra_args="$ac_configure_extra_args --silent"
28128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28129 if \$ac_cs_recheck; then
28130 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28133 CONFIG_SHELL='$SHELL'
28134 export CONFIG_SHELL
28139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28144 ## Running $as_me. ##
28150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28160 # Handling of arguments.
28161 for ac_config_target in $ac_config_targets
28163 case $ac_config_target in
28164 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28165 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28166 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28167 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28168 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28169 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28171 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28176 # If the user did not use the arguments to specify the items to instantiate,
28177 # then the envvar interface is used. Set only those that are not.
28178 # We use the long form for the default assignment because of an extremely
28179 # bizarre bug on SunOS 4.1.3.
28180 if $ac_need_defaults; then
28181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28183 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28186 # Have a temporary directory for convenience. Make it in the build tree
28187 # simply because there is no reason against having it here, and in addition,
28188 # creating and moving files from /tmp can sometimes cause problems.
28189 # Hook for its removal unless debugging.
28190 # Note that there is a small window in which the directory will not be cleaned:
28191 # after its creation but before its name has been assigned to `$tmp'.
28195 trap 'exit_status=$?
28196 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28198 trap 'as_fn_exit 1' 1 2 13 15
28200 # Create a (secure) tmp directory for tmp files.
28203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28204 test -n "$tmp" && test -d "$tmp"
28207 tmp=./conf$$-$RANDOM
28208 (umask 077 && mkdir "$tmp")
28209 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28211 # Set up the scripts for CONFIG_FILES section.
28212 # No need to generate them if there are no CONFIG_FILES.
28213 # This happens for instance with `./config.status config.h'.
28214 if test -n "$CONFIG_FILES"; then
28216 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28217 ac_cs_awk_getline=:
28218 ac_cs_awk_pipe_init=
28219 ac_cs_awk_read_file='
28220 while ((getline aline < (F[key])) > 0)
28223 ac_cs_awk_pipe_fini=
28225 ac_cs_awk_getline=false
28226 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28227 ac_cs_awk_read_file='
28229 print "cat " F[key] " &&"
28230 '$ac_cs_awk_pipe_init
28231 # The final `:' finishes the AND list.
28232 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28234 ac_cr=`echo X | tr X '\015'`
28235 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28236 # But we know of no other shell where ac_cr would be empty at this
28237 # point, so we can use a bashism as a fallback.
28238 if test "x$ac_cr" = x; then
28239 eval ac_cr=\$\'\\r\'
28241 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28242 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28245 ac_cs_awk_cr=$ac_cr
28248 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28251 # Create commands to substitute file output variables.
28253 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28254 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28255 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28258 } >conf$$files.sh &&
28259 . ./conf$$files.sh ||
28260 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28261 rm -f conf$$files.sh
28264 echo "cat >conf$$subs.awk <<_ACEOF" &&
28265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28267 } >conf$$subs.sh ||
28268 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28269 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28271 for ac_last_try in false false false false false :; do
28272 . ./conf$$subs.sh ||
28273 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28276 if test $ac_delim_n = $ac_delim_num; then
28278 elif $ac_last_try; then
28279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28284 rm -f conf$$subs.sh
28286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28287 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28291 s/^/S["/; s/!.*/"]=/
28301 s/\(.\{148\}\).*/\1/
28303 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28315 s/\(.\{148\}\).*/\1/
28317 s/["\\]/\\&/g; s/^/"/; s/$/"/
28321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28326 ' <conf$$subs.awk | sed '
28331 ' >>$CONFIG_STATUS || ac_write_fail=1
28332 rm -f conf$$subs.awk
28333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28335 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28336 for (key in S) S_is_set[key] = 1
28338 \$ac_cs_awk_pipe_init
28342 nfields = split(line, field, "@")
28344 len = length(field[1])
28345 for (i = 2; i < nfields; i++) {
28347 keylen = length(key)
28348 if (S_is_set[key]) {
28350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28351 len += length(value) + length(field[++i])
28356 if (nfields == 3 && !substed) {
28358 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28359 \$ac_cs_awk_read_file
28365 \$ac_cs_awk_pipe_fini
28368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28369 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28370 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28373 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28374 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28379 # trailing colons and then remove the whole line if VPATH becomes empty
28380 # (actually we leave an empty line to preserve line numbers).
28381 if test "x$srcdir" = x.; then
28382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28383 s/:*\$(srcdir):*/:/
28384 s/:*\${srcdir}:*/:/
28386 s/^\([^=]*=[ ]*\):*/\1/
28392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28393 fi # test -n "$CONFIG_FILES"
28395 # Set up the scripts for CONFIG_HEADERS section.
28396 # No need to generate them if there are no CONFIG_HEADERS.
28397 # This happens for instance with `./config.status Makefile'.
28398 if test -n "$CONFIG_HEADERS"; then
28399 cat >"$tmp/defines.awk" <<\_ACAWK ||
28403 # Transform confdefs.h into an awk script `defines.awk', embedded as
28404 # here-document in config.status, that substitutes the proper values into
28405 # config.h.in to produce config.h.
28407 # Create a delimiter string that does not exist in confdefs.h, to ease
28408 # handling of long lines.
28410 for ac_last_try in false false :; do
28411 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28412 if test -z "$ac_t"; then
28414 elif $ac_last_try; then
28415 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28421 # For the awk script, D is an array of macro values keyed by name,
28422 # likewise P contains macro parameters if any. Preserve backslash
28423 # newline sequences.
28425 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28427 s/.\{148\}/&'"$ac_delim"'/g
28430 s/^[ ]*#[ ]*define[ ][ ]*/ /
28437 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28444 D["\1"]=" \3\\\\\\n"\\/p
28446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28451 s/.\{148\}/&'"$ac_delim"'/g
28456 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28459 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28461 ' <confdefs.h | sed '
28462 s/'"$ac_delim"'/"\\\
28463 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28466 for (key in D) D_is_set[key] = 1
28469 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28471 split(line, arg, " ")
28472 if (arg[1] == "#") {
28476 defundef = substr(arg[1], 2)
28479 split(mac1, mac2, "(") #)
28481 prefix = substr(line, 1, index(line, defundef) - 1)
28482 if (D_is_set[macro]) {
28483 # Preserve the white space surrounding the "#".
28484 print prefix "define", macro P[macro] D[macro]
28487 # Replace #undef with comments. This is necessary, for example,
28488 # in the case of _POSIX_SOURCE, which is predefined and required
28489 # on some systems where configure will not decide to define it.
28490 if (defundef == "undef") {
28491 print "/*", prefix defundef, macro, "*/"
28499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28500 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28501 fi # test -n "$CONFIG_HEADERS"
28504 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28509 :[FHLC]) ac_mode=$ac_tag; continue;;
28511 case $ac_mode$ac_tag in
28513 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28514 :[FH]-) ac_tag=-:-;;
28515 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28532 -) ac_f="$tmp/stdin";;
28533 *) # Look for the file first in the build tree, then in the source tree
28534 # (if the path is not absolute). The absolute path cannot be DOS-style,
28535 # because $ac_f cannot contain `:'.
28539 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28541 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28543 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28544 as_fn_append ac_file_inputs " '$ac_f'"
28547 # Let's still pretend it is `configure' which instantiates (i.e., don't
28548 # use $as_me), people would be surprised to read:
28549 # /* config.h. Generated by config.status. */
28550 configure_input='Generated from '`
28551 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28553 if test x"$ac_file" != x-; then
28554 configure_input="$ac_file. $configure_input"
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28556 $as_echo "$as_me: creating $ac_file" >&6;}
28558 # Neutralize special characters interpreted by sed in replacement strings.
28559 case $configure_input in #(
28560 *\&* | *\|* | *\\* )
28561 ac_sed_conf_input=`$as_echo "$configure_input" |
28562 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28563 *) ac_sed_conf_input=$configure_input;;
28567 *:-:* | *:-) cat >"$tmp/stdin" \
28568 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28573 ac_dir=`$as_dirname -- "$ac_file" ||
28574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28575 X"$ac_file" : 'X\(//\)[^/]' \| \
28576 X"$ac_file" : 'X\(//\)$' \| \
28577 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28578 $as_echo X"$ac_file" |
28579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28583 /^X\(\/\/\)[^/].*/{
28596 as_dir="$ac_dir"; as_fn_mkdir_p
28600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28603 # A ".." for each directory in $ac_dir_suffix.
28604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28605 case $ac_top_builddir_sub in
28606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28610 ac_abs_top_builddir=$ac_pwd
28611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28612 # for backward compatibility:
28613 ac_top_builddir=$ac_top_build_prefix
28616 .) # We are building in place.
28618 ac_top_srcdir=$ac_top_builddir_sub
28619 ac_abs_top_srcdir=$ac_pwd ;;
28620 [\\/]* | ?:[\\/]* ) # Absolute name.
28621 ac_srcdir=$srcdir$ac_dir_suffix;
28622 ac_top_srcdir=$srcdir
28623 ac_abs_top_srcdir=$srcdir ;;
28624 *) # Relative name.
28625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28626 ac_top_srcdir=$ac_top_build_prefix$srcdir
28627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28641 # If the template does not know about datarootdir, expand it.
28642 # FIXME: This hack should be removed a few years after 2.60.
28643 ac_datarootdir_hack=; ac_datarootdir_seen=
28654 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28655 *datarootdir*) ac_datarootdir_seen=yes;;
28656 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28658 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28661 ac_datarootdir_hack='
28662 s&@datadir@&$datadir&g
28663 s&@docdir@&$docdir&g
28664 s&@infodir@&$infodir&g
28665 s&@localedir@&$localedir&g
28666 s&@mandir@&$mandir&g
28667 s&\\\${datarootdir}&$datarootdir&g' ;;
28671 # Neutralize VPATH when `$srcdir' = `.'.
28672 # Shell code in configure.ac might set extrasub.
28673 # FIXME: do we really want to maintain this feature?
28674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28675 ac_sed_extra="$ac_vpsub
28678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28681 s|@configure_input@|$ac_sed_conf_input|;t t
28682 s&@top_builddir@&$ac_top_builddir_sub&;t t
28683 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28684 s&@srcdir@&$ac_srcdir&;t t
28685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28686 s&@top_srcdir@&$ac_top_srcdir&;t t
28687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28688 s&@builddir@&$ac_builddir&;t t
28689 s&@abs_builddir@&$ac_abs_builddir&;t t
28690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28691 $ac_datarootdir_hack
28693 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28694 if $ac_cs_awk_getline; then
28695 $AWK -f "$tmp/subs.awk"
28697 $AWK -f "$tmp/subs.awk" | $SHELL
28699 || as_fn_error "could not create $ac_file" "$LINENO" 5
28701 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28702 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28703 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28705 which seems to be undefined. Please make sure it is defined." >&5
28706 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28707 which seems to be undefined. Please make sure it is defined." >&2;}
28711 -) cat "$tmp/out" && rm -f "$tmp/out";;
28712 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28714 || as_fn_error "could not create $ac_file" "$LINENO" 5
28720 if test x"$ac_file" != x-; then
28722 $as_echo "/* $configure_input */" \
28723 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28724 } >"$tmp/config.h" \
28725 || as_fn_error "could not create $ac_file" "$LINENO" 5
28726 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28728 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28731 mv "$tmp/config.h" "$ac_file" \
28732 || as_fn_error "could not create $ac_file" "$LINENO" 5
28735 $as_echo "/* $configure_input */" \
28736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28737 || as_fn_error "could not create -" "$LINENO" 5
28741 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28742 $as_echo "$as_me: executing $ac_file commands" >&6;}
28747 case $ac_file$ac_mode in
28748 "as":F) chmod +x as ;;
28749 "collect-ld":F) chmod +x collect-ld ;;
28750 "nm":F) chmod +x nm ;;
28752 case ${CONFIG_HEADERS} in
28753 *auto-host.h:config.in*)
28756 # Make sure all the subdirs exist.
28757 for d in $subdirs doc build common c-family
28759 test -d $d || mkdir $d
28769 ac_clean_files=$ac_clean_files_save
28771 test $ac_write_fail = 0 ||
28772 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28775 # configure is writing to config.log, and then calls config.status.
28776 # config.status does its own redirection, appending to config.log.
28777 # Unfortunately, on DOS this fails, as config.log is still kept open
28778 # by configure, so config.status won't be able to write to it; its
28779 # output is simply discarded. So we exec the FD to /dev/null,
28780 # effectively closing config.log, so it can be properly (re)opened and
28781 # appended to by config.status. When coming back to configure, we
28782 # need to make the FD available again.
28783 if test "$no_create" != yes; then
28785 ac_config_status_args=
28786 test "$silent" = yes &&
28787 ac_config_status_args="$ac_config_status_args --quiet"
28789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28792 # would make configure fail if this is the last instruction.
28793 $ac_cs_success || as_fn_exit $?
28795 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28797 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}