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
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 ORIGINAL_AS_FOR_TARGET
726 NATIVE_SYSTEM_HEADER_DIR
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
762 SYSROOT_CFLAGS_FOR_TARGET
767 ENABLE_BUILD_WITH_CXX
770 valgrind_path_defines
843 program_transform_name
854 ac_subst_files='option_includes
857 enable_option_checking
862 enable_generated_files_in_srcdir
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
884 with_native_system_header_dir
894 enable_initfini_array
895 enable_sjlj_exceptions
897 enable_leading_mingw64_underscores
900 enable_win32_registry
906 enable_gnu_indirect_function
908 enable_gnu_unique_object
909 enable_linker_build_id
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
916 enable_libquadmath_support
917 with_linker_hash_style
919 ac_precious_vars='build_alias
940 # Initialize some variables set by options.
942 ac_init_version=false
943 ac_unrecognized_opts=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
954 program_transform_name=s,x,x,
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1030 -datadir | --datadir | --datadi | --datad)
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_$ac_useropt"
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1056 eval enable_$ac_useropt=no ;;
1058 -docdir | --docdir | --docdi | --doc | --do)
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1246 -site=* | --site=* | --sit=*)
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1286 eval with_$ac_useropt=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1302 eval with_$ac_useropt=no ;;
1305 # Obsolete; use --with-x.
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) as_fn_error "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information."
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error "missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error "pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 --target=TARGET configure for building compilers for TARGET [HOST]
1548 if test -n "$ac_init_help"; then
1553 --disable-option-checking ignore unrecognized --enable/--with options
1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --enable-generated-files-in-srcdir
1557 put copies of generated files in source dir intended
1558 for creating source tarballs for users without
1559 texinfo bison or flex
1560 --disable-largefile omit support for large files
1561 --enable-werror-always enable -Werror despite compiler version
1562 --enable-checking[=LIST]
1563 enable expensive run-time checks. With LIST, enable
1564 only specific categories of checks. Categories are:
1565 yes,no,all,none,release. Flags are:
1566 assert,df,fold,gc,gcac,gimple,misc,
1567 rtlflag,rtl,runtime,tree,valgrind,types
1568 --enable-coverage[=LEVEL]
1569 enable compiler's code coverage collection. Use to
1570 measure compiler performance and locate unused parts
1571 of the compiler. With LEVEL, specify optimization.
1572 Values are opt, noopt, default is noopt
1573 --enable-gather-detailed-mem-stats
1574 enable detailed memory allocation stats gathering
1575 --enable-build-with-cxx build with C++ compiler instead of C compiler
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid'
1580 or 'dpd' choses which decimal floating point format
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1585 --enable-tls enable or disable generation of tls code overriding
1586 the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with the
1588 GNU Objective-C runtime
1589 --disable-shared don't provide a shared libgcc
1590 --enable-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-initfini-array use .init_array/.fini_array sections
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1601 --disable-win32-registry
1602 disable lookup of installation paths in the Registry
1604 --enable-win32-registry enable registry lookup (default)
1605 --enable-win32-registry=KEY
1606 use KEY instead of GCC version as the last portion
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-fast-install[=PKGS]
1611 optimize for fast installation [default=yes]
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1613 --enable-gnu-indirect-function
1614 enable the use of the @gnu_indirect_function to
1616 --enable-comdat enable COMDAT group support
1617 --enable-gnu-unique-object
1618 enable the use of the @gnu_unique_object ELF
1619 extension on glibc systems
1620 --enable-linker-build-id
1621 compiler will always pass --build-id to linker
1622 --enable-maintainer-mode
1623 enable make rules and dependencies not useful (and
1624 sometimes confusing) to the casual installer
1625 --enable-version-specific-runtime-libs
1626 specify that runtime libraries should be installed
1627 in a compiler-specific directory
1628 --enable-plugin enable plugin support
1629 --disable-libquadmath-support
1630 disable libquadmath support for Fortran
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-build-libsubdir=DIR Directory where to find libraries for build system
1636 --with-local-prefix=DIR specifies directory to put local include
1637 --with-gxx-include-dir=DIR
1638 specifies directory to put g++ header files
1639 --with-cpp-install-dir=DIR
1640 install the user visible C preprocessor in DIR
1641 (relative to PREFIX) as well as PREFIX/bin
1642 --with-gnu-ld arrange to work with GNU ld
1643 --with-ld arrange to use the specified ld (full pathname)
1644 --with-demangler-in-ld try to use demangler in GNU ld
1645 --with-gnu-as arrange to work with GNU as
1646 --with-as arrange to use the specified as (full pathname)
1647 --with-stabs arrange to use stabs instead of host debug format
1648 --with-dwarf2 force the default debug format to be DWARF 2
1649 --with-native-system-header-dir=dir
1650 use dir as the directory to look for standard
1651 system header files in. Defaults to /usr/include.
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1662 --with-pic try to use only PIC/non-PIC objects [default=use
1664 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1665 --with-plugin-ld=[ARG] specify the plugin linker
1666 --with-long-double-128 use 128-bit long double by default
1667 --with-gc={page,zone} choose the garbage collection mechanism to use with
1669 --with-system-zlib use installed libz
1670 --with-linker-hash-style={sysv,gnu,both}
1671 specify the linker hash style
1673 Some influential environment variables:
1674 CC C compiler command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1677 nonstandard directory <lib dir>
1678 LIBS libraries to pass to the linker, e.g. -l<library>
1679 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1680 you have headers in a nonstandard directory <include dir>
1681 CXX C++ compiler command
1682 CXXFLAGS C++ compiler flags
1684 CXXCPP C++ preprocessor
1685 GMPLIBS How to link GMP
1686 GMPINC How to find GMP include files
1687 PPLLIBS How to link PPL
1688 PPLINC How to find PPL include files
1689 CLOOGLIBS How to link CLOOG
1690 CLOOGINC How to find CLOOG include files
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1695 Report bugs to the package provider.
1700 if test "$ac_init_help" = "recursive"; then
1701 # If there are subdirs, report their specific --help.
1702 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1703 test -d "$ac_dir" ||
1704 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1712 # A ".." for each directory in $ac_dir_suffix.
1713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1714 case $ac_top_builddir_sub in
1715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 ac_abs_top_builddir=$ac_pwd
1720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1721 # for backward compatibility:
1722 ac_top_builddir=$ac_top_build_prefix
1725 .) # We are building in place.
1727 ac_top_srcdir=$ac_top_builddir_sub
1728 ac_abs_top_srcdir=$ac_pwd ;;
1729 [\\/]* | ?:[\\/]* ) # Absolute name.
1730 ac_srcdir=$srcdir$ac_dir_suffix;
1731 ac_top_srcdir=$srcdir
1732 ac_abs_top_srcdir=$srcdir ;;
1734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1735 ac_top_srcdir=$ac_top_build_prefix$srcdir
1736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740 cd "$ac_dir" || { ac_status=$?; continue; }
1741 # Check for guested configure.
1742 if test -f "$ac_srcdir/configure.gnu"; then
1744 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1745 elif test -f "$ac_srcdir/configure"; then
1747 $SHELL "$ac_srcdir/configure" --help=recursive
1749 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751 cd "$ac_pwd" || { ac_status=$?; break; }
1755 test -n "$ac_init_help" && exit $ac_status
1756 if $ac_init_version; then
1759 generated by GNU Autoconf 2.64
1761 Copyright (C) 2009 Free Software Foundation, Inc.
1762 This configure script is free software; the Free Software Foundation
1763 gives unlimited permission to copy, distribute and modify it.
1768 ## ------------------------ ##
1769 ## Autoconf initialization. ##
1770 ## ------------------------ ##
1772 # ac_fn_c_try_compile LINENO
1773 # --------------------------
1774 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext
1779 if { { ac_try="$ac_compile"
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_compile") 2>conftest.err
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest.$ac_objext; then :
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 } # ac_fn_c_try_compile
1810 # ac_fn_cxx_try_compile LINENO
1811 # ----------------------------
1812 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_cxx_try_compile ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 rm -f conftest.$ac_objext
1817 if { { ac_try="$ac_compile"
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_compile") 2>conftest.err
1826 if test -s conftest.err; then
1827 grep -v '^ *+' conftest.err >conftest.er1
1828 cat conftest.er1 >&5
1829 mv -f conftest.er1 conftest.err
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && {
1833 test -z "$ac_cxx_werror_flag" ||
1834 test ! -s conftest.err
1835 } && test -s conftest.$ac_objext; then :
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 } # ac_fn_cxx_try_compile
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } >/dev/null && {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1890 ac_fn_c_check_header_mongrel ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1914 ac_header_compiler=no
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1930 ac_header_preproc=no
1932 rm -f conftest.err conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1962 eval "$3=\$ac_header_compiler"
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 } # ac_fn_c_check_header_mongrel
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=$ac_status
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2031 if ac_fn_c_try_compile "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_c_check_header_compile
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 ac_fn_c_compute_int ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) < 0)];
2110 if ac_fn_c_try_compile "$LINENO"; then :
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=$ac_mid; break
2129 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130 if test $ac_mid -le $ac_hi; then
2134 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 if ac_fn_c_try_compile "$LINENO"; then :
2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2183 FILE *f = fopen ("conftest.val", "w");
2188 long int i = longval ();
2191 fprintf (f, "%ld", i);
2195 unsigned long int i = ulongval ();
2198 fprintf (f, "%lu", i);
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2208 if ac_fn_c_try_run "$LINENO"; then :
2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 } # ac_fn_c_compute_int
2223 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2224 # -------------------------------------------
2225 # Tests whether TYPE exists after having included INCLUDES, setting cache
2226 # variable VAR accordingly.
2227 ac_fn_c_check_type ()
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231 $as_echo_n "checking for $2... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2261 if ac_fn_c_try_compile "$LINENO"; then :
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275 } # ac_fn_c_check_type
2277 # ac_fn_c_find_intX_t LINENO BITS VAR
2278 # -----------------------------------
2279 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 ac_fn_c_find_intX_t ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2285 $as_echo_n "checking for int$2_t... " >&6; }
2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2290 for ac_type in int$2_t 'int' 'long int' \
2291 'long long int' 'short int' 'signed char'; do
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2298 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $ac_includes_default
2312 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2313 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2320 if ac_fn_c_try_compile "$LINENO"; then :
2327 eval "$3=\$ac_type" ;;
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 if test "x$as_val" = x""no; then :
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346 } # ac_fn_c_find_intX_t
2348 # ac_fn_c_try_link LINENO
2349 # -----------------------
2350 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 rm -f conftest.$ac_objext conftest$ac_exeext
2355 if { { ac_try="$ac_link"
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2361 $as_echo "$ac_try_echo"; } >&5
2362 (eval "$ac_link") 2>conftest.err
2364 if test -s conftest.err; then
2365 grep -v '^ *+' conftest.err >conftest.er1
2366 cat conftest.er1 >&5
2367 mv -f conftest.er1 conftest.err
2369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370 test $ac_status = 0; } && {
2371 test -z "$ac_c_werror_flag" ||
2372 test ! -s conftest.err
2373 } && test -s conftest$ac_exeext && {
2374 test "$cross_compiling" = yes ||
2375 $as_test_x conftest$ac_exeext
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2385 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2386 # interfere with the next link command; also delete a directory that is
2387 # left behind by Apple's compiler. We do this before executing the actions.
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 } # ac_fn_c_try_link
2394 # ac_fn_c_find_uintX_t LINENO BITS VAR
2395 # ------------------------------------
2396 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 ac_fn_c_find_uintX_t ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2402 $as_echo_n "checking for uint$2_t... " >&6; }
2403 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2404 $as_echo_n "(cached) " >&6
2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 $ac_includes_default
2415 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2422 if ac_fn_c_try_compile "$LINENO"; then :
2427 eval "$3=\$ac_type" ;;
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 if test "x$as_val" = x""no; then :
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444 } # ac_fn_c_find_uintX_t
2446 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2447 # ----------------------------------------------
2448 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2449 ac_fn_c_check_header_preproc ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2461 if ac_fn_c_try_cpp "$LINENO"; then :
2466 rm -f conftest.err conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473 } # ac_fn_c_check_header_preproc
2475 # ac_fn_cxx_try_cpp LINENO
2476 # ------------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_cxx_try_cpp ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490 if test -s conftest.err; then
2491 grep -v '^ *+' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2493 mv -f conftest.er1 conftest.err
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } >/dev/null && {
2497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2502 $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510 } # ac_fn_cxx_try_cpp
2512 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2513 # ------------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_cxx_check_header_preproc ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2527 if ac_fn_cxx_try_cpp "$LINENO"; then :
2532 rm -f conftest.err conftest.$ac_ext
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539 } # ac_fn_cxx_check_header_preproc
2541 # ac_fn_c_check_func LINENO FUNC VAR
2542 # ----------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_c_check_func ()
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2564 # include <limits.h>
2566 # include <assert.h>
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2593 if ac_fn_c_try_link "$LINENO"; then :
2598 rm -f core conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606 } # ac_fn_c_check_func
2608 # ac_fn_cxx_try_link LINENO
2609 # -------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded.
2611 ac_fn_cxx_try_link ()
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 rm -f conftest.$ac_objext conftest$ac_exeext
2615 if { { ac_try="$ac_link"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>conftest.err
2624 if test -s conftest.err; then
2625 grep -v '^ *+' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2627 mv -f conftest.er1 conftest.err
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; } && {
2631 test -z "$ac_cxx_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest$ac_exeext && {
2634 test "$cross_compiling" = yes ||
2635 $as_test_x conftest$ac_exeext
2639 $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2646 # interfere with the next link command; also delete a directory that is
2647 # left behind by Apple's compiler. We do this before executing the actions.
2648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 } # ac_fn_cxx_try_link
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.64. Invocation command line was
2670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2674 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_must_keep_next=false
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 -* ) ac_must_keep_next=true ;;
2750 as_fn_append ac_configure_args " '$ac_arg'"
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2769 ## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##
2774 # The following way of writing the cache mishandles newlines in values,
2776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2777 eval ac_val=\$$ac_var
2781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2807 ## ----------------- ##
2808 ## Output variables. ##
2809 ## ----------------- ##
2812 for ac_var in $ac_subst_vars
2814 eval ac_val=\$$ac_var
2816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 $as_echo "$ac_var='\''$ac_val'\''"
2822 if test -n "$ac_subst_files"; then
2824 ## ------------------- ##
2825 ## File substitutions. ##
2826 ## ------------------- ##
2829 for ac_var in $ac_subst_files
2831 eval ac_val=\$$ac_var
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 $as_echo "$ac_var='\''$ac_val'\''"
2840 if test -s confdefs.h; then
2850 test "$ac_signal" != 0 &&
2851 $as_echo "$as_me: caught signal $ac_signal"
2852 $as_echo "$as_me: exit $exit_status"
2854 rm -f core *.core core.conftest.* &&
2855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 for ac_signal in 1 2 13 15; do
2859 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2864 rm -f -r conftest* confdefs.h
2866 $as_echo "/* confdefs.h */" > confdefs.h
2868 # Predefined preprocessor variables.
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_URL "$PACKAGE_URL"
2895 # Let the site file select an alternate cache file if it wants to.
2896 # Prefer an explicitly selected file to automatically selected ones.
2899 if test -n "$CONFIG_SITE"; then
2900 ac_site_file1=$CONFIG_SITE
2901 elif test "x$prefix" != xNONE; then
2902 ac_site_file1=$prefix/share/config.site
2903 ac_site_file2=$prefix/etc/config.site
2905 ac_site_file1=$ac_default_prefix/share/config.site
2906 ac_site_file2=$ac_default_prefix/etc/config.site
2908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 test "x$ac_site_file" = xNONE && continue
2911 if test -r "$ac_site_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2914 sed 's/^/| /' "$ac_site_file" >&5
2919 if test -r "$cache_file"; then
2920 # Some versions of bash will fail to source /dev/null (special
2921 # files actually), so we avoid doing that.
2922 if test -f "$cache_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2924 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2927 *) . "./$cache_file";;
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2932 $as_echo "$as_me: creating cache $cache_file" >&6;}
2936 # Check that the precious variables saved in the cache have kept the same
2938 ac_cache_corrupted=false
2939 for ac_var in $ac_precious_vars; do
2940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2941 eval ac_new_set=\$ac_env_${ac_var}_set
2942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2943 eval ac_new_val=\$ac_env_${ac_var}_value
2944 case $ac_old_set,$ac_new_set in
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2948 ac_cache_corrupted=: ;;
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2955 if test "x$ac_old_val" != "x$ac_new_val"; then
2956 # differences in whitespace do not lead to failure.
2957 ac_old_val_w=`echo x $ac_old_val`
2958 ac_new_val_w=`echo x $ac_new_val`
2959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2962 ac_cache_corrupted=:
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2966 eval $ac_var=\$ac_old_val
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 # Pass precious variables to config.status.
2975 if test "$ac_new_set" = set; then
2977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2978 *) ac_arg=$ac_var=$ac_new_val ;;
2980 case " $ac_configure_args " in
2981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2982 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2986 if $ac_cache_corrupted; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2990 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2991 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 ## -------------------- ##
2994 ## Main body of script. ##
2995 ## -------------------- ##
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011 gcc_version=`cat $srcdir/BASE-VER`
3013 # Determine the host, build, and target systems
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 for ac_t in install-sh install.sh shtool; do
3017 if test -f "$ac_dir/$ac_t"; then
3019 ac_install_sh="$ac_aux_dir/$ac_t -c"
3024 if test -z "$ac_aux_dir"; then
3025 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 # These three variables are undocumented and unsupported,
3029 # and are intended to be withdrawn in a future Autoconf release.
3030 # They can cause serious problems if a builder's source tree is in a directory
3031 # whose full name contains unusual characters.
3032 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3033 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3034 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3037 # Make sure we can run config.sub.
3038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3039 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3042 $as_echo_n "checking build system type... " >&6; }
3043 if test "${ac_cv_build+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 ac_build_alias=$build_alias
3047 test "x$ac_build_alias" = x &&
3048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3049 test "x$ac_build_alias" = x &&
3050 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3052 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3056 $as_echo "$ac_cv_build" >&6; }
3057 case $ac_cv_build in
3059 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 ac_save_IFS=$IFS; IFS='-'
3068 # Remember, the first character of IFS is used to create $*,
3069 # except with old shells:
3072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3076 $as_echo_n "checking host system type... " >&6; }
3077 if test "${ac_cv_host+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test "x$host_alias" = x; then
3081 ac_cv_host=$ac_cv_build
3083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3084 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3089 $as_echo "$ac_cv_host" >&6; }
3092 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 ac_save_IFS=$IFS; IFS='-'
3101 # Remember, the first character of IFS is used to create $*,
3102 # except with old shells:
3105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3109 $as_echo_n "checking target system type... " >&6; }
3110 if test "${ac_cv_target+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3113 if test "x$target_alias" = x; then
3114 ac_cv_target=$ac_cv_host
3116 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3122 $as_echo "$ac_cv_target" >&6; }
3123 case $ac_cv_target in
3125 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 target=$ac_cv_target
3128 ac_save_IFS=$IFS; IFS='-'
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3138 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3141 # The aliases save the names the user supplied, while $host etc.
3142 # will get canonicalized.
3143 test -n "$target_alias" &&
3144 test "$program_prefix$program_suffix$program_transform_name" = \
3146 program_prefix=${target_alias}-
3148 # Determine the noncanonical target name, for directory use.
3149 case ${build_alias} in
3150 "") build_noncanonical=${build} ;;
3151 *) build_noncanonical=${build_alias} ;;
3154 case ${host_alias} in
3155 "") host_noncanonical=${build_noncanonical} ;;
3156 *) host_noncanonical=${host_alias} ;;
3159 case ${target_alias} in
3160 "") target_noncanonical=${host_noncanonical} ;;
3161 *) target_noncanonical=${target_alias} ;;
3167 # Determine the target- and build-specific subdirectories
3169 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3170 # have matching libraries, they should use host libraries: Makefile.tpl
3171 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3172 # However, they still use the build modules, because the corresponding
3173 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # - build_subdir is where we find build modules, and never changes.
3176 # - build_libsubdir is where we find build libraries, and can be overridden.
3178 # Prefix 'build-' so this never conflicts with target_subdir.
3179 build_subdir="build-${build_noncanonical}"
3181 # Check whether --with-build-libsubdir was given.
3182 if test "${with_build_libsubdir+set}" = set; then :
3183 withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 build_libsubdir="$build_subdir"
3188 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3189 if ( test $srcdir = . && test -d gcc ) \
3190 || test -d $srcdir/../host-${host_noncanonical}; then
3191 host_subdir="host-${host_noncanonical}"
3196 target_subdir=${target_noncanonical}
3199 # Set program_transform_name
3200 test "$program_prefix" != NONE &&
3201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3202 # Use a double $ so make ignores it.
3203 test "$program_suffix" != NONE &&
3204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3205 # Double any \ or $.
3206 # By default was `s,x,x', remove it if useless.
3207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211 # Check for bogus environment variables.
3212 # Test if LIBRARY_PATH contains the notation for the current directory
3213 # since this would lead to problems installing/building glibc.
3214 # LIBRARY_PATH contains the current directory if one of the following
3216 # - one of the terminals (":" and ";") is the first or last sign
3217 # - two terminals occur directly after each other
3218 # - the path contains an element with a dot in it
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3220 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3221 case ${LIBRARY_PATH} in
3222 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3223 library_path_setting="contains current directory"
3226 library_path_setting="ok"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3230 $as_echo "$library_path_setting" >&6; }
3231 if test "$library_path_setting" != "ok"; then
3233 *** LIBRARY_PATH shouldn't contain the current directory when
3234 *** building gcc. Please change the environment variable
3235 *** and run configure again." "$LINENO" 5
3238 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3239 # since this would lead to problems installing/building glibc.
3240 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # - one of the terminals (":" and ";") is the first or last sign
3243 # - two terminals occur directly after each other
3244 # - the path contains an element with a dot in it
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3246 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3247 case ${GCC_EXEC_PREFIX} in
3248 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3249 gcc_exec_prefix_setting="contains current directory"
3252 gcc_exec_prefix_setting="ok"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3256 $as_echo "$gcc_exec_prefix_setting" >&6; }
3257 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3260 *** building gcc. Please change the environment variable
3261 *** and run configure again." "$LINENO" 5
3268 # Specify the local prefix
3271 # Check whether --with-local-prefix was given.
3272 if test "${with_local_prefix+set}" = set; then :
3273 withval=$with_local_prefix; case "${withval}" in
3274 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 *) local_prefix=$with_local_prefix ;;
3281 # Default local prefix if it is empty
3282 if test x$local_prefix = x; then
3283 local_prefix=/usr/local
3286 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3287 # passed in by the toplevel make and thus we'd get different behavior
3288 # depending on where we built the sources.
3289 gcc_gxx_include_dir=
3290 # Specify the g++ header file directory
3292 # Check whether --with-gxx-include-dir was given.
3293 if test "${with_gxx_include_dir+set}" = set; then :
3294 withval=$with_gxx_include_dir; case "${withval}" in
3295 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3302 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3303 if test x${gcc_gxx_include_dir} = x; then
3304 if test x${enable_version_specific_runtime_libs} = xyes; then
3305 gcc_gxx_include_dir='${libsubdir}/include/c++'
3307 libstdcxx_incdir='include/c++/$(version)'
3308 if test x$host != x$target; then
3309 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3316 # Check whether --with-cpp_install_dir was given.
3317 if test "${with_cpp_install_dir+set}" = set; then :
3318 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3319 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3320 elif test x$withval != xno; then
3321 cpp_install_dir=$withval
3326 # We would like to our source tree to be readonly. However when releases or
3327 # pre-releases are generated, the flex/bison generated files as well as the
3328 # various formats of manuals need to be included along with the rest of the
3329 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3333 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3334 # Check whether --enable-generated-files-in-srcdir was given.
3335 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3336 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3338 generated_files_in_srcdir=no
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3343 $as_echo "$generated_files_in_srcdir" >&6; }
3345 if test "$generated_files_in_srcdir" = "yes"; then
3352 # -------------------
3353 # Find default linker
3354 # -------------------
3358 # Check whether --with-gnu-ld was given.
3359 if test "${with_gnu_ld+set}" = set; then :
3360 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3366 # With pre-defined ld
3368 # Check whether --with-ld was given.
3369 if test "${with_ld+set}" = set; then :
3370 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3373 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3374 if test ! -x "$DEFAULT_LINKER"; then
3375 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3376 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3380 cat >>confdefs.h <<_ACEOF
3381 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3386 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3388 cat >>confdefs.h <<_ACEOF
3389 #define HAVE_GNU_LD $gnu_ld
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3394 $as_echo_n "checking whether a default linker was specified... " >&6; }
3395 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3396 if test x"$gnu_ld_flag" = x"no"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3398 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3408 # With demangler in GNU ld
3410 # Check whether --with-demangler-in-ld was given.
3411 if test "${with_demangler_in_ld+set}" = set; then :
3412 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3418 # ----------------------
3419 # Find default assembler
3420 # ----------------------
3424 # Check whether --with-gnu-as was given.
3425 if test "${with_gnu_as+set}" = set; then :
3426 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3433 # Check whether --with-as was given.
3434 if test "${with_as+set}" = set; then :
3435 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3439 if test ! -x "$DEFAULT_ASSEMBLER"; then
3440 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3441 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3445 cat >>confdefs.h <<_ACEOF
3446 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3451 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3453 cat >>confdefs.h <<_ACEOF
3454 #define HAVE_GNU_AS $gnu_as
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3459 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3460 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3461 if test x"$gas_flag" = x"no"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3463 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3477 # If a non-executable a.out is present (e.g. created by GNU as above even if
3478 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3479 # file, even when creating an executable, so an execution test fails.
3480 # Remove possible default executable files to avoid this.
3482 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3483 # Autoconf includes it.
3484 rm -f a.out a.exe b.out
3486 # Find the native compiler
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test -n "$ac_tool_prefix"; then
3493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test -n "$CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3531 if test -z "$ac_cv_prog_CC"; then
3533 # Extract the first word of "gcc", so it can be a program name with args.
3534 set dummy gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC="gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3569 if test "x$ac_ct_CC" = x; then
3572 case $cross_compiling:$ac_tool_warned in
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}cc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC="${ac_tool_prefix}cc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3625 if test -z "$CC"; then
3626 # Extract the first word of "cc", so it can be a program name with args.
3627 set dummy cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3645 ac_prog_rejected=yes
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 if test $ac_prog_rejected = yes; then
3657 # We found a bogon in the path, so make sure we never use it.
3658 set dummy $ac_cv_prog_CC
3660 if test $# != 0; then
3661 # We chose a different compiler from the bogus one.
3662 # However, it has the same basename, so the bogon will be chosen
3663 # first if we set CC to just the basename; use the full file name.
3665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3681 if test -z "$CC"; then
3682 if test -n "$ac_tool_prefix"; then
3683 for ac_prog in cl.exe
3685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if test "${ac_cv_prog_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3722 test -n "$CC" && break
3725 if test -z "$CC"; then
3727 for ac_prog in cl.exe
3729 # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_ac_ct_CC="$ac_prog"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3766 test -n "$ac_ct_CC" && break
3769 if test "x$ac_ct_CC" = x; then
3772 case $cross_compiling:$ac_tool_warned in
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error "no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." "$LINENO" 5; }
3790 # Provide some information about the compiler.
3791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 for ac_option in --version -v -V -qversion; do
3795 { { ac_try="$ac_compiler $ac_option >&5"
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 if test -s conftest.err; then
3806 ... rest of stderr output deleted ...
3807 10q' conftest.err >conftest.er1
3808 cat conftest.er1 >&5
3809 rm -f conftest.er1 conftest.err
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3826 ac_clean_files_save=$ac_clean_files
3827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3828 # Try to create an executable without -o first, disregard a.out.
3829 # It will help us diagnose broken compilers, and finding out an intuition
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3832 $as_echo_n "checking for C compiler default output file name... " >&6; }
3833 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835 # The possible output files:
3836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839 for ac_file in $ac_files
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3848 if { { ac_try="$ac_link_default"
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link_default") 2>&5
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }; then :
3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3862 # so that the user can short-circuit this test for compilers unknown to
3864 for ac_file in $ac_files ''
3866 test -f "$ac_file" || continue
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 # We found the default executable, but exeext='' is most
3875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879 # We set ac_cv_exeext here because the later test for it is not
3880 # safe: cross compilers may not add the suffix if given an `-o'
3881 # argument, so we may need to know it at that point already.
3882 # Even if this section looks crufty: it has the advantage of
3889 test "$ac_cv_exeext" = no && ac_cv_exeext=
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895 $as_echo "$ac_file" >&6; }
3896 if test -z "$ac_file"; then :
3897 $as_echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { as_fn_set_status 77
3903 as_fn_error "C compiler cannot create executables
3904 See \`config.log' for more details." "$LINENO" 5; }; }
3906 ac_exeext=$ac_cv_exeext
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911 $as_echo_n "checking whether the C compiler works... " >&6; }
3912 # If not cross compiling, check that we can run a simple program.
3913 if test "$cross_compiling" != yes; then
3914 if { ac_try='./$ac_file'
3915 { { case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3927 if test "$cross_compiling" = maybe; then
3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details." "$LINENO" 5; }
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3939 $as_echo "yes" >&6; }
3941 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3948 $as_echo "$cross_compiling" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951 $as_echo_n "checking for suffix of executables... " >&6; }
3952 if { { ac_try="$ac_link"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_link") 2>&5
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; then :
3963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3964 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3965 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 for ac_file in conftest.exe conftest conftest.*; do
3968 test -f "$ac_file" || continue
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot compute suffix of executables: cannot compile and link
3980 See \`config.log' for more details." "$LINENO" 5; }
3982 rm -f conftest$ac_cv_exeext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984 $as_echo "$ac_cv_exeext" >&6; }
3986 rm -f conftest.$ac_ext
3987 EXEEXT=$ac_cv_exeext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if test "${ac_cv_objext+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details." "$LINENO" 5; }
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4149 if test "$GCC" = yes; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4160 ac_cv_prog_cc_c89=no
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4166 #include <sys/types.h>
4167 #include <sys/stat.h>
4168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4169 struct buf { int x; };
4170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4171 static char *e (p, i)
4177 static char *f (char * (*g) (char **, int), char **p, ...)
4182 s = g (p, va_arg (v,int));
4187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4188 function prototypes and stuff, but not '\xHH' hex character constants.
4189 These don't provoke an error unfortunately, instead are silently treated
4190 as 'x'. The following induces an error, until -std is added to get
4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4192 array size at least. It's necessary to write '\x00'==0 to get something
4193 that's true only with -std. */
4194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4197 inside strings and character constants. */
4199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201 int test (int i, double x);
4202 struct s1 {int (*f) (int a);};
4203 struct s2 {int (*f) (double a);};
4204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c89=$ac_arg
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 rm -f conftest.$ac_ext
4230 case "x$ac_cv_prog_cc_c89" in
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4238 CC="$CC $ac_cv_prog_cc_c89"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 if test "x$CC" != xcc; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4254 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4257 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 set dummy $CC; ac_cc=`$as_echo "$2" |
4260 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4262 $as_echo_n "(cached) " >&6
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4275 # Make sure it works both with $CC and with simple cc.
4276 # We do the test twice because some compilers refuse to overwrite an
4277 # existing .o file with -o, though they will create one.
4278 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 if { { case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4302 if test "x$CC" != xcc; then
4303 # Test first that cc exists at all.
4304 if { ac_try='cc -c conftest.$ac_ext >&5'
4305 { { case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; }; then
4315 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 if { { case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_try") 2>&5
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; } &&
4327 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; };
4341 # cc exists but doesn't like -o.
4342 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 rm -f core conftest*
4352 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4359 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4363 # expand $ac_aux_dir to an absolute path
4364 am_aux_dir=`cd $ac_aux_dir && pwd`
4366 # FIXME: we rely on the cache variable name because
4367 # there is no other way.
4369 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4370 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4371 if test "$am_t" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC="$am_aux_dir/compile $CC"
4382 ac_cpp='$CXXCPP $CPPFLAGS'
4383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4386 if test -z "$CXX"; then
4387 if test -n "$CCC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CXX+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$CXX"; then
4401 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 if test -n "$CXX"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4423 $as_echo "$CXX" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$CXX" && break
4433 if test -z "$CXX"; then
4435 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$ac_ct_CXX"; then
4445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CXX="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4465 if test -n "$ac_ct_CXX"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4467 $as_echo "$ac_ct_CXX" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4474 test -n "$ac_ct_CXX" && break
4477 if test "x$ac_ct_CXX" = x; then
4480 case $cross_compiling:$ac_tool_warned in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 for ac_option in --version -v -V -qversion; do
4497 { { ac_try="$ac_compiler $ac_option >&5"
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 if test -s conftest.err; then
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4518 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4536 if ac_fn_cxx_try_compile "$LINENO"; then :
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4546 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4547 if test $ac_compiler_gnu = yes; then
4552 ac_test_CXXFLAGS=${CXXFLAGS+set}
4553 ac_save_CXXFLAGS=$CXXFLAGS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4555 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4556 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4560 ac_cxx_werror_flag=yes
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4574 if ac_fn_cxx_try_compile "$LINENO"; then :
4575 ac_cv_prog_cxx_g=yes
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4605 if ac_fn_cxx_try_compile "$LINENO"; then :
4606 ac_cv_prog_cxx_g=yes
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4616 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4617 if test "$ac_test_CXXFLAGS" = set; then
4618 CXXFLAGS=$ac_save_CXXFLAGS
4619 elif test $ac_cv_prog_cxx_g = yes; then
4620 if test "$GXX" = yes; then
4626 if test "$GXX" = yes; then
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$GNATBIND"; then
4650 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 GNATBIND=$ac_cv_prog_GNATBIND
4670 if test -n "$GNATBIND"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4672 $as_echo "$GNATBIND" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test -z "$ac_cv_prog_GNATBIND"; then
4681 ac_ct_GNATBIND=$GNATBIND
4682 # Extract the first word of "gnatbind", so it can be a program name with args.
4683 set dummy gnatbind; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -n "$ac_ct_GNATBIND"; then
4690 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4710 if test -n "$ac_ct_GNATBIND"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4712 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4718 if test "x$ac_ct_GNATBIND" = x; then
4721 case $cross_compiling:$ac_tool_warned in
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725 ac_tool_warned=yes ;;
4727 GNATBIND=$ac_ct_GNATBIND
4730 GNATBIND="$ac_cv_prog_GNATBIND"
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$GNATMAKE"; then
4742 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 GNATMAKE=$ac_cv_prog_GNATMAKE
4762 if test -n "$GNATMAKE"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4764 $as_echo "$GNATMAKE" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4772 if test -z "$ac_cv_prog_GNATMAKE"; then
4773 ac_ct_GNATMAKE=$GNATMAKE
4774 # Extract the first word of "gnatmake", so it can be a program name with args.
4775 set dummy gnatmake; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$ac_ct_GNATMAKE"; then
4782 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4802 if test -n "$ac_ct_GNATMAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4804 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4810 if test "x$ac_ct_GNATMAKE" = x; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4819 GNATMAKE=$ac_ct_GNATMAKE
4822 GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4826 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4827 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 cat >conftest.adb <<EOF
4831 procedure conftest is begin null; end conftest;
4833 acx_cv_cc_gcc_supports_ada=no
4834 # There is a bug in old released versions of GCC which causes the
4835 # driver to exit successfully when the appropriate language module
4836 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4837 # Therefore we must check for the error message as well as an
4838 # unsuccessful exit.
4839 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4840 # given a .adb file, but produce no object file. So we must check
4841 # if an object file was really produced to guard against this.
4842 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4843 if test x"$errors" = x && test -f conftest.$ac_objext; then
4844 acx_cv_cc_gcc_supports_ada=yes
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4849 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4858 # autoconf is lame and doesn't give us any substitution variable for this.
4859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4860 NO_MINUS_C_MINUS_O=yes
4862 OUTPUT_OPTION='-o $@'
4867 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4868 # optimizations to be activated explicitly by the toplevel.
4870 */prev-gcc/xgcc*) ;;
4871 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4875 # Determine PICFLAG for target gnatlib.
4881 # PIC is the default on some targets or must not be used.
4883 # PIC is the default on this platform
4884 # Common symbols not allowed in MH_DYLIB files
4885 PICFLAG_FOR_TARGET=-fno-common
4888 # PIC is the default.
4891 # PIC is the default for 64-bit PA HP-UX.
4893 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4895 i[34567]86-*-interix3*)
4896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4897 # Instead, we relocate shared libraries at runtime.
4899 i[34567]86-*-nto-qnx*)
4900 # QNX uses GNU C++, but need to define -shared option too, otherwise
4902 PICFLAG_FOR_TARGET='-fPIC -shared'
4904 i[34567]86-pc-msdosdjgpp*)
4905 # DJGPP does not support shared libraries at all.
4908 # On IA64 HP-UX, PIC is the default but the pic flag
4909 # sets the default TLS model and affects inlining.
4910 PICFLAG_FOR_TARGET=-fPIC
4913 # PIC is the default.
4915 rs6000-ibm-aix* | powerpc-ibm-aix*)
4916 # All AIX code is PIC.
4919 # Some targets support both -fPIC and -fpic, but prefer the latter.
4921 i[34567]86-*-* | x86_64-*-*)
4922 PICFLAG_FOR_TARGET=-fpic
4925 PICFLAG_FOR_TARGET=-fpic
4928 PICFLAG_FOR_TARGET=-fpic
4930 # FIXME: Override -fPIC default in libgcc only?
4931 sh-*-linux* | sh[2346lbe]*-*-linux*)
4932 PICFLAG_FOR_TARGET=-fpic
4934 # FIXME: Simplify to sh*-*-netbsd*?
4935 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4936 sh64-*-netbsd* | sh64l*-*-netbsd*)
4937 PICFLAG_FOR_TARGET=-fpic
4939 # Default to -fPIC unless specified otherwise.
4941 PICFLAG_FOR_TARGET=-fPIC
4945 # If the user explicitly uses -fpic/-fPIC, keep that.
4946 case "${CFLAGS_FOR_TARGET}" in
4948 PICFLAG_FOR_TARGET=-fpic
4951 PICFLAG_FOR_TARGET=-fPIC
4957 # -------------------------
4958 # Check C compiler features
4959 # -------------------------
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4969 # On Suns, sometimes $CPP names a directory.
4970 if test -n "$CPP" && test -d "$CPP"; then
4973 if test -z "$CPP"; then
4974 if test "${ac_cv_prog_CPP+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4977 # Double quotes because CPP needs to be expanded
4978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4981 for ac_c_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4992 # include <limits.h>
4994 # include <assert.h>
4998 if ac_fn_c_try_cpp "$LINENO"; then :
5001 # Broken: fails on valid input.
5004 rm -f conftest.err conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5016 # Passes both tests.
5020 rm -f conftest.err conftest.$ac_ext
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5038 $as_echo "$CPP" >&6; }
5040 for ac_c_preproc_warn_flag in '' yes
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5051 # include <limits.h>
5053 # include <assert.h>
5057 if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: fails on valid input.
5063 rm -f conftest.err conftest.$ac_ext
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5072 # Broken: success on invalid input.
5075 # Passes both tests.
5079 rm -f conftest.err conftest.$ac_ext
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then :
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5090 See \`config.log' for more details." "$LINENO" 5; }
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5102 if test "${ac_cv_path_GREP+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -z "$GREP"; then
5106 ac_path_GREP_found=false
5107 # Loop through the user's path and test for each of PROGNAME-LIST
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 test -z "$as_dir" && as_dir=.
5113 for ac_prog in grep ggrep; do
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5117 # Check for GNU ac_path_GREP and select it if it is found.
5118 # Check for GNU $ac_path_GREP
5119 case `"$ac_path_GREP" --version 2>&1` in
5121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124 $as_echo_n 0123456789 >"conftest.in"
5127 cat "conftest.in" "conftest.in" >"conftest.tmp"
5128 mv "conftest.tmp" "conftest.in"
5129 cp "conftest.in" "conftest.nl"
5130 $as_echo 'GREP' >> "conftest.nl"
5131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5133 as_fn_arith $ac_count + 1 && ac_count=$as_val
5134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5135 # Best one so far, save it but keep looking for a better one
5136 ac_cv_path_GREP="$ac_path_GREP"
5137 ac_path_GREP_max=$ac_count
5139 # 10*(2^10) chars as input seems more than enough
5140 test $ac_count -gt 10 && break
5142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 $ac_path_GREP_found && break 3
5150 if test -z "$ac_cv_path_GREP"; then
5151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 ac_cv_path_GREP=$GREP
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5159 $as_echo "$ac_cv_path_GREP" >&6; }
5160 GREP="$ac_cv_path_GREP"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5164 $as_echo_n "checking for egrep... " >&6; }
5165 if test "${ac_cv_path_EGREP+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5169 then ac_cv_path_EGREP="$GREP -E"
5171 if test -z "$EGREP"; then
5172 ac_path_EGREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in egrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5183 # Check for GNU ac_path_EGREP and select it if it is found.
5184 # Check for GNU $ac_path_EGREP
5185 case `"$ac_path_EGREP" --version 2>&1` in
5187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5190 $as_echo_n 0123456789 >"conftest.in"
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'EGREP' >> "conftest.nl"
5197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_EGREP="$ac_path_EGREP"
5203 ac_path_EGREP_max=$ac_count
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 $ac_path_EGREP_found && break 3
5216 if test -z "$ac_cv_path_EGREP"; then
5217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 ac_cv_path_EGREP=$EGREP
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5226 $as_echo "$ac_cv_path_EGREP" >&6; }
5227 EGREP="$ac_cv_path_EGREP"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5231 $as_echo_n "checking for ANSI C header files... " >&6; }
5232 if test "${ac_cv_header_stdc+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_header_stdc=yes
5253 ac_cv_header_stdc=no
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257 if test $ac_cv_header_stdc = yes; then
5258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5265 $EGREP "memchr" >/dev/null 2>&1; then :
5268 ac_cv_header_stdc=no
5274 if test $ac_cv_header_stdc = yes; then
5275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "free" >/dev/null 2>&1; then :
5285 ac_cv_header_stdc=no
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then :
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5323 if ac_fn_c_try_run "$LINENO"; then :
5326 ac_cv_header_stdc=no
5328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5329 conftest.$ac_objext conftest.beam conftest.$ac_ext
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5335 $as_echo "$ac_cv_header_stdc" >&6; }
5336 if test $ac_cv_header_stdc = yes; then
5338 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5344 inttypes.h stdint.h unistd.h
5346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 eval as_val=\$$as_ac_Header
5350 if test "x$as_val" = x""yes; then :
5351 cat >>confdefs.h <<_ACEOF
5352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5362 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5369 if test "$MINIX" = yes; then
5371 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5374 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377 $as_echo "#define _MINIX 1" >>confdefs.h
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5383 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5384 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5390 # define __EXTENSIONS__ 1
5391 $ac_includes_default
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_safe_to_define___extensions__=yes
5403 ac_cv_safe_to_define___extensions__=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5408 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5409 test $ac_cv_safe_to_define___extensions__ = yes &&
5410 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5428 # On Suns, sometimes $CPP names a directory.
5429 if test -n "$CPP" && test -d "$CPP"; then
5432 if test -z "$CPP"; then
5433 if test "${ac_cv_prog_CPP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 # Double quotes because CPP needs to be expanded
5437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5440 for ac_c_preproc_warn_flag in '' yes
5442 # Use a header file that comes with gcc, so configuring glibc
5443 # with a fresh cross-compiler works.
5444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5445 # <limits.h> exists even on freestanding compilers.
5446 # On the NeXT, cc -E runs the code through the compiler's parser,
5447 # not just through cpp. "Syntax error" is here to catch this case.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5451 # include <limits.h>
5453 # include <assert.h>
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5460 # Broken: fails on valid input.
5463 rm -f conftest.err conftest.$ac_ext
5465 # OK, works on sane cases. Now check whether nonexistent headers
5466 # can be detected and how.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5472 # Broken: success on invalid input.
5475 # Passes both tests.
5479 rm -f conftest.err conftest.$ac_ext
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5497 $as_echo "$CPP" >&6; }
5499 for ac_c_preproc_warn_flag in '' yes
5501 # Use a header file that comes with gcc, so configuring glibc
5502 # with a fresh cross-compiler works.
5503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 # <limits.h> exists even on freestanding compilers.
5505 # On the NeXT, cc -E runs the code through the compiler's parser,
5506 # not just through cpp. "Syntax error" is here to catch this case.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # include <limits.h>
5512 # include <assert.h>
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5519 # Broken: fails on valid input.
5522 rm -f conftest.err conftest.$ac_ext
5524 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531 # Broken: success on invalid input.
5534 # Passes both tests.
5538 rm -f conftest.err conftest.$ac_ext
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5548 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5549 See \`config.log' for more details." "$LINENO" 5; }
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5559 $as_echo_n "checking for inline... " >&6; }
5560 if test "${ac_cv_c_inline+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5564 for ac_kw in inline __inline__ __inline; do
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5569 static $ac_kw foo_t static_foo () {return 0; }
5570 $ac_kw foo_t foo () {return 0; }
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_c_inline=$ac_kw
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 test "$ac_cv_c_inline" != no && break
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5583 $as_echo "$ac_cv_c_inline" >&6; }
5585 case $ac_cv_c_inline in
5588 case $ac_cv_c_inline in
5590 *) ac_val=$ac_cv_c_inline;;
5592 cat >>confdefs.h <<_ACEOF
5594 #define inline $ac_val
5601 # Check whether --enable-largefile was given.
5602 if test "${enable_largefile+set}" = set; then :
5603 enableval=$enable_largefile;
5606 if test "$enable_largefile" != no; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5609 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5610 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5613 ac_cv_sys_largefile_CC=no
5614 if test "$GCC" != yes; then
5617 # IRIX 6.2 and later do not support large files by default,
5618 # so use the C compiler's -n32 option if that helps.
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5638 if ac_fn_c_try_compile "$LINENO"; then :
5641 rm -f core conftest.err conftest.$ac_objext
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_sys_largefile_CC=' -n32'; break
5646 rm -f core conftest.err conftest.$ac_objext
5650 rm -f conftest.$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5654 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5655 if test "$ac_cv_sys_largefile_CC" != no; then
5656 CC=$CC$ac_cv_sys_largefile_CC
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5660 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5661 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_sys_file_offset_bits=no; break
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #define _FILE_OFFSET_BITS 64
5691 #include <sys/types.h>
5692 /* Check that off_t can represent 2**63 - 1 correctly.
5693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5694 since some C++ compilers masquerading as C compilers
5695 incorrectly reject 9223372036854775807. */
5696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5698 && LARGE_OFF_T % 2147483647 == 1)
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709 ac_cv_sys_file_offset_bits=64; break
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cv_sys_file_offset_bits=unknown
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5717 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5721 cat >>confdefs.h <<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5727 if test $ac_cv_sys_file_offset_bits = unknown; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5729 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 /* Check that off_t can represent 2**63 - 1 correctly.
5738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5739 since some C++ compilers masquerading as C compilers
5740 incorrectly reject 9223372036854775807. */
5741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5743 && LARGE_OFF_T % 2147483647 == 1)
5753 if ac_fn_c_try_compile "$LINENO"; then :
5754 ac_cv_sys_large_files=no; break
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5777 if ac_fn_c_try_compile "$LINENO"; then :
5778 ac_cv_sys_large_files=1; break
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cv_sys_large_files=unknown
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5786 $as_echo "$ac_cv_sys_large_files" >&6; }
5787 case $ac_cv_sys_large_files in #(
5790 cat >>confdefs.h <<_ACEOF
5791 #define _LARGE_FILES $ac_cv_sys_large_files
5800 # sizeof(char) is 1 by definition.
5801 # The cast to long int works around a bug in the HP C Compiler
5802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5804 # This bug is HP SR number 8606223364.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5806 $as_echo_n "checking size of void *... " >&6; }
5807 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5810 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5813 if test "$ac_cv_type_void_p" = yes; then
5814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5816 { as_fn_set_status 77
5817 as_fn_error "cannot compute sizeof (void *)
5818 See \`config.log' for more details." "$LINENO" 5; }; }
5820 ac_cv_sizeof_void_p=0
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5826 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5830 cat >>confdefs.h <<_ACEOF
5831 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5835 # The cast to long int works around a bug in the HP C Compiler
5836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5838 # This bug is HP SR number 8606223364.
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5840 $as_echo_n "checking size of short... " >&6; }
5841 if test "${ac_cv_sizeof_short+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5847 if test "$ac_cv_type_short" = yes; then
5848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5850 { as_fn_set_status 77
5851 as_fn_error "cannot compute sizeof (short)
5852 See \`config.log' for more details." "$LINENO" 5; }; }
5854 ac_cv_sizeof_short=0
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5860 $as_echo "$ac_cv_sizeof_short" >&6; }
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_SHORT $ac_cv_sizeof_short
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5874 $as_echo_n "checking size of int... " >&6; }
5875 if test "${ac_cv_sizeof_int+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5881 if test "$ac_cv_type_int" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (int)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5894 $as_echo "$ac_cv_sizeof_int" >&6; }
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF_INT $ac_cv_sizeof_int
5903 # The cast to long int works around a bug in the HP C Compiler
5904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5906 # This bug is HP SR number 8606223364.
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5908 $as_echo_n "checking size of long... " >&6; }
5909 if test "${ac_cv_sizeof_long+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5915 if test "$ac_cv_type_long" = yes; then
5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918 { as_fn_set_status 77
5919 as_fn_error "cannot compute sizeof (long)
5920 See \`config.log' for more details." "$LINENO" 5; }; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5928 $as_echo "$ac_cv_sizeof_long" >&6; }
5932 cat >>confdefs.h <<_ACEOF
5933 #define SIZEOF_LONG $ac_cv_sizeof_long
5937 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5938 if test "x$ac_cv_type_long_long" = x""yes; then :
5940 cat >>confdefs.h <<_ACEOF
5941 #define HAVE_LONG_LONG 1
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5949 $as_echo_n "checking size of long long... " >&6; }
5950 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5956 if test "$ac_cv_type_long_long" = yes; then
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status 77
5960 as_fn_error "cannot compute sizeof (long long)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5963 ac_cv_sizeof_long_long=0
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5969 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5973 cat >>confdefs.h <<_ACEOF
5974 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5980 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5981 if test "x$ac_cv_type___int64" = x""yes; then :
5983 cat >>confdefs.h <<_ACEOF
5984 #define HAVE___INT64 1
5987 # The cast to long int works around a bug in the HP C Compiler
5988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5990 # This bug is HP SR number 8606223364.
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5992 $as_echo_n "checking size of __int64... " >&6; }
5993 if test "${ac_cv_sizeof___int64+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5999 if test "$ac_cv_type___int64" = yes; then
6000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6002 { as_fn_set_status 77
6003 as_fn_error "cannot compute sizeof (__int64)
6004 See \`config.log' for more details." "$LINENO" 5; }; }
6006 ac_cv_sizeof___int64=0
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6012 $as_echo "$ac_cv_sizeof___int64" >&6; }
6016 cat >>confdefs.h <<_ACEOF
6017 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6023 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6024 case $ac_cv_c_int8_t in #(
6028 cat >>confdefs.h <<_ACEOF
6029 #define int8_t $ac_cv_c_int8_t
6034 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6035 case $ac_cv_c_int16_t in #(
6039 cat >>confdefs.h <<_ACEOF
6040 #define int16_t $ac_cv_c_int16_t
6045 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6046 case $ac_cv_c_int32_t in #(
6050 cat >>confdefs.h <<_ACEOF
6051 #define int32_t $ac_cv_c_int32_t
6056 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6057 case $ac_cv_c_int64_t in #(
6061 cat >>confdefs.h <<_ACEOF
6062 #define int64_t $ac_cv_c_int64_t
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6069 $as_echo_n "checking for long long int... " >&6; }
6070 if test "${ac_cv_type_long_long_int+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 /* For now, do not test the preprocessor; as of 2007 there are too many
6077 implementations with broken preprocessors. Perhaps this can
6078 be revisited in 2012. In the meantime, code should not expect
6079 #if to work with literals wider than 32 bits. */
6080 /* Test literals. */
6081 long long int ll = 9223372036854775807ll;
6082 long long int nll = -9223372036854775807LL;
6083 unsigned long long int ull = 18446744073709551615ULL;
6084 /* Test constant expressions. */
6085 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6087 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6093 /* Test availability of runtime routines for shift and division. */
6094 long long int llmax = 9223372036854775807ll;
6095 unsigned long long int ullmax = 18446744073709551615ull;
6096 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6097 | (llmax / ll) | (llmax % ll)
6098 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6099 | (ullmax / ull) | (ullmax % ull));
6105 if ac_fn_c_try_link "$LINENO"; then :
6106 if test "$cross_compiling" = yes; then :
6107 ac_cv_type_long_long_int=yes
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6114 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6115 # define LLONG_MAX (HALF - 1 + HALF)
6120 long long int n = 1;
6124 long long int m = n << i;
6127 if (LLONG_MAX / 2 < m)
6135 if ac_fn_c_try_run "$LINENO"; then :
6136 ac_cv_type_long_long_int=yes
6138 ac_cv_type_long_long_int=no
6140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6141 conftest.$ac_objext conftest.beam conftest.$ac_ext
6145 ac_cv_type_long_long_int=no
6147 rm -f core conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6151 $as_echo "$ac_cv_type_long_long_int" >&6; }
6152 if test $ac_cv_type_long_long_int = yes; then
6154 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6160 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6161 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6163 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6166 test $ac_cv_type_long_long_int = yes \
6167 && ac_type='long long int' \
6168 || ac_type='long int'
6170 cat >>confdefs.h <<_ACEOF
6171 #define intmax_t $ac_type
6178 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6179 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6181 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6184 for ac_type in 'int' 'long int' 'long long int'; do
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 $ac_includes_default
6191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6198 if ac_fn_c_try_compile "$LINENO"; then :
6200 cat >>confdefs.h <<_ACEOF
6201 #define intptr_t $ac_type
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 test -z "$ac_type" && break
6212 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6213 case $ac_cv_c_uint8_t in #(
6217 $as_echo "#define _UINT8_T 1" >>confdefs.h
6220 cat >>confdefs.h <<_ACEOF
6221 #define uint8_t $ac_cv_c_uint8_t
6226 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6227 case $ac_cv_c_uint16_t in #(
6232 cat >>confdefs.h <<_ACEOF
6233 #define uint16_t $ac_cv_c_uint16_t
6238 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6239 case $ac_cv_c_uint32_t in #(
6243 $as_echo "#define _UINT32_T 1" >>confdefs.h
6246 cat >>confdefs.h <<_ACEOF
6247 #define uint32_t $ac_cv_c_uint32_t
6252 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6253 case $ac_cv_c_uint64_t in #(
6257 $as_echo "#define _UINT64_T 1" >>confdefs.h
6260 cat >>confdefs.h <<_ACEOF
6261 #define uint64_t $ac_cv_c_uint64_t
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6268 $as_echo_n "checking for unsigned long long int... " >&6; }
6269 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6275 /* For now, do not test the preprocessor; as of 2007 there are too many
6276 implementations with broken preprocessors. Perhaps this can
6277 be revisited in 2012. In the meantime, code should not expect
6278 #if to work with literals wider than 32 bits. */
6279 /* Test literals. */
6280 long long int ll = 9223372036854775807ll;
6281 long long int nll = -9223372036854775807LL;
6282 unsigned long long int ull = 18446744073709551615ULL;
6283 /* Test constant expressions. */
6284 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6286 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6292 /* Test availability of runtime routines for shift and division. */
6293 long long int llmax = 9223372036854775807ll;
6294 unsigned long long int ullmax = 18446744073709551615ull;
6295 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6296 | (llmax / ll) | (llmax % ll)
6297 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6298 | (ullmax / ull) | (ullmax % ull));
6304 if ac_fn_c_try_link "$LINENO"; then :
6305 ac_cv_type_unsigned_long_long_int=yes
6307 ac_cv_type_unsigned_long_long_int=no
6309 rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6313 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6314 if test $ac_cv_type_unsigned_long_long_int = yes; then
6316 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6322 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6323 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6325 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6328 test $ac_cv_type_unsigned_long_long_int = yes \
6329 && ac_type='unsigned long long int' \
6330 || ac_type='unsigned long int'
6332 cat >>confdefs.h <<_ACEOF
6333 #define uintmax_t $ac_type
6340 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6341 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6343 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6346 for ac_type in 'unsigned int' 'unsigned long int' \
6347 'unsigned long long int'; do
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 $ac_includes_default
6354 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6361 if ac_fn_c_try_compile "$LINENO"; then :
6363 cat >>confdefs.h <<_ACEOF
6364 #define uintptr_t $ac_type
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 test -z "$ac_type" && break
6388 # ---------------------
6389 # Warnings and checking
6390 # ---------------------
6392 # Check $CC warning features (if it's GCC).
6393 # We want to use -pedantic, but we don't want warnings about
6396 # * overlong strings
6397 # * C++11 narrowing conversions in { }
6398 # So, we only use -pedantic if we can disable those warnings.
6401 save_CFLAGS="$CFLAGS"
6402 for option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
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:+ }$option"
6437 CFLAGS="$save_CFLAGS"
6440 save_CFLAGS="$CFLAGS"
6441 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6442 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6445 $as_echo_n "checking whether $CC supports $option... " >&6; }
6446 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6447 $as_echo_n "(cached) " >&6
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6461 if ac_fn_c_try_compile "$LINENO"; then :
6462 eval "$as_acx_Woption=yes"
6464 eval "$as_acx_Woption=no"
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 eval ac_res=\$$as_acx_Woption
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6471 $as_echo "$ac_res" >&6; }
6472 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6473 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6476 CFLAGS="$save_CFLAGS"
6479 save_CFLAGS="$CFLAGS"
6480 for option in -Wmissing-format-attribute; do
6481 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6484 $as_echo_n "checking whether $CC supports $option... " >&6; }
6485 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6486 $as_echo_n "(cached) " >&6
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6500 if ac_fn_c_try_compile "$LINENO"; then :
6501 eval "$as_acx_Woption=yes"
6503 eval "$as_acx_Woption=no"
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 eval ac_res=\$$as_acx_Woption
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6510 $as_echo "$ac_res" >&6; }
6511 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6512 strict_warn="$strict_warn${strict_warn:+ }$option"
6515 CFLAGS="$save_CFLAGS"
6518 save_CFLAGS="$CFLAGS"
6519 for option in -Wold-style-definition -Wc++-compat; do
6520 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6523 $as_echo_n "checking whether $CC supports $option... " >&6; }
6524 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6525 $as_echo_n "(cached) " >&6
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6539 if ac_fn_c_try_compile "$LINENO"; then :
6540 eval "$as_acx_Woption=yes"
6542 eval "$as_acx_Woption=no"
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 eval ac_res=\$$as_acx_Woption
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6549 $as_echo "$ac_res" >&6; }
6550 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6551 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6554 CFLAGS="$save_CFLAGS"
6556 if test "$GCC" = yes; then :
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6558 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6559 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6562 save_CFLAGS="$CFLAGS"
6563 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6578 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 CFLAGS="$save_CFLAGS"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6584 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6585 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6586 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6591 # Check whether --enable-werror-always was given.
6592 if test "${enable_werror_always+set}" = set; then :
6593 enableval=$enable_werror_always;
6595 enable_werror_always=no
6598 if test $enable_werror_always = yes; then :
6599 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6604 # The above macros do nothing if the compiler is not GCC. However, the
6605 # Makefile has more goo to add other flags, so these variables are used
6606 # to enable warnings only for GCC.
6609 if test "x$GCC" = "xyes"; then
6610 warn_cflags='$(GCC_WARN_CFLAGS)'
6611 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6616 # Enable expensive internal checks
6618 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6622 # Check whether --enable-checking was given.
6623 if test "${enable_checking+set}" = set; then :
6624 enableval=$enable_checking; ac_checking_flags="${enableval}"
6627 # Determine the default checks.
6628 if test x$is_release = x ; then
6629 ac_checking_flags=yes
6631 ac_checking_flags=release
6635 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6636 for check in release $ac_checking_flags
6639 # these set all the flags to specific states
6640 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6641 ac_fold_checking= ; ac_gc_checking=1 ;
6642 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6643 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6644 ac_tree_checking=1 ; ac_valgrind_checking= ;
6645 ac_types_checking=1 ;;
6646 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6647 ac_fold_checking= ; ac_gc_checking= ;
6648 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6649 ac_rtlflag_checking= ; ac_runtime_checking= ;
6650 ac_tree_checking= ; ac_valgrind_checking= ;
6651 ac_types_checking= ;;
6652 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6653 ac_fold_checking=1 ; ac_gc_checking=1 ;
6654 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6655 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6656 ac_tree_checking=1 ; ac_valgrind_checking= ;
6657 ac_types_checking=1 ;;
6658 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6659 ac_fold_checking= ; ac_gc_checking= ;
6660 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6661 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6662 ac_tree_checking= ; ac_valgrind_checking= ;
6663 ac_types_checking= ;;
6664 # these enable particular checks
6665 assert) ac_assert_checking=1 ;;
6666 df) ac_df_checking=1 ;;
6667 fold) ac_fold_checking=1 ;;
6668 gc) ac_gc_checking=1 ;;
6669 gcac) ac_gc_always_collect=1 ;;
6670 gimple) ac_gimple_checking=1 ;;
6671 misc) ac_checking=1 ;;
6672 rtl) ac_rtl_checking=1 ;;
6673 rtlflag) ac_rtlflag_checking=1 ;;
6674 runtime) ac_runtime_checking=1 ;;
6675 tree) ac_tree_checking=1 ;;
6676 types) ac_types_checking=1 ;;
6677 valgrind) ac_valgrind_checking=1 ;;
6678 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6684 if test x$ac_checking != x ; then
6686 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6688 nocommon_flag=-fno-common
6691 if test x$ac_df_checking != x ; then
6693 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6696 if test x$ac_assert_checking != x ; then
6698 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6701 if test x$ac_gimple_checking != x ; then
6703 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6707 if test x$ac_runtime_checking != x ; then
6709 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6712 if test x$ac_tree_checking != x ; then
6714 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6716 TREEBROWSER=tree-browser.o
6718 if test x$ac_types_checking != x ; then
6720 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6724 if test x$ac_rtl_checking != x ; then
6726 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6729 if test x$ac_rtlflag_checking != x ; then
6731 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6734 if test x$ac_gc_checking != x ; then
6736 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6739 if test x$ac_gc_always_collect != x ; then
6741 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6744 if test x$ac_fold_checking != x ; then
6746 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6749 valgrind_path_defines=
6752 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6753 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6761 if test x$ac_valgrind_checking != x ; then
6762 # It is certainly possible that there's valgrind but no valgrind.h.
6763 # GCC relies on making annotations so we must have both.
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6765 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <valgrind/memcheck.h>
6769 #ifndef VALGRIND_DISCARD
6770 #error VALGRIND_DISCARD not defined
6773 if ac_fn_c_try_cpp "$LINENO"; then :
6774 gcc_cv_header_valgrind_memcheck_h=yes
6776 gcc_cv_header_valgrind_memcheck_h=no
6778 rm -f conftest.err conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6780 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6782 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 #include <memcheck.h>
6786 #ifndef VALGRIND_DISCARD
6787 #error VALGRIND_DISCARD not defined
6790 if ac_fn_c_try_cpp "$LINENO"; then :
6791 gcc_cv_header_memcheck_h=yes
6793 gcc_cv_header_memcheck_h=no
6795 rm -f conftest.err conftest.$ac_ext
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6797 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6799 # Prepare PATH_SEPARATOR.
6800 # The user is always right.
6801 if test "${PATH_SEPARATOR+set}" != set; then
6802 echo "#! /bin/sh" >conf$$.sh
6803 echo "exit 0" >>conf$$.sh
6805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6813 # Find out how to test for executable files. Don't use a zero-byte file,
6814 # as systems may use methods other than mode bits to determine executability.
6815 cat >conf$$.file <<_ASEOF
6819 chmod +x conf$$.file
6820 if test -x conf$$.file >/dev/null 2>&1; then
6821 ac_executable_p="test -x"
6823 ac_executable_p="test -f"
6827 # Extract the first word of "valgrind", so it can be a program name with args.
6828 set dummy valgrind; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6834 case "$valgrind_path" in
6836 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6839 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6840 for ac_dir in $PATH; do
6842 test -z "$ac_dir" && ac_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6845 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6846 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6856 valgrind_path="$ac_cv_path_valgrind_path"
6857 if test -n "$valgrind_path"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6859 $as_echo "$valgrind_path" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6865 if test "x$valgrind_path" = "x" \
6866 || (test $have_valgrind_h = no \
6867 && test $gcc_cv_header_memcheck_h = no \
6868 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6869 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6871 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6872 valgrind_command="$valgrind_path -q"
6874 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6876 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6878 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6881 if test $gcc_cv_header_memcheck_h = yes; then
6883 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6890 # Enable code coverage collection
6891 # Check whether --enable-coverage was given.
6892 if test "${enable_coverage+set}" = set; then :
6893 enableval=$enable_coverage; case "${enableval}" in
6895 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6898 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6901 # a.k.a. --disable-coverage
6905 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6914 # Check whether --enable-gather-detailed-mem-stats was given.
6915 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6916 enableval=$enable_gather_detailed_mem_stats;
6918 enable_gather_detailed_mem_stats=no
6921 if test x$enable_gather_detailed_mem_stats = xyes ; then
6923 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6927 # -------------------------------
6928 # Miscenalleous configure options
6929 # -------------------------------
6931 # See if we are building gcc with C++.
6932 # Check whether --enable-build-with-cxx was given.
6933 if test "${enable_build_with_cxx+set}" = set; then :
6934 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6936 ENABLE_BUILD_WITH_CXX=no
6940 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6942 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6948 # Check whether --with-stabs was given.
6949 if test "${with_stabs+set}" = set; then :
6950 withval=$with_stabs; stabs="$with_stabs"
6956 # Determine whether or not multilibs are enabled.
6957 # Check whether --enable-multilib was given.
6958 if test "${enable_multilib+set}" = set; then :
6959 enableval=$enable_multilib;
6966 # Enable __cxa_atexit for C++.
6967 # Check whether --enable-__cxa_atexit was given.
6968 if test "${enable___cxa_atexit+set}" = set; then :
6969 enableval=$enable___cxa_atexit;
6973 # Enable C extension for decimal float if target supports it.
6975 # Check whether --enable-decimal-float was given.
6976 if test "${enable_decimal_float+set}" = set; then :
6977 enableval=$enable_decimal_float;
6978 case $enable_decimal_float in
6979 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6980 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6981 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6987 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6988 i?86*-*-mingw* | x86_64*-*-mingw* | \
6990 enable_decimal_float=yes
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6994 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6995 enable_decimal_float=no
7002 # x86's use BID format instead of DPD
7003 case x$enable_decimal_float in
7006 i?86*-*-* | x86_64*-*-*)
7007 enable_decimal_float=bid
7010 enable_decimal_float=dpd
7013 default_decimal_float=$enable_decimal_float
7016 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7017 # dependency on libdecnumber.
7018 default_decimal_float=dpd
7025 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7027 cat >>confdefs.h <<_ACEOF
7028 #define ENABLE_DECIMAL_FLOAT $dfp
7032 # Use default_decimal_float for dependency.
7033 enable_decimal_float=$default_decimal_float
7035 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7037 cat >>confdefs.h <<_ACEOF
7038 #define ENABLE_DECIMAL_BID_FORMAT $bid
7042 # Enable C extension for fixed-point arithmetic.
7043 # Check whether --enable-fixed-point was given.
7044 if test "${enable_fixed_point+set}" = set; then :
7045 enableval=$enable_fixed_point;
7050 enable_fixed_point=yes
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7057 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7058 enable_fixed_point=no
7061 enable_fixed_point=yes
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7067 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7068 enable_fixed_point=no
7076 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7078 cat >>confdefs.h <<_ACEOF
7079 #define ENABLE_FIXED_POINT $fixedpoint
7084 # Pass with no value to take the default
7085 # Pass with a value to specify a thread package
7086 # Check whether --enable-threads was given.
7087 if test "${enable_threads+set}" = set; then :
7088 enableval=$enable_threads;
7094 # Check whether --enable-tls was given.
7095 if test "${enable_tls+set}" = set; then :
7096 enableval=$enable_tls;
7099 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7100 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7108 # Check whether --enable-objc-gc was given.
7109 if test "${enable_objc_gc+set}" = set; then :
7110 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7121 # Check whether --with-dwarf2 was given.
7122 if test "${with_dwarf2+set}" = set; then :
7123 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7129 # Check whether --enable-shared was given.
7130 if test "${enable_shared+set}" = set; then :
7131 enableval=$enable_shared;
7132 case $enable_shared in
7136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7137 for pkg in $enableval; do
7138 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7153 # Check whether --with-native-system-header-dir was given.
7154 if test "${with_native_system_header_dir+set}" = set; then :
7155 withval=$with_native_system_header_dir;
7156 case ${with_native_system_header_dir} in
7157 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7158 /* | [A-Za-z]:[\\/]*) ;;
7159 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7161 configured_native_system_header_dir="${withval}"
7164 configured_native_system_header_dir=
7169 # Check whether --with-build-sysroot was given.
7170 if test "${with_build_sysroot+set}" = set; then :
7171 withval=$with_build_sysroot; if test x"$withval" != x ; then
7172 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7175 SYSROOT_CFLAGS_FOR_TARGET=
7181 # Check whether --with-sysroot was given.
7182 if test "${with_sysroot+set}" = set; then :
7183 withval=$with_sysroot;
7184 case ${with_sysroot} in
7185 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7186 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7189 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7190 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7192 if test "x$prefix" = xNONE; then
7193 test_prefix=/usr/local
7197 if test "x$exec_prefix" = xNONE; then
7198 test_exec_prefix=$test_prefix
7200 test_exec_prefix=$exec_prefix
7202 case ${TARGET_SYSTEM_ROOT} in
7203 "${test_prefix}"|"${test_prefix}/"*|\
7204 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7205 '${prefix}'|'${prefix}/'*|\
7206 '${exec_prefix}'|'${exec_prefix}/'*)
7207 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7208 TARGET_SYSTEM_ROOT_DEFINE="$t"
7215 TARGET_SYSTEM_ROOT_DEFINE=
7216 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7225 # Check whether --with-specs was given.
7226 if test "${with_specs+set}" = set; then :
7227 withval=$with_specs; CONFIGURE_SPECS=$withval
7237 # Check whether --with-pkgversion was given.
7238 if test "${with_pkgversion+set}" = set; then :
7239 withval=$with_pkgversion; case "$withval" in
7240 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7242 *) PKGVERSION="($withval) " ;;
7253 # Check whether --with-bugurl was given.
7254 if test "${with_bugurl+set}" = set; then :
7255 withval=$with_bugurl; case "$withval" in
7256 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7259 *) BUGURL="$withval"
7263 BUGURL="http://gcc.gnu.org/bugs.html"
7273 REPORT_BUGS_TO="<$BUGURL>"
7274 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7281 # Sanity check enable_languages in case someone does not run the toplevel
7282 # configure # script.
7283 # Check whether --enable-languages was given.
7284 if test "${enable_languages+set}" = set; then :
7285 enableval=$enable_languages; case ,${enable_languages}, in
7287 # go safe -- we cannot be much sure without the toplevel
7289 # analysis of which target libs are present and usable
7293 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7298 enable_languages=c,${enable_languages}
7307 # Check whether --with-multilib-list was given.
7308 if test "${with_multilib_list+set}" = set; then :
7309 withval=$with_multilib_list; :
7311 with_multilib_list=default
7315 # -------------------------
7316 # Checks for other programs
7317 # -------------------------
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7320 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7322 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7323 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7324 $as_echo_n "(cached) " >&6
7326 cat >conftest.make <<\_ACEOF
7329 @echo '@@@%%%=$(MAKE)=@@@%%%'
7331 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7332 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7334 eval ac_cv_prog_make_${ac_make}_set=yes;;
7336 eval ac_cv_prog_make_${ac_make}_set=no;;
7340 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7342 $as_echo "yes" >&6; }
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7347 SET_MAKE="MAKE=${MAKE-make}"
7351 # Find some useful tools
7352 for ac_prog in gawk mawk nawk awk
7354 # Extract the first word of "$ac_prog", so it can be a program name with args.
7355 set dummy $ac_prog; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_AWK+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7361 if test -n "$AWK"; then
7362 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_AWK="$ac_prog"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 if test -n "$AWK"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7384 $as_echo "$AWK" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7391 test -n "$AWK" && break
7394 # We need awk to create options.c and options.h.
7395 # Bail out if it's missing.
7397 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7401 $as_echo_n "checking whether ln -s works... " >&6; }
7402 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7403 $as_echo_n "(cached) " >&6
7405 rm -f conftestdata_t
7406 echo >conftestdata_f
7407 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7409 gcc_cv_prog_LN_S="ln -s"
7411 if ln conftestdata_f conftestdata_t 2>/dev/null
7415 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7417 gcc_cv_prog_LN_S="cp -p"
7423 rm -f conftestdata_f conftestdata_t
7426 LN_S="$gcc_cv_prog_LN_S"
7427 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7429 $as_echo "yes" >&6; }
7431 if test "$gcc_cv_prog_LN_S" = "ln"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7433 $as_echo "no, using ln" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7436 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7441 $as_echo_n "checking whether ln works... " >&6; }
7442 if test "${acx_cv_prog_LN+set}" = set; then :
7443 $as_echo_n "(cached) " >&6
7445 rm -f conftestdata_t
7446 echo >conftestdata_f
7447 if ln conftestdata_f conftestdata_t 2>/dev/null
7453 rm -f conftestdata_f conftestdata_t
7456 if test $acx_cv_prog_LN = no; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7459 $as_echo "no, using $LN" >&6; }
7461 LN="$acx_cv_prog_LN"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463 $as_echo "yes" >&6; }
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7474 if test -n "$RANLIB"; then
7475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 RANLIB=$ac_cv_prog_RANLIB
7495 if test -n "$RANLIB"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7497 $as_echo "$RANLIB" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7505 if test -z "$ac_cv_prog_RANLIB"; then
7506 ac_ct_RANLIB=$RANLIB
7507 # Extract the first word of "ranlib", so it can be a program name with args.
7508 set dummy ranlib; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7514 if test -n "$ac_ct_RANLIB"; then
7515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_prog_ac_ct_RANLIB="ranlib"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7535 if test -n "$ac_ct_RANLIB"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7537 $as_echo "$ac_ct_RANLIB" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7543 if test "x$ac_ct_RANLIB" = x; then
7546 case $cross_compiling:$ac_tool_warned in
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7552 RANLIB=$ac_ct_RANLIB
7555 RANLIB="$ac_cv_prog_RANLIB"
7560 # By default, the Darwin ranlib will not treat common symbols as
7561 # definitions when building the archive table of contents. Other
7562 # ranlibs do that; pass an option to the Darwin ranlib that makes
7563 # it behave similarly.
7571 # Find a good install program. We prefer a C program (faster),
7572 # so one script is as good as another. But avoid the broken or
7573 # incompatible versions:
7574 # SysV /etc/install, /usr/sbin/install
7575 # SunOS /usr/etc/install
7576 # IRIX /sbin/install
7578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7580 # ./install, which can be erroneously created by make from ./install.sh.
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7582 $as_echo_n "checking for a BSD compatible install... " >&6; }
7583 if test -z "$INSTALL"; then
7584 if test "${ac_cv_path_install+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7587 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7588 for ac_dir in $PATH; do
7589 # Account for people who put trailing slashes in PATH elements.
7591 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7593 # OSF1 and SCO ODT 3.0 have their own names for install.
7594 for ac_prog in ginstall scoinst install; do
7595 if test -f $ac_dir/$ac_prog; then
7596 if test $ac_prog = install &&
7597 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7598 # AIX install. It has an incompatible calling convention.
7599 # OSF/1 installbsd also uses dspmsg, but is usable.
7602 ac_cv_path_install="$ac_dir/$ac_prog -c"
7613 if test "${ac_cv_path_install+set}" = set; then
7614 INSTALL="$ac_cv_path_install"
7616 # As a last resort, use the slow shell script. We don't cache a
7617 # path for INSTALL within a source directory, because that will
7618 # break other packages using the cache if that directory is
7619 # removed, or if the path is relative.
7620 INSTALL="$ac_install_sh"
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7624 $as_echo "$INSTALL" >&6; }
7626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7627 # It thinks the first close brace ends the variable substitution.
7628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7633 # See if cmp has --ignore-initial.
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7635 $as_echo_n "checking for cmp's capabilities... " >&6; }
7636 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7641 gcc_cv_prog_cmp_skip=slowcompare
7642 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7643 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7646 gcc_cv_prog_cmp_skip=gnucompare
7649 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7650 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7651 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7654 gcc_cv_prog_cmp_skip=fastcompare
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7662 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7663 make_compare_target=$gcc_cv_prog_cmp_skip
7667 # See if we have the mktemp command.
7668 # Extract the first word of "mktemp", so it can be a program name with args.
7669 set dummy mktemp; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7675 if test -n "$have_mktemp_command"; then
7676 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_have_mktemp_command="yes"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7696 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7697 if test -n "$have_mktemp_command"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7699 $as_echo "$have_mktemp_command" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7707 # See if makeinfo has been installed and is modern enough
7708 # that we can use it.
7710 # Extract the first word of "makeinfo", so it can be a program name with args.
7711 set dummy makeinfo; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7717 if test -n "$MAKEINFO"; then
7718 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_MAKEINFO="makeinfo"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 MAKEINFO=$ac_cv_prog_MAKEINFO
7738 if test -n "$MAKEINFO"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7740 $as_echo "$MAKEINFO" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7747 if test -n "$MAKEINFO"; then
7748 # Found it, now check the version.
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7750 $as_echo_n "checking for modern makeinfo... " >&6; }
7751 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7754 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7755 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7757 case $ac_prog_version in
7758 '') gcc_cv_prog_makeinfo_modern=no;;
7759 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7760 *) gcc_cv_prog_makeinfo_modern=no;;
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7765 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7767 gcc_cv_prog_makeinfo_modern=no
7769 if test $gcc_cv_prog_makeinfo_modern = no; then
7770 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7773 if test $gcc_cv_prog_makeinfo_modern = no; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7775 *** Makeinfo is missing or too old.
7776 *** Info documentation will not be built." >&5
7777 $as_echo "$as_me: WARNING:
7778 *** Makeinfo is missing or too old.
7779 *** Info documentation will not be built." >&2;}
7786 # Is pod2man recent enough to regenerate manpages?
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7788 $as_echo_n "checking for recent Pod::Man... " >&6; }
7789 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7791 $as_echo "yes" >&6; }
7792 GENERATED_MANPAGES=generated-manpages
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7800 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_FLEX+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 if test -n "$FLEX"; then
7813 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_FLEX="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 FLEX=$ac_cv_prog_FLEX
7833 if test -n "$FLEX"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7835 $as_echo "$FLEX" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7842 test -n "$FLEX" && break
7844 test -n "$FLEX" || FLEX="$MISSING flex"
7848 for ac_prog in bison
7850 # Extract the first word of "$ac_prog", so it can be a program name with args.
7851 set dummy $ac_prog; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if test "${ac_cv_prog_BISON+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7857 if test -n "$BISON"; then
7858 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_prog_BISON="$ac_prog"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 BISON=$ac_cv_prog_BISON
7878 if test -n "$BISON"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7880 $as_echo "$BISON" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7887 test -n "$BISON" && break
7889 test -n "$BISON" || BISON="$MISSING bison"
7892 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7893 # check for build == host before using them.
7896 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7897 && test -d ../binutils ; then
7898 NM='${objdir}/../binutils/nm-new'
7900 # Extract the first word of "nm", so it can be a program name with args.
7901 set dummy nm; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_NM+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$NM"; then
7908 ac_cv_prog_NM="$NM" # Let the user override the test.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7929 if test -n "$NM"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7931 $as_echo "$NM" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7941 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7942 && test -d ../binutils ; then
7943 AR='${objdir}/../binutils/ar'
7945 # Extract the first word of "ar", so it can be a program name with args.
7946 set dummy ar; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if test "${ac_cv_prog_AR+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7952 if test -n "$AR"; then
7953 ac_cv_prog_AR="$AR" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7974 if test -n "$AR"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7976 $as_echo "$AR" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7986 # --------------------
7987 # Checks for C headers
7988 # --------------------
7990 # Need to reject headers which give warnings, so that the -Werror bootstrap
7991 # works later. *sigh* This needs to come before all header checks.
7993 ac_c_preproc_warn_flag=yes
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7996 $as_echo_n "checking for ANSI C header files... " >&6; }
7997 if test "${ac_cv_header_stdc+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 ac_cv_header_stdc=yes
8018 ac_cv_header_stdc=no
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 if test $ac_cv_header_stdc = yes; then
8023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030 $EGREP "memchr" >/dev/null 2>&1; then :
8033 ac_cv_header_stdc=no
8039 if test $ac_cv_header_stdc = yes; then
8040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047 $EGREP "free" >/dev/null 2>&1; then :
8050 ac_cv_header_stdc=no
8056 if test $ac_cv_header_stdc = yes; then
8057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8058 if test "$cross_compiling" = yes; then :
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8065 #if ((' ' & 0x0FF) == 0x020)
8066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8069 # define ISLOWER(c) \
8070 (('a' <= (c) && (c) <= 'i') \
8071 || ('j' <= (c) && (c) <= 'r') \
8072 || ('s' <= (c) && (c) <= 'z'))
8073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8081 for (i = 0; i < 256; i++)
8082 if (XOR (islower (i), ISLOWER (i))
8083 || toupper (i) != TOUPPER (i))
8088 if ac_fn_c_try_run "$LINENO"; then :
8091 ac_cv_header_stdc=no
8093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8094 conftest.$ac_objext conftest.beam conftest.$ac_ext
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8100 $as_echo "$ac_cv_header_stdc" >&6; }
8101 if test $ac_cv_header_stdc = yes; then
8103 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8108 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8109 if test "${ac_cv_header_time+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include <sys/types.h>
8115 #include <sys/time.h>
8121 if ((struct tm *) 0)
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 ac_cv_header_time=yes
8130 ac_cv_header_time=no
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8135 $as_echo "$ac_cv_header_time" >&6; }
8136 if test $ac_cv_header_time = yes; then
8138 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8143 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8144 if test "${gcc_cv_header_string+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8150 #include <strings.h>
8159 if ac_fn_c_try_compile "$LINENO"; then :
8160 gcc_cv_header_string=yes
8162 gcc_cv_header_string=no
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8167 $as_echo "$gcc_cv_header_string" >&6; }
8168 if test $gcc_cv_header_string = yes; then
8170 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8175 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8176 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 #include <sys/types.h>
8182 #include <sys/wait.h>
8184 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8187 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8200 if ac_fn_c_try_compile "$LINENO"; then :
8201 ac_cv_header_sys_wait_h=yes
8203 ac_cv_header_sys_wait_h=no
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8208 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8209 if test $ac_cv_header_sys_wait_h = yes; then
8211 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8215 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8216 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8217 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8218 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8221 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8222 eval as_val=\$$as_ac_Header
8223 if test "x$as_val" = x""yes; then :
8224 cat >>confdefs.h <<_ACEOF
8225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8232 # Check for thread headers.
8233 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8234 if test "x$ac_cv_header_thread_h" = x""yes; then :
8240 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8241 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8248 # These tests can't be done till we know if we have limits.h.
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8250 $as_echo_n "checking for CHAR_BIT... " >&6; }
8251 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 #ifdef HAVE_LIMITS_H
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264 $EGREP "found" >/dev/null 2>&1; then :
8265 gcc_cv_decl_char_bit=yes
8267 gcc_cv_decl_char_bit=no
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8274 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8275 if test $gcc_cv_decl_char_bit = no; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8277 $as_echo_n "checking number of bits in a byte... " >&6; }
8278 if test "${gcc_cv_c_nbby+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8283 while test $i -lt 65; do
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8291 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8292 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299 gcc_cv_c_nbby=$i; break
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8308 $as_echo "$gcc_cv_c_nbby" >&6; }
8309 if test $gcc_cv_c_nbby = failed; then
8310 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8313 cat >>confdefs.h <<_ACEOF
8314 #define CHAR_BIT $gcc_cv_c_nbby
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8320 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8321 if test "${ac_cv_c_bigendian+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8324 ac_cv_c_bigendian=unknown
8325 # See if we're dealing with a universal compiler.
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #ifndef __APPLE_CC__
8329 not a universal capable compiler
8334 if ac_fn_c_try_compile "$LINENO"; then :
8336 # Check for potential -arch flags. It is not universal unless
8337 # there are at least two -arch flags with different values.
8340 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8341 if test -n "$ac_prev"; then
8343 i?86 | x86_64 | ppc | ppc64)
8344 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8347 ac_cv_c_bigendian=universal
8353 elif test "x$ac_word" = "x-arch"; then
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 if test $ac_cv_c_bigendian = unknown; then
8360 # See if sys/param.h defines the BYTE_ORDER macro.
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <sys/param.h>
8369 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8370 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8379 if ac_fn_c_try_compile "$LINENO"; then :
8380 # It does; now see whether it defined to BIG_ENDIAN or not.
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 #include <sys/types.h>
8384 #include <sys/param.h>
8389 #if BYTE_ORDER != BIG_ENDIAN
8397 if ac_fn_c_try_compile "$LINENO"; then :
8398 ac_cv_c_bigendian=yes
8400 ac_cv_c_bigendian=no
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 if test $ac_cv_c_bigendian = unknown; then
8407 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8415 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 # It does; now see whether it defined to _BIG_ENDIAN or not.
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8440 if ac_fn_c_try_compile "$LINENO"; then :
8441 ac_cv_c_bigendian=yes
8443 ac_cv_c_bigendian=no
8445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 if test $ac_cv_c_bigendian = unknown; then
8450 # Compile a test program.
8451 if test "$cross_compiling" = yes; then :
8452 # Try to guess by grepping values from an object file.
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8455 short int ascii_mm[] =
8456 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8457 short int ascii_ii[] =
8458 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8459 int use_ascii (int i) {
8460 return ascii_mm[i] + ascii_ii[i];
8462 short int ebcdic_ii[] =
8463 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8464 short int ebcdic_mm[] =
8465 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8466 int use_ebcdic (int i) {
8467 return ebcdic_mm[i] + ebcdic_ii[i];
8474 return use_ascii (foo) == use_ebcdic (foo);
8479 if ac_fn_c_try_compile "$LINENO"; then :
8480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8481 ac_cv_c_bigendian=yes
8483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8484 if test "$ac_cv_c_bigendian" = unknown; then
8485 ac_cv_c_bigendian=no
8487 # finding both strings is unlikely to happen, but who knows?
8488 ac_cv_c_bigendian=unknown
8492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 $ac_includes_default
8501 /* Are we little or big endian? From Harbison&Steele. */
8505 char c[sizeof (long int)];
8508 return u.c[sizeof (long int) - 1] == 1;
8514 if ac_fn_c_try_run "$LINENO"; then :
8515 ac_cv_c_bigendian=no
8517 ac_cv_c_bigendian=yes
8519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8520 conftest.$ac_objext conftest.beam conftest.$ac_ext
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8526 $as_echo "$ac_cv_c_bigendian" >&6; }
8527 case $ac_cv_c_bigendian in #(
8529 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8535 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8539 as_fn_error "unknown endianness
8540 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8544 # ----------------------
8545 # Checks for C++ headers
8546 # ----------------------
8549 ac_cpp='$CXXCPP $CPPFLAGS'
8550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8554 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8555 if test -z "$CXXCPP"; then
8556 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8559 # Double quotes because CXXCPP needs to be expanded
8560 for CXXCPP in "$CXX -E" "/lib/cpp"
8563 for ac_cxx_preproc_warn_flag in '' yes
8565 # Use a header file that comes with gcc, so configuring glibc
8566 # with a fresh cross-compiler works.
8567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8568 # <limits.h> exists even on freestanding compilers.
8569 # On the NeXT, cc -E runs the code through the compiler's parser,
8570 # not just through cpp. "Syntax error" is here to catch this case.
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8574 # include <limits.h>
8576 # include <assert.h>
8580 if ac_fn_cxx_try_cpp "$LINENO"; then :
8583 # Broken: fails on valid input.
8586 rm -f conftest.err conftest.$ac_ext
8588 # OK, works on sane cases. Now check whether nonexistent headers
8589 # can be detected and how.
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <ac_nonexistent.h>
8594 if ac_fn_cxx_try_cpp "$LINENO"; then :
8595 # Broken: success on invalid input.
8598 # Passes both tests.
8602 rm -f conftest.err conftest.$ac_ext
8605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8606 rm -f conftest.err conftest.$ac_ext
8607 if $ac_preproc_ok; then :
8612 ac_cv_prog_CXXCPP=$CXXCPP
8615 CXXCPP=$ac_cv_prog_CXXCPP
8617 ac_cv_prog_CXXCPP=$CXXCPP
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8620 $as_echo "$CXXCPP" >&6; }
8622 for ac_cxx_preproc_warn_flag in '' yes
8624 # Use a header file that comes with gcc, so configuring glibc
8625 # with a fresh cross-compiler works.
8626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8627 # <limits.h> exists even on freestanding compilers.
8628 # On the NeXT, cc -E runs the code through the compiler's parser,
8629 # not just through cpp. "Syntax error" is here to catch this case.
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8633 # include <limits.h>
8635 # include <assert.h>
8639 if ac_fn_cxx_try_cpp "$LINENO"; then :
8642 # Broken: fails on valid input.
8645 rm -f conftest.err conftest.$ac_ext
8647 # OK, works on sane cases. Now check whether nonexistent headers
8648 # can be detected and how.
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <ac_nonexistent.h>
8653 if ac_fn_cxx_try_cpp "$LINENO"; then :
8654 # Broken: success on invalid input.
8657 # Passes both tests.
8661 rm -f conftest.err conftest.$ac_ext
8664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8665 rm -f conftest.err conftest.$ac_ext
8666 if $ac_preproc_ok; then :
8669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8672 See \`config.log' for more details." >&5
8673 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8674 See \`config.log' for more details." >&2;}; }
8678 ac_cpp='$CPP $CPPFLAGS'
8679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685 ac_cpp='$CXXCPP $CPPFLAGS'
8686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8693 for ac_header in unordered_map
8695 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8696 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8697 cat >>confdefs.h <<_ACEOF
8698 #define HAVE_UNORDERED_MAP 1
8704 for ac_header in tr1/unordered_map
8706 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8707 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_TR1_UNORDERED_MAP 1
8715 for ac_header in ext/hash_map
8717 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8718 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_EXT_HASH_MAP 1
8728 ac_cpp='$CPP $CPPFLAGS'
8729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739 # These libraries may be used by collect2.
8740 # We may need a special search path to get them linked.
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8742 $as_echo_n "checking for collect2 libraries... " >&6; }
8743 if test "${gcc_cv_collect2_libs+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8747 for libs in '' -lld -lmld \
8748 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8749 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8755 /* Override any GCC internal prototype to avoid an error.
8756 Use char because int might match the return type of a GCC
8757 builtin and then its argument prototype would still apply. */
8770 if ac_fn_c_try_link "$LINENO"; then :
8771 gcc_cv_collect2_libs="$libs"; break
8773 rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8777 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8780 $as_echo "$gcc_cv_collect2_libs" >&6; }
8781 case $gcc_cv_collect2_libs in
8783 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8787 # When building Ada code on Alpha, we need exc_resume which is usually in
8788 # -lexc. So test for it.
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8792 $as_echo_n "checking for library containing exc_resume... " >&6; }
8793 if test "${ac_cv_search_exc_resume+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8796 ac_func_search_save_LIBS=$LIBS
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8810 return exc_resume ();
8815 for ac_lib in '' exc; do
8816 if test -z "$ac_lib"; then
8817 ac_res="none required"
8820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8822 if ac_fn_c_try_link "$LINENO"; then :
8823 ac_cv_search_exc_resume=$ac_res
8825 rm -f core conftest.err conftest.$ac_objext \
8827 if test "${ac_cv_search_exc_resume+set}" = set; then :
8831 if test "${ac_cv_search_exc_resume+set}" = set; then :
8834 ac_cv_search_exc_resume=no
8837 LIBS=$ac_func_search_save_LIBS
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8840 $as_echo "$ac_cv_search_exc_resume" >&6; }
8841 ac_res=$ac_cv_search_exc_resume
8842 if test "$ac_res" != no; then :
8843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8851 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8855 $as_echo_n "checking for library containing kstat_open... " >&6; }
8856 if test "${ac_cv_search_kstat_open+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8859 ac_func_search_save_LIBS=$LIBS
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8863 /* Override any GCC internal prototype to avoid an error.
8864 Use char because int might match the return type of a GCC
8865 builtin and then its argument prototype would still apply. */
8873 return kstat_open ();
8878 for ac_lib in '' kstat; do
8879 if test -z "$ac_lib"; then
8880 ac_res="none required"
8883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 ac_cv_search_kstat_open=$ac_res
8888 rm -f core conftest.err conftest.$ac_objext \
8890 if test "${ac_cv_search_kstat_open+set}" = set; then :
8894 if test "${ac_cv_search_kstat_open+set}" = set; then :
8897 ac_cv_search_kstat_open=no
8900 LIBS=$ac_func_search_save_LIBS
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8903 $as_echo "$ac_cv_search_kstat_open" >&6; }
8904 ac_res=$ac_cv_search_kstat_open
8905 if test "$ac_res" != no; then :
8906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8910 EXTRA_GCC_LIBS="$LIBS"
8914 # Some systems put ldexp and frexp in libm instead of libc; assume
8915 # they're both in the same place. jcf-dump needs them.
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8919 $as_echo_n "checking for library containing ldexp... " >&6; }
8920 if test "${ac_cv_search_ldexp+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8923 ac_func_search_save_LIBS=$LIBS
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8927 /* Override any GCC internal prototype to avoid an error.
8928 Use char because int might match the return type of a GCC
8929 builtin and then its argument prototype would still apply. */
8942 for ac_lib in '' m; do
8943 if test -z "$ac_lib"; then
8944 ac_res="none required"
8947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8949 if ac_fn_c_try_link "$LINENO"; then :
8950 ac_cv_search_ldexp=$ac_res
8952 rm -f core conftest.err conftest.$ac_objext \
8954 if test "${ac_cv_search_ldexp+set}" = set; then :
8958 if test "${ac_cv_search_ldexp+set}" = set; then :
8961 ac_cv_search_ldexp=no
8964 LIBS=$ac_func_search_save_LIBS
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8967 $as_echo "$ac_cv_search_ldexp" >&6; }
8968 ac_res=$ac_cv_search_ldexp
8969 if test "$ac_res" != no; then :
8970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8978 # Use <inttypes.h> only if it exists,
8979 # doesn't clash with <sys/types.h>, and declares intmax_t.
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8981 $as_echo_n "checking for inttypes.h... " >&6; }
8982 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8983 $as_echo_n "(cached) " >&6
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987 #include <sys/types.h>
8988 #include <inttypes.h>
8997 if ac_fn_c_try_compile "$LINENO"; then :
8998 gcc_cv_header_inttypes_h=yes
9000 gcc_cv_header_inttypes_h=no
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9006 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9007 if test $gcc_cv_header_inttypes_h = yes; then
9009 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9015 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9016 sysconf strsignal getrusage nl_langinfo \
9017 gettimeofday mbstowcs wcswidth mmap setlocale \
9018 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
9020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9022 eval as_val=\$$as_ac_var
9023 if test "x$as_val" = x""yes; then :
9024 cat >>confdefs.h <<_ACEOF
9025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9032 if test x$ac_cv_func_mbstowcs = xyes; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9034 $as_echo_n "checking whether mbstowcs works... " >&6; }
9035 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9038 if test "$cross_compiling" = yes; then :
9039 gcc_cv_func_mbstowcs_works=yes
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9050 if ac_fn_c_try_run "$LINENO"; then :
9051 gcc_cv_func_mbstowcs_works=yes
9053 gcc_cv_func_mbstowcs_works=no
9055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9056 conftest.$ac_objext conftest.beam conftest.$ac_ext
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9061 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9062 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9064 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9069 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9070 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9074 cat >>confdefs.h <<_ACEOF
9080 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9081 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define caddr_t char *
9093 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9094 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9095 gcc_header_sys_mman_h=yes
9097 gcc_header_sys_mman_h=no
9100 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9101 if test "x$ac_cv_func_mmap" = x""yes; then :
9107 if test "$gcc_header_sys_mman_h" != yes \
9108 || test "$gcc_func_mmap" != yes; then
9109 gcc_cv_func_mmap_file=no
9110 gcc_cv_func_mmap_dev_zero=no
9111 gcc_cv_func_mmap_anon=no
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9114 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9115 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9118 # Add a system to this blacklist if
9119 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9120 # memory area containing the same data that you'd get if you applied
9121 # read() to the same fd. The only system known to have a problem here
9122 # is VMS, where text files have record structure.
9125 gcc_cv_func_mmap_file=no ;;
9127 gcc_cv_func_mmap_file=yes;;
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9131 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9133 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9134 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9137 # Add a system to this blacklist if it has mmap() but /dev/zero
9138 # does not exist, or if mmapping /dev/zero does not give anonymous
9139 # zeroed pages with both the following properties:
9140 # 1. If you map N consecutive pages in with one call, and then
9141 # unmap any subset of those pages, the pages that were not
9142 # explicitly unmapped remain accessible.
9143 # 2. If you map two adjacent blocks of memory and then unmap them
9144 # both at once, they must both go away.
9145 # Systems known to be in this category are Windows (all variants),
9148 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9149 gcc_cv_func_mmap_dev_zero=no ;;
9151 gcc_cv_func_mmap_dev_zero=yes;;
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9155 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9157 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9159 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9160 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 #include <sys/types.h>
9166 #include <sys/mman.h>
9169 #ifndef MAP_ANONYMOUS
9170 #define MAP_ANONYMOUS MAP_ANON
9176 int n = MAP_ANONYMOUS;
9181 if ac_fn_c_try_compile "$LINENO"; then :
9182 gcc_cv_decl_map_anon=yes
9184 gcc_cv_decl_map_anon=no
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9189 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9191 if test $gcc_cv_decl_map_anon = no; then
9192 gcc_cv_func_mmap_anon=no
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9195 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9196 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9199 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9200 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9201 # doesn't give anonymous zeroed pages with the same properties listed
9202 # above for use of /dev/zero.
9203 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9205 vms* | cygwin* | pe | mingw* | sco* | udk* )
9206 gcc_cv_func_mmap_anon=no ;;
9208 gcc_cv_func_mmap_anon=yes;;
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9212 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9216 if test $gcc_cv_func_mmap_file = yes; then
9218 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9221 if test $gcc_cv_func_mmap_dev_zero = yes; then
9223 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9226 if test $gcc_cv_func_mmap_anon = yes; then
9228 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9235 # Under VMS, vfork works very differently than on Unix. The standard test
9236 # won't work, and it isn't easily adaptable. It makes more sense to
9238 ac_cv_func_vfork_works=yes
9241 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9242 if test "x$ac_cv_type_pid_t" = x""yes; then :
9246 cat >>confdefs.h <<_ACEOF
9252 for ac_header in vfork.h
9254 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9255 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_VFORK_H 1
9263 for ac_func in fork vfork
9265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9267 eval as_val=\$$as_ac_var
9268 if test "x$as_val" = x""yes; then :
9269 cat >>confdefs.h <<_ACEOF
9270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9276 if test "x$ac_cv_func_fork" = xyes; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9278 $as_echo_n "checking for working fork... " >&6; }
9279 if test "${ac_cv_func_fork_works+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9282 if test "$cross_compiling" = yes; then :
9283 ac_cv_func_fork_works=cross
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 $ac_includes_default
9292 /* By Ruediger Kuhlmann. */
9299 if ac_fn_c_try_run "$LINENO"; then :
9300 ac_cv_func_fork_works=yes
9302 ac_cv_func_fork_works=no
9304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9305 conftest.$ac_objext conftest.beam conftest.$ac_ext
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9310 $as_echo "$ac_cv_func_fork_works" >&6; }
9313 ac_cv_func_fork_works=$ac_cv_func_fork
9315 if test "x$ac_cv_func_fork_works" = xcross; then
9317 *-*-amigaos* | *-*-msdosdjgpp*)
9318 # Override, as these systems have only a dummy fork() stub
9319 ac_cv_func_fork_works=no
9322 ac_cv_func_fork_works=yes
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9326 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9328 ac_cv_func_vfork_works=$ac_cv_func_vfork
9329 if test "x$ac_cv_func_vfork" = xyes; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9331 $as_echo_n "checking for working vfork... " >&6; }
9332 if test "${ac_cv_func_vfork_works+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9335 if test "$cross_compiling" = yes; then :
9336 ac_cv_func_vfork_works=cross
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 /* Thanks to Paul Eggert for this test. */
9341 $ac_includes_default
9342 #include <sys/wait.h>
9346 /* On some sparc systems, changes by the child to local and incoming
9347 argument registers are propagated back to the parent. The compiler
9348 is told about this with #include <vfork.h>, but some compilers
9349 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9350 static variable whose address is put into a register that is
9351 clobbered by the vfork. */
9354 sparc_address_test (int arg)
9356 sparc_address_test (arg) int arg;
9377 pid_t parent = getpid ();
9380 sparc_address_test (0);
9385 /* Here is another test for sparc vfork register problems. This
9386 test uses lots of local variables, at least as many local
9387 variables as main has allocated so far including compiler
9388 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9389 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9390 reuse the register of parent for one of the local variables,
9391 since it will think that parent can't possibly be used any more
9392 in this routine. Assigning to the local variable will thus
9393 munge parent in the parent process. */
9395 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9396 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9397 /* Convince the compiler that p..p7 are live; otherwise, it might
9398 use the same hardware register for all 8 local variables. */
9399 if (p != p1 || p != p2 || p != p3 || p != p4
9400 || p != p5 || p != p6 || p != p7)
9403 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9404 from child file descriptors. If the child closes a descriptor
9405 before it execs or exits, this munges the parent's descriptor
9406 as well. Test for this by closing stdout in the child. */
9407 _exit(close(fileno(stdout)) != 0);
9412 while (wait(&status) != child)
9415 /* Was there some problem with vforking? */
9418 /* Did the child fail? (This shouldn't happen.) */
9421 /* Did the vfork/compiler bug occur? */
9422 || parent != getpid()
9424 /* Did the file descriptor bug occur? */
9425 || fstat(fileno(stdout), &st) != 0
9430 if ac_fn_c_try_run "$LINENO"; then :
9431 ac_cv_func_vfork_works=yes
9433 ac_cv_func_vfork_works=no
9435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9436 conftest.$ac_objext conftest.beam conftest.$ac_ext
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9441 $as_echo "$ac_cv_func_vfork_works" >&6; }
9444 if test "x$ac_cv_func_fork_works" = xcross; then
9445 ac_cv_func_vfork_works=$ac_cv_func_vfork
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9447 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9450 if test "x$ac_cv_func_vfork_works" = xyes; then
9452 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9456 $as_echo "#define vfork fork" >>confdefs.h
9459 if test "x$ac_cv_func_fork_works" = xyes; then
9461 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9466 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9467 # iconv() prototype.
9469 if test "X$prefix" = "XNONE"; then
9470 acl_final_prefix="$ac_default_prefix"
9472 acl_final_prefix="$prefix"
9474 if test "X$exec_prefix" = "XNONE"; then
9475 acl_final_exec_prefix='${prefix}'
9477 acl_final_exec_prefix="$exec_prefix"
9479 acl_save_prefix="$prefix"
9480 prefix="$acl_final_prefix"
9481 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9482 prefix="$acl_save_prefix"
9485 # Check whether --with-gnu-ld was given.
9486 if test "${with_gnu_ld+set}" = set; then :
9487 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9492 # Prepare PATH_SEPARATOR.
9493 # The user is always right.
9494 if test "${PATH_SEPARATOR+set}" != set; then
9495 echo "#! /bin/sh" >conf$$.sh
9496 echo "exit 0" >>conf$$.sh
9498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9506 if test "$GCC" = yes; then
9507 # Check if gcc -print-prog-name=ld gives a path.
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9509 $as_echo_n "checking for ld used by GCC... " >&6; }
9512 # gcc leaves a trailing carriage return which upsets mingw
9513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9518 # Accept absolute paths.
9519 [\\/]* | [A-Za-z]:[\\/]*)
9520 re_direlt='/[^/][^/]*/\.\./'
9521 # Canonicalize the path of ld
9522 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9523 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9524 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9526 test -z "$LD" && LD="$ac_prog"
9529 # If it fails, then pretend we aren't using GCC.
9533 # If it is relative, then search for the first ld in PATH.
9537 elif test "$with_gnu_ld" = yes; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9539 $as_echo_n "checking for GNU ld... " >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9542 $as_echo_n "checking for non-GNU ld... " >&6; }
9544 if test "${acl_cv_path_LD+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9547 if test -z "$LD"; then
9548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9549 for ac_dir in $PATH; do
9550 test -z "$ac_dir" && ac_dir=.
9551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9552 acl_cv_path_LD="$ac_dir/$ac_prog"
9553 # Check to see if the program is GNU ld. I'd rather use --version,
9554 # but apparently some GNU ld's only accept -v.
9555 # Break only if it was the GNU/non-GNU ld that we prefer.
9556 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9557 test "$with_gnu_ld" != no && break
9559 test "$with_gnu_ld" != yes && break
9565 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9569 LD="$acl_cv_path_LD"
9570 if test -n "$LD"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9572 $as_echo "$LD" >&6; }
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9577 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9580 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9584 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9585 acl_cv_prog_gnu_ld=yes
9587 acl_cv_prog_gnu_ld=no
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9591 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9592 with_gnu_ld=$acl_cv_prog_gnu_ld
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9597 $as_echo_n "checking for shared library run path origin... " >&6; }
9598 if test "${acl_cv_rpath+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9602 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9603 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9610 $as_echo "$acl_cv_rpath" >&6; }
9612 libext="$acl_cv_libext"
9613 shlibext="$acl_cv_shlibext"
9614 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9615 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9616 hardcode_direct="$acl_cv_hardcode_direct"
9617 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9618 # Check whether --enable-rpath was given.
9619 if test "${enable_rpath+set}" = set; then :
9620 enableval=$enable_rpath; :
9634 acl_save_prefix="$prefix"
9635 prefix="$acl_final_prefix"
9636 acl_save_exec_prefix="$exec_prefix"
9637 exec_prefix="$acl_final_exec_prefix"
9639 eval additional_includedir=\"$includedir\"
9640 eval additional_libdir=\"$libdir\"
9642 exec_prefix="$acl_save_exec_prefix"
9643 prefix="$acl_save_prefix"
9646 # Check whether --with-libiconv-prefix was given.
9647 if test "${with_libiconv_prefix+set}" = set; then :
9648 withval=$with_libiconv_prefix;
9649 if test "X$withval" = "Xno"; then
9652 if test "X$withval" = "X"; then
9654 acl_save_prefix="$prefix"
9655 prefix="$acl_final_prefix"
9656 acl_save_exec_prefix="$exec_prefix"
9657 exec_prefix="$acl_final_exec_prefix"
9659 eval additional_includedir=\"$includedir\"
9660 eval additional_libdir=\"$libdir\"
9662 exec_prefix="$acl_save_exec_prefix"
9663 prefix="$acl_save_prefix"
9666 additional_includedir="$withval/include"
9667 additional_libdir="$withval/lib"
9678 names_already_handled=
9679 names_next_round='iconv '
9680 while test -n "$names_next_round"; do
9681 names_this_round="$names_next_round"
9683 for name in $names_this_round; do
9685 for n in $names_already_handled; do
9686 if test "$n" = "$name"; then
9691 if test -z "$already_handled"; then
9692 names_already_handled="$names_already_handled $name"
9693 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9694 eval value=\"\$HAVE_LIB$uppername\"
9695 if test -n "$value"; then
9696 if test "$value" = yes; then
9697 eval value=\"\$LIB$uppername\"
9698 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9699 eval value=\"\$LTLIB$uppername\"
9700 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9709 if test $use_additional = yes; then
9710 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9711 found_dir="$additional_libdir"
9712 found_so="$additional_libdir/lib$name.$shlibext"
9713 if test -f "$additional_libdir/lib$name.la"; then
9714 found_la="$additional_libdir/lib$name.la"
9717 if test -f "$additional_libdir/lib$name.$libext"; then
9718 found_dir="$additional_libdir"
9719 found_a="$additional_libdir/lib$name.$libext"
9720 if test -f "$additional_libdir/lib$name.la"; then
9721 found_la="$additional_libdir/lib$name.la"
9726 if test "X$found_dir" = "X"; then
9727 for x in $LDFLAGS $LTLIBICONV; do
9729 acl_save_prefix="$prefix"
9730 prefix="$acl_final_prefix"
9731 acl_save_exec_prefix="$exec_prefix"
9732 exec_prefix="$acl_final_exec_prefix"
9734 exec_prefix="$acl_save_exec_prefix"
9735 prefix="$acl_save_prefix"
9739 dir=`echo "X$x" | sed -e 's/^X-L//'`
9740 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9742 found_so="$dir/lib$name.$shlibext"
9743 if test -f "$dir/lib$name.la"; then
9744 found_la="$dir/lib$name.la"
9747 if test -f "$dir/lib$name.$libext"; then
9749 found_a="$dir/lib$name.$libext"
9750 if test -f "$dir/lib$name.la"; then
9751 found_la="$dir/lib$name.la"
9757 if test "X$found_dir" != "X"; then
9762 if test "X$found_dir" != "X"; then
9763 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9764 if test "X$found_so" != "X"; then
9765 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9769 for x in $ltrpathdirs; do
9770 if test "X$x" = "X$found_dir"; then
9775 if test -z "$haveit"; then
9776 ltrpathdirs="$ltrpathdirs $found_dir"
9778 if test "$hardcode_direct" = yes; then
9779 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9781 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9784 for x in $rpathdirs; do
9785 if test "X$x" = "X$found_dir"; then
9790 if test -z "$haveit"; then
9791 rpathdirs="$rpathdirs $found_dir"
9795 for x in $LDFLAGS $LIBICONV; do
9797 acl_save_prefix="$prefix"
9798 prefix="$acl_final_prefix"
9799 acl_save_exec_prefix="$exec_prefix"
9800 exec_prefix="$acl_final_exec_prefix"
9802 exec_prefix="$acl_save_exec_prefix"
9803 prefix="$acl_save_prefix"
9805 if test "X$x" = "X-L$found_dir"; then
9810 if test -z "$haveit"; then
9811 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9813 if test "$hardcode_minus_L" != no; then
9814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9816 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9822 if test "X$found_a" != "X"; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9825 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9828 additional_includedir=
9829 case "$found_dir" in
9831 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9832 additional_includedir="$basedir/include"
9835 if test "X$additional_includedir" != "X"; then
9836 if test "X$additional_includedir" != "X/usr/include"; then
9838 if test "X$additional_includedir" = "X/usr/local/include"; then
9839 if test -n "$GCC"; then
9841 linux*) haveit=yes;;
9845 if test -z "$haveit"; then
9846 for x in $CPPFLAGS $INCICONV; do
9848 acl_save_prefix="$prefix"
9849 prefix="$acl_final_prefix"
9850 acl_save_exec_prefix="$exec_prefix"
9851 exec_prefix="$acl_final_exec_prefix"
9853 exec_prefix="$acl_save_exec_prefix"
9854 prefix="$acl_save_prefix"
9856 if test "X$x" = "X-I$additional_includedir"; then
9861 if test -z "$haveit"; then
9862 if test -d "$additional_includedir"; then
9863 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9869 if test -n "$found_la"; then
9870 save_libdir="$libdir"
9872 */* | *\\*) . "$found_la" ;;
9873 *) . "./$found_la" ;;
9875 libdir="$save_libdir"
9876 for dep in $dependency_libs; do
9879 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9880 if test "X$additional_libdir" != "X/usr/lib"; then
9882 if test "X$additional_libdir" = "X/usr/local/lib"; then
9883 if test -n "$GCC"; then
9885 linux*) haveit=yes;;
9889 if test -z "$haveit"; then
9891 for x in $LDFLAGS $LIBICONV; do
9893 acl_save_prefix="$prefix"
9894 prefix="$acl_final_prefix"
9895 acl_save_exec_prefix="$exec_prefix"
9896 exec_prefix="$acl_final_exec_prefix"
9898 exec_prefix="$acl_save_exec_prefix"
9899 prefix="$acl_save_prefix"
9901 if test "X$x" = "X-L$additional_libdir"; then
9906 if test -z "$haveit"; then
9907 if test -d "$additional_libdir"; then
9908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9912 for x in $LDFLAGS $LTLIBICONV; do
9914 acl_save_prefix="$prefix"
9915 prefix="$acl_final_prefix"
9916 acl_save_exec_prefix="$exec_prefix"
9917 exec_prefix="$acl_final_exec_prefix"
9919 exec_prefix="$acl_save_exec_prefix"
9920 prefix="$acl_save_prefix"
9922 if test "X$x" = "X-L$additional_libdir"; then
9927 if test -z "$haveit"; then
9928 if test -d "$additional_libdir"; then
9929 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9936 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9937 if test "$enable_rpath" != no; then
9939 for x in $rpathdirs; do
9940 if test "X$x" = "X$dir"; then
9945 if test -z "$haveit"; then
9946 rpathdirs="$rpathdirs $dir"
9949 for x in $ltrpathdirs; do
9950 if test "X$x" = "X$dir"; then
9955 if test -z "$haveit"; then
9956 ltrpathdirs="$ltrpathdirs $dir"
9961 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9964 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9967 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9968 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9974 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9975 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9981 if test "X$rpathdirs" != "X"; then
9982 if test -n "$hardcode_libdir_separator"; then
9984 for found_dir in $rpathdirs; do
9985 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9987 acl_save_libdir="$libdir"
9989 eval flag=\"$hardcode_libdir_flag_spec\"
9990 libdir="$acl_save_libdir"
9991 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9993 for found_dir in $rpathdirs; do
9994 acl_save_libdir="$libdir"
9996 eval flag=\"$hardcode_libdir_flag_spec\"
9997 libdir="$acl_save_libdir"
9998 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10002 if test "X$ltrpathdirs" != "X"; then
10003 for found_dir in $ltrpathdirs; do
10004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10009 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10011 ac_cpp='$CXXCPP $CPPFLAGS'
10012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10021 am_save_CPPFLAGS="$CPPFLAGS"
10023 for element in $INCICONV; do
10025 for x in $CPPFLAGS; do
10027 acl_save_prefix="$prefix"
10028 prefix="$acl_final_prefix"
10029 acl_save_exec_prefix="$exec_prefix"
10030 exec_prefix="$acl_final_exec_prefix"
10032 exec_prefix="$acl_save_exec_prefix"
10033 prefix="$acl_save_prefix"
10035 if test "X$x" = "X$element"; then
10040 if test -z "$haveit"; then
10041 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10047 $as_echo_n "checking for iconv... " >&6; }
10048 if test "${am_cv_func_iconv+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
10052 am_cv_func_iconv="no, consider installing GNU libiconv"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 #include <stdlib.h>
10061 iconv_t cd = iconv_open("","");
10062 iconv(cd,NULL,NULL,NULL,NULL);
10068 if ac_fn_cxx_try_link "$LINENO"; then :
10069 am_cv_func_iconv=yes
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 if test "$am_cv_func_iconv" != yes; then
10074 am_save_LIBS="$LIBS"
10075 LIBS="$LIBS $LIBICONV"
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078 #include <stdlib.h>
10083 iconv_t cd = iconv_open("","");
10084 iconv(cd,NULL,NULL,NULL,NULL);
10090 if ac_fn_cxx_try_link "$LINENO"; then :
10091 am_cv_lib_iconv=yes
10092 am_cv_func_iconv=yes
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS="$am_save_LIBS"
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10101 $as_echo "$am_cv_func_iconv" >&6; }
10102 if test "$am_cv_func_iconv" = yes; then
10104 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10107 if test "$am_cv_lib_iconv" = yes; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10109 $as_echo_n "checking how to link with libiconv... " >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10111 $as_echo "$LIBICONV" >&6; }
10113 CPPFLAGS="$am_save_CPPFLAGS"
10120 if test "$am_cv_func_iconv" = yes; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10122 $as_echo_n "checking for iconv declaration... " >&6; }
10123 if test "${am_cv_proto_iconv+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10130 #include <stdlib.h>
10136 #if defined(__STDC__) || defined(__cplusplus)
10137 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10150 if ac_fn_cxx_try_compile "$LINENO"; then :
10151 am_cv_proto_iconv_arg1=""
10153 am_cv_proto_iconv_arg1="const"
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 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);"
10159 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10161 }$am_cv_proto_iconv" >&5
10163 }$am_cv_proto_iconv" >&6; }
10165 cat >>confdefs.h <<_ACEOF
10166 #define ICONV_CONST $am_cv_proto_iconv_arg1
10172 ac_cpp='$CPP $CPPFLAGS'
10173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183 am_save_CPPFLAGS="$CPPFLAGS"
10185 for element in $INCICONV; do
10187 for x in $CPPFLAGS; do
10189 acl_save_prefix="$prefix"
10190 prefix="$acl_final_prefix"
10191 acl_save_exec_prefix="$exec_prefix"
10192 exec_prefix="$acl_final_exec_prefix"
10194 exec_prefix="$acl_save_exec_prefix"
10195 prefix="$acl_save_prefix"
10197 if test "X$x" = "X$element"; then
10202 if test -z "$haveit"; then
10203 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10209 $as_echo_n "checking for iconv... " >&6; }
10210 if test "${am_cv_func_iconv+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10214 am_cv_func_iconv="no, consider installing GNU libiconv"
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #include <stdlib.h>
10223 iconv_t cd = iconv_open("","");
10224 iconv(cd,NULL,NULL,NULL,NULL);
10230 if ac_fn_c_try_link "$LINENO"; then :
10231 am_cv_func_iconv=yes
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 if test "$am_cv_func_iconv" != yes; then
10236 am_save_LIBS="$LIBS"
10237 LIBS="$LIBS $LIBICONV"
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <stdlib.h>
10245 iconv_t cd = iconv_open("","");
10246 iconv(cd,NULL,NULL,NULL,NULL);
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 am_cv_lib_iconv=yes
10254 am_cv_func_iconv=yes
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS="$am_save_LIBS"
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10263 $as_echo "$am_cv_func_iconv" >&6; }
10264 if test "$am_cv_func_iconv" = yes; then
10266 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10269 if test "$am_cv_lib_iconv" = yes; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10271 $as_echo_n "checking how to link with libiconv... " >&6; }
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10273 $as_echo "$LIBICONV" >&6; }
10275 CPPFLAGS="$am_save_CPPFLAGS"
10282 if test "$am_cv_func_iconv" = yes; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10284 $as_echo_n "checking for iconv declaration... " >&6; }
10285 if test "${am_cv_proto_iconv+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10292 #include <stdlib.h>
10298 #if defined(__STDC__) || defined(__cplusplus)
10299 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10312 if ac_fn_c_try_compile "$LINENO"; then :
10313 am_cv_proto_iconv_arg1=""
10315 am_cv_proto_iconv_arg1="const"
10317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10318 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);"
10321 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10323 }$am_cv_proto_iconv" >&5
10325 }$am_cv_proto_iconv" >&6; }
10327 cat >>confdefs.h <<_ACEOF
10328 #define ICONV_CONST $am_cv_proto_iconv_arg1
10335 # Until we have in-tree GNU iconv:
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10341 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10342 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 #include <locale.h>
10356 if ac_fn_c_try_link "$LINENO"; then :
10357 am_cv_val_LC_MESSAGES=yes
10359 am_cv_val_LC_MESSAGES=no
10361 rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10365 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10366 if test $am_cv_val_LC_MESSAGES = yes; then
10368 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10375 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10376 if test "${am_cv_langinfo_codeset+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 #include <langinfo.h>
10385 char* cs = nl_langinfo(CODESET);
10390 if ac_fn_c_try_link "$LINENO"; then :
10391 am_cv_langinfo_codeset=yes
10393 am_cv_langinfo_codeset=no
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10400 $as_echo "$am_cv_langinfo_codeset" >&6; }
10401 if test $am_cv_langinfo_codeset = yes; then
10403 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10408 # We will need to find libiberty.h and ansidecl.h
10409 saved_CFLAGS="$CFLAGS"
10410 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10411 saved_CXXFLAGS="$CXXFLAGS"
10412 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10413 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10414 strsignal strstr strverscmp \
10415 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10416 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
10418 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10420 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10421 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10422 $as_echo_n "(cached) " >&6
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10427 #define $ac_tr_decl 1
10429 #include "ansidecl.h"
10430 #include "system.h"
10436 char *(*pfn) = (char *(*)) $ac_func ;
10442 if ac_fn_c_try_compile "$LINENO"; then :
10443 eval "gcc_cv_have_decl_$ac_func=yes"
10445 eval "gcc_cv_have_decl_$ac_func=no"
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10453 #define $ac_tr_decl 1
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10459 #define $ac_tr_decl 0
10467 for ac_func in getrlimit setrlimit getrusage
10469 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10471 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10472 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10473 $as_echo_n "(cached) " >&6
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10478 #define $ac_tr_decl 1
10480 #include "ansidecl.h"
10481 #include "system.h"
10482 #ifdef HAVE_SYS_RESOURCE_H
10483 #include <sys/resource.h>
10491 char *(*pfn) = (char *(*)) $ac_func ;
10497 if ac_fn_c_try_compile "$LINENO"; then :
10498 eval "gcc_cv_have_decl_$ac_func=yes"
10500 eval "gcc_cv_have_decl_$ac_func=no"
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10507 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10508 #define $ac_tr_decl 1
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10514 #define $ac_tr_decl 0
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10525 #include "ansidecl.h"
10526 #include "system.h"
10527 #ifdef HAVE_SYS_RESOURCE_H
10528 #include <sys/resource.h>
10539 if ac_fn_c_try_compile "$LINENO"; then :
10543 $as_echo "#define rlim_t long" >>confdefs.h
10546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10549 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10550 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10551 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10552 for ac_func in ldgetname
10554 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10556 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10557 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10558 $as_echo_n "(cached) " >&6
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10563 #define $ac_tr_decl 1
10565 #include "ansidecl.h"
10566 #include "system.h"
10567 #ifdef HAVE_LDFCN_H
10578 char *(*pfn) = (char *(*)) $ac_func ;
10584 if ac_fn_c_try_compile "$LINENO"; then :
10585 eval "gcc_cv_have_decl_$ac_func=yes"
10587 eval "gcc_cv_have_decl_$ac_func=no"
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10595 #define $ac_tr_decl 1
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10601 #define $ac_tr_decl 0
10609 for ac_func in times
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_SYS_TIMES_H
10625 #include <sys/times.h>
10633 char *(*pfn) = (char *(*)) $ac_func ;
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 eval "gcc_cv_have_decl_$ac_func=yes"
10642 eval "gcc_cv_have_decl_$ac_func=no"
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10649 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10650 #define $ac_tr_decl 1
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10656 #define $ac_tr_decl 0
10664 for ac_func in sigaltstack
10666 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10668 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10669 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10670 $as_echo_n "(cached) " >&6
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 #define $ac_tr_decl 1
10677 #include "ansidecl.h"
10678 #include "system.h"
10679 #include <signal.h>
10686 char *(*pfn) = (char *(*)) $ac_func ;
10692 if ac_fn_c_try_compile "$LINENO"; then :
10693 eval "gcc_cv_have_decl_$ac_func=yes"
10695 eval "gcc_cv_have_decl_$ac_func=no"
10697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10702 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10703 #define $ac_tr_decl 1
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10709 #define $ac_tr_decl 0
10717 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10719 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10721 ac_cpp='$CXXCPP $CPPFLAGS'
10722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10726 for ac_func in madvise
10728 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10730 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10731 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10732 $as_echo_n "(cached) " >&6
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10737 #define $ac_tr_decl 1
10739 #include "ansidecl.h"
10740 #include "system.h"
10747 char *(*pfn) = (char *(*)) $ac_func ;
10753 if ac_fn_cxx_try_compile "$LINENO"; then :
10754 eval "gcc_cv_have_decl_$ac_func=yes"
10756 eval "gcc_cv_have_decl_$ac_func=no"
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10764 #define $ac_tr_decl 1
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10770 #define $ac_tr_decl 0
10778 ac_cpp='$CPP $CPPFLAGS'
10779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10784 for ac_func in madvise
10786 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10788 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10789 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10790 $as_echo_n "(cached) " >&6
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 #define $ac_tr_decl 1
10797 #include "ansidecl.h"
10798 #include "system.h"
10805 char *(*pfn) = (char *(*)) $ac_func ;
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 eval "gcc_cv_have_decl_$ac_func=yes"
10814 eval "gcc_cv_have_decl_$ac_func=no"
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10822 #define $ac_tr_decl 1
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10828 #define $ac_tr_decl 0
10838 # More time-related stuff.
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10840 $as_echo_n "checking for struct tms... " >&6; }
10841 if test "${ac_cv_struct_tms+set}" = set; then :
10842 $as_echo_n "(cached) " >&6
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 #include "ansidecl.h"
10849 #include "system.h"
10850 #ifdef HAVE_SYS_TIMES_H
10851 #include <sys/times.h>
10862 if ac_fn_c_try_compile "$LINENO"; then :
10863 ac_cv_struct_tms=yes
10865 ac_cv_struct_tms=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10870 $as_echo "$ac_cv_struct_tms" >&6; }
10871 if test $ac_cv_struct_tms = yes; then
10873 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10877 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10878 # revisit after autoconf 2.50.
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10880 $as_echo_n "checking for clock_t... " >&6; }
10881 if test "${gcc_cv_type_clock_t+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 #include "ansidecl.h"
10889 #include "system.h"
10899 if ac_fn_c_try_compile "$LINENO"; then :
10900 gcc_cv_type_clock_t=yes
10902 gcc_cv_type_clock_t=no
10904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10907 $as_echo "$gcc_cv_type_clock_t" >&6; }
10908 if test $gcc_cv_type_clock_t = yes; then
10910 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10914 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10915 CFLAGS="$saved_CFLAGS"
10916 CXXFLAGS="$saved_CXXFLAGS"
10918 # Check whether --enable-initfini-array was given.
10919 if test "${enable_initfini_array+set}" = set; then :
10920 enableval=$enable_initfini_array;
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10924 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10925 if test "${gcc_cv_initfini_array+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
10928 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10929 if test "$cross_compiling" = yes; then :
10930 gcc_cv_initfini_array=no
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10936 #error Not an ELF OS
10939 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10940 if it can be used. */
10942 int main (void) { return x; }
10943 int foo (void) { x = 0; }
10944 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10946 extern void abort ();
10956 void (*const init_array1005) ()
10957 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10965 void (*const fini_array1005) ()
10966 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10976 void (*const ctors1007) ()
10977 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10986 void (*const dtors1007) ()
10987 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10997 void (*const init_array65530) ()
10998 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11003 if (count != 65530)
11007 void (*const fini_array65530) ()
11008 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11014 if (count != 65530)
11018 void (*const ctors65535) ()
11019 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11024 if (count != 65535)
11028 void (*const dtors65535) ()
11029 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11035 if (count != 65535)
11042 if ac_fn_c_try_run "$LINENO"; then :
11043 gcc_cv_initfini_array=yes
11045 gcc_cv_initfini_array=no
11047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11048 conftest.$ac_objext conftest.beam conftest.$ac_ext
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11053 $as_echo_n "checking cross compile... guessing... " >&6; }
11054 gcc_cv_initfini_array=no
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11058 $as_echo "$gcc_cv_initfini_array" >&6; }
11059 enable_initfini_array=$gcc_cv_initfini_array
11063 if test $enable_initfini_array = yes; then
11065 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11069 # mkdir takes a single argument on some systems.
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11071 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11072 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11078 #include <sys/types.h>
11079 #ifdef HAVE_SYS_STAT_H
11080 # include <sys/stat.h>
11082 #ifdef HAVE_UNISTD_H
11083 # include <unistd.h>
11085 #ifdef HAVE_DIRECT_H
11086 # include <direct.h>
11096 if ac_fn_c_try_compile "$LINENO"; then :
11097 gcc_cv_mkdir_takes_one_arg=no
11099 gcc_cv_mkdir_takes_one_arg=yes
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11104 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11105 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11107 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11118 # With Setjmp/Longjmp based exception handling.
11119 # Check whether --enable-sjlj-exceptions was given.
11120 if test "${enable_sjlj_exceptions+set}" = set; then :
11121 enableval=$enable_sjlj_exceptions; case $target in
11123 if test $enableval != yes; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11125 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11130 force_sjlj_exceptions=yes
11134 force_sjlj_exceptions=yes
11138 force_sjlj_exceptions=no
11143 if test $force_sjlj_exceptions = yes; then
11144 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11146 cat >>confdefs.h <<_ACEOF
11147 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11152 # --------------------------------------------------------
11153 # Build, host, and target specific configuration fragments
11154 # --------------------------------------------------------
11156 # Collect build-machine-specific information.
11157 . ${srcdir}/config.build
11159 # Collect host-machine-specific information.
11160 . ${srcdir}/config.host
11164 # Collect target-machine-specific information.
11165 . ${srcdir}/config.gcc
11167 extra_objs="${host_extra_objs} ${extra_objs}"
11168 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11170 # Default the target-machine variables that were not explicitly set.
11171 if test x"$tm_file" = x
11172 then tm_file=$cpu_type/$cpu_type.h; fi
11174 if test x"$extra_headers" = x
11175 then extra_headers=; fi
11177 if test x$md_file = x
11178 then md_file=$cpu_type/$cpu_type.md; fi
11180 if test x$out_file = x
11181 then out_file=$cpu_type/$cpu_type.c; fi
11183 if test x"$tmake_file" = x
11184 then tmake_file=$cpu_type/t-$cpu_type
11187 if test x"$dwarf2" = xyes
11188 then tm_file="$tm_file tm-dwarf2.h"
11191 # Say what files are being used for the output code and MD file.
11192 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11193 echo "Using \`$srcdir/config/$md_file' as machine description file."
11195 # If any of the xm_file variables contain nonexistent files, warn
11196 # about them and drop them.
11199 for x in $build_xm_file; do
11200 if test -f $srcdir/config/$x
11202 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11203 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11206 build_xm_file="$bx"
11209 for x in $host_xm_file; do
11210 if test -f $srcdir/config/$x
11212 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11213 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11219 for x in $xm_file; do
11220 if test -f $srcdir/config/$x
11222 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11223 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11229 for f in $tm_file; do
11232 if test $count = ax; then
11233 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11235 echo "Using the following target machine macro files:"
11236 for f in $tm_file; do
11237 echo " $srcdir/config/$f"
11241 if test x$need_64bit_hwint = xyes; then
11243 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11247 if test x$use_long_long_for_widest_fast_int = xyes; then
11249 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11254 for f in $host_xm_file; do
11257 if test $count = a; then
11259 elif test $count = ax; then
11260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11262 echo "Using the following host machine macro files:"
11263 for f in $host_xm_file; do
11264 echo " $srcdir/config/$f"
11267 echo "Using ${out_host_hook_obj} for host machine hooks."
11269 if test "$host_xm_file" != "$build_xm_file"; then
11271 for f in $build_xm_file; do
11274 if test $count = a; then
11276 elif test $count = ax; then
11277 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11279 echo "Using the following build machine macro files:"
11280 for f in $build_xm_file; do
11281 echo " $srcdir/config/$f"
11286 if test -n "$configured_native_system_header_dir"; then
11287 native_system_header_dir=$configured_native_system_header_dir
11289 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11293 powerpc*-*-darwin*)
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11295 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11296 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 #include <sys/cdefs.h>
11303 #include <sys/signal.h>
11304 #include <ucontext.h>
11305 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11308 if ac_fn_c_try_compile "$LINENO"; then :
11309 gcc_cv_mcontext_underscores=no
11311 gcc_cv_mcontext_underscores=yes
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11316 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11317 if test $gcc_cv_mcontext_underscores = yes; then
11319 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11329 # Check if a valid thread package
11330 case ${enable_threads} in
11333 target_thread_file='single'
11337 target_thread_file='single'
11339 aix | dce | lynx | mipssde | posix | rtems | \
11340 single | tpf | vxworks | win32)
11341 target_thread_file=${enable_threads}
11344 echo "${enable_threads} is an unknown thread package" 1>&2
11349 if test x${thread_file} = x; then
11350 # No thread file set by target-specific clauses in config.gcc,
11351 # so use file chosen by default logic above
11352 thread_file=${target_thread_file}
11360 if test x$enable___cxa_atexit = xyes || \
11361 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11362 if test x$host = x$target; then
11364 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11365 # keyed to flag_use_cxa_atexit
11370 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11371 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11374 echo "__cxa_atexit can't be enabled on this target"
11380 # We can't check for __cxa_atexit when building a cross, so assume
11384 if test x$use_cxa_atexit = xyes; then
11386 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11391 # Look for a file containing extra machine modes.
11392 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11393 extra_modes_file='$(srcdir)'/config/${extra_modes}
11396 cat >>confdefs.h <<_ACEOF
11397 #define EXTRA_MODES_FILE "config/$extra_modes"
11402 # Convert extra_options into a form suitable for Makefile use.
11405 for f in $extra_options; do
11406 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11407 all_opt_files="$all_opt_files $srcdir/config/$f"
11411 # auto-host.h is the file containing items generated by autoconf and is
11412 # the first file included by config.h.
11413 # If host=build, it is correct to have bconfig include auto-host.h
11414 # as well. If host!=build, we are in error and need to do more
11415 # work to find out the build config parameters.
11416 if test x$host = x$build
11418 build_auto=auto-host.h
11420 # We create a subdir, then run autoconf in the subdir.
11421 # To prevent recursion we set host and build for the new
11422 # invocation of configure to the build for this invocation
11429 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11430 *) realsrcdir=../${srcdir};;
11432 saved_CFLAGS="${CFLAGS}"
11433 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11434 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11435 ${realsrcdir}/configure \
11436 --enable-languages=${enable_languages-all} \
11437 --target=$target_alias --host=$build_alias --build=$build_alias
11438 CFLAGS="${saved_CFLAGS}"
11440 # We just finished tests for the build machine, so rename
11441 # the file auto-build.h in the gcc directory.
11442 mv auto-host.h ../auto-build.h
11445 build_auto=auto-build.h
11449 tm_file="${tm_file} defaults.h"
11450 tm_p_file="${tm_p_file} tm-preds.h"
11451 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11452 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11453 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11454 # put this back in temporarily.
11455 xm_file="auto-host.h ansidecl.h ${xm_file}"
11461 # Compile in configure arguments.
11462 if test -f configargs.h ; then
11463 # Being re-configured.
11464 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11465 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11467 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11470 # Double all backslashes and backslash all quotes to turn
11471 # gcc_config_arguments into a C string.
11472 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11473 $gcc_config_arguments
11475 gcc_config_arguments_str=`cat conftest.out`
11478 cat > configargs.h <<EOF
11479 /* Generated automatically. */
11480 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11481 static const char thread_model[] = "$thread_file";
11483 static const struct {
11484 const char *name, *value;
11485 } configure_default_options[] = $configure_default_options;
11488 gcc_BASEVER=`cat $srcdir/BASE-VER`
11489 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11490 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11491 if test -f $srcdir/REVISION ; then
11492 gcc_REVISION=`cat $srcdir/REVISION`
11496 cat > plugin-version.h <<EOF
11497 #include "configargs.h"
11499 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11500 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11501 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11502 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11504 static char basever[] = "$gcc_BASEVER";
11505 static char datestamp[] = "$gcc_DATESTAMP";
11506 static char devphase[] = "$gcc_DEVPHASE";
11507 static char revision[] = "$gcc_REVISION";
11509 /* FIXME plugins: We should make the version information more precise.
11510 One way to do is to add a checksum. */
11512 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11513 devphase, revision,
11514 configuration_arguments};
11517 # Internationalization
11518 # If we haven't got the data from the intl directory,
11519 # assume NLS is disabled.
11528 if test -f ../intl/config.intl; then
11529 . ../intl/config.intl
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11532 $as_echo_n "checking whether NLS is requested... " >&6; }
11533 if test x"$USE_NLS" != xyes; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11540 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11544 $as_echo_n "checking for catalogs to be installed... " >&6; }
11545 # Look for .po and .gmo files in the source directory.
11548 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11549 # If there aren't any .gmo files the shell will give us the
11550 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11552 case "$cat" in *\**)
11555 # The quadruple backslash is collapsed to a double backslash
11556 # by the backticks, then collapsed again by the double quotes,
11557 # leaving us with one backslash in the sed expression (right
11558 # before the dot that mustn't act as a wildcard).
11559 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11560 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11561 # The user is allowed to set LINGUAS to a list of languages to
11562 # install catalogs for. If it's empty that means "all of them."
11563 if test "x$LINGUAS" = x; then
11564 CATALOGS="$CATALOGS $cat"
11565 XLINGUAS="$XLINGUAS $lang"
11567 case "$LINGUAS" in *$lang*)
11568 CATALOGS="$CATALOGS $cat"
11569 XLINGUAS="$XLINGUAS $lang"
11574 LINGUAS="$XLINGUAS"
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11576 $as_echo "$LINGUAS" >&6; }
11589 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11590 # -liconv on the link line twice.
11591 case "$LIBINTL" in *$LIBICONV*)
11595 # Check whether --enable-secureplt was given.
11596 if test "${enable_secureplt+set}" = set; then :
11597 enableval=$enable_secureplt;
11601 # Check whether --enable-leading-mingw64-underscores was given.
11602 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11603 enableval=$enable_leading_mingw64_underscores;
11606 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11608 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11612 # Check whether --enable-cld was given.
11613 if test "${enable_cld+set}" = set; then :
11614 enableval=$enable_cld;
11620 # Check whether --enable-frame-pointer was given.
11621 if test "${enable_frame_pointer+set}" = set; then :
11622 enableval=$enable_frame_pointer;
11626 linux* | darwin[8912]*)
11627 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11629 enable_frame_pointer=no
11632 enable_frame_pointer=yes
11639 # Windows32 Registry support for specifying GCC installation paths.
11640 # Check whether --enable-win32-registry was given.
11641 if test "${enable_win32_registry+set}" = set; then :
11642 enableval=$enable_win32_registry;
11647 win32 | pe | cygwin* | mingw32* | uwin*)
11648 if test "x$enable_win32_registry" != xno; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11650 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11651 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11654 ac_func_search_save_LIBS=$LIBS
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11664 char RegOpenKeyExA ();
11668 return RegOpenKeyExA ();
11673 for ac_lib in '' advapi32; do
11674 if test -z "$ac_lib"; then
11675 ac_res="none required"
11678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 ac_cv_search_RegOpenKeyExA=$ac_res
11683 rm -f core conftest.err conftest.$ac_objext \
11685 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11689 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11692 ac_cv_search_RegOpenKeyExA=no
11694 rm conftest.$ac_ext
11695 LIBS=$ac_func_search_save_LIBS
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11698 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11699 ac_res=$ac_cv_search_RegOpenKeyExA
11700 if test "$ac_res" != no; then :
11701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11704 enable_win32_registry=no
11709 if test "x$enable_win32_registry" != xno; then
11711 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11714 if test "x$enable_win32_registry" != xyes \
11715 && test "x$enable_win32_registry" != x; then
11717 cat >>confdefs.h <<_ACEOF
11718 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11726 # Get an absolute path to the GCC top-level source directory
11727 holddir=`${PWDCMD-pwd}`
11729 topdir=`${PWDCMD-pwd}`
11732 # Conditionalize the makefile for this host machine.
11734 for f in ${host_xmake_file}
11736 if test -f ${srcdir}/config/$f
11738 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11742 # Conditionalize the makefile for this target machine.
11744 for f in ${tmake_file}
11746 if test -f ${srcdir}/config/$f
11748 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11751 tmake_file="${tmake_file_}"
11753 out_object_file=`basename $out_file .c`.o
11754 common_out_object_file=`basename $common_out_file .c`.o
11756 tm_file_list="options.h"
11757 tm_include_list="options.h insn-constants.h"
11758 for f in $tm_file; do
11761 f=`echo $f | sed 's/^..//'`
11762 tm_file_list="${tm_file_list} $f"
11763 tm_include_list="${tm_include_list} $f"
11766 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11767 tm_include_list="${tm_include_list} $f"
11770 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11771 tm_include_list="${tm_include_list} config/$f"
11778 for f in $tm_p_file; do
11781 tm_p_file_list="${tm_p_file_list} $f"
11782 tm_p_include_list="${tm_p_include_list} $f"
11785 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11786 tm_p_include_list="${tm_p_include_list} config/$f"
11792 for f in $xm_file; do
11795 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11796 xm_include_list="${xm_include_list} $f"
11799 xm_file_list="${xm_file_list} $f"
11800 xm_include_list="${xm_include_list} $f"
11803 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11804 xm_include_list="${xm_include_list} config/$f"
11810 host_xm_include_list=
11811 for f in $host_xm_file; do
11814 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11815 host_xm_include_list="${host_xm_include_list} $f"
11818 host_xm_file_list="${host_xm_file_list} $f"
11819 host_xm_include_list="${host_xm_include_list} $f"
11822 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11823 host_xm_include_list="${host_xm_include_list} config/$f"
11828 build_xm_file_list=
11829 for f in $build_xm_file; do
11832 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11833 build_xm_include_list="${build_xm_include_list} $f"
11835 auto-build.h | auto-host.h )
11836 build_xm_file_list="${build_xm_file_list} $f"
11837 build_xm_include_list="${build_xm_include_list} $f"
11840 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11841 build_xm_include_list="${build_xm_include_list} config/$f"
11846 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11847 # cross-compiler which does not use the native headers and libraries.
11848 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11851 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11853 if test "x$with_build_sysroot" != x; then
11854 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11856 # This value is used, even on a native system, because
11857 # CROSS_SYSTEM_HEADER_DIR is just
11858 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11859 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11862 if test x$host != x$target
11864 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11866 SYSTEM_HEADER_DIR=$build_system_header_dir
11867 case "$host","$target" in
11868 # Darwin crosses can use the host system's libraries and headers,
11869 # because of the fat library support. Of course, it must be the
11870 # same version of Darwin on both sides. Allow the user to
11871 # just say --target=foo-darwin without a version number to mean
11872 # "the version on this system".
11873 *-*-darwin*,*-*-darwin*)
11874 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11875 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11876 if test $hostos = $targetos -o $targetos = darwin ; then
11878 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11883 i?86-*-*,x86_64-*-* \
11884 | powerpc*-*-*,powerpc64*-*-*)
11885 CROSS="$CROSS -DNATIVE_CROSS" ;;
11890 if test "x$with_headers" = x; then
11897 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11898 SYSTEM_HEADER_DIR=$build_system_header_dir
11901 # If this is a cross-compiler that does not
11902 # have its own set of headers then define
11905 # If this is using newlib, without having the headers available now,
11906 # then define inhibit_libc in LIBGCC2_CFLAGS.
11907 # This prevents libgcc2 from containing any code which requires libc
11909 : ${inhibit_libc=false}
11910 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11911 test x$with_newlib = xyes ; } &&
11912 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11917 # When building gcc with a cross-compiler, we need to adjust things so
11918 # that the generator programs are still built with the native compiler.
11919 # Also, we cannot run fixincludes.
11921 # These are the normal (build=host) settings:
11922 CC_FOR_BUILD='$(CC)'
11923 BUILD_CFLAGS='$(ALL_CFLAGS)'
11924 BUILD_LDFLAGS='$(LDFLAGS)'
11925 STMP_FIXINC=stmp-fixinc
11927 # And these apply if build != host, or we are generating coverage data
11928 if test x$build != x$host || test "x$coverage_flags" != x
11930 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11931 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11934 # Expand extra_headers to include complete path.
11935 # This substitutes for lots of t-* files.
11936 extra_headers_list=
11937 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11938 for file in ${extra_headers} ; do
11939 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11942 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11943 if test x"$use_gcc_tgmath" = xyes
11944 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11947 # Define collect2 in Makefile.
11948 case $host_can_use_collect2 in
11950 *) collect2='collect2$(exeext)' ;;
11954 # Add a definition of USE_COLLECT2 if system wants one.
11955 case $use_collect2 in
11956 no) use_collect2= ;;
11959 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11960 xm_defines="${xm_defines} USE_COLLECT2"
11961 case $host_can_use_collect2 in
11963 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11970 cat >>confdefs.h <<_ACEOF
11971 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11975 # ---------------------------
11976 # Assembler & linker features
11977 # ---------------------------
11979 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11980 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11981 # However when ld-new is first executed from the build tree, libtool will
11982 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11983 # to the build tree. While doing this we need to use the previous-stage
11984 # linker, or we have an infinite loop. The presence of a shell script as
11985 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11986 # the gcc/collect-ld script. So we need to know how libtool works, or
11987 # exec-tool will fail.
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11993 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11998 macro_version='2.2.7a'
11999 macro_revision='1.3134'
12013 ltmain="$ac_aux_dir/ltmain.sh"
12015 # Backslashify metacharacters that are still active within
12016 # double-quoted strings.
12017 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12019 # Same as above, but do not quote variable references.
12020 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12022 # Sed substitution to delay expansion of an escaped shell variable in a
12023 # double_quote_subst'ed string.
12024 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12026 # Sed substitution to delay expansion of an escaped single quote.
12027 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12029 # Sed substitution to avoid accidental globbing in evaled expressions
12030 no_glob_subst='s/\*/\\\*/g'
12032 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12037 $as_echo_n "checking how to print strings... " >&6; }
12038 # Test print first, because it will be a builtin if present.
12039 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12042 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12045 # Use this function as a fallback that always works.
12046 func_fallback_echo ()
12048 eval 'cat <<_LTECHO_EOF
12052 ECHO='func_fallback_echo'
12055 # func_echo_all arg...
12056 # Invoke $ECHO with all args, space-separated.
12063 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12064 $as_echo "printf" >&6; } ;;
12065 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12066 $as_echo "print -r" >&6; } ;;
12067 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12068 $as_echo "cat" >&6; } ;;
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12085 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12086 if test "${ac_cv_path_SED+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12089 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12090 for ac_i in 1 2 3 4 5 6 7; do
12091 ac_script="$ac_script$as_nl$ac_script"
12093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12094 { ac_script=; unset ac_script;}
12095 if test -z "$SED"; then
12096 ac_path_SED_found=false
12097 # Loop through the user's path and test for each of PROGNAME-LIST
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12102 test -z "$as_dir" && as_dir=.
12103 for ac_prog in sed gsed; do
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12106 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12107 # Check for GNU ac_path_SED and select it if it is found.
12108 # Check for GNU $ac_path_SED
12109 case `"$ac_path_SED" --version 2>&1` in
12111 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12114 $as_echo_n 0123456789 >"conftest.in"
12117 cat "conftest.in" "conftest.in" >"conftest.tmp"
12118 mv "conftest.tmp" "conftest.in"
12119 cp "conftest.in" "conftest.nl"
12120 $as_echo '' >> "conftest.nl"
12121 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12123 as_fn_arith $ac_count + 1 && ac_count=$as_val
12124 if test $ac_count -gt ${ac_path_SED_max-0}; then
12125 # Best one so far, save it but keep looking for a better one
12126 ac_cv_path_SED="$ac_path_SED"
12127 ac_path_SED_max=$ac_count
12129 # 10*(2^10) chars as input seems more than enough
12130 test $ac_count -gt 10 && break
12132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12135 $ac_path_SED_found && break 3
12140 if test -z "$ac_cv_path_SED"; then
12141 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12144 ac_cv_path_SED=$SED
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12149 $as_echo "$ac_cv_path_SED" >&6; }
12150 SED="$ac_cv_path_SED"
12153 test -z "$SED" && SED=sed
12154 Xsed="$SED -e 1s/^X//"
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12167 $as_echo_n "checking for fgrep... " >&6; }
12168 if test "${ac_cv_path_FGREP+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12171 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12172 then ac_cv_path_FGREP="$GREP -F"
12174 if test -z "$FGREP"; then
12175 ac_path_FGREP_found=false
12176 # Loop through the user's path and test for each of PROGNAME-LIST
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12181 test -z "$as_dir" && as_dir=.
12182 for ac_prog in fgrep; do
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12185 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12186 # Check for GNU ac_path_FGREP and select it if it is found.
12187 # Check for GNU $ac_path_FGREP
12188 case `"$ac_path_FGREP" --version 2>&1` in
12190 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12193 $as_echo_n 0123456789 >"conftest.in"
12196 cat "conftest.in" "conftest.in" >"conftest.tmp"
12197 mv "conftest.tmp" "conftest.in"
12198 cp "conftest.in" "conftest.nl"
12199 $as_echo 'FGREP' >> "conftest.nl"
12200 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12202 as_fn_arith $ac_count + 1 && ac_count=$as_val
12203 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12204 # Best one so far, save it but keep looking for a better one
12205 ac_cv_path_FGREP="$ac_path_FGREP"
12206 ac_path_FGREP_max=$ac_count
12208 # 10*(2^10) chars as input seems more than enough
12209 test $ac_count -gt 10 && break
12211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12214 $ac_path_FGREP_found && break 3
12219 if test -z "$ac_cv_path_FGREP"; then
12220 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12223 ac_cv_path_FGREP=$FGREP
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12229 $as_echo "$ac_cv_path_FGREP" >&6; }
12230 FGREP="$ac_cv_path_FGREP"
12233 test -z "$GREP" && GREP=grep
12253 # Check whether --with-gnu-ld was given.
12254 if test "${with_gnu_ld+set}" = set; then :
12255 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12261 if test "$GCC" = yes; then
12262 # Check if gcc -print-prog-name=ld gives a path.
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12264 $as_echo_n "checking for ld used by $CC... " >&6; }
12267 # gcc leaves a trailing carriage return which upsets mingw
12268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12273 # Accept absolute paths.
12275 re_direlt='/[^/][^/]*/\.\./'
12276 # Canonicalize the pathname of ld
12277 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12278 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12279 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12281 test -z "$LD" && LD="$ac_prog"
12284 # If it fails, then pretend we aren't using GCC.
12288 # If it is relative, then search for the first ld in PATH.
12289 with_gnu_ld=unknown
12292 elif test "$with_gnu_ld" = yes; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12294 $as_echo_n "checking for GNU ld... " >&6; }
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12297 $as_echo_n "checking for non-GNU ld... " >&6; }
12299 if test "${lt_cv_path_LD+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12302 if test -z "$LD"; then
12303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12304 for ac_dir in $PATH; do
12306 test -z "$ac_dir" && ac_dir=.
12307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12308 lt_cv_path_LD="$ac_dir/$ac_prog"
12309 # Check to see if the program is GNU ld. I'd rather use --version,
12310 # but apparently some variants of GNU ld only accept -v.
12311 # Break only if it was the GNU/non-GNU ld that we prefer.
12312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12313 *GNU* | *'with BFD'*)
12314 test "$with_gnu_ld" != no && break
12317 test "$with_gnu_ld" != yes && break
12324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12328 LD="$lt_cv_path_LD"
12329 if test -n "$LD"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12331 $as_echo "$LD" >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12336 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12339 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12343 case `$LD -v 2>&1 </dev/null` in
12344 *GNU* | *'with BFD'*)
12345 lt_cv_prog_gnu_ld=yes
12348 lt_cv_prog_gnu_ld=no
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12353 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12354 with_gnu_ld=$lt_cv_prog_gnu_ld
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12365 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12366 if test "${lt_cv_path_NM+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 if test -n "$NM"; then
12370 # Let the user override the test.
12371 lt_cv_path_NM="$NM"
12373 lt_nm_to_check="${ac_tool_prefix}nm"
12374 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12375 lt_nm_to_check="$lt_nm_to_check nm"
12377 for lt_tmp_nm in $lt_nm_to_check; do
12378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12379 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12381 test -z "$ac_dir" && ac_dir=.
12382 tmp_nm="$ac_dir/$lt_tmp_nm"
12383 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12384 # Check to see if the nm accepts a BSD-compat flag.
12385 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12386 # nm: unknown option "B" ignored
12387 # Tru64's nm complains that /dev/null is an invalid object file
12388 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12389 */dev/null* | *'Invalid file or object type'*)
12390 lt_cv_path_NM="$tmp_nm -B"
12394 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12396 lt_cv_path_NM="$tmp_nm -p"
12400 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12401 continue # so that we can try to find one that supports BSD flags
12410 : ${lt_cv_path_NM=no}
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12414 $as_echo "$lt_cv_path_NM" >&6; }
12415 if test "$lt_cv_path_NM" != "no"; then
12416 NM="$lt_cv_path_NM"
12418 # Didn't find any BSD compatible name lister, look for dumpbin.
12419 if test -n "$DUMPBIN"; then :
12420 # Let the user override the test.
12422 if test -n "$ac_tool_prefix"; then
12423 for ac_prog in dumpbin "link -dump"
12425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12432 if test -n "$DUMPBIN"; then
12433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 DUMPBIN=$ac_cv_prog_DUMPBIN
12453 if test -n "$DUMPBIN"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12455 $as_echo "$DUMPBIN" >&6; }
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12462 test -n "$DUMPBIN" && break
12465 if test -z "$DUMPBIN"; then
12466 ac_ct_DUMPBIN=$DUMPBIN
12467 for ac_prog in dumpbin "link -dump"
12469 # Extract the first word of "$ac_prog", so it can be a program name with args.
12470 set dummy $ac_prog; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12476 if test -n "$ac_ct_DUMPBIN"; then
12477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12497 if test -n "$ac_ct_DUMPBIN"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12499 $as_echo "$ac_ct_DUMPBIN" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12506 test -n "$ac_ct_DUMPBIN" && break
12509 if test "x$ac_ct_DUMPBIN" = x; then
12512 case $cross_compiling:$ac_tool_warned in
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12516 ac_tool_warned=yes ;;
12518 DUMPBIN=$ac_ct_DUMPBIN
12522 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12524 DUMPBIN="$DUMPBIN -symbols"
12532 if test "$DUMPBIN" != ":"; then
12536 test -z "$NM" && NM=nm
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12544 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12545 if test "${lt_cv_nm_interface+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12548 lt_cv_nm_interface="BSD nm"
12549 echo "int some_variable = 0;" > conftest.$ac_ext
12550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12551 (eval "$ac_compile" 2>conftest.err)
12552 cat conftest.err >&5
12553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12555 cat conftest.err >&5
12556 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12557 cat conftest.out >&5
12558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12559 lt_cv_nm_interface="MS dumpbin"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12564 $as_echo "$lt_cv_nm_interface" >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12567 $as_echo_n "checking whether ln -s works... " >&6; }
12569 if test "$LN_S" = "ln -s"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12574 $as_echo "no, using $LN_S" >&6; }
12577 # find the maximum length of command line arguments
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12579 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12580 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12588 # On DJGPP, this test can blow up pretty badly due to problems in libc
12589 # (any single argument exceeding 2000 bytes causes a buffer overrun
12590 # during glob expansion). Even if it were fixed, the result of this
12591 # check would be larger than it should be.
12592 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12596 # Under GNU Hurd, this test is not required because there is
12597 # no limit to the length of command line arguments.
12598 # Libtool will interpret -1 as no limit whatsoever
12599 lt_cv_sys_max_cmd_len=-1;
12602 cygwin* | mingw* | cegcc*)
12603 # On Win9x/ME, this test blows up -- it succeeds, but takes
12604 # about 5 minutes as the teststring grows exponentially.
12605 # Worse, since 9x/ME are not pre-emptively multitasking,
12606 # you end up with a "frozen" computer, even though with patience
12607 # the test eventually succeeds (with a max line length of 256k).
12608 # Instead, let's just punt: use the minimum linelength reported by
12609 # all of the supported platforms: 8192 (on NT/2K/XP).
12610 lt_cv_sys_max_cmd_len=8192;
12614 # On MiNT this can take a long time and run out of memory.
12615 lt_cv_sys_max_cmd_len=8192;
12619 # On AmigaOS with pdksh, this test takes hours, literally.
12620 # So we just punt and use a minimum line length of 8192.
12621 lt_cv_sys_max_cmd_len=8192;
12624 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12625 # This has been around since 386BSD, at least. Likely further.
12626 if test -x /sbin/sysctl; then
12627 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12628 elif test -x /usr/sbin/sysctl; then
12629 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12631 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12633 # And add a safety zone
12634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12639 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12640 lt_cv_sys_max_cmd_len=196608
12644 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12645 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12646 # nice to cause kernel panics so lets avoid the loop below.
12647 # First set a reasonable default.
12648 lt_cv_sys_max_cmd_len=16384
12650 if test -x /sbin/sysconfig; then
12651 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12652 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12657 lt_cv_sys_max_cmd_len=102400
12659 sysv5* | sco5v6* | sysv4.2uw2*)
12660 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12661 if test -n "$kargmax"; then
12662 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12664 lt_cv_sys_max_cmd_len=32768
12668 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12669 if test -n "$lt_cv_sys_max_cmd_len"; then
12670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12673 # Make teststring a little bigger before we do anything with it.
12674 # a 1K string should be a reasonable start.
12675 for i in 1 2 3 4 5 6 7 8 ; do
12676 teststring=$teststring$teststring
12678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12679 # If test is not a shell built-in, we'll probably end up computing a
12680 # maximum length that is only half of the actual maximum length, but
12682 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12683 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12684 test $i != 17 # 1/2 MB should be enough
12687 teststring=$teststring$teststring
12689 # Only check the string length outside the loop.
12690 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12692 # Add a significant safety factor because C++ compilers can tack on
12693 # massive amounts of additional arguments before passing them to the
12694 # linker. It appears as though 1/2 is a usable value.
12695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12702 if test -n $lt_cv_sys_max_cmd_len ; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12704 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12707 $as_echo "none" >&6; }
12709 max_cmd_len=$lt_cv_sys_max_cmd_len
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12721 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12722 # Try some XSI features
12724 ( _lt_dummy="a/b/c"
12725 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12727 && eval 'test $(( 1 + 1 )) -eq 2 \
12728 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12731 $as_echo "$xsi_shell" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12735 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12737 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12739 && lt_shell_append=yes
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12741 $as_echo "$lt_shell_append" >&6; }
12744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12754 # test EBCDIC or ASCII
12755 case `echo X|tr X '\101'` in
12756 A) # ASCII based system
12757 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12758 lt_SP2NL='tr \040 \012'
12759 lt_NL2SP='tr \015\012 \040\040'
12761 *) # EBCDIC based system
12762 lt_SP2NL='tr \100 \n'
12763 lt_NL2SP='tr \r\n \100\100'
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12776 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12777 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12778 $as_echo_n "(cached) " >&6
12780 lt_cv_ld_reload_flag='-r'
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12783 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12784 reload_flag=$lt_cv_ld_reload_flag
12785 case $reload_flag in
12787 *) reload_flag=" $reload_flag" ;;
12789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12792 if test "$GCC" = yes; then
12793 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12808 if test -n "$ac_tool_prefix"; then
12809 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12810 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812 $as_echo_n "checking for $ac_word... " >&6; }
12813 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12816 if test -n "$OBJDUMP"; then
12817 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12826 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 OBJDUMP=$ac_cv_prog_OBJDUMP
12837 if test -n "$OBJDUMP"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12839 $as_echo "$OBJDUMP" >&6; }
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12847 if test -z "$ac_cv_prog_OBJDUMP"; then
12848 ac_ct_OBJDUMP=$OBJDUMP
12849 # Extract the first word of "objdump", so it can be a program name with args.
12850 set dummy objdump; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12856 if test -n "$ac_ct_OBJDUMP"; then
12857 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12877 if test -n "$ac_ct_OBJDUMP"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12879 $as_echo "$ac_ct_OBJDUMP" >&6; }
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12885 if test "x$ac_ct_OBJDUMP" = x; then
12888 case $cross_compiling:$ac_tool_warned in
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12892 ac_tool_warned=yes ;;
12894 OBJDUMP=$ac_ct_OBJDUMP
12897 OBJDUMP="$ac_cv_prog_OBJDUMP"
12900 test -z "$OBJDUMP" && OBJDUMP=objdump
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12911 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12912 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12915 lt_cv_file_magic_cmd='$MAGIC_CMD'
12916 lt_cv_file_magic_test_file=
12917 lt_cv_deplibs_check_method='unknown'
12918 # Need to set the preceding variable on all platforms that support
12919 # interlibrary dependencies.
12920 # 'none' -- dependencies not supported.
12921 # `unknown' -- same as none, but documents that we really don't know.
12922 # 'pass_all' -- all dependencies passed with no checks.
12923 # 'test_compile' -- check by making test program.
12924 # 'file_magic [[regex]]' -- check by looking for files in library path
12925 # which responds to the $file_magic_cmd with a given extended regex.
12926 # If you have `file' or equivalent on your system and you're not sure
12927 # whether `pass_all' will *always* work, you probably want this one.
12931 lt_cv_deplibs_check_method=pass_all
12935 lt_cv_deplibs_check_method=pass_all
12939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12940 lt_cv_file_magic_cmd='/usr/bin/file -L'
12941 lt_cv_file_magic_test_file=/shlib/libc.so
12945 # func_win32_libid is a shell function defined in ltmain.sh
12946 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12947 lt_cv_file_magic_cmd='func_win32_libid'
12951 # Base MSYS/MinGW do not provide the 'file' command needed by
12952 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12953 # unless we find 'file', for example because we are cross-compiling.
12954 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12955 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12956 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12957 lt_cv_file_magic_cmd='func_win32_libid'
12959 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12960 lt_cv_file_magic_cmd='$OBJDUMP -f'
12965 # use the weaker test based on 'objdump'. See mingw*.
12966 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12967 lt_cv_file_magic_cmd='$OBJDUMP -f'
12970 darwin* | rhapsody*)
12971 lt_cv_deplibs_check_method=pass_all
12974 freebsd* | dragonfly*)
12975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12978 # Not sure whether the presence of OpenBSD here was a mistake.
12979 # Let's accept both of them until this is cleared up.
12980 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12981 lt_cv_file_magic_cmd=/usr/bin/file
12982 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12986 lt_cv_deplibs_check_method=pass_all
12991 lt_cv_deplibs_check_method=pass_all
12995 lt_cv_deplibs_check_method=pass_all
12998 hpux10.20* | hpux11*)
12999 lt_cv_file_magic_cmd=/usr/bin/file
13002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13006 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]'
13007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13011 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13021 irix5* | irix6* | nonstopux*)
13023 *-32|*"-32 ") libmagic=32-bit;;
13024 *-n32|*"-n32 ") libmagic=N32;;
13025 *-64|*"-64 ") libmagic=64-bit;;
13026 *) libmagic=never-match;;
13028 lt_cv_deplibs_check_method=pass_all
13031 # This must be Linux ELF.
13032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13033 lt_cv_deplibs_check_method=pass_all
13037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13046 lt_cv_file_magic_cmd=/usr/bin/file
13047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13051 lt_cv_deplibs_check_method=pass_all
13055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13062 osf3* | osf4* | osf5*)
13063 lt_cv_deplibs_check_method=pass_all
13067 lt_cv_deplibs_check_method=pass_all
13071 lt_cv_deplibs_check_method=pass_all
13074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13075 lt_cv_deplibs_check_method=pass_all
13079 case $host_vendor in
13081 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]'
13082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13085 lt_cv_deplibs_check_method=pass_all
13088 lt_cv_file_magic_cmd='/bin/file'
13089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13092 lt_cv_file_magic_cmd='/bin/file'
13093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13094 lt_cv_file_magic_test_file=/lib/libc.so
13097 lt_cv_deplibs_check_method=pass_all
13100 lt_cv_deplibs_check_method=pass_all
13106 lt_cv_deplibs_check_method=pass_all
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13112 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13113 file_magic_cmd=$lt_cv_file_magic_cmd
13114 deplibs_check_method=$lt_cv_deplibs_check_method
13115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13128 if test -n "$ac_tool_prefix"; then
13129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13130 set dummy ${ac_tool_prefix}ar; ac_word=$2
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13132 $as_echo_n "checking for $ac_word... " >&6; }
13133 if test "${ac_cv_prog_AR+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13136 if test -n "$AR"; then
13137 ac_cv_prog_AR="$AR" # Let the user override the test.
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13146 ac_cv_prog_AR="${ac_tool_prefix}ar"
13147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 if test -n "$AR"; then
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13159 $as_echo "$AR" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13167 if test -z "$ac_cv_prog_AR"; then
13169 # Extract the first word of "ar", so it can be a program name with args.
13170 set dummy ar; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13176 if test -n "$ac_ct_AR"; then
13177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_ac_ct_AR="ar"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13197 if test -n "$ac_ct_AR"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13199 $as_echo "$ac_ct_AR" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13205 if test "x$ac_ct_AR" = x; then
13208 case $cross_compiling:$ac_tool_warned in
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13212 ac_tool_warned=yes ;;
13217 AR="$ac_cv_prog_AR"
13220 test -z "$AR" && AR=ar
13221 test -z "$AR_FLAGS" && AR_FLAGS=cru
13233 if test -n "$ac_tool_prefix"; then
13234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13235 set dummy ${ac_tool_prefix}strip; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_STRIP+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 if test -n "$STRIP"; then
13242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 STRIP=$ac_cv_prog_STRIP
13262 if test -n "$STRIP"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13264 $as_echo "$STRIP" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 if test -z "$ac_cv_prog_STRIP"; then
13274 # Extract the first word of "strip", so it can be a program name with args.
13275 set dummy strip; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
13281 if test -n "$ac_ct_STRIP"; then
13282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_prog_ac_ct_STRIP="strip"
13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13302 if test -n "$ac_ct_STRIP"; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13304 $as_echo "$ac_ct_STRIP" >&6; }
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13310 if test "x$ac_ct_STRIP" = x; then
13313 case $cross_compiling:$ac_tool_warned in
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13317 ac_tool_warned=yes ;;
13322 STRIP="$ac_cv_prog_STRIP"
13325 test -z "$STRIP" && STRIP=:
13332 if test -n "$ac_tool_prefix"; then
13333 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13334 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13340 if test -n "$RANLIB"; then
13341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 RANLIB=$ac_cv_prog_RANLIB
13361 if test -n "$RANLIB"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13363 $as_echo "$RANLIB" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13371 if test -z "$ac_cv_prog_RANLIB"; then
13372 ac_ct_RANLIB=$RANLIB
13373 # Extract the first word of "ranlib", so it can be a program name with args.
13374 set dummy ranlib; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13380 if test -n "$ac_ct_RANLIB"; then
13381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390 ac_cv_prog_ac_ct_RANLIB="ranlib"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13400 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13401 if test -n "$ac_ct_RANLIB"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13403 $as_echo "$ac_ct_RANLIB" >&6; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13409 if test "x$ac_ct_RANLIB" = x; then
13412 case $cross_compiling:$ac_tool_warned in
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13416 ac_tool_warned=yes ;;
13418 RANLIB=$ac_ct_RANLIB
13421 RANLIB="$ac_cv_prog_RANLIB"
13424 test -z "$RANLIB" && RANLIB=:
13431 # Determine commands to create old-style static archives.
13432 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13433 old_postinstall_cmds='chmod 644 $oldlib'
13434 old_postuninstall_cmds=
13436 if test -n "$RANLIB"; then
13439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13445 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13450 lock_old_archive_extraction=yes ;;
13452 lock_old_archive_extraction=no ;;
13493 # If no C compiler was specified, use CC.
13496 # If no C compiler flags were specified, use CFLAGS.
13497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13499 # Allow CC to be a program name with arguments.
13503 # Check for command to grab the raw symbol name followed by C symbol from nm.
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13505 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13506 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13510 # These are sane defaults that work on at least a few old systems.
13511 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13513 # Character class describing NM global symbol codes.
13514 symcode='[BCDEGRST]'
13516 # Regexp to match symbols that can be accessed directly from C.
13517 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13519 # Define system-specific variables.
13524 cygwin* | mingw* | pw32* | cegcc*)
13525 symcode='[ABCDGISTW]'
13528 if test "$host_cpu" = ia64; then
13529 symcode='[ABCDEGRST]'
13532 irix* | nonstopux*)
13533 symcode='[BCDEGRST]'
13536 symcode='[BCDEGQRST]'
13547 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13555 # If we're using GNU nm, then use its standard symbol codes.
13556 case `$NM -V 2>&1` in
13557 *GNU* | *'with BFD'*)
13558 symcode='[ABCDGIRSTW]' ;;
13561 # Transform an extracted symbol line into a proper C declaration.
13562 # Some systems (esp. on ia64) link data and code symbols differently,
13563 # so use this general approach.
13564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13566 # Transform an extracted symbol line into symbol name and symbol address
13567 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13568 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'"
13570 # Handle CRLF in mingw tool chain
13574 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13578 # Try without a prefix underscore, then with it.
13579 for ac_symprfx in "" "_"; do
13581 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13582 symxfrm="\\1 $ac_symprfx\\2 \\2"
13584 # Write the raw and C identifiers.
13585 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13586 # Fake it for dumpbin and say T for any non-static function
13587 # and D for any global variable.
13588 # Also find C++ and __fastcall symbols from MSVC++,
13589 # which start with @ or ?.
13590 lt_cv_sys_global_symbol_pipe="$AWK '"\
13591 " {last_section=section; section=\$ 3};"\
13592 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13593 " \$ 0!~/External *\|/{next};"\
13594 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13595 " {if(hide[section]) next};"\
13596 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13597 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13598 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13599 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13600 " ' prfx=^$ac_symprfx"
13602 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13605 # Check to see that the pipe works correctly.
13609 cat > conftest.$ac_ext <<_LT_EOF
13614 void nm_test_func(void);
13615 void nm_test_func(void){}
13619 int main(){nm_test_var='a';nm_test_func();return(0);}
13622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13623 (eval $ac_compile) 2>&5
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 # Now try to grab the symbols.
13629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13630 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13633 test $ac_status = 0; } && test -s "$nlist"; then
13634 # Try sorting and uniquifying the output.
13635 if sort "$nlist" | uniq > "$nlist"T; then
13636 mv -f "$nlist"T "$nlist"
13641 # Make sure that we snagged all the symbols we need.
13642 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13643 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13644 cat <<_LT_EOF > conftest.$ac_ext
13650 # Now generate the symbol file.
13651 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13653 cat <<_LT_EOF >> conftest.$ac_ext
13655 /* The mapping between symbol names and symbols. */
13660 lt__PROGRAM__LTX_preloaded_symbols[] =
13662 { "@PROGRAM@", (void *) 0 },
13664 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13665 cat <<\_LT_EOF >> conftest.$ac_ext
13669 /* This works around a problem in FreeBSD linker */
13670 #ifdef FREEBSD_WORKAROUND
13671 static const void *lt_preloaded_setup() {
13672 return lt__PROGRAM__LTX_preloaded_symbols;
13680 # Now try linking the two files.
13681 mv conftest.$ac_objext conftstm.$ac_objext
13682 lt_save_LIBS="$LIBS"
13683 lt_save_CFLAGS="$CFLAGS"
13684 LIBS="conftstm.$ac_objext"
13685 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13687 (eval $ac_link) 2>&5
13689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13693 LIBS="$lt_save_LIBS"
13694 CFLAGS="$lt_save_CFLAGS"
13696 echo "cannot find nm_test_func in $nlist" >&5
13699 echo "cannot find nm_test_var in $nlist" >&5
13702 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13705 echo "$progname: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13708 rm -rf conftest* conftst*
13710 # Do not use the global_symbol_pipe unless it works.
13711 if test "$pipe_works" = yes; then
13714 lt_cv_sys_global_symbol_pipe=
13720 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13721 lt_cv_sys_global_symbol_to_cdecl=
13723 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13725 $as_echo "failed" >&6; }
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13728 $as_echo "ok" >&6; }
13752 # Check whether --enable-libtool-lock was given.
13753 if test "${enable_libtool_lock+set}" = set; then :
13754 enableval=$enable_libtool_lock;
13757 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13759 # Some flags need to be propagated to the compiler or linker for good
13763 # Find out which ABI we are using.
13764 echo 'int i;' > conftest.$ac_ext
13765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13766 (eval $ac_compile) 2>&5
13768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13769 test $ac_status = 0; }; then
13770 case `/usr/bin/file conftest.$ac_objext` in
13772 HPUX_IA64_MODE="32"
13775 HPUX_IA64_MODE="64"
13782 # Find out which ABI we are using.
13783 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13785 (eval $ac_compile) 2>&5
13787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13788 test $ac_status = 0; }; then
13789 if test "$lt_cv_prog_gnu_ld" = yes; then
13790 case `/usr/bin/file conftest.$ac_objext` in
13792 LD="${LD-ld} -melf32bsmip"
13795 LD="${LD-ld} -melf32bmipn32"
13798 LD="${LD-ld} -melf64bmip"
13802 case `/usr/bin/file conftest.$ac_objext` in
13818 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13819 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13820 # Find out which ABI we are using.
13821 echo 'int i;' > conftest.$ac_ext
13822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13823 (eval $ac_compile) 2>&5
13825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13826 test $ac_status = 0; }; then
13827 case `/usr/bin/file conftest.o` in
13830 x86_64-*kfreebsd*-gnu)
13831 LD="${LD-ld} -m elf_i386_fbsd"
13834 LD="${LD-ld} -m elf_i386"
13836 ppc64-*linux*|powerpc64-*linux*)
13837 LD="${LD-ld} -m elf32ppclinux"
13840 LD="${LD-ld} -m elf_s390"
13843 LD="${LD-ld} -m elf32_sparc"
13849 x86_64-*kfreebsd*-gnu)
13850 LD="${LD-ld} -m elf_x86_64_fbsd"
13853 LD="${LD-ld} -m elf_x86_64"
13855 ppc*-*linux*|powerpc*-*linux*)
13856 LD="${LD-ld} -m elf64ppc"
13858 s390*-*linux*|s390*-*tpf*)
13859 LD="${LD-ld} -m elf64_s390"
13862 LD="${LD-ld} -m elf64_sparc"
13872 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13873 SAVE_CFLAGS="$CFLAGS"
13874 CFLAGS="$CFLAGS -belf"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13876 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13877 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13881 ac_cpp='$CPP $CPPFLAGS'
13882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 lt_cv_cc_needs_belf=yes
13900 lt_cv_cc_needs_belf=no
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13905 ac_cpp='$CPP $CPPFLAGS'
13906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13912 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13915 CFLAGS="$SAVE_CFLAGS"
13919 # Find out which ABI we are using.
13920 echo 'int i;' > conftest.$ac_ext
13921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13922 (eval $ac_compile) 2>&5
13924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13925 test $ac_status = 0; }; then
13926 case `/usr/bin/file conftest.o` in
13928 case $lt_cv_prog_gnu_ld in
13929 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13931 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13943 need_locks="$enable_libtool_lock"
13947 rhapsody* | darwin*)
13948 if test -n "$ac_tool_prefix"; then
13949 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13950 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13956 if test -n "$DSYMUTIL"; then
13957 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13966 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13977 if test -n "$DSYMUTIL"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13979 $as_echo "$DSYMUTIL" >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13987 if test -z "$ac_cv_prog_DSYMUTIL"; then
13988 ac_ct_DSYMUTIL=$DSYMUTIL
13989 # Extract the first word of "dsymutil", so it can be a program name with args.
13990 set dummy dsymutil; ac_word=$2
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13992 $as_echo_n "checking for $ac_word... " >&6; }
13993 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13996 if test -n "$ac_ct_DSYMUTIL"; then
13997 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000 for as_dir in $PATH
14003 test -z "$as_dir" && as_dir=.
14004 for ac_exec_ext in '' $ac_executable_extensions; do
14005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14006 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14016 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14017 if test -n "$ac_ct_DSYMUTIL"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14019 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14025 if test "x$ac_ct_DSYMUTIL" = x; then
14028 case $cross_compiling:$ac_tool_warned in
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14032 ac_tool_warned=yes ;;
14034 DSYMUTIL=$ac_ct_DSYMUTIL
14037 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14040 if test -n "$ac_tool_prefix"; then
14041 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14042 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044 $as_echo_n "checking for $ac_word... " >&6; }
14045 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14048 if test -n "$NMEDIT"; then
14049 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052 for as_dir in $PATH
14055 test -z "$as_dir" && as_dir=.
14056 for ac_exec_ext in '' $ac_executable_extensions; do
14057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14058 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 NMEDIT=$ac_cv_prog_NMEDIT
14069 if test -n "$NMEDIT"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14071 $as_echo "$NMEDIT" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14079 if test -z "$ac_cv_prog_NMEDIT"; then
14080 ac_ct_NMEDIT=$NMEDIT
14081 # Extract the first word of "nmedit", so it can be a program name with args.
14082 set dummy nmedit; ac_word=$2
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084 $as_echo_n "checking for $ac_word... " >&6; }
14085 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14088 if test -n "$ac_ct_NMEDIT"; then
14089 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
14097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14098 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14109 if test -n "$ac_ct_NMEDIT"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14111 $as_echo "$ac_ct_NMEDIT" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14117 if test "x$ac_ct_NMEDIT" = x; then
14120 case $cross_compiling:$ac_tool_warned in
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14124 ac_tool_warned=yes ;;
14126 NMEDIT=$ac_ct_NMEDIT
14129 NMEDIT="$ac_cv_prog_NMEDIT"
14132 if test -n "$ac_tool_prefix"; then
14133 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14134 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if test "${ac_cv_prog_LIPO+set}" = set; then :
14138 $as_echo_n "(cached) " >&6
14140 if test -n "$LIPO"; then
14141 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 LIPO=$ac_cv_prog_LIPO
14161 if test -n "$LIPO"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14163 $as_echo "$LIPO" >&6; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14171 if test -z "$ac_cv_prog_LIPO"; then
14173 # Extract the first word of "lipo", so it can be a program name with args.
14174 set dummy lipo; ac_word=$2
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14178 $as_echo_n "(cached) " >&6
14180 if test -n "$ac_ct_LIPO"; then
14181 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14187 test -z "$as_dir" && as_dir=.
14188 for ac_exec_ext in '' $ac_executable_extensions; do
14189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14190 ac_cv_prog_ac_ct_LIPO="lipo"
14191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14201 if test -n "$ac_ct_LIPO"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14203 $as_echo "$ac_ct_LIPO" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206 $as_echo "no" >&6; }
14209 if test "x$ac_ct_LIPO" = x; then
14212 case $cross_compiling:$ac_tool_warned in
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14216 ac_tool_warned=yes ;;
14221 LIPO="$ac_cv_prog_LIPO"
14224 if test -n "$ac_tool_prefix"; then
14225 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14226 set dummy ${ac_tool_prefix}otool; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14232 if test -n "$OTOOL"; then
14233 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14242 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14252 OTOOL=$ac_cv_prog_OTOOL
14253 if test -n "$OTOOL"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14255 $as_echo "$OTOOL" >&6; }
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14263 if test -z "$ac_cv_prog_OTOOL"; then
14265 # Extract the first word of "otool", so it can be a program name with args.
14266 set dummy otool; ac_word=$2
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14268 $as_echo_n "checking for $ac_word... " >&6; }
14269 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14270 $as_echo_n "(cached) " >&6
14272 if test -n "$ac_ct_OTOOL"; then
14273 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14282 ac_cv_prog_ac_ct_OTOOL="otool"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14293 if test -n "$ac_ct_OTOOL"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14295 $as_echo "$ac_ct_OTOOL" >&6; }
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14301 if test "x$ac_ct_OTOOL" = x; then
14304 case $cross_compiling:$ac_tool_warned in
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14308 ac_tool_warned=yes ;;
14313 OTOOL="$ac_cv_prog_OTOOL"
14316 if test -n "$ac_tool_prefix"; then
14317 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14318 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320 $as_echo_n "checking for $ac_word... " >&6; }
14321 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14322 $as_echo_n "(cached) " >&6
14324 if test -n "$OTOOL64"; then
14325 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328 for as_dir in $PATH
14331 test -z "$as_dir" && as_dir=.
14332 for ac_exec_ext in '' $ac_executable_extensions; do
14333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14334 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 OTOOL64=$ac_cv_prog_OTOOL64
14345 if test -n "$OTOOL64"; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14347 $as_echo "$OTOOL64" >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350 $as_echo "no" >&6; }
14355 if test -z "$ac_cv_prog_OTOOL64"; then
14356 ac_ct_OTOOL64=$OTOOL64
14357 # Extract the first word of "otool64", so it can be a program name with args.
14358 set dummy otool64; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14364 if test -n "$ac_ct_OTOOL64"; then
14365 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14374 ac_cv_prog_ac_ct_OTOOL64="otool64"
14375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14385 if test -n "$ac_ct_OTOOL64"; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14387 $as_echo "$ac_ct_OTOOL64" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14393 if test "x$ac_ct_OTOOL64" = x; then
14396 case $cross_compiling:$ac_tool_warned in
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14400 ac_tool_warned=yes ;;
14402 OTOOL64=$ac_ct_OTOOL64
14405 OTOOL64="$ac_cv_prog_OTOOL64"
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14435 $as_echo_n "checking for -single_module linker flag... " >&6; }
14436 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14439 lt_cv_apple_cc_single_mod=no
14440 if test -z "${LT_MULTI_MODULE}"; then
14441 # By default we will add the -single_module flag. You can override
14442 # by either setting the environment variable LT_MULTI_MODULE
14443 # non-empty at configure time, or by adding -multi_module to the
14445 rm -rf libconftest.dylib*
14446 echo "int foo(void){return 1;}" > conftest.c
14447 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14448 -dynamiclib -Wl,-single_module conftest.c" >&5
14449 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14450 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14452 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14453 lt_cv_apple_cc_single_mod=yes
14455 cat conftest.err >&5
14457 rm -rf libconftest.dylib*
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14462 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14464 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14465 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14466 $as_echo_n "(cached) " >&6
14468 lt_cv_ld_exported_symbols_list=no
14469 save_LDFLAGS=$LDFLAGS
14470 echo "_main" > conftest.sym
14471 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14483 if ac_fn_c_try_link "$LINENO"; then :
14484 lt_cv_ld_exported_symbols_list=yes
14486 lt_cv_ld_exported_symbols_list=no
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 LDFLAGS="$save_LDFLAGS"
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14494 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14496 $as_echo_n "checking for -force_load linker flag... " >&6; }
14497 if test "${lt_cv_ld_force_load+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14500 lt_cv_ld_force_load=no
14501 cat > conftest.c << _LT_EOF
14502 int forced_loaded() { return 2;}
14504 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14505 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14506 echo "$AR cru libconftest.a conftest.o" >&5
14507 $AR cru libconftest.a conftest.o 2>&5
14508 cat > conftest.c << _LT_EOF
14509 int main() { return 0;}
14511 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14512 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14514 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14515 lt_cv_ld_force_load=yes
14517 cat conftest.err >&5
14519 rm -f conftest.err libconftest.a conftest conftest.c
14520 rm -rf conftest.dSYM
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14524 $as_echo "$lt_cv_ld_force_load" >&6; }
14526 rhapsody* | darwin1.[012])
14527 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14529 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14530 darwin*) # darwin 5.x on
14531 # if running on 10.5 or later, the deployment target defaults
14532 # to the OS version, if on x86, and 10.4, the deployment
14533 # target defaults to 10.4. Don't you love it?
14534 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14535 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14536 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14540 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14544 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14545 _lt_dar_single_mod='$single_module'
14547 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14548 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14550 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14552 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14553 _lt_dsymutil='~$DSYMUTIL $lib || :'
14560 for ac_header in dlfcn.h
14562 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14563 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14564 cat >>confdefs.h <<_ACEOF
14565 #define HAVE_DLFCN_H 1
14582 enable_win32_dll=no
14585 # Check whether --enable-shared was given.
14586 if test "${enable_shared+set}" = set; then :
14587 enableval=$enable_shared; p=${PACKAGE-default}
14589 yes) enable_shared=yes ;;
14590 no) enable_shared=no ;;
14593 # Look at the argument we got. We use all the common list separators.
14594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14595 for pkg in $enableval; do
14597 if test "X$pkg" = "X$p"; then
14616 # Check whether --enable-static was given.
14617 if test "${enable_static+set}" = set; then :
14618 enableval=$enable_static; p=${PACKAGE-default}
14620 yes) enable_static=yes ;;
14621 no) enable_static=no ;;
14624 # Look at the argument we got. We use all the common list separators.
14625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14626 for pkg in $enableval; do
14628 if test "X$pkg" = "X$p"; then
14648 # Check whether --with-pic was given.
14649 if test "${with_pic+set}" = set; then :
14650 withval=$with_pic; pic_mode="$withval"
14656 test -z "$pic_mode" && pic_mode=default
14664 # Check whether --enable-fast-install was given.
14665 if test "${enable_fast_install+set}" = set; then :
14666 enableval=$enable_fast_install; p=${PACKAGE-default}
14668 yes) enable_fast_install=yes ;;
14669 no) enable_fast_install=no ;;
14671 enable_fast_install=no
14672 # Look at the argument we got. We use all the common list separators.
14673 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14674 for pkg in $enableval; do
14676 if test "X$pkg" = "X$p"; then
14677 enable_fast_install=yes
14684 enable_fast_install=yes
14697 # This can be used to rebuild libtool when needed
14698 LIBTOOL_DEPS="$ltmain"
14700 # Always use our own libtool.
14701 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14728 test -z "$LN_S" && LN_S="ln -s"
14743 if test -n "${ZSH_VERSION+set}" ; then
14744 setopt NO_GLOB_SUBST
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14748 $as_echo_n "checking for objdir... " >&6; }
14749 if test "${lt_cv_objdir+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
14752 rm -f .libs 2>/dev/null
14753 mkdir .libs 2>/dev/null
14754 if test -d .libs; then
14757 # MS-DOS does not allow filenames that begin with a dot.
14760 rmdir .libs 2>/dev/null
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14763 $as_echo "$lt_cv_objdir" >&6; }
14764 objdir=$lt_cv_objdir
14770 cat >>confdefs.h <<_ACEOF
14771 #define LT_OBJDIR "$lt_cv_objdir/"
14779 # AIX sometimes has problems with the GCC collect2 program. For some
14780 # reason, if we set the COLLECT_NAMES environment variable, the problems
14781 # vanish in a puff of smoke.
14782 if test "X${COLLECT_NAMES+set}" != Xset; then
14784 export COLLECT_NAMES
14789 # Global variables:
14791 can_build_shared=yes
14793 # All known linkers require a `.a' archive for static linking (except MSVC,
14794 # which needs '.lib').
14797 with_gnu_ld="$lt_cv_prog_gnu_ld"
14800 old_CFLAGS="$CFLAGS"
14802 # Set sane defaults for various variables
14803 test -z "$CC" && CC=cc
14804 test -z "$LTCC" && LTCC=$CC
14805 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14806 test -z "$LD" && LD=ld
14807 test -z "$ac_objext" && ac_objext=o
14809 for cc_temp in $compiler""; do
14811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14817 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14820 # Only perform the check for file, if the check method requires it
14821 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14822 case $deplibs_check_method in
14824 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14826 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14827 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14828 $as_echo_n "(cached) " >&6
14832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14835 lt_save_MAGIC_CMD="$MAGIC_CMD"
14836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14838 for ac_dir in $ac_dummy; do
14840 test -z "$ac_dir" && ac_dir=.
14841 if test -f $ac_dir/${ac_tool_prefix}file; then
14842 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14843 if test -n "$file_magic_test_file"; then
14844 case $deplibs_check_method in
14846 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14849 $EGREP "$file_magic_regex" > /dev/null; then
14854 *** Warning: the command libtool uses to detect shared libraries,
14855 *** $file_magic_cmd, produces output that libtool cannot recognize.
14856 *** The result is that libtool may fail to recognize shared libraries
14857 *** as such. This will affect the creation of libtool libraries that
14858 *** depend on shared libraries, but programs linked with such libtool
14859 *** libraries will work regardless of this problem. Nevertheless, you
14860 *** may want to report the problem to your system manager and/or to
14861 *** bug-libtool@gnu.org
14871 MAGIC_CMD="$lt_save_MAGIC_CMD"
14876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14877 if test -n "$MAGIC_CMD"; then
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14879 $as_echo "$MAGIC_CMD" >&6; }
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14882 $as_echo "no" >&6; }
14889 if test -z "$lt_cv_path_MAGIC_CMD"; then
14890 if test -n "$ac_tool_prefix"; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14892 $as_echo_n "checking for file... " >&6; }
14893 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14901 lt_save_MAGIC_CMD="$MAGIC_CMD"
14902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14904 for ac_dir in $ac_dummy; do
14906 test -z "$ac_dir" && ac_dir=.
14907 if test -f $ac_dir/file; then
14908 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14909 if test -n "$file_magic_test_file"; then
14910 case $deplibs_check_method in
14912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14915 $EGREP "$file_magic_regex" > /dev/null; then
14920 *** Warning: the command libtool uses to detect shared libraries,
14921 *** $file_magic_cmd, produces output that libtool cannot recognize.
14922 *** The result is that libtool may fail to recognize shared libraries
14923 *** as such. This will affect the creation of libtool libraries that
14924 *** depend on shared libraries, but programs linked with such libtool
14925 *** libraries will work regardless of this problem. Nevertheless, you
14926 *** may want to report the problem to your system manager and/or to
14927 *** bug-libtool@gnu.org
14937 MAGIC_CMD="$lt_save_MAGIC_CMD"
14942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14943 if test -n "$MAGIC_CMD"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14945 $as_echo "$MAGIC_CMD" >&6; }
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14961 # Use C for the default configuration in the libtool script
14965 ac_cpp='$CPP $CPPFLAGS'
14966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971 # Source file extension for C test sources.
14974 # Object file extension for compiled C test sources.
14978 # Code to be used in simple compile tests
14979 lt_simple_compile_test_code="int some_variable = 0;"
14981 # Code to be used in simple link tests
14982 lt_simple_link_test_code='int main(){return(0);}'
14990 # If no C compiler was specified, use CC.
14993 # If no C compiler flags were specified, use CFLAGS.
14994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14996 # Allow CC to be a program name with arguments.
14999 # Save the default compiler, since it gets overwritten when the other
15000 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15001 compiler_DEFAULT=$CC
15003 # save warnings/boilerplate of simple test code
15004 ac_outfile=conftest.$ac_objext
15005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15007 _lt_compiler_boilerplate=`cat conftest.err`
15010 ac_outfile=conftest.$ac_objext
15011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15013 _lt_linker_boilerplate=`cat conftest.err`
15018 ## There is no encapsulation within the following macros, do not change
15019 ## the running order or otherwise move them around unless you know exactly
15020 ## what you are doing...
15021 if test -n "$compiler"; then
15023 lt_prog_compiler_no_builtin_flag=
15025 if test "$GCC" = yes; then
15026 case $cc_basename in
15028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15034 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15036 $as_echo_n "(cached) " >&6
15038 lt_cv_prog_compiler_rtti_exceptions=no
15039 ac_outfile=conftest.$ac_objext
15040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15041 lt_compiler_flag="-fno-rtti -fno-exceptions"
15042 # Insert the option either (1) after the last *FLAGS variable, or
15043 # (2) before a word containing "conftest.", or (3) at the end.
15044 # Note that $ac_compile itself does not contain backslashes and begins
15045 # with a dollar sign (not a hyphen), so the echo should work correctly.
15046 # The option is referenced via a variable to avoid confusing sed.
15047 lt_compile=`echo "$ac_compile" | $SED \
15048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15050 -e 's:$: $lt_compiler_flag:'`
15051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15052 (eval "$lt_compile" 2>conftest.err)
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 if (exit $ac_status) && test -s "$ac_outfile"; then
15057 # The compiler can only warn and ignore the option if not recognized
15058 # So say no if there are warnings other than the usual output.
15059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15062 lt_cv_prog_compiler_rtti_exceptions=yes
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15069 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15084 lt_prog_compiler_wl=
15085 lt_prog_compiler_pic=
15086 lt_prog_compiler_static=
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15091 if test "$GCC" = yes; then
15092 lt_prog_compiler_wl='-Wl,'
15093 lt_prog_compiler_static='-static'
15097 # All AIX code is PIC.
15098 if test "$host_cpu" = ia64; then
15099 # AIX 5 now supports IA64 processor
15100 lt_prog_compiler_static='-Bstatic'
15107 # see comment about AmigaOS4 .so support
15108 lt_prog_compiler_pic='-fPIC'
15111 # FIXME: we need at least 68020 code to build shared libraries, but
15112 # adding the `-m68020' flag to GCC prevents building anything better,
15114 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15119 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15120 # PIC is the default for these OSes.
15123 mingw* | cygwin* | pw32* | os2* | cegcc*)
15124 # This hack is so that the source file can tell whether it is being
15125 # built for inclusion in a dll (and should export symbols for example).
15126 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15127 # (--disable-auto-import) libraries
15128 lt_prog_compiler_pic='-DDLL_EXPORT'
15131 darwin* | rhapsody*)
15132 # PIC is the default on this platform
15133 # Common symbols not allowed in MH_DYLIB files
15134 lt_prog_compiler_pic='-fno-common'
15138 # PIC is the default for Haiku.
15139 # The "-static" flag exists, but is broken.
15140 lt_prog_compiler_static=
15144 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15145 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15146 # sets the default TLS model and affects inlining.
15152 lt_prog_compiler_pic='-fPIC'
15158 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15159 # Instead, we relocate shared libraries at runtime.
15163 # Just because we use GCC doesn't mean we suddenly get shared libraries
15164 # on systems that don't support them.
15165 lt_prog_compiler_can_build_shared=no
15170 # QNX uses GNU C++, but need to define -shared option too, otherwise
15171 # it will coredump.
15172 lt_prog_compiler_pic='-fPIC -shared'
15176 if test -d /usr/nec; then
15177 lt_prog_compiler_pic=-Kconform_pic
15182 lt_prog_compiler_pic='-fPIC'
15186 case $cc_basename in
15187 nvcc*) # Cuda Compiler Driver 2.2
15188 lt_prog_compiler_wl='-Xlinker '
15189 lt_prog_compiler_pic='-Xcompiler -fPIC'
15193 # PORTME Check for flag to pass linker flags through the system compiler.
15196 lt_prog_compiler_wl='-Wl,'
15197 if test "$host_cpu" = ia64; then
15198 # AIX 5 now supports IA64 processor
15199 lt_prog_compiler_static='-Bstatic'
15201 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15205 mingw* | cygwin* | pw32* | os2* | cegcc*)
15206 # This hack is so that the source file can tell whether it is being
15207 # built for inclusion in a dll (and should export symbols for example).
15208 lt_prog_compiler_pic='-DDLL_EXPORT'
15211 hpux9* | hpux10* | hpux11*)
15212 lt_prog_compiler_wl='-Wl,'
15213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15214 # not for PA HP-UX.
15220 lt_prog_compiler_pic='+Z'
15223 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15224 lt_prog_compiler_static='${wl}-a ${wl}archive'
15227 irix5* | irix6* | nonstopux*)
15228 lt_prog_compiler_wl='-Wl,'
15229 # PIC (with -KPIC) is the default.
15230 lt_prog_compiler_static='-non_shared'
15233 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15234 case $cc_basename in
15235 # old Intel for x86_64 which still supported -KPIC.
15237 lt_prog_compiler_wl='-Wl,'
15238 lt_prog_compiler_pic='-KPIC'
15239 lt_prog_compiler_static='-static'
15241 # icc used to be incompatible with GCC.
15242 # ICC 10 doesn't accept -KPIC any more.
15244 lt_prog_compiler_wl='-Wl,'
15245 lt_prog_compiler_pic='-fPIC'
15246 lt_prog_compiler_static='-static'
15248 # Lahey Fortran 8.1.
15250 lt_prog_compiler_wl='-Wl,'
15251 lt_prog_compiler_pic='--shared'
15252 lt_prog_compiler_static='--static'
15254 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15255 # Portland Group compilers (*not* the Pentium gcc compiler,
15256 # which looks to be a dead project)
15257 lt_prog_compiler_wl='-Wl,'
15258 lt_prog_compiler_pic='-fpic'
15259 lt_prog_compiler_static='-Bstatic'
15262 lt_prog_compiler_wl='-Wl,'
15263 # All Alpha code is PIC.
15264 lt_prog_compiler_static='-non_shared'
15266 xl* | bgxl* | bgf* | mpixl*)
15267 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15268 lt_prog_compiler_wl='-Wl,'
15269 lt_prog_compiler_pic='-qpic'
15270 lt_prog_compiler_static='-qstaticlink'
15273 case `$CC -V 2>&1 | sed 5q` in
15274 *Sun\ F* | *Sun*Fortran*)
15275 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15276 lt_prog_compiler_pic='-KPIC'
15277 lt_prog_compiler_static='-Bstatic'
15278 lt_prog_compiler_wl=''
15282 lt_prog_compiler_pic='-KPIC'
15283 lt_prog_compiler_static='-Bstatic'
15284 lt_prog_compiler_wl='-Wl,'
15292 lt_prog_compiler_pic='-KPIC'
15293 lt_prog_compiler_static='-Bstatic'
15297 # QNX uses GNU C++, but need to define -shared option too, otherwise
15298 # it will coredump.
15299 lt_prog_compiler_pic='-fPIC -shared'
15302 osf3* | osf4* | osf5*)
15303 lt_prog_compiler_wl='-Wl,'
15304 # All OSF/1 code is PIC.
15305 lt_prog_compiler_static='-non_shared'
15309 lt_prog_compiler_static='-non_shared'
15313 lt_prog_compiler_pic='-KPIC'
15314 lt_prog_compiler_static='-Bstatic'
15315 case $cc_basename in
15316 f77* | f90* | f95*)
15317 lt_prog_compiler_wl='-Qoption ld ';;
15319 lt_prog_compiler_wl='-Wl,';;
15324 lt_prog_compiler_wl='-Qoption ld '
15325 lt_prog_compiler_pic='-PIC'
15326 lt_prog_compiler_static='-Bstatic'
15329 sysv4 | sysv4.2uw2* | sysv4.3*)
15330 lt_prog_compiler_wl='-Wl,'
15331 lt_prog_compiler_pic='-KPIC'
15332 lt_prog_compiler_static='-Bstatic'
15336 if test -d /usr/nec ;then
15337 lt_prog_compiler_pic='-Kconform_pic'
15338 lt_prog_compiler_static='-Bstatic'
15342 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15343 lt_prog_compiler_wl='-Wl,'
15344 lt_prog_compiler_pic='-KPIC'
15345 lt_prog_compiler_static='-Bstatic'
15349 lt_prog_compiler_wl='-Wl,'
15350 lt_prog_compiler_can_build_shared=no
15354 lt_prog_compiler_pic='-pic'
15355 lt_prog_compiler_static='-Bstatic'
15359 lt_prog_compiler_can_build_shared=no
15365 # For platforms which do not support PIC, -DPIC is meaningless:
15367 lt_prog_compiler_pic=
15370 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15374 $as_echo "$lt_prog_compiler_pic" >&6; }
15382 # Check to make sure the PIC flag actually works.
15384 if test -n "$lt_prog_compiler_pic"; then
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15386 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15387 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15388 $as_echo_n "(cached) " >&6
15390 lt_cv_prog_compiler_pic_works=no
15391 ac_outfile=conftest.$ac_objext
15392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15393 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15394 # Insert the option either (1) after the last *FLAGS variable, or
15395 # (2) before a word containing "conftest.", or (3) at the end.
15396 # Note that $ac_compile itself does not contain backslashes and begins
15397 # with a dollar sign (not a hyphen), so the echo should work correctly.
15398 # The option is referenced via a variable to avoid confusing sed.
15399 lt_compile=`echo "$ac_compile" | $SED \
15400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15402 -e 's:$: $lt_compiler_flag:'`
15403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15404 (eval "$lt_compile" 2>conftest.err)
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 if (exit $ac_status) && test -s "$ac_outfile"; then
15409 # The compiler can only warn and ignore the option if not recognized
15410 # So say no if there are warnings other than the usual output.
15411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15414 lt_cv_prog_compiler_pic_works=yes
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15421 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15423 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15424 case $lt_prog_compiler_pic in
15426 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15429 lt_prog_compiler_pic=
15430 lt_prog_compiler_can_build_shared=no
15441 # Check to make sure the static flag actually works.
15443 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15445 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15446 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15449 lt_cv_prog_compiler_static_works=no
15450 save_LDFLAGS="$LDFLAGS"
15451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15454 # The linker can only warn and ignore the option if not recognized
15455 # So say no if there are warnings
15456 if test -s conftest.err; then
15457 # Append any errors to the config.log.
15458 cat conftest.err 1>&5
15459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15461 if diff conftest.exp conftest.er2 >/dev/null; then
15462 lt_cv_prog_compiler_static_works=yes
15465 lt_cv_prog_compiler_static_works=yes
15469 LDFLAGS="$save_LDFLAGS"
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15473 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15475 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15478 lt_prog_compiler_static=
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15489 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15490 $as_echo_n "(cached) " >&6
15492 lt_cv_prog_compiler_c_o=no
15493 $RM -r conftest 2>/dev/null
15497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15499 lt_compiler_flag="-o out/conftest2.$ac_objext"
15500 # Insert the option either (1) after the last *FLAGS variable, or
15501 # (2) before a word containing "conftest.", or (3) at the end.
15502 # Note that $ac_compile itself does not contain backslashes and begins
15503 # with a dollar sign (not a hyphen), so the echo should work correctly.
15504 lt_compile=`echo "$ac_compile" | $SED \
15505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15507 -e 's:$: $lt_compiler_flag:'`
15508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15509 (eval "$lt_compile" 2>out/conftest.err)
15511 cat out/conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15515 # The compiler can only warn and ignore the option if not recognized
15516 # So say no if there are warnings
15517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15520 lt_cv_prog_compiler_c_o=yes
15525 # SGI C++ compiler will create directory out/ii_files/ for
15526 # template instantiation
15527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15528 $RM out/* && rmdir out
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15545 $as_echo_n "(cached) " >&6
15547 lt_cv_prog_compiler_c_o=no
15548 $RM -r conftest 2>/dev/null
15552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15554 lt_compiler_flag="-o out/conftest2.$ac_objext"
15555 # Insert the option either (1) after the last *FLAGS variable, or
15556 # (2) before a word containing "conftest.", or (3) at the end.
15557 # Note that $ac_compile itself does not contain backslashes and begins
15558 # with a dollar sign (not a hyphen), so the echo should work correctly.
15559 lt_compile=`echo "$ac_compile" | $SED \
15560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15562 -e 's:$: $lt_compiler_flag:'`
15563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15564 (eval "$lt_compile" 2>out/conftest.err)
15566 cat out/conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15570 # The compiler can only warn and ignore the option if not recognized
15571 # So say no if there are warnings
15572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15575 lt_cv_prog_compiler_c_o=yes
15580 # SGI C++ compiler will create directory out/ii_files/ for
15581 # template instantiation
15582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15583 $RM out/* && rmdir out
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15595 hard_links="nottested"
15596 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15597 # do not overwrite the value of need_locks provided by the user
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15599 $as_echo_n "checking if we can lock with hard links... " >&6; }
15602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15604 ln conftest.a conftest.b 2>&5 || hard_links=no
15605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15607 $as_echo "$hard_links" >&6; }
15608 if test "$hard_links" = no; then
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15610 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15623 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15626 allow_undefined_flag=
15627 always_export_symbols=no
15629 archive_expsym_cmds=
15630 compiler_needs_object=no
15631 enable_shared_with_static_runtimes=no
15632 export_dynamic_flag_spec=
15633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15634 hardcode_automatic=no
15636 hardcode_direct_absolute=no
15637 hardcode_libdir_flag_spec=
15638 hardcode_libdir_flag_spec_ld=
15639 hardcode_libdir_separator=
15640 hardcode_minus_L=no
15641 hardcode_shlibpath_var=unsupported
15643 link_all_deplibs=unknown
15645 module_expsym_cmds=
15646 old_archive_from_new_cmds=
15647 old_archive_from_expsyms_cmds=
15648 thread_safe_flag_spec=
15649 whole_archive_flag_spec=
15650 # include_expsyms should be a list of space-separated symbols to be *always*
15651 # included in the symbol list
15653 # exclude_expsyms can be an extended regexp of symbols to exclude
15654 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15655 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15656 # as well as any symbol that contains `d'.
15657 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15658 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15659 # platforms (ab)use it in PIC code, but their linkers get confused if
15660 # the symbol is explicitly referenced. Since portable code cannot
15661 # rely on this symbol name, it's probably fine to never include it in
15662 # preloaded symbol tables.
15663 # Exclude shared library initialization/finalization symbols.
15664 extract_expsyms_cmds=
15667 cygwin* | mingw* | pw32* | cegcc*)
15668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15669 # When not using gcc, we currently assume that we are using
15670 # Microsoft Visual C++.
15671 if test "$GCC" != yes; then
15676 # we just hope/assume this is gcc and not c89 (= MSVC++)
15686 # On some targets, GNU ld is compatible enough with the native linker
15687 # that we're better off using the native interface for both.
15688 lt_use_gnu_ld_interface=no
15689 if test "$with_gnu_ld" = yes; then
15692 # The AIX port of GNU ld has always aspired to compatibility
15693 # with the native linker. However, as the warning in the GNU ld
15694 # block says, versions before 2.19.5* couldn't really create working
15695 # shared libraries, regardless of the interface used.
15696 case `$LD -v 2>&1` in
15697 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15698 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15699 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15701 lt_use_gnu_ld_interface=yes
15706 lt_use_gnu_ld_interface=yes
15711 if test "$lt_use_gnu_ld_interface" = yes; then
15712 # If archive_cmds runs LD, not CC, wlarc should be empty
15715 # Set some defaults for GNU ld with shared library support. These
15716 # are reset later if shared libraries are not supported. Putting them
15717 # here allows them to be overridden if necessary.
15718 runpath_var=LD_RUN_PATH
15719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15720 export_dynamic_flag_spec='${wl}--export-dynamic'
15721 # ancient GNU ld didn't support --whole-archive et. al.
15722 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15723 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15725 whole_archive_flag_spec=
15727 supports_anon_versioning=no
15728 case `$LD -v 2>&1` in
15729 *GNU\ gold*) supports_anon_versioning=yes ;;
15730 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15731 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15732 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15733 *\ 2.11.*) ;; # other 2.11 versions
15734 *) supports_anon_versioning=yes ;;
15737 # See if GNU ld supports shared libraries.
15740 # On AIX/PPC, the GNU linker is very broken
15741 if test "$host_cpu" != ia64; then
15745 *** Warning: the GNU linker, at least up to release 2.19, is reported
15746 *** to be unable to reliably create shared libraries on AIX.
15747 *** Therefore, libtool is disabling shared libraries support. If you
15748 *** really care for shared libraries, you may want to install binutils
15749 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15750 *** You will then need to restart the configuration process.
15759 # see comment about AmigaOS4 .so support
15760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761 archive_expsym_cmds=''
15764 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)'
15765 hardcode_libdir_flag_spec='-L$libdir'
15766 hardcode_minus_L=yes
15772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15773 allow_undefined_flag=unsupported
15774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15775 # support --undefined. This deserves some investigation. FIXME
15776 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15782 cygwin* | mingw* | pw32* | cegcc*)
15783 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15784 # as there is no search path for DLLs.
15785 hardcode_libdir_flag_spec='-L$libdir'
15786 export_dynamic_flag_spec='${wl}--export-all-symbols'
15787 allow_undefined_flag=unsupported
15788 always_export_symbols=no
15789 enable_shared_with_static_runtimes=yes
15790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15792 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15794 # If the export-symbols file already is a .def file (1st line
15795 # is EXPORTS), use it as is; otherwise, prepend...
15796 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15797 cp $export_symbols $output_objdir/$soname.def;
15799 echo EXPORTS > $output_objdir/$soname.def;
15800 cat $export_symbols >> $output_objdir/$soname.def;
15802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15810 link_all_deplibs=yes
15815 hardcode_shlibpath_var=no
15816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15817 export_dynamic_flag_spec='${wl}-E'
15818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15819 # Instead, shared libraries are loaded at an image base (0x10000000 by
15820 # default) and relocated if they conflict, which is a slow very memory
15821 # consuming and fragmenting process. To avoid this, we pick a random,
15822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15823 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15825 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'
15828 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15830 if test "$host_os" = linux-dietlibc; then
15831 case $cc_basename in
15832 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15835 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15836 && test "$tmp_diet" = no
15839 tmp_sharedflag='-shared'
15840 case $cc_basename,$host_cpu in
15841 pgcc*) # Portland Group C compiler
15842 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'
15843 tmp_addflag=' $pic_flag'
15845 pgf77* | pgf90* | pgf95* | pgfortran*)
15846 # Portland Group f77 and f90 compilers
15847 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'
15848 tmp_addflag=' $pic_flag -Mnomain' ;;
15849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15850 tmp_addflag=' -i_dynamic' ;;
15851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15852 tmp_addflag=' -i_dynamic -nofor_main' ;;
15853 ifc* | ifort*) # Intel Fortran compiler
15854 tmp_addflag=' -nofor_main' ;;
15855 lf95*) # Lahey Fortran 8.1
15856 whole_archive_flag_spec=
15857 tmp_sharedflag='--shared' ;;
15858 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15859 tmp_sharedflag='-qmkshrobj'
15861 nvcc*) # Cuda Compiler Driver 2.2
15862 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'
15863 compiler_needs_object=yes
15866 case `$CC -V 2>&1 | sed 5q` in
15867 *Sun\ C*) # Sun C 5.9
15868 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'
15869 compiler_needs_object=yes
15870 tmp_sharedflag='-G' ;;
15871 *Sun\ F*) # Sun Fortran 8.3
15872 tmp_sharedflag='-G' ;;
15874 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15876 if test "x$supports_anon_versioning" = xyes; then
15877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15879 echo "local: *; };" >> $output_objdir/$libname.ver~
15880 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15883 case $cc_basename in
15884 xlf* | bgf* | bgxlf* | mpixlf*)
15885 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15886 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15887 hardcode_libdir_flag_spec=
15888 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15889 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15890 if test "x$supports_anon_versioning" = xyes; then
15891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15893 echo "local: *; };" >> $output_objdir/$libname.ver~
15894 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15914 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15919 *** create shared libraries on Solaris systems. Therefore, libtool
15920 *** is disabling shared libraries support. We urge you to upgrade GNU
15921 *** binutils to release 2.9.1 or newer. Another option is to modify
15922 *** your PATH or compiler configuration so that the native linker is
15923 *** used, and then restart.
15926 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15928 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15935 case `$LD -v 2>&1` in
15936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15940 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15941 *** reliably create shared libraries on SCO systems. Therefore, libtool
15942 *** is disabling shared libraries support. We urge you to upgrade GNU
15943 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15944 *** your PATH or compiler configuration so that the native linker is
15945 *** used, and then restart.
15950 # For security reasons, it is highly recommended that you always
15951 # use absolute paths for naming shared libraries, and exclude the
15952 # DT_RUNPATH tag from executables and libraries. But doing so
15953 # requires that you compile everything twice, which is a pain.
15954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15966 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15968 hardcode_direct=yes
15969 hardcode_shlibpath_var=no
15973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15982 if test "$ld_shlibs" = no; then
15984 hardcode_libdir_flag_spec=
15985 export_dynamic_flag_spec=
15986 whole_archive_flag_spec=
15989 # PORTME fill in a description of your system's linker (not GNU ld)
15992 allow_undefined_flag=unsupported
15993 always_export_symbols=yes
15994 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'
15995 # Note: this linker hardcodes the directories in LIBPATH if there
15996 # are no directories specified by -L.
15997 hardcode_minus_L=yes
15998 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15999 # Neither direct hardcoding nor static linking is supported with a
16001 hardcode_direct=unsupported
16006 if test "$host_cpu" = ia64; then
16007 # On IA64, the linker does run time linking by default, so we don't
16008 # have to do anything special.
16009 aix_use_runtimelinking=no
16010 exp_sym_flag='-Bexport'
16013 # If we're using GNU nm, then we don't want the "-C" option.
16014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16015 # Also, AIX nm treats weak defined symbols like other global
16016 # defined symbols, whereas GNU nm marks them as "W".
16017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16018 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'
16020 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'
16022 aix_use_runtimelinking=no
16024 # Test if we are trying to use run time linking or normal
16025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16026 # need to do runtime linking.
16027 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16028 for ld_flag in $LDFLAGS; do
16029 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16030 aix_use_runtimelinking=yes
16037 exp_sym_flag='-bexport'
16038 no_entry_flag='-bnoentry'
16041 # When large executables or shared objects are built, AIX ld can
16042 # have problems creating the table of contents. If linking a library
16043 # or program results in "error TOC overflow" add -mminimal-toc to
16044 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16045 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16048 hardcode_direct=yes
16049 hardcode_direct_absolute=yes
16050 hardcode_libdir_separator=':'
16051 link_all_deplibs=yes
16052 file_list_spec='${wl}-f,'
16054 if test "$GCC" = yes; then
16055 case $host_os in aix4.[012]|aix4.[012].*)
16056 # We only want to do this on AIX 4.2 and lower, the check
16057 # below for broken collect2 doesn't work under 4.3+
16058 collect2name=`${CC} -print-prog-name=collect2`
16059 if test -f "$collect2name" &&
16060 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16062 # We have reworked collect2
16065 # We have old collect2
16066 hardcode_direct=unsupported
16067 # It fails to find uninstalled libraries when the uninstalled
16068 # path is not listed in the libpath. Setting hardcode_minus_L
16069 # to unsupported forces relinking
16070 hardcode_minus_L=yes
16071 hardcode_libdir_flag_spec='-L$libdir'
16072 hardcode_libdir_separator=
16076 shared_flag='-shared'
16077 if test "$aix_use_runtimelinking" = yes; then
16078 shared_flag="$shared_flag "'${wl}-G'
16082 if test "$host_cpu" = ia64; then
16083 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16084 # chokes on -Wl,-G. The following line is correct:
16087 if test "$aix_use_runtimelinking" = yes; then
16088 shared_flag='${wl}-G'
16090 shared_flag='${wl}-bM:SRE'
16095 export_dynamic_flag_spec='${wl}-bexpall'
16096 # It seems that -bexpall does not export symbols beginning with
16097 # underscore (_), so it is better to generate a list of symbols to export.
16098 always_export_symbols=yes
16099 if test "$aix_use_runtimelinking" = yes; then
16100 # Warning - without using the other runtime loading flags (-brtl),
16101 # -berok will link without error, but may produce a broken library.
16102 allow_undefined_flag='-berok'
16103 # Determine the default libpath from the value encoded in an
16104 # empty executable.
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16116 if ac_fn_c_try_link "$LINENO"; then :
16118 lt_aix_libpath_sed='
16119 /Import File Strings/,/^$/ {
16125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16126 # Check for a 64-bit object if we didn't find anything.
16127 if test -z "$aix_libpath"; then
16128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16131 rm -f core conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16135 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16136 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"
16138 if test "$host_cpu" = ia64; then
16139 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16140 allow_undefined_flag="-z nodefs"
16141 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"
16143 # Determine the default libpath from the value encoded in an
16144 # empty executable.
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16156 if ac_fn_c_try_link "$LINENO"; then :
16158 lt_aix_libpath_sed='
16159 /Import File Strings/,/^$/ {
16165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16166 # Check for a 64-bit object if we didn't find anything.
16167 if test -z "$aix_libpath"; then
16168 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16171 rm -f core conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16176 # Warning - without using the other run time loading flags,
16177 # -berok will link without error, but may produce a broken library.
16178 no_undefined_flag=' ${wl}-bernotok'
16179 allow_undefined_flag=' ${wl}-berok'
16180 if test "$with_gnu_ld" = yes; then
16181 # We only use this code for GNU lds that support --whole-archive.
16182 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16184 # Exported symbols can be pulled into shared objects from archives
16185 whole_archive_flag_spec='$convenience'
16187 archive_cmds_need_lc=yes
16188 # This is similar to how AIX traditionally builds its shared libraries.
16189 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'
16197 # see comment about AmigaOS4 .so support
16198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16199 archive_expsym_cmds=''
16202 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)'
16203 hardcode_libdir_flag_spec='-L$libdir'
16204 hardcode_minus_L=yes
16210 export_dynamic_flag_spec=-rdynamic
16213 cygwin* | mingw* | pw32* | cegcc*)
16214 # When not using gcc, we currently assume that we are using
16215 # Microsoft Visual C++.
16216 # hardcode_libdir_flag_spec is actually meaningless, as there is
16217 # no search path for DLLs.
16218 hardcode_libdir_flag_spec=' '
16219 allow_undefined_flag=unsupported
16220 # Tell ltmain to make .lib files, not .a files.
16222 # Tell ltmain to make .dll files, not .so files.
16224 # FIXME: Setting linknames here is a bad hack.
16225 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16226 # The linker will automatically build a .lib file if we build a DLL.
16227 old_archive_from_new_cmds='true'
16228 # FIXME: Should let the user specify the lib program.
16229 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16230 fix_srcfile_path='`cygpath -w "$srcfile"`'
16231 enable_shared_with_static_runtimes=yes
16234 darwin* | rhapsody*)
16237 archive_cmds_need_lc=no
16239 hardcode_automatic=yes
16240 hardcode_shlibpath_var=unsupported
16241 if test "$lt_cv_ld_force_load" = "yes"; then
16242 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\"`'
16244 whole_archive_flag_spec=''
16246 link_all_deplibs=yes
16247 allow_undefined_flag="$_lt_dar_allow_undefined"
16248 case $cc_basename in
16249 ifort*) _lt_dar_can_shared=yes ;;
16250 *) _lt_dar_can_shared=$GCC ;;
16252 if test "$_lt_dar_can_shared" = "yes"; then
16253 output_verbose_link_cmd=func_echo_all
16254 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16255 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16256 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}"
16257 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}"
16266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_libdir_flag_spec='-L$libdir'
16268 hardcode_shlibpath_var=no
16271 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16272 # support. Future versions do this automatically, but an explicit c++rt0.o
16273 # does not break anything, and helps significantly (at the cost of a little
16276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16277 hardcode_libdir_flag_spec='-R$libdir'
16278 hardcode_direct=yes
16279 hardcode_shlibpath_var=no
16282 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16285 hardcode_direct=yes
16286 hardcode_minus_L=yes
16287 hardcode_shlibpath_var=no
16290 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16291 freebsd* | dragonfly*)
16292 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16293 hardcode_libdir_flag_spec='-R$libdir'
16294 hardcode_direct=yes
16295 hardcode_shlibpath_var=no
16299 if test "$GCC" = yes; then
16300 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'
16302 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'
16304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16305 hardcode_libdir_separator=:
16306 hardcode_direct=yes
16308 # hardcode_minus_L: Not really in the search PATH,
16309 # but as the default location of the library.
16310 hardcode_minus_L=yes
16311 export_dynamic_flag_spec='${wl}-E'
16315 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16316 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16320 if test "$with_gnu_ld" = no; then
16321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16322 hardcode_libdir_flag_spec_ld='+b $libdir'
16323 hardcode_libdir_separator=:
16324 hardcode_direct=yes
16325 hardcode_direct_absolute=yes
16326 export_dynamic_flag_spec='${wl}-E'
16327 # hardcode_minus_L: Not really in the search PATH,
16328 # but as the default location of the library.
16329 hardcode_minus_L=yes
16334 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16337 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16343 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16349 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16356 # Older versions of the 11.00 compiler do not understand -b yet
16357 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16359 $as_echo_n "checking if $CC understands -b... " >&6; }
16360 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16361 $as_echo_n "(cached) " >&6
16363 lt_cv_prog_compiler__b=no
16364 save_LDFLAGS="$LDFLAGS"
16365 LDFLAGS="$LDFLAGS -b"
16366 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16368 # The linker can only warn and ignore the option if not recognized
16369 # So say no if there are warnings
16370 if test -s conftest.err; then
16371 # Append any errors to the config.log.
16372 cat conftest.err 1>&5
16373 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16375 if diff conftest.exp conftest.er2 >/dev/null; then
16376 lt_cv_prog_compiler__b=yes
16379 lt_cv_prog_compiler__b=yes
16383 LDFLAGS="$save_LDFLAGS"
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16387 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16389 if test x"$lt_cv_prog_compiler__b" = xyes; then
16390 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16398 if test "$with_gnu_ld" = no; then
16399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16400 hardcode_libdir_separator=:
16405 hardcode_shlibpath_var=no
16408 hardcode_direct=yes
16409 hardcode_direct_absolute=yes
16410 export_dynamic_flag_spec='${wl}-E'
16412 # hardcode_minus_L: Not really in the search PATH,
16413 # but as the default location of the library.
16414 hardcode_minus_L=yes
16420 irix5* | irix6* | nonstopux*)
16421 if test "$GCC" = yes; then
16422 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'
16423 # Try to use the -exported_symbol ld option, if it does not
16424 # work, assume that -exports_file does not work either and
16425 # implicitly export all symbols.
16426 save_LDFLAGS="$LDFLAGS"
16427 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16432 if ac_fn_c_try_link "$LINENO"; then :
16433 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'
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 LDFLAGS="$save_LDFLAGS"
16440 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'
16441 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'
16443 archive_cmds_need_lc='no'
16444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16445 hardcode_libdir_separator=:
16447 link_all_deplibs=yes
16451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16456 hardcode_libdir_flag_spec='-R$libdir'
16457 hardcode_direct=yes
16458 hardcode_shlibpath_var=no
16462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_direct=yes
16464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16465 hardcode_libdir_separator=:
16466 hardcode_shlibpath_var=no
16473 if test -f /usr/libexec/ld.so; then
16474 hardcode_direct=yes
16475 hardcode_shlibpath_var=no
16476 hardcode_direct_absolute=yes
16477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16481 export_dynamic_flag_spec='${wl}-E'
16484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_libdir_flag_spec='-R$libdir'
16489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16500 hardcode_libdir_flag_spec='-L$libdir'
16501 hardcode_minus_L=yes
16502 allow_undefined_flag=unsupported
16503 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'
16504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16508 if test "$GCC" = yes; then
16509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16510 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'
16512 allow_undefined_flag=' -expect_unresolved \*'
16513 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'
16515 archive_cmds_need_lc='no'
16516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16517 hardcode_libdir_separator=:
16520 osf4* | osf5*) # as osf3* with the addition of -msym flag
16521 if test "$GCC" = yes; then
16522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16523 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'
16524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16526 allow_undefined_flag=' -expect_unresolved \*'
16527 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'
16528 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~
16529 $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'
16531 # Both c and cxx compiler support -rpath directly
16532 hardcode_libdir_flag_spec='-rpath $libdir'
16534 archive_cmds_need_lc='no'
16535 hardcode_libdir_separator=:
16539 no_undefined_flag=' -z defs'
16540 if test "$GCC" = yes; then
16542 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16544 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16546 case `$CC -V 2>&1` in
16549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16561 hardcode_libdir_flag_spec='-R$libdir'
16562 hardcode_shlibpath_var=no
16564 solaris2.[0-5] | solaris2.[0-5].*) ;;
16566 # The compiler driver will combine and reorder linker options,
16567 # but understands `-z linker_flag'. GCC discards it without `$wl',
16568 # but is careful enough not to reorder.
16569 # Supported since Solaris 2.6 (maybe 2.5.1?)
16570 if test "$GCC" = yes; then
16571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16577 link_all_deplibs=yes
16581 if test "x$host_vendor" = xsequent; then
16582 # Use $CC to link under sequent, because it throws in some extra .o
16583 # files that make .init and .fini sections work.
16584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16588 hardcode_libdir_flag_spec='-L$libdir'
16589 hardcode_direct=yes
16590 hardcode_minus_L=yes
16591 hardcode_shlibpath_var=no
16595 case $host_vendor in
16597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598 hardcode_direct=yes # is this really true???
16601 ## LD is ld it makes a PLAMLIB
16602 ## CC just makes a GrossModule.
16603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16604 reload_cmds='$CC -r -o $output$reload_objs'
16608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16612 runpath_var='LD_RUN_PATH'
16613 hardcode_shlibpath_var=no
16617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16618 hardcode_shlibpath_var=no
16619 export_dynamic_flag_spec='-Bexport'
16623 if test -d /usr/nec; then
16624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_shlibpath_var=no
16626 runpath_var=LD_RUN_PATH
16627 hardcode_runpath_var=yes
16632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16633 no_undefined_flag='${wl}-z,text'
16634 archive_cmds_need_lc=no
16635 hardcode_shlibpath_var=no
16636 runpath_var='LD_RUN_PATH'
16638 if test "$GCC" = yes; then
16639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16647 sysv5* | sco3.2v5* | sco5v6*)
16648 # Note: We can NOT use -z defs as we might desire, because we do not
16649 # link with -lc, and that would cause any symbols used from libc to
16650 # always be unresolved, which means just about no library would
16651 # ever link correctly. If we're not using GNU ld we use -z text
16652 # though, which does catch some bad symbols but isn't as heavy-handed
16654 no_undefined_flag='${wl}-z,text'
16655 allow_undefined_flag='${wl}-z,nodefs'
16656 archive_cmds_need_lc=no
16657 hardcode_shlibpath_var=no
16658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16659 hardcode_libdir_separator=':'
16660 link_all_deplibs=yes
16661 export_dynamic_flag_spec='${wl}-Bexport'
16662 runpath_var='LD_RUN_PATH'
16664 if test "$GCC" = yes; then
16665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_libdir_flag_spec='-L$libdir'
16676 hardcode_shlibpath_var=no
16684 if test x$host_vendor = xsni; then
16686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16687 export_dynamic_flag_spec='${wl}-Blargedynsym'
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16694 $as_echo "$ld_shlibs" >&6; }
16695 test "$ld_shlibs" = no && can_build_shared=no
16697 with_gnu_ld=$with_gnu_ld
16714 # Do we need to explicitly link libc?
16716 case "x$archive_cmds_need_lc" in
16718 # Assume -lc should be added
16719 archive_cmds_need_lc=yes
16721 if test "$enable_shared" = yes && test "$GCC" = yes; then
16722 case $archive_cmds in
16724 # FIXME: we may have to deal with multi-command sequences.
16727 # Test whether the compiler implicitly links with -lc since on some
16728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16729 # to ld, don't add -lc before -lgcc.
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16732 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16733 $as_echo_n "(cached) " >&6
16736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16739 (eval $ac_compile) 2>&5
16741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16742 test $ac_status = 0; } 2>conftest.err; then
16745 libobjs=conftest.$ac_objext
16747 wl=$lt_prog_compiler_wl
16748 pic_flag=$lt_prog_compiler_pic
16754 lt_save_allow_undefined_flag=$allow_undefined_flag
16755 allow_undefined_flag=
16756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760 test $ac_status = 0; }
16762 lt_cv_archive_cmds_need_lc=no
16764 lt_cv_archive_cmds_need_lc=yes
16766 allow_undefined_flag=$lt_save_allow_undefined_flag
16768 cat conftest.err 1>&5
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16774 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16939 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16941 if test "$GCC" = yes; then
16943 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16944 *) lt_awk_arg="/^libraries:/" ;;
16947 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16948 *) lt_sed_strip_eq="s,=/,/,g" ;;
16950 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16951 case $lt_search_path_spec in
16953 # if the path contains ";" then we assume it to be the separator
16954 # otherwise default to the standard path separator (i.e. ":") - it is
16955 # assumed that no part of a normal pathname contains ";" but that should
16956 # okay in the real world where ";" in dirpaths is itself problematic.
16957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16960 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16963 # Ok, now we have the path, separated by spaces, we can step through it
16964 # and add multilib dir if necessary.
16965 lt_tmp_lt_search_path_spec=
16966 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16967 for lt_sys_path in $lt_search_path_spec; do
16968 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16969 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16971 test -d "$lt_sys_path" && \
16972 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16975 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16976 BEGIN {RS=" "; FS="/|\n";} {
16979 for (lt_i = NF; lt_i > 0; lt_i--) {
16980 if ($lt_i != "" && $lt_i != ".") {
16981 if ($lt_i == "..") {
16984 if (lt_count == 0) {
16985 lt_foo="/" $lt_i lt_foo;
16992 if (lt_foo != "") { lt_freq[lt_foo]++; }
16993 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16995 # AWK program above erroneously prepends '/' to C:/dos/paths
16998 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16999 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17001 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17005 library_names_spec=
17006 libname_spec='lib$name'
17010 postuninstall_cmds=
17014 shlibpath_overrides_runpath=unknown
17016 dynamic_linker="$host_os ld.so"
17017 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17018 need_lib_prefix=unknown
17019 hardcode_into_libs=no
17021 # when you set need_version to no, make sure it does not cause -set_version
17022 # flags to be left without arguments
17023 need_version=unknown
17028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17029 shlibpath_var=LIBPATH
17031 # AIX 3 has no versioning support, so we append a major version to the name.
17032 soname_spec='${libname}${release}${shared_ext}$major'
17039 hardcode_into_libs=yes
17040 if test "$host_cpu" = ia64; then
17041 # AIX 5 supports IA64
17042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17043 shlibpath_var=LD_LIBRARY_PATH
17045 # With GCC up to 2.95.x, collect2 would create an import file
17046 # for dependence libraries. The import file would start with
17047 # the line `#! .'. This would cause the generated library to
17048 # depend on `.', always an invalid library. This was fixed in
17049 # development snapshots of GCC prior to 3.0.
17051 aix4 | aix4.[01] | aix4.[01].*)
17052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17054 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17057 can_build_shared=no
17061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17062 # soname into executable. Probably we can add versioning support to
17063 # collect2, so additional links can be useful in future.
17064 if test "$aix_use_runtimelinking" = yes; then
17065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17066 # instead of lib<name>.a to let people know that these are not
17067 # typical AIX shared libraries.
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070 # We preserve .a as extension for shared libraries through AIX4.2
17071 # and later when we are not doing run time linking.
17072 library_names_spec='${libname}${release}.a $libname.a'
17073 soname_spec='${libname}${release}${shared_ext}$major'
17075 shlibpath_var=LIBPATH
17082 # Since July 2007 AmigaOS4 officially supports .so libraries.
17083 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17087 library_names_spec='$libname.ixlibrary $libname.a'
17088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17089 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'
17095 library_names_spec='${libname}${shared_ext}'
17096 dynamic_linker="$host_os ld.so"
17097 shlibpath_var=LIBRARY_PATH
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17108 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17109 # the default ld.so.conf also contains /usr/contrib/lib and
17110 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17111 # libtool to hard-code these into programs
17114 cygwin* | mingw* | pw32* | cegcc*)
17115 version_type=windows
17120 case $GCC,$host_os in
17121 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17122 library_names_spec='$libname.dll.a'
17123 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17124 postinstall_cmds='base_file=`basename \${file}`~
17125 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17126 dldir=$destdir/`dirname \$dlpath`~
17127 test -d \$dldir || mkdir -p \$dldir~
17128 $install_prog $dir/$dlname \$dldir/$dlname~
17129 chmod a+x \$dldir/$dlname~
17130 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17131 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17133 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17134 dlpath=$dir/\$dldll~
17136 shlibpath_overrides_runpath=yes
17140 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17141 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17143 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17146 # MinGW DLLs use traditional 'lib' prefix
17147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17150 # pw32 DLLs use 'pw' prefix rather than 'lib'
17151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17160 dynamic_linker='Win32 ld.exe'
17161 # FIXME: first we should search . and the directory the executable is in
17165 darwin* | rhapsody*)
17166 dynamic_linker="$host_os dyld"
17167 version_type=darwin
17170 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17171 soname_spec='${libname}${release}${major}$shared_ext'
17172 shlibpath_overrides_runpath=yes
17173 shlibpath_var=DYLD_LIBRARY_PATH
17174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17176 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 shlibpath_var=LD_LIBRARY_PATH
17189 freebsd* | dragonfly*)
17190 # DragonFly does not have aout. When/if they implement a new
17191 # versioning mechanism, adjust this.
17192 if test -x /usr/bin/objformat; then
17193 objformat=`/usr/bin/objformat`
17196 freebsd[123]*) objformat=aout ;;
17197 *) objformat=elf ;;
17200 version_type=freebsd-$objformat
17201 case $version_type in
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17212 shlibpath_var=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath=yes
17217 freebsd3.[01]* | freebsdelf3.[01]*)
17218 shlibpath_overrides_runpath=yes
17219 hardcode_into_libs=yes
17221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17223 shlibpath_overrides_runpath=no
17224 hardcode_into_libs=yes
17226 *) # from 4.6 on, and DragonFly
17227 shlibpath_overrides_runpath=yes
17228 hardcode_into_libs=yes
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 hardcode_into_libs=yes
17247 dynamic_linker="$host_os runtime_loader"
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LIBRARY_PATH
17251 shlibpath_overrides_runpath=yes
17252 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17253 hardcode_into_libs=yes
17256 hpux9* | hpux10* | hpux11*)
17257 # Give a soname corresponding to the major version so that dld.sl refuses to
17258 # link against other versions.
17265 hardcode_into_libs=yes
17266 dynamic_linker="$host_os dld.so"
17267 shlibpath_var=LD_LIBRARY_PATH
17268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 if test "X$HPUX_IA64_MODE" = X32; then
17272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17280 hardcode_into_libs=yes
17281 dynamic_linker="$host_os dld.sl"
17282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285 soname_spec='${libname}${release}${shared_ext}$major'
17286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17291 dynamic_linker="$host_os dld.sl"
17292 shlibpath_var=SHLIB_PATH
17293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17298 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17299 postinstall_cmds='chmod 555 $lib'
17300 # or fails outright, so override atomically:
17301 install_override_mode=555
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17309 soname_spec='${libname}${release}${shared_ext}$major'
17310 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=no
17313 hardcode_into_libs=yes
17316 irix5* | irix6* | nonstopux*)
17318 nonstopux*) version_type=nonstopux ;;
17320 if test "$lt_cv_prog_gnu_ld" = yes; then
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17331 irix5* | nonstopux*)
17332 libsuff= shlibsuff=
17335 case $LD in # libtool.m4 will add one of these switches to LD
17336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17337 libsuff= shlibsuff= libmagic=32-bit;;
17338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17339 libsuff=32 shlibsuff=N32 libmagic=N32;;
17340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17342 *) libsuff= shlibsuff= libmagic=never-match;;
17346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17347 shlibpath_overrides_runpath=no
17348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17350 hardcode_into_libs=yes
17353 # No shared lib support for Linux oldld, aout, or coff.
17354 linux*oldld* | linux*aout* | linux*coff*)
17358 # This must be Linux ELF.
17359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=no
17369 # Some binutils ld are patched to set DT_RUNPATH
17370 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17371 $as_echo_n "(cached) " >&6
17373 lt_cv_shlibpath_overrides_runpath=no
17374 save_LDFLAGS=$LDFLAGS
17375 save_libdir=$libdir
17376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17389 if ac_fn_c_try_link "$LINENO"; then :
17390 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17391 lt_cv_shlibpath_overrides_runpath=yes
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17396 LDFLAGS=$save_LDFLAGS
17397 libdir=$save_libdir
17401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17403 # This implies no fast_install, which is unacceptable.
17404 # Some rework will be needed to allow for fast_install
17405 # before this can be enabled.
17406 hardcode_into_libs=yes
17408 # Append ld.so.conf contents to the search path
17409 if test -f /etc/ld.so.conf; then
17410 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' ' '`
17411 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17414 # We used to test for /lib/ld.so.1 and disable shared libraries on
17415 # powerpc, because MkLinux only supported shared libraries with the
17416 # GNU dynamic linker. Since this was broken with cross compilers,
17417 # most powerpc-linux boxes support dynamic linking these days and
17418 # people can always --disable-shared, the test was removed, and we
17419 # assume the GNU/Linux dynamic linker is in use.
17420 dynamic_linker='GNU/Linux ld.so'
17427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17430 dynamic_linker='NetBSD (a.out) ld.so'
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17433 soname_spec='${libname}${release}${shared_ext}$major'
17434 dynamic_linker='NetBSD ld.elf_so'
17436 shlibpath_var=LD_LIBRARY_PATH
17437 shlibpath_overrides_runpath=yes
17438 hardcode_into_libs=yes
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=yes
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 soname_spec='${libname}${release}${shared_ext}$major'
17454 shlibpath_var=LD_LIBRARY_PATH
17455 shlibpath_overrides_runpath=no
17456 hardcode_into_libs=yes
17457 dynamic_linker='ldqnx.so'
17462 sys_lib_dlsearch_path_spec="/usr/lib"
17464 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17466 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17467 *) need_version=no ;;
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17474 openbsd2.[89] | openbsd2.[89].*)
17475 shlibpath_overrides_runpath=no
17478 shlibpath_overrides_runpath=yes
17482 shlibpath_overrides_runpath=yes
17487 libname_spec='$name'
17490 library_names_spec='$libname${shared_ext} $libname.a'
17491 dynamic_linker='OS/2 ld.exe'
17492 shlibpath_var=LIBPATH
17495 osf3* | osf4* | osf5*)
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515 soname_spec='${libname}${release}${shared_ext}$major'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 shlibpath_overrides_runpath=yes
17518 hardcode_into_libs=yes
17519 # ldd complains unless libraries are executable
17520 postinstall_cmds='chmod +x $lib'
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 shlibpath_overrides_runpath=yes
17529 if test "$with_gnu_ld" = yes; then
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 shlibpath_var=LD_LIBRARY_PATH
17540 case $host_vendor in
17542 shlibpath_overrides_runpath=no
17544 runpath_var=LD_RUN_PATH
17552 shlibpath_overrides_runpath=no
17553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17559 if test -d /usr/nec ;then
17561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17562 soname_spec='$libname${shared_ext}.$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17568 version_type=freebsd-elf
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17572 soname_spec='${libname}${release}${shared_ext}$major'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 shlibpath_overrides_runpath=yes
17575 hardcode_into_libs=yes
17576 if test "$with_gnu_ld" = yes; then
17577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17582 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17586 sys_lib_dlsearch_path_spec='/usr/lib'
17590 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 shlibpath_overrides_runpath=no
17597 hardcode_into_libs=yes
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17612 $as_echo "$dynamic_linker" >&6; }
17613 test "$dynamic_linker" = no && can_build_shared=no
17615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17616 if test "$GCC" = yes; then
17617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17620 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17621 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17623 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17624 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17719 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17721 if test -n "$hardcode_libdir_flag_spec" ||
17722 test -n "$runpath_var" ||
17723 test "X$hardcode_automatic" = "Xyes" ; then
17725 # We can hardcode non-existent directories.
17726 if test "$hardcode_direct" != no &&
17727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17728 # have to relink, otherwise we might link with an installed library
17729 # when we should be linking with a yet-to-be-installed one
17730 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17731 test "$hardcode_minus_L" != no; then
17732 # Linking always hardcodes the temporary library directory.
17733 hardcode_action=relink
17735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17736 hardcode_action=immediate
17739 # We cannot hardcode anything, or else we can only hardcode existing
17741 hardcode_action=unsupported
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17744 $as_echo "$hardcode_action" >&6; }
17746 if test "$hardcode_action" = relink ||
17747 test "$inherit_rpath" = yes; then
17748 # Fast installation is not supported
17749 enable_fast_install=no
17750 elif test "$shlibpath_overrides_runpath" = yes ||
17751 test "$enable_shared" = no; then
17752 # Fast installation is not necessary
17753 enable_fast_install=needless
17761 if test "x$enable_dlopen" != xyes; then
17762 enable_dlopen=unknown
17763 enable_dlopen_self=unknown
17764 enable_dlopen_self_static=unknown
17771 lt_cv_dlopen="load_add_on"
17773 lt_cv_dlopen_self=yes
17776 mingw* | pw32* | cegcc*)
17777 lt_cv_dlopen="LoadLibrary"
17782 lt_cv_dlopen="dlopen"
17787 # if libdl is installed we need to link against it
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17789 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17791 $as_echo_n "(cached) " >&6
17793 ac_check_lib_save_LIBS=$LIBS
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17798 /* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17813 if ac_fn_c_try_link "$LINENO"; then :
17814 ac_cv_lib_dl_dlopen=yes
17816 ac_cv_lib_dl_dlopen=no
17818 rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820 LIBS=$ac_check_lib_save_LIBS
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17823 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17824 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17828 lt_cv_dlopen="dyld"
17830 lt_cv_dlopen_self=yes
17837 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17838 if test "x$ac_cv_func_shl_load" = x""yes; then :
17839 lt_cv_dlopen="shl_load"
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17842 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17843 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17844 $as_echo_n "(cached) " >&6
17846 ac_check_lib_save_LIBS=$LIBS
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17851 /* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17861 return shl_load ();
17866 if ac_fn_c_try_link "$LINENO"; then :
17867 ac_cv_lib_dld_shl_load=yes
17869 ac_cv_lib_dld_shl_load=no
17871 rm -f core conftest.err conftest.$ac_objext \
17872 conftest$ac_exeext conftest.$ac_ext
17873 LIBS=$ac_check_lib_save_LIBS
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17876 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17877 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17878 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17880 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17881 if test "x$ac_cv_func_dlopen" = x""yes; then :
17882 lt_cv_dlopen="dlopen"
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17885 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17887 $as_echo_n "(cached) " >&6
17889 ac_check_lib_save_LIBS=$LIBS
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 ac_cv_lib_dl_dlopen=yes
17912 ac_cv_lib_dl_dlopen=no
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916 LIBS=$ac_check_lib_save_LIBS
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17919 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17920 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17924 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17925 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17926 $as_echo_n "(cached) " >&6
17928 ac_check_lib_save_LIBS=$LIBS
17929 LIBS="-lsvld $LIBS"
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17933 /* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17948 if ac_fn_c_try_link "$LINENO"; then :
17949 ac_cv_lib_svld_dlopen=yes
17951 ac_cv_lib_svld_dlopen=no
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 LIBS=$ac_check_lib_save_LIBS
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17958 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17959 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17963 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17967 ac_check_lib_save_LIBS=$LIBS
17969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17982 return dld_link ();
17987 if ac_fn_c_try_link "$LINENO"; then :
17988 ac_cv_lib_dld_dld_link=yes
17990 ac_cv_lib_dld_dld_link=no
17992 rm -f core conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 LIBS=$ac_check_lib_save_LIBS
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17997 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17998 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17999 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18020 if test "x$lt_cv_dlopen" != xno; then
18026 case $lt_cv_dlopen in
18028 save_CPPFLAGS="$CPPFLAGS"
18029 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18031 save_LDFLAGS="$LDFLAGS"
18032 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18035 LIBS="$lt_cv_dlopen_libs $LIBS"
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18038 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18039 if test "${lt_cv_dlopen_self+set}" = set; then :
18040 $as_echo_n "(cached) " >&6
18042 if test "$cross_compiling" = yes; then :
18043 lt_cv_dlopen_self=cross
18045 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18046 lt_status=$lt_dlunknown
18047 cat > conftest.$ac_ext <<_LT_EOF
18048 #line 18047 "configure"
18049 #include "confdefs.h"
18058 # define LT_DLGLOBAL RTLD_GLOBAL
18061 # define LT_DLGLOBAL DL_GLOBAL
18063 # define LT_DLGLOBAL 0
18067 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18068 find out it does not work in some platform. */
18069 #ifndef LT_DLLAZY_OR_NOW
18071 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18074 # define LT_DLLAZY_OR_NOW DL_LAZY
18077 # define LT_DLLAZY_OR_NOW RTLD_NOW
18080 # define LT_DLLAZY_OR_NOW DL_NOW
18082 # define LT_DLLAZY_OR_NOW 0
18089 /* When -fvisbility=hidden is used, assume the code has been annotated
18090 correspondingly for the symbols needed. */
18091 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18092 void fnord () __attribute__((visibility("default")));
18095 void fnord () { int i=42; }
18098 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18099 int status = $lt_dlunknown;
18103 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18106 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18107 else puts (dlerror ());
18109 /* dlclose (self); */
18117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18118 (eval $ac_link) 2>&5
18120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18121 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18122 (./conftest; exit; ) >&5 2>/dev/null
18124 case x$lt_status in
18125 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18126 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18127 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18130 # compilation failed
18131 lt_cv_dlopen_self=no
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18139 $as_echo "$lt_cv_dlopen_self" >&6; }
18141 if test "x$lt_cv_dlopen_self" = xyes; then
18142 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18144 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18145 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18146 $as_echo_n "(cached) " >&6
18148 if test "$cross_compiling" = yes; then :
18149 lt_cv_dlopen_self_static=cross
18151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18152 lt_status=$lt_dlunknown
18153 cat > conftest.$ac_ext <<_LT_EOF
18154 #line 18153 "configure"
18155 #include "confdefs.h"
18164 # define LT_DLGLOBAL RTLD_GLOBAL
18167 # define LT_DLGLOBAL DL_GLOBAL
18169 # define LT_DLGLOBAL 0
18173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18174 find out it does not work in some platform. */
18175 #ifndef LT_DLLAZY_OR_NOW
18177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18180 # define LT_DLLAZY_OR_NOW DL_LAZY
18183 # define LT_DLLAZY_OR_NOW RTLD_NOW
18186 # define LT_DLLAZY_OR_NOW DL_NOW
18188 # define LT_DLLAZY_OR_NOW 0
18195 /* When -fvisbility=hidden is used, assume the code has been annotated
18196 correspondingly for the symbols needed. */
18197 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18198 void fnord () __attribute__((visibility("default")));
18201 void fnord () { int i=42; }
18204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18205 int status = $lt_dlunknown;
18209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18212 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18213 else puts (dlerror ());
18215 /* dlclose (self); */
18223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18224 (eval $ac_link) 2>&5
18226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18227 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18228 (./conftest; exit; ) >&5 2>/dev/null
18230 case x$lt_status in
18231 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18232 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18233 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18236 # compilation failed
18237 lt_cv_dlopen_self_static=no
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18245 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18248 CPPFLAGS="$save_CPPFLAGS"
18249 LDFLAGS="$save_LDFLAGS"
18254 case $lt_cv_dlopen_self in
18255 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18256 *) enable_dlopen_self=unknown ;;
18259 case $lt_cv_dlopen_self_static in
18260 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18261 *) enable_dlopen_self_static=unknown ;;
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18284 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18285 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18287 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18289 $as_echo "yes" >&6; }
18291 # FIXME - insert some real tests, host_os isn't really good enough
18294 if test -n "$STRIP" ; then
18295 striplib="$STRIP -x"
18296 old_striplib="$STRIP -S"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18298 $as_echo "yes" >&6; }
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18301 $as_echo "no" >&6; }
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306 $as_echo "no" >&6; }
18322 # Report which library types will actually be built
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18324 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18326 $as_echo "$can_build_shared" >&6; }
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18329 $as_echo_n "checking whether to build shared libraries... " >&6; }
18330 test "$can_build_shared" = "no" && enable_shared=no
18332 # On AIX, shared libraries and static libraries use the same namespace, and
18333 # are all built from PIC.
18336 test "$enable_shared" = yes && enable_static=no
18337 if test -n "$RANLIB"; then
18338 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18339 postinstall_cmds='$RANLIB $lib'
18344 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18345 test "$enable_shared" = yes && enable_static=no
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18350 $as_echo "$enable_shared" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18353 $as_echo_n "checking whether to build static libraries... " >&6; }
18354 # Make sure either enable_shared or enable_static is yes.
18355 test "$enable_shared" = yes || enable_static=yes
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18357 $as_echo "$enable_static" >&6; }
18364 ac_cpp='$CPP $CPPFLAGS'
18365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18371 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18372 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18373 (test "X$CXX" != "Xg++"))) ; then
18375 ac_cpp='$CXXCPP $CPPFLAGS'
18376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18380 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18381 if test -z "$CXXCPP"; then
18382 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18383 $as_echo_n "(cached) " >&6
18385 # Double quotes because CXXCPP needs to be expanded
18386 for CXXCPP in "$CXX -E" "/lib/cpp"
18388 ac_preproc_ok=false
18389 for ac_cxx_preproc_warn_flag in '' yes
18391 # Use a header file that comes with gcc, so configuring glibc
18392 # with a fresh cross-compiler works.
18393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18394 # <limits.h> exists even on freestanding compilers.
18395 # On the NeXT, cc -E runs the code through the compiler's parser,
18396 # not just through cpp. "Syntax error" is here to catch this case.
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18400 # include <limits.h>
18402 # include <assert.h>
18406 if ac_fn_cxx_try_cpp "$LINENO"; then :
18409 # Broken: fails on valid input.
18412 rm -f conftest.err conftest.$ac_ext
18414 # OK, works on sane cases. Now check whether nonexistent headers
18415 # can be detected and how.
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18418 #include <ac_nonexistent.h>
18420 if ac_fn_cxx_try_cpp "$LINENO"; then :
18421 # Broken: success on invalid input.
18424 # Passes both tests.
18428 rm -f conftest.err conftest.$ac_ext
18431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18432 rm -f conftest.err conftest.$ac_ext
18433 if $ac_preproc_ok; then :
18438 ac_cv_prog_CXXCPP=$CXXCPP
18441 CXXCPP=$ac_cv_prog_CXXCPP
18443 ac_cv_prog_CXXCPP=$CXXCPP
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18446 $as_echo "$CXXCPP" >&6; }
18447 ac_preproc_ok=false
18448 for ac_cxx_preproc_warn_flag in '' yes
18450 # Use a header file that comes with gcc, so configuring glibc
18451 # with a fresh cross-compiler works.
18452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 # <limits.h> exists even on freestanding compilers.
18454 # On the NeXT, cc -E runs the code through the compiler's parser,
18455 # not just through cpp. "Syntax error" is here to catch this case.
18456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18457 /* end confdefs.h. */
18459 # include <limits.h>
18461 # include <assert.h>
18465 if ac_fn_cxx_try_cpp "$LINENO"; then :
18468 # Broken: fails on valid input.
18471 rm -f conftest.err conftest.$ac_ext
18473 # OK, works on sane cases. Now check whether nonexistent headers
18474 # can be detected and how.
18475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18477 #include <ac_nonexistent.h>
18479 if ac_fn_cxx_try_cpp "$LINENO"; then :
18480 # Broken: success on invalid input.
18483 # Passes both tests.
18487 rm -f conftest.err conftest.$ac_ext
18490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18491 rm -f conftest.err conftest.$ac_ext
18492 if $ac_preproc_ok; then :
18495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18497 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18498 See \`config.log' for more details." "$LINENO" 5; }
18502 ac_cpp='$CPP $CPPFLAGS'
18503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18508 _lt_caught_CXX_error=yes
18512 ac_cpp='$CXXCPP $CPPFLAGS'
18513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18517 archive_cmds_need_lc_CXX=no
18518 allow_undefined_flag_CXX=
18519 always_export_symbols_CXX=no
18520 archive_expsym_cmds_CXX=
18521 compiler_needs_object_CXX=no
18522 export_dynamic_flag_spec_CXX=
18523 hardcode_direct_CXX=no
18524 hardcode_direct_absolute_CXX=no
18525 hardcode_libdir_flag_spec_CXX=
18526 hardcode_libdir_flag_spec_ld_CXX=
18527 hardcode_libdir_separator_CXX=
18528 hardcode_minus_L_CXX=no
18529 hardcode_shlibpath_var_CXX=unsupported
18530 hardcode_automatic_CXX=no
18531 inherit_rpath_CXX=no
18533 module_expsym_cmds_CXX=
18534 link_all_deplibs_CXX=unknown
18535 old_archive_cmds_CXX=$old_archive_cmds
18536 reload_flag_CXX=$reload_flag
18537 reload_cmds_CXX=$reload_cmds
18538 no_undefined_flag_CXX=
18539 whole_archive_flag_spec_CXX=
18540 enable_shared_with_static_runtimes_CXX=no
18542 # Source file extension for C++ test sources.
18545 # Object file extension for compiled C++ test sources.
18549 # No sense in running all these tests if we already determined that
18550 # the CXX compiler isn't working. Some variables (like enable_shared)
18551 # are currently assumed to apply to all compilers on this platform,
18552 # and will be corrupted by setting them based on a non-working compiler.
18553 if test "$_lt_caught_CXX_error" != yes; then
18554 # Code to be used in simple compile tests
18555 lt_simple_compile_test_code="int some_variable = 0;"
18557 # Code to be used in simple link tests
18558 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18567 # If no C compiler was specified, use CC.
18570 # If no C compiler flags were specified, use CFLAGS.
18571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18573 # Allow CC to be a program name with arguments.
18577 # save warnings/boilerplate of simple test code
18578 ac_outfile=conftest.$ac_objext
18579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18581 _lt_compiler_boilerplate=`cat conftest.err`
18584 ac_outfile=conftest.$ac_objext
18585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18587 _lt_linker_boilerplate=`cat conftest.err`
18591 # Allow CC to be a program name with arguments.
18596 lt_save_with_gnu_ld=$with_gnu_ld
18597 lt_save_path_LD=$lt_cv_path_LD
18598 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18599 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18601 $as_unset lt_cv_prog_gnu_ld
18603 if test -n "${lt_cv_path_LDCXX+set}"; then
18604 lt_cv_path_LD=$lt_cv_path_LDCXX
18606 $as_unset lt_cv_path_LD
18608 test -z "${LDCXX+set}" || LD=$LDCXX
18612 for cc_temp in $compiler""; do
18614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18620 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18623 if test -n "$compiler"; then
18624 # We don't want -fno-exception when compiling C++ code, so set the
18625 # no_builtin_flag separately
18626 if test "$GXX" = yes; then
18627 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18629 lt_prog_compiler_no_builtin_flag_CXX=
18632 if test "$GXX" = yes; then
18633 # Set up default GNU C++ configuration
18637 # Check whether --with-gnu-ld was given.
18638 if test "${with_gnu_ld+set}" = set; then :
18639 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18645 if test "$GCC" = yes; then
18646 # Check if gcc -print-prog-name=ld gives a path.
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18648 $as_echo_n "checking for ld used by $CC... " >&6; }
18651 # gcc leaves a trailing carriage return which upsets mingw
18652 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18654 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18657 # Accept absolute paths.
18659 re_direlt='/[^/][^/]*/\.\./'
18660 # Canonicalize the pathname of ld
18661 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18662 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18663 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18665 test -z "$LD" && LD="$ac_prog"
18668 # If it fails, then pretend we aren't using GCC.
18672 # If it is relative, then search for the first ld in PATH.
18673 with_gnu_ld=unknown
18676 elif test "$with_gnu_ld" = yes; then
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18678 $as_echo_n "checking for GNU ld... " >&6; }
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18681 $as_echo_n "checking for non-GNU ld... " >&6; }
18683 if test "${lt_cv_path_LD+set}" = set; then :
18684 $as_echo_n "(cached) " >&6
18686 if test -z "$LD"; then
18687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18688 for ac_dir in $PATH; do
18690 test -z "$ac_dir" && ac_dir=.
18691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18692 lt_cv_path_LD="$ac_dir/$ac_prog"
18693 # Check to see if the program is GNU ld. I'd rather use --version,
18694 # but apparently some variants of GNU ld only accept -v.
18695 # Break only if it was the GNU/non-GNU ld that we prefer.
18696 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18697 *GNU* | *'with BFD'*)
18698 test "$with_gnu_ld" != no && break
18701 test "$with_gnu_ld" != yes && break
18708 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18712 LD="$lt_cv_path_LD"
18713 if test -n "$LD"; then
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18715 $as_echo "$LD" >&6; }
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18720 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18723 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18724 $as_echo_n "(cached) " >&6
18726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18727 case `$LD -v 2>&1 </dev/null` in
18728 *GNU* | *'with BFD'*)
18729 lt_cv_prog_gnu_ld=yes
18732 lt_cv_prog_gnu_ld=no
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18738 with_gnu_ld=$lt_cv_prog_gnu_ld
18746 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18747 # archiving commands below assume that GNU ld is being used.
18748 if test "$with_gnu_ld" = yes; then
18749 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18750 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'
18752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18755 # If archive_cmds runs LD, not CC, wlarc should be empty
18756 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18757 # investigate it a little bit more. (MM)
18760 # ancient GNU ld didn't support --whole-archive et. al.
18761 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18762 $GREP 'no-whole-archive' > /dev/null; then
18763 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18765 whole_archive_flag_spec_CXX=
18771 # A generic and very simple default shared library creation
18772 # command for GNU C++ for the case where it uses the native
18773 # linker, instead of GNU ld. If possible, this setting should
18774 # overridden to take advantage of the native linker features on
18775 # the platform it is being used on.
18776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18779 # Commands to make compiler produce verbose output that lists
18780 # what "hidden" libraries, object files and flags are used when
18781 # linking a shared library.
18782 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18790 # PORTME: fill in a description of your system's C++ link characteristics
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18796 # FIXME: insert proper C++ library support
18800 if test "$host_cpu" = ia64; then
18801 # On IA64, the linker does run time linking by default, so we don't
18802 # have to do anything special.
18803 aix_use_runtimelinking=no
18804 exp_sym_flag='-Bexport'
18807 aix_use_runtimelinking=no
18809 # Test if we are trying to use run time linking or normal
18810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18811 # need to do runtime linking.
18812 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18813 for ld_flag in $LDFLAGS; do
18816 aix_use_runtimelinking=yes
18824 exp_sym_flag='-bexport'
18825 no_entry_flag='-bnoentry'
18828 # When large executables or shared objects are built, AIX ld can
18829 # have problems creating the table of contents. If linking a library
18830 # or program results in "error TOC overflow" add -mminimal-toc to
18831 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18832 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18834 archive_cmds_CXX=''
18835 hardcode_direct_CXX=yes
18836 hardcode_direct_absolute_CXX=yes
18837 hardcode_libdir_separator_CXX=':'
18838 link_all_deplibs_CXX=yes
18839 file_list_spec_CXX='${wl}-f,'
18841 if test "$GXX" = yes; then
18842 case $host_os in aix4.[012]|aix4.[012].*)
18843 # We only want to do this on AIX 4.2 and lower, the check
18844 # below for broken collect2 doesn't work under 4.3+
18845 collect2name=`${CC} -print-prog-name=collect2`
18846 if test -f "$collect2name" &&
18847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18849 # We have reworked collect2
18852 # We have old collect2
18853 hardcode_direct_CXX=unsupported
18854 # It fails to find uninstalled libraries when the uninstalled
18855 # path is not listed in the libpath. Setting hardcode_minus_L
18856 # to unsupported forces relinking
18857 hardcode_minus_L_CXX=yes
18858 hardcode_libdir_flag_spec_CXX='-L$libdir'
18859 hardcode_libdir_separator_CXX=
18862 shared_flag='-shared'
18863 if test "$aix_use_runtimelinking" = yes; then
18864 shared_flag="$shared_flag "'${wl}-G'
18868 if test "$host_cpu" = ia64; then
18869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18870 # chokes on -Wl,-G. The following line is correct:
18873 if test "$aix_use_runtimelinking" = yes; then
18874 shared_flag='${wl}-G'
18876 shared_flag='${wl}-bM:SRE'
18881 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18882 # It seems that -bexpall does not export symbols beginning with
18883 # underscore (_), so it is better to generate a list of symbols to
18885 always_export_symbols_CXX=yes
18886 if test "$aix_use_runtimelinking" = yes; then
18887 # Warning - without using the other runtime loading flags (-brtl),
18888 # -berok will link without error, but may produce a broken library.
18889 allow_undefined_flag_CXX='-berok'
18890 # Determine the default libpath from the value encoded in an empty
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18903 if ac_fn_cxx_try_link "$LINENO"; then :
18905 lt_aix_libpath_sed='
18906 /Import File Strings/,/^$/ {
18912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18913 # Check for a 64-bit object if we didn't find anything.
18914 if test -z "$aix_libpath"; then
18915 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18918 rm -f core conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18922 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18924 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"
18926 if test "$host_cpu" = ia64; then
18927 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18928 allow_undefined_flag_CXX="-z nodefs"
18929 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"
18931 # Determine the default libpath from the value encoded in an
18932 # empty executable.
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18944 if ac_fn_cxx_try_link "$LINENO"; then :
18946 lt_aix_libpath_sed='
18947 /Import File Strings/,/^$/ {
18953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18954 # Check for a 64-bit object if we didn't find anything.
18955 if test -z "$aix_libpath"; then
18956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18959 rm -f core conftest.err conftest.$ac_objext \
18960 conftest$ac_exeext conftest.$ac_ext
18961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18963 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18964 # Warning - without using the other run time loading flags,
18965 # -berok will link without error, but may produce a broken library.
18966 no_undefined_flag_CXX=' ${wl}-bernotok'
18967 allow_undefined_flag_CXX=' ${wl}-berok'
18968 if test "$with_gnu_ld" = yes; then
18969 # We only use this code for GNU lds that support --whole-archive.
18970 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18972 # Exported symbols can be pulled into shared objects from archives
18973 whole_archive_flag_spec_CXX='$convenience'
18975 archive_cmds_need_lc_CXX=yes
18976 # This is similar to how AIX traditionally builds its shared
18978 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'
18984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18985 allow_undefined_flag_CXX=unsupported
18986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18987 # support --undefined. This deserves some investigation. FIXME
18988 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18995 case $cc_basename in
18997 # FIXME: insert proper C++ library support
19003 cygwin* | mingw* | pw32* | cegcc*)
19004 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19005 # as there is no search path for DLLs.
19006 hardcode_libdir_flag_spec_CXX='-L$libdir'
19007 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19008 allow_undefined_flag_CXX=unsupported
19009 always_export_symbols_CXX=no
19010 enable_shared_with_static_runtimes_CXX=yes
19012 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19013 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'
19014 # If the export-symbols file already is a .def file (1st line
19015 # is EXPORTS), use it as is; otherwise, prepend...
19016 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19017 cp $export_symbols $output_objdir/$soname.def;
19019 echo EXPORTS > $output_objdir/$soname.def;
19020 cat $export_symbols >> $output_objdir/$soname.def;
19022 $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'
19027 darwin* | rhapsody*)
19030 archive_cmds_need_lc_CXX=no
19031 hardcode_direct_CXX=no
19032 hardcode_automatic_CXX=yes
19033 hardcode_shlibpath_var_CXX=unsupported
19034 if test "$lt_cv_ld_force_load" = "yes"; then
19035 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\"`'
19037 whole_archive_flag_spec_CXX=''
19039 link_all_deplibs_CXX=yes
19040 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19041 case $cc_basename in
19042 ifort*) _lt_dar_can_shared=yes ;;
19043 *) _lt_dar_can_shared=$GCC ;;
19045 if test "$_lt_dar_can_shared" = "yes"; then
19046 output_verbose_link_cmd=func_echo_all
19047 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}"
19048 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19049 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}"
19050 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}"
19051 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19052 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}"
19053 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}"
19063 case $cc_basename in
19065 # FIXME: insert proper C++ library support
19069 # Green Hills C++ Compiler
19070 # FIXME: insert proper C++ library support
19074 # FIXME: insert proper C++ library support
19081 # C++ shared libraries reported to be fairly broken before
19087 archive_cmds_need_lc_CXX=no
19090 freebsd* | dragonfly*)
19091 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19100 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19101 link_all_deplibs_CXX=yes
19105 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19106 hardcode_libdir_separator_CXX=:
19107 export_dynamic_flag_spec_CXX='${wl}-E'
19108 hardcode_direct_CXX=yes
19109 hardcode_minus_L_CXX=yes # Not in the search PATH,
19110 # but as the default
19111 # location of the library.
19113 case $cc_basename in
19115 # FIXME: insert proper C++ library support
19119 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'
19120 # Commands to make compiler produce verbose output that lists
19121 # what "hidden" libraries, object files and flags are used when
19122 # linking a shared library.
19124 # There doesn't appear to be a way to prevent this compiler from
19125 # explicitly linking system object files so we need to strip them
19126 # from the output so that they don't get included in the library
19128 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"'
19131 if test "$GXX" = yes; then
19132 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'
19134 # FIXME: insert proper C++ library support
19142 if test $with_gnu_ld = no; then
19143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19144 hardcode_libdir_separator_CXX=:
19150 export_dynamic_flag_spec_CXX='${wl}-E'
19156 hardcode_direct_CXX=no
19157 hardcode_shlibpath_var_CXX=no
19160 hardcode_direct_CXX=yes
19161 hardcode_direct_absolute_CXX=yes
19162 hardcode_minus_L_CXX=yes # Not in the search PATH,
19163 # but as the default
19164 # location of the library.
19168 case $cc_basename in
19170 # FIXME: insert proper C++ library support
19176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19179 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19182 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19185 # Commands to make compiler produce verbose output that lists
19186 # what "hidden" libraries, object files and flags are used when
19187 # linking a shared library.
19189 # There doesn't appear to be a way to prevent this compiler from
19190 # explicitly linking system object files so we need to strip them
19191 # from the output so that they don't get included in the library
19193 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"'
19196 if test "$GXX" = yes; then
19197 if test $with_gnu_ld = no; then
19200 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19203 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 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'
19211 # FIXME: insert proper C++ library support
19219 hardcode_direct_CXX=no
19220 hardcode_shlibpath_var_CXX=no
19221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19222 export_dynamic_flag_spec_CXX='${wl}-E'
19223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19224 # Instead, shared libraries are loaded at an image base (0x10000000 by
19225 # default) and relocated if they conflict, which is a slow very memory
19226 # consuming and fragmenting process. To avoid this, we pick a random,
19227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19229 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'
19230 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'
19233 case $cc_basename in
19236 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'
19238 # Archives containing C++ object files must be created using
19239 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19240 # necessary to make sure instantiated templates are included
19242 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19245 if test "$GXX" = yes; then
19246 if test "$with_gnu_ld" = no; then
19247 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'
19249 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'
19252 link_all_deplibs_CXX=yes
19255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19256 hardcode_libdir_separator_CXX=:
19257 inherit_rpath_CXX=yes
19260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19261 case $cc_basename in
19263 # Kuck and Associates, Inc. (KAI) C++ Compiler
19265 # KCC will only create a shared library if the output file
19266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19267 # to its proper name (with version) after linking.
19268 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'
19269 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'
19270 # Commands to make compiler produce verbose output that lists
19271 # what "hidden" libraries, object files and flags are used when
19272 # linking a shared library.
19274 # There doesn't appear to be a way to prevent this compiler from
19275 # explicitly linking system object files so we need to strip them
19276 # from the output so that they don't get included in the library
19278 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"'
19280 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19283 # Archives containing C++ object files must be created using
19284 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19285 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19290 # version 8.0 and above of icpc choke on multiply defined symbols
19291 # if we add $predep_objects and $postdep_objects, however 7.1 and
19292 # earlier do not add the objects themselves.
19293 case `$CC -V 2>&1` in
19295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19296 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'
19298 *) # Version 8.0 or newer
19301 ia64*) tmp_idyn=' -i_dynamic';;
19303 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19304 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'
19307 archive_cmds_need_lc_CXX=no
19308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19310 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19313 # Portland Group C++ compiler
19315 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19316 prelink_cmds_CXX='tpldir=Template.dir~
19318 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19319 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19320 old_archive_cmds_CXX='tpldir=Template.dir~
19322 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19323 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19325 archive_cmds_CXX='tpldir=Template.dir~
19327 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19328 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19329 archive_expsym_cmds_CXX='tpldir=Template.dir~
19331 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19332 $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'
19334 *) # Version 6 and above use weak symbols
19335 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19336 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'
19340 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19342 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'
19346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19347 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'
19349 runpath_var=LD_RUN_PATH
19350 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19351 hardcode_libdir_separator_CXX=:
19353 # Commands to make compiler produce verbose output that lists
19354 # what "hidden" libraries, object files and flags are used when
19355 # linking a shared library.
19357 # There doesn't appear to be a way to prevent this compiler from
19358 # explicitly linking system object files so we need to strip them
19359 # from the output so that they don't get included in the library
19361 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'
19363 xl* | mpixl* | bgxl*)
19364 # IBM XL 8.0 on PPC, with GNU ld
19365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19367 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19368 if test "x$supports_anon_versioning" = xyes; then
19369 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19371 echo "local: *; };" >> $output_objdir/$libname.ver~
19372 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19376 case `$CC -V 2>&1 | sed 5q` in
19379 no_undefined_flag_CXX=' -zdefs'
19380 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19381 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'
19382 hardcode_libdir_flag_spec_CXX='-R$libdir'
19383 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'
19384 compiler_needs_object_CXX=yes
19386 # Not sure whether something based on
19387 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19389 output_verbose_link_cmd='func_echo_all'
19391 # Archives containing C++ object files must be created using
19392 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19393 # necessary to make sure instantiated templates are included
19395 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19403 # FIXME: insert proper C++ library support
19408 # FIXME: insert proper C++ library support
19413 case $cc_basename in
19415 # FIXME: insert proper C++ library support
19419 # FIXME: insert proper C++ library support
19426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19427 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19429 hardcode_libdir_flag_spec_CXX='-R$libdir'
19430 hardcode_direct_CXX=yes
19431 hardcode_shlibpath_var_CXX=no
19433 # Workaround some broken pre-1.5 toolchains
19434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19442 # C++ shared libraries are fairly broken
19447 if test -f /usr/libexec/ld.so; then
19448 hardcode_direct_CXX=yes
19449 hardcode_shlibpath_var_CXX=no
19450 hardcode_direct_absolute_CXX=yes
19451 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19454 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19455 export_dynamic_flag_spec_CXX='${wl}-E'
19456 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19458 output_verbose_link_cmd=func_echo_all
19464 osf3* | osf4* | osf5*)
19465 case $cc_basename in
19467 # Kuck and Associates, Inc. (KAI) C++ Compiler
19469 # KCC will only create a shared library if the output file
19470 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19471 # to its proper name (with version) after linking.
19472 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'
19474 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19475 hardcode_libdir_separator_CXX=:
19477 # Archives containing C++ object files must be created using
19478 # the KAI C++ compiler.
19480 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19481 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19485 # Rational C++ 2.4.1
19486 # FIXME: insert proper C++ library support
19492 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19493 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'
19494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19497 allow_undefined_flag_CXX=' -expect_unresolved \*'
19498 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'
19499 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19500 echo "-hidden">> $lib.exp~
19501 $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~
19503 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19507 hardcode_libdir_separator_CXX=:
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19513 # There doesn't appear to be a way to prevent this compiler from
19514 # explicitly linking system object files so we need to strip them
19515 # from the output so that they don't get included in the library
19517 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"'
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19524 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'
19527 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'
19531 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19532 hardcode_libdir_separator_CXX=:
19534 # Commands to make compiler produce verbose output that lists
19535 # what "hidden" libraries, object files and flags are used when
19536 # linking a shared library.
19537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19540 # FIXME: insert proper C++ library support
19548 # FIXME: insert proper C++ library support
19553 case $cc_basename in
19556 # FIXME: insert proper C++ library support
19561 # FIXME: insert proper C++ library support
19565 # FIXME: insert proper C++ library support
19572 case $cc_basename in
19574 # Sun C++ 4.2, 5.x and Centerline C++
19575 archive_cmds_need_lc_CXX=yes
19576 no_undefined_flag_CXX=' -zdefs'
19577 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19578 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19579 $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'
19581 hardcode_libdir_flag_spec_CXX='-R$libdir'
19582 hardcode_shlibpath_var_CXX=no
19584 solaris2.[0-5] | solaris2.[0-5].*) ;;
19586 # The compiler driver will combine and reorder linker options,
19587 # but understands `-z linker_flag'.
19588 # Supported since Solaris 2.6 (maybe 2.5.1?)
19589 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19592 link_all_deplibs_CXX=yes
19594 output_verbose_link_cmd='func_echo_all'
19596 # Archives containing C++ object files must be created using
19597 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19598 # necessary to make sure instantiated templates are included
19600 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19603 # Green Hills C++ Compiler
19604 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19606 # The C++ compiler must be used to create the archive.
19607 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19610 # GNU C++ compiler with Solaris linker
19611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19612 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19613 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19614 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19615 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19616 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19618 # Commands to make compiler produce verbose output that lists
19619 # what "hidden" libraries, object files and flags are used when
19620 # linking a shared library.
19621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19623 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19625 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19626 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19627 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19629 # Commands to make compiler produce verbose output that lists
19630 # what "hidden" libraries, object files and flags are used when
19631 # linking a shared library.
19632 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19635 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19637 solaris2.[0-5] | solaris2.[0-5].*) ;;
19639 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19648 no_undefined_flag_CXX='${wl}-z,text'
19649 archive_cmds_need_lc_CXX=no
19650 hardcode_shlibpath_var_CXX=no
19651 runpath_var='LD_RUN_PATH'
19653 case $cc_basename in
19655 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19656 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19659 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19665 sysv5* | sco3.2v5* | sco5v6*)
19666 # Note: We can NOT use -z defs as we might desire, because we do not
19667 # link with -lc, and that would cause any symbols used from libc to
19668 # always be unresolved, which means just about no library would
19669 # ever link correctly. If we're not using GNU ld we use -z text
19670 # though, which does catch some bad symbols but isn't as heavy-handed
19672 no_undefined_flag_CXX='${wl}-z,text'
19673 allow_undefined_flag_CXX='${wl}-z,nodefs'
19674 archive_cmds_need_lc_CXX=no
19675 hardcode_shlibpath_var_CXX=no
19676 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19677 hardcode_libdir_separator_CXX=':'
19678 link_all_deplibs_CXX=yes
19679 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19680 runpath_var='LD_RUN_PATH'
19682 case $cc_basename in
19684 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19687 '"$old_archive_cmds_CXX"
19688 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19689 '"$reload_cmds_CXX"
19692 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19693 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 case $cc_basename in
19701 # NonStop-UX NCC 3.20
19702 # FIXME: insert proper C++ library support
19706 # FIXME: insert proper C++ library support
19713 # FIXME: insert proper C++ library support
19718 # FIXME: insert proper C++ library support
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19724 $as_echo "$ld_shlibs_CXX" >&6; }
19725 test "$ld_shlibs_CXX" = no && can_build_shared=no
19731 ## There is no encapsulation within the following macros, do not change
19732 ## the running order or otherwise move them around unless you know exactly
19733 ## what you are doing...
19734 # Dependencies to place before and after the object being linked:
19735 predep_objects_CXX=
19736 postdep_objects_CXX=
19739 compiler_lib_search_path_CXX=
19741 cat > conftest.$ac_ext <<_LT_EOF
19745 Foo (void) { a = 0; }
19751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19752 (eval $ac_compile) 2>&5
19754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19755 test $ac_status = 0; }; then
19756 # Parse the compiler output and extract the necessary
19757 # objects, libraries and library flags.
19759 # Sentinel used to keep track of whether or not we are before
19760 # the conftest object file.
19761 pre_test_object_deps_done=no
19763 for p in `eval "$output_verbose_link_cmd"`; do
19767 # Some compilers place space between "-{L,R}" and the path.
19768 # Remove the space.
19769 if test $p = "-L" ||
19770 test $p = "-R"; then
19777 if test "$pre_test_object_deps_done" = no; then
19780 # Internal compiler library paths should come after those
19781 # provided the user. The postdeps already come after the
19782 # user supplied libs so there is no need to process them.
19783 if test -z "$compiler_lib_search_path_CXX"; then
19784 compiler_lib_search_path_CXX="${prev}${p}"
19786 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19789 # The "-l" case would never come before the object being
19790 # linked, so don't bother handling this case.
19793 if test -z "$postdeps_CXX"; then
19794 postdeps_CXX="${prev}${p}"
19796 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19802 # This assumes that the test object file only shows up
19803 # once in the compiler output.
19804 if test "$p" = "conftest.$objext"; then
19805 pre_test_object_deps_done=yes
19809 if test "$pre_test_object_deps_done" = no; then
19810 if test -z "$predep_objects_CXX"; then
19811 predep_objects_CXX="$p"
19813 predep_objects_CXX="$predep_objects_CXX $p"
19816 if test -z "$postdep_objects_CXX"; then
19817 postdep_objects_CXX="$p"
19819 postdep_objects_CXX="$postdep_objects_CXX $p"
19824 *) ;; # Ignore the rest.
19832 echo "libtool.m4: error: problem compiling CXX test program"
19835 $RM -f confest.$objext
19837 # PORTME: override above test on systems where it is broken
19840 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19841 # hack all around it, let's just trust "g++" to DTRT.
19842 predep_objects_CXX=
19843 postdep_objects_CXX=
19848 case `$CC -V 2>&1 | sed 5q` in
19852 # The more standards-conforming stlport4 library is
19853 # incompatible with the Cstd library. Avoid specifying
19854 # it if it's in CXXFLAGS. Ignore libCrun as
19855 # -library=stlport4 depends on it.
19856 case " $CXX $CXXFLAGS " in
19857 *" -library=stlport4 "*)
19858 solaris_use_stlport4=yes
19862 if test "$solaris_use_stlport4" != yes; then
19863 postdeps_CXX='-library=Cstd -library=Crun'
19870 case $cc_basename in
19872 # The more standards-conforming stlport4 library is
19873 # incompatible with the Cstd library. Avoid specifying
19874 # it if it's in CXXFLAGS. Ignore libCrun as
19875 # -library=stlport4 depends on it.
19876 case " $CXX $CXXFLAGS " in
19877 *" -library=stlport4 "*)
19878 solaris_use_stlport4=yes
19882 # Adding this requires a known-good setup of shared libraries for
19883 # Sun compiler versions before 5.6, else PIC objects from an old
19884 # archive will be linked into the output, leading to subtle bugs.
19885 if test "$solaris_use_stlport4" != yes; then
19886 postdeps_CXX='-library=Cstd -library=Crun'
19894 case " $postdeps_CXX " in
19895 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19897 compiler_lib_search_dirs_CXX=
19898 if test -n "${compiler_lib_search_path_CXX}"; then
19899 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19932 lt_prog_compiler_wl_CXX=
19933 lt_prog_compiler_pic_CXX=
19934 lt_prog_compiler_static_CXX=
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19937 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19939 # C++ specific cases for pic, static, wl, etc.
19940 if test "$GXX" = yes; then
19941 lt_prog_compiler_wl_CXX='-Wl,'
19942 lt_prog_compiler_static_CXX='-static'
19946 # All AIX code is PIC.
19947 if test "$host_cpu" = ia64; then
19948 # AIX 5 now supports IA64 processor
19949 lt_prog_compiler_static_CXX='-Bstatic'
19956 # see comment about AmigaOS4 .so support
19957 lt_prog_compiler_pic_CXX='-fPIC'
19960 # FIXME: we need at least 68020 code to build shared libraries, but
19961 # adding the `-m68020' flag to GCC prevents building anything better,
19963 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19968 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19969 # PIC is the default for these OSes.
19971 mingw* | cygwin* | os2* | pw32* | cegcc*)
19972 # This hack is so that the source file can tell whether it is being
19973 # built for inclusion in a dll (and should export symbols for example).
19974 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19975 # (--disable-auto-import) libraries
19976 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19978 darwin* | rhapsody*)
19979 # PIC is the default on this platform
19980 # Common symbols not allowed in MH_DYLIB files
19981 lt_prog_compiler_pic_CXX='-fno-common'
19984 # DJGPP does not support shared libraries at all
19985 lt_prog_compiler_pic_CXX=
19988 # PIC is the default for Haiku.
19989 # The "-static" flag exists, but is broken.
19990 lt_prog_compiler_static_CXX=
19993 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19994 # Instead, we relocate shared libraries at runtime.
19997 if test -d /usr/nec; then
19998 lt_prog_compiler_pic_CXX=-Kconform_pic
20002 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20003 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20004 # sets the default TLS model and affects inlining.
20009 lt_prog_compiler_pic_CXX='-fPIC'
20014 # QNX uses GNU C++, but need to define -shared option too, otherwise
20015 # it will coredump.
20016 lt_prog_compiler_pic_CXX='-fPIC -shared'
20019 lt_prog_compiler_pic_CXX='-fPIC'
20025 # All AIX code is PIC.
20026 if test "$host_cpu" = ia64; then
20027 # AIX 5 now supports IA64 processor
20028 lt_prog_compiler_static_CXX='-Bstatic'
20030 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20034 case $cc_basename in
20036 # Green Hills C++ Compiler
20037 # _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"
20042 case $cc_basename in
20044 lt_prog_compiler_pic_CXX='-KPIC'
20047 # Green Hills C++ Compiler
20048 lt_prog_compiler_pic_CXX='-pic'
20054 freebsd* | dragonfly*)
20055 # FreeBSD uses GNU C++
20057 hpux9* | hpux10* | hpux11*)
20058 case $cc_basename in
20060 lt_prog_compiler_wl_CXX='-Wl,'
20061 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20062 if test "$host_cpu" != ia64; then
20063 lt_prog_compiler_pic_CXX='+Z'
20067 lt_prog_compiler_wl_CXX='-Wl,'
20068 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20074 lt_prog_compiler_pic_CXX='+Z'
20083 # This is c89, which is MS Visual C++ (no shared libs)
20084 # Anyone wants to do a port?
20086 irix5* | irix6* | nonstopux*)
20087 case $cc_basename in
20089 lt_prog_compiler_wl_CXX='-Wl,'
20090 lt_prog_compiler_static_CXX='-non_shared'
20091 # CC pic flag -KPIC is the default.
20097 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20098 case $cc_basename in
20101 lt_prog_compiler_wl_CXX='--backend -Wl,'
20102 lt_prog_compiler_pic_CXX='-fPIC'
20105 # old Intel C++ for x86_64 which still supported -KPIC.
20106 lt_prog_compiler_wl_CXX='-Wl,'
20107 lt_prog_compiler_pic_CXX='-KPIC'
20108 lt_prog_compiler_static_CXX='-static'
20111 # Intel C++, used to be incompatible with GCC.
20112 # ICC 10 doesn't accept -KPIC any more.
20113 lt_prog_compiler_wl_CXX='-Wl,'
20114 lt_prog_compiler_pic_CXX='-fPIC'
20115 lt_prog_compiler_static_CXX='-static'
20118 # Portland Group C++ compiler
20119 lt_prog_compiler_wl_CXX='-Wl,'
20120 lt_prog_compiler_pic_CXX='-fpic'
20121 lt_prog_compiler_static_CXX='-Bstatic'
20125 # Make sure the PIC flag is empty. It appears that all Alpha
20126 # Linux and Compaq Tru64 Unix objects are PIC.
20127 lt_prog_compiler_pic_CXX=
20128 lt_prog_compiler_static_CXX='-non_shared'
20130 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20131 # IBM XL 8.0, 9.0 on PPC and BlueGene
20132 lt_prog_compiler_wl_CXX='-Wl,'
20133 lt_prog_compiler_pic_CXX='-qpic'
20134 lt_prog_compiler_static_CXX='-qstaticlink'
20137 case `$CC -V 2>&1 | sed 5q` in
20140 lt_prog_compiler_pic_CXX='-KPIC'
20141 lt_prog_compiler_static_CXX='-Bstatic'
20142 lt_prog_compiler_wl_CXX='-Qoption ld '
20153 case $cc_basename in
20155 lt_prog_compiler_pic_CXX='-W c,exportall'
20164 # QNX uses GNU C++, but need to define -shared option too, otherwise
20165 # it will coredump.
20166 lt_prog_compiler_pic_CXX='-fPIC -shared'
20168 osf3* | osf4* | osf5*)
20169 case $cc_basename in
20171 lt_prog_compiler_wl_CXX='--backend -Wl,'
20174 # Rational C++ 2.4.1
20175 lt_prog_compiler_pic_CXX='-pic'
20178 # Digital/Compaq C++
20179 lt_prog_compiler_wl_CXX='-Wl,'
20180 # Make sure the PIC flag is empty. It appears that all Alpha
20181 # Linux and Compaq Tru64 Unix objects are PIC.
20182 lt_prog_compiler_pic_CXX=
20183 lt_prog_compiler_static_CXX='-non_shared'
20192 case $cc_basename in
20194 # Sun C++ 4.2, 5.x and Centerline C++
20195 lt_prog_compiler_pic_CXX='-KPIC'
20196 lt_prog_compiler_static_CXX='-Bstatic'
20197 lt_prog_compiler_wl_CXX='-Qoption ld '
20200 # Green Hills C++ Compiler
20201 lt_prog_compiler_pic_CXX='-PIC'
20208 case $cc_basename in
20211 lt_prog_compiler_pic_CXX='-pic'
20212 lt_prog_compiler_static_CXX='-Bstatic'
20216 lt_prog_compiler_pic_CXX='-pic'
20222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20223 case $cc_basename in
20225 lt_prog_compiler_wl_CXX='-Wl,'
20226 lt_prog_compiler_pic_CXX='-KPIC'
20227 lt_prog_compiler_static_CXX='-Bstatic'
20232 case $cc_basename in
20234 # NonStop-UX NCC 3.20
20235 lt_prog_compiler_pic_CXX='-KPIC'
20244 lt_prog_compiler_can_build_shared_CXX=no
20250 # For platforms which do not support PIC, -DPIC is meaningless:
20252 lt_prog_compiler_pic_CXX=
20255 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20259 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20264 # Check to make sure the PIC flag actually works.
20266 if test -n "$lt_prog_compiler_pic_CXX"; then
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20268 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20269 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20272 lt_cv_prog_compiler_pic_works_CXX=no
20273 ac_outfile=conftest.$ac_objext
20274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20275 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20276 # Insert the option either (1) after the last *FLAGS variable, or
20277 # (2) before a word containing "conftest.", or (3) at the end.
20278 # Note that $ac_compile itself does not contain backslashes and begins
20279 # with a dollar sign (not a hyphen), so the echo should work correctly.
20280 # The option is referenced via a variable to avoid confusing sed.
20281 lt_compile=`echo "$ac_compile" | $SED \
20282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20284 -e 's:$: $lt_compiler_flag:'`
20285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20286 (eval "$lt_compile" 2>conftest.err)
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 if (exit $ac_status) && test -s "$ac_outfile"; then
20291 # The compiler can only warn and ignore the option if not recognized
20292 # So say no if there are warnings other than the usual output.
20293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20296 lt_cv_prog_compiler_pic_works_CXX=yes
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20303 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20305 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20306 case $lt_prog_compiler_pic_CXX in
20308 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20311 lt_prog_compiler_pic_CXX=
20312 lt_prog_compiler_can_build_shared_CXX=no
20320 # Check to make sure the static flag actually works.
20322 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20324 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20325 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20326 $as_echo_n "(cached) " >&6
20328 lt_cv_prog_compiler_static_works_CXX=no
20329 save_LDFLAGS="$LDFLAGS"
20330 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20331 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20333 # The linker can only warn and ignore the option if not recognized
20334 # So say no if there are warnings
20335 if test -s conftest.err; then
20336 # Append any errors to the config.log.
20337 cat conftest.err 1>&5
20338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20340 if diff conftest.exp conftest.er2 >/dev/null; then
20341 lt_cv_prog_compiler_static_works_CXX=yes
20344 lt_cv_prog_compiler_static_works_CXX=yes
20348 LDFLAGS="$save_LDFLAGS"
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20352 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20354 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20357 lt_prog_compiler_static_CXX=
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20364 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20365 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20366 $as_echo_n "(cached) " >&6
20368 lt_cv_prog_compiler_c_o_CXX=no
20369 $RM -r conftest 2>/dev/null
20373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20375 lt_compiler_flag="-o out/conftest2.$ac_objext"
20376 # Insert the option either (1) after the last *FLAGS variable, or
20377 # (2) before a word containing "conftest.", or (3) at the end.
20378 # Note that $ac_compile itself does not contain backslashes and begins
20379 # with a dollar sign (not a hyphen), so the echo should work correctly.
20380 lt_compile=`echo "$ac_compile" | $SED \
20381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20383 -e 's:$: $lt_compiler_flag:'`
20384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20385 (eval "$lt_compile" 2>out/conftest.err)
20387 cat out/conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20391 # The compiler can only warn and ignore the option if not recognized
20392 # So say no if there are warnings
20393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20396 lt_cv_prog_compiler_c_o_CXX=yes
20401 # SGI C++ compiler will create directory out/ii_files/ for
20402 # template instantiation
20403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20404 $RM out/* && rmdir out
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20411 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20416 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20417 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20418 $as_echo_n "(cached) " >&6
20420 lt_cv_prog_compiler_c_o_CXX=no
20421 $RM -r conftest 2>/dev/null
20425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20427 lt_compiler_flag="-o out/conftest2.$ac_objext"
20428 # Insert the option either (1) after the last *FLAGS variable, or
20429 # (2) before a word containing "conftest.", or (3) at the end.
20430 # Note that $ac_compile itself does not contain backslashes and begins
20431 # with a dollar sign (not a hyphen), so the echo should work correctly.
20432 lt_compile=`echo "$ac_compile" | $SED \
20433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20435 -e 's:$: $lt_compiler_flag:'`
20436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20437 (eval "$lt_compile" 2>out/conftest.err)
20439 cat out/conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20443 # The compiler can only warn and ignore the option if not recognized
20444 # So say no if there are warnings
20445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20448 lt_cv_prog_compiler_c_o_CXX=yes
20453 # SGI C++ compiler will create directory out/ii_files/ for
20454 # template instantiation
20455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20456 $RM out/* && rmdir out
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20463 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20468 hard_links="nottested"
20469 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20470 # do not overwrite the value of need_locks provided by the user
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20472 $as_echo_n "checking if we can lock with hard links... " >&6; }
20475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20477 ln conftest.a conftest.b 2>&5 || hard_links=no
20478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20480 $as_echo "$hard_links" >&6; }
20481 if test "$hard_links" = no; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20483 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20493 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20495 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20498 # If we're using GNU nm, then we don't want the "-C" option.
20499 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20500 # Also, AIX nm treats weak defined symbols like other global defined
20501 # symbols, whereas GNU nm marks them as "W".
20502 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20503 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'
20505 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'
20509 export_symbols_cmds_CXX="$ltdll_cmds"
20511 cygwin* | mingw* | cegcc*)
20512 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'
20515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20518 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20521 $as_echo "$ld_shlibs_CXX" >&6; }
20522 test "$ld_shlibs_CXX" = no && can_build_shared=no
20524 with_gnu_ld_CXX=$with_gnu_ld
20532 # Do we need to explicitly link libc?
20534 case "x$archive_cmds_need_lc_CXX" in
20536 # Assume -lc should be added
20537 archive_cmds_need_lc_CXX=yes
20539 if test "$enable_shared" = yes && test "$GCC" = yes; then
20540 case $archive_cmds_CXX in
20542 # FIXME: we may have to deal with multi-command sequences.
20545 # Test whether the compiler implicitly links with -lc since on some
20546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20547 # to ld, don't add -lc before -lgcc.
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20549 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20550 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20551 $as_echo_n "(cached) " >&6
20554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20557 (eval $ac_compile) 2>&5
20559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20560 test $ac_status = 0; } 2>conftest.err; then
20563 libobjs=conftest.$ac_objext
20565 wl=$lt_prog_compiler_wl_CXX
20566 pic_flag=$lt_prog_compiler_pic_CXX
20572 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20573 allow_undefined_flag_CXX=
20574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20575 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20578 test $ac_status = 0; }
20580 lt_cv_archive_cmds_need_lc_CXX=no
20582 lt_cv_archive_cmds_need_lc_CXX=yes
20584 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20586 cat conftest.err 1>&5
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20592 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20593 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20664 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20666 library_names_spec=
20667 libname_spec='lib$name'
20671 postuninstall_cmds=
20675 shlibpath_overrides_runpath=unknown
20677 dynamic_linker="$host_os ld.so"
20678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20679 need_lib_prefix=unknown
20680 hardcode_into_libs=no
20682 # when you set need_version to no, make sure it does not cause -set_version
20683 # flags to be left without arguments
20684 need_version=unknown
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20690 shlibpath_var=LIBPATH
20692 # AIX 3 has no versioning support, so we append a major version to the name.
20693 soname_spec='${libname}${release}${shared_ext}$major'
20700 hardcode_into_libs=yes
20701 if test "$host_cpu" = ia64; then
20702 # AIX 5 supports IA64
20703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20704 shlibpath_var=LD_LIBRARY_PATH
20706 # With GCC up to 2.95.x, collect2 would create an import file
20707 # for dependence libraries. The import file would start with
20708 # the line `#! .'. This would cause the generated library to
20709 # depend on `.', always an invalid library. This was fixed in
20710 # development snapshots of GCC prior to 3.0.
20712 aix4 | aix4.[01] | aix4.[01].*)
20713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20715 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20718 can_build_shared=no
20722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20723 # soname into executable. Probably we can add versioning support to
20724 # collect2, so additional links can be useful in future.
20725 if test "$aix_use_runtimelinking" = yes; then
20726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20727 # instead of lib<name>.a to let people know that these are not
20728 # typical AIX shared libraries.
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20731 # We preserve .a as extension for shared libraries through AIX4.2
20732 # and later when we are not doing run time linking.
20733 library_names_spec='${libname}${release}.a $libname.a'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20736 shlibpath_var=LIBPATH
20743 # Since July 2007 AmigaOS4 officially supports .so libraries.
20744 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 library_names_spec='$libname.ixlibrary $libname.a'
20749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20750 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'
20756 library_names_spec='${libname}${shared_ext}'
20757 dynamic_linker="$host_os ld.so"
20758 shlibpath_var=LIBRARY_PATH
20764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20765 soname_spec='${libname}${release}${shared_ext}$major'
20766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20767 shlibpath_var=LD_LIBRARY_PATH
20768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20770 # the default ld.so.conf also contains /usr/contrib/lib and
20771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20772 # libtool to hard-code these into programs
20775 cygwin* | mingw* | pw32* | cegcc*)
20776 version_type=windows
20781 case $GCC,$host_os in
20782 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20783 library_names_spec='$libname.dll.a'
20784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20785 postinstall_cmds='base_file=`basename \${file}`~
20786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20787 dldir=$destdir/`dirname \$dlpath`~
20788 test -d \$dldir || mkdir -p \$dldir~
20789 $install_prog $dir/$dlname \$dldir/$dlname~
20790 chmod a+x \$dldir/$dlname~
20791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20795 dlpath=$dir/\$dldll~
20797 shlibpath_overrides_runpath=yes
20801 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20802 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20806 # MinGW DLLs use traditional 'lib' prefix
20807 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20810 # pw32 DLLs use 'pw' prefix rather than 'lib'
20811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20820 dynamic_linker='Win32 ld.exe'
20821 # FIXME: first we should search . and the directory the executable is in
20825 darwin* | rhapsody*)
20826 dynamic_linker="$host_os dyld"
20827 version_type=darwin
20830 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20831 soname_spec='${libname}${release}${major}$shared_ext'
20832 shlibpath_overrides_runpath=yes
20833 shlibpath_var=DYLD_LIBRARY_PATH
20834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20836 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LD_LIBRARY_PATH
20848 freebsd* | dragonfly*)
20849 # DragonFly does not have aout. When/if they implement a new
20850 # versioning mechanism, adjust this.
20851 if test -x /usr/bin/objformat; then
20852 objformat=`/usr/bin/objformat`
20855 freebsd[123]*) objformat=aout ;;
20856 *) objformat=elf ;;
20859 version_type=freebsd-$objformat
20860 case $version_type in
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20871 shlibpath_var=LD_LIBRARY_PATH
20874 shlibpath_overrides_runpath=yes
20876 freebsd3.[01]* | freebsdelf3.[01]*)
20877 shlibpath_overrides_runpath=yes
20878 hardcode_into_libs=yes
20880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20882 shlibpath_overrides_runpath=no
20883 hardcode_into_libs=yes
20885 *) # from 4.6 on, and DragonFly
20886 shlibpath_overrides_runpath=yes
20887 hardcode_into_libs=yes
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20897 soname_spec='${libname}${release}${shared_ext}$major'
20898 shlibpath_var=LD_LIBRARY_PATH
20899 hardcode_into_libs=yes
20906 dynamic_linker="$host_os runtime_loader"
20907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20908 soname_spec='${libname}${release}${shared_ext}$major'
20909 shlibpath_var=LIBRARY_PATH
20910 shlibpath_overrides_runpath=yes
20911 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20912 hardcode_into_libs=yes
20915 hpux9* | hpux10* | hpux11*)
20916 # Give a soname corresponding to the major version so that dld.sl refuses to
20917 # link against other versions.
20924 hardcode_into_libs=yes
20925 dynamic_linker="$host_os dld.so"
20926 shlibpath_var=LD_LIBRARY_PATH
20927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929 soname_spec='${libname}${release}${shared_ext}$major'
20930 if test "X$HPUX_IA64_MODE" = X32; then
20931 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20933 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20939 hardcode_into_libs=yes
20940 dynamic_linker="$host_os dld.sl"
20941 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20944 soname_spec='${libname}${release}${shared_ext}$major'
20945 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20950 dynamic_linker="$host_os dld.sl"
20951 shlibpath_var=SHLIB_PATH
20952 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20954 soname_spec='${libname}${release}${shared_ext}$major'
20957 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20958 postinstall_cmds='chmod 555 $lib'
20959 # or fails outright, so override atomically:
20960 install_override_mode=555
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20970 shlibpath_var=LD_LIBRARY_PATH
20971 shlibpath_overrides_runpath=no
20972 hardcode_into_libs=yes
20975 irix5* | irix6* | nonstopux*)
20977 nonstopux*) version_type=nonstopux ;;
20979 if test "$lt_cv_prog_gnu_ld" = yes; then
20987 soname_spec='${libname}${release}${shared_ext}$major'
20988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20990 irix5* | nonstopux*)
20991 libsuff= shlibsuff=
20994 case $LD in # libtool.m4 will add one of these switches to LD
20995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20996 libsuff= shlibsuff= libmagic=32-bit;;
20997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20998 libsuff=32 shlibsuff=N32 libmagic=N32;;
20999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21001 *) libsuff= shlibsuff= libmagic=never-match;;
21005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21006 shlibpath_overrides_runpath=no
21007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21009 hardcode_into_libs=yes
21012 # No shared lib support for Linux oldld, aout, or coff.
21013 linux*oldld* | linux*aout* | linux*coff*)
21017 # This must be Linux ELF.
21018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21023 soname_spec='${libname}${release}${shared_ext}$major'
21024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21025 shlibpath_var=LD_LIBRARY_PATH
21026 shlibpath_overrides_runpath=no
21028 # Some binutils ld are patched to set DT_RUNPATH
21029 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21030 $as_echo_n "(cached) " >&6
21032 lt_cv_shlibpath_overrides_runpath=no
21033 save_LDFLAGS=$LDFLAGS
21034 save_libdir=$libdir
21035 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21036 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h. */
21048 if ac_fn_cxx_try_link "$LINENO"; then :
21049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21050 lt_cv_shlibpath_overrides_runpath=yes
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LDFLAGS=$save_LDFLAGS
21056 libdir=$save_libdir
21060 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21062 # This implies no fast_install, which is unacceptable.
21063 # Some rework will be needed to allow for fast_install
21064 # before this can be enabled.
21065 hardcode_into_libs=yes
21067 # Append ld.so.conf contents to the search path
21068 if test -f /etc/ld.so.conf; then
21069 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' ' '`
21070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21073 # We used to test for /lib/ld.so.1 and disable shared libraries on
21074 # powerpc, because MkLinux only supported shared libraries with the
21075 # GNU dynamic linker. Since this was broken with cross compilers,
21076 # most powerpc-linux boxes support dynamic linking these days and
21077 # people can always --disable-shared, the test was removed, and we
21078 # assume the GNU/Linux dynamic linker is in use.
21079 dynamic_linker='GNU/Linux ld.so'
21086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21089 dynamic_linker='NetBSD (a.out) ld.so'
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21092 soname_spec='${libname}${release}${shared_ext}$major'
21093 dynamic_linker='NetBSD ld.elf_so'
21095 shlibpath_var=LD_LIBRARY_PATH
21096 shlibpath_overrides_runpath=yes
21097 hardcode_into_libs=yes
21102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21103 shlibpath_var=LD_LIBRARY_PATH
21104 shlibpath_overrides_runpath=yes
21111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21112 soname_spec='${libname}${release}${shared_ext}$major'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 shlibpath_overrides_runpath=no
21115 hardcode_into_libs=yes
21116 dynamic_linker='ldqnx.so'
21121 sys_lib_dlsearch_path_spec="/usr/lib"
21123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21126 *) need_version=no ;;
21128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21130 shlibpath_var=LD_LIBRARY_PATH
21131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21133 openbsd2.[89] | openbsd2.[89].*)
21134 shlibpath_overrides_runpath=no
21137 shlibpath_overrides_runpath=yes
21141 shlibpath_overrides_runpath=yes
21146 libname_spec='$name'
21149 library_names_spec='$libname${shared_ext} $libname.a'
21150 dynamic_linker='OS/2 ld.exe'
21151 shlibpath_var=LIBPATH
21154 osf3* | osf4* | osf5*)
21158 soname_spec='${libname}${release}${shared_ext}$major'
21159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21160 shlibpath_var=LD_LIBRARY_PATH
21161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 soname_spec='${libname}${release}${shared_ext}$major'
21175 shlibpath_var=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath=yes
21177 hardcode_into_libs=yes
21178 # ldd complains unless libraries are executable
21179 postinstall_cmds='chmod +x $lib'
21184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21186 shlibpath_var=LD_LIBRARY_PATH
21187 shlibpath_overrides_runpath=yes
21188 if test "$with_gnu_ld" = yes; then
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 soname_spec='${libname}${release}${shared_ext}$major'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 case $host_vendor in
21201 shlibpath_overrides_runpath=no
21203 runpath_var=LD_RUN_PATH
21211 shlibpath_overrides_runpath=no
21212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21218 if test -d /usr/nec ;then
21220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21221 soname_spec='$libname${shared_ext}.$major'
21222 shlibpath_var=LD_LIBRARY_PATH
21226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21227 version_type=freebsd-elf
21230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21231 soname_spec='${libname}${release}${shared_ext}$major'
21232 shlibpath_var=LD_LIBRARY_PATH
21233 shlibpath_overrides_runpath=yes
21234 hardcode_into_libs=yes
21235 if test "$with_gnu_ld" = yes; then
21236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21245 sys_lib_dlsearch_path_spec='/usr/lib'
21249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 shlibpath_var=LD_LIBRARY_PATH
21255 shlibpath_overrides_runpath=no
21256 hardcode_into_libs=yes
21261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21262 soname_spec='${libname}${release}${shared_ext}$major'
21263 shlibpath_var=LD_LIBRARY_PATH
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21271 $as_echo "$dynamic_linker" >&6; }
21272 test "$dynamic_linker" = no && can_build_shared=no
21274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21275 if test "$GCC" = yes; then
21276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21279 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21282 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21283 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21324 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21325 hardcode_action_CXX=
21326 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21327 test -n "$runpath_var_CXX" ||
21328 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21330 # We can hardcode non-existent directories.
21331 if test "$hardcode_direct_CXX" != no &&
21332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21333 # have to relink, otherwise we might link with an installed library
21334 # when we should be linking with a yet-to-be-installed one
21335 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21336 test "$hardcode_minus_L_CXX" != no; then
21337 # Linking always hardcodes the temporary library directory.
21338 hardcode_action_CXX=relink
21340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21341 hardcode_action_CXX=immediate
21344 # We cannot hardcode anything, or else we can only hardcode existing
21346 hardcode_action_CXX=unsupported
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21349 $as_echo "$hardcode_action_CXX" >&6; }
21351 if test "$hardcode_action_CXX" = relink ||
21352 test "$inherit_rpath_CXX" = yes; then
21353 # Fast installation is not supported
21354 enable_fast_install=no
21355 elif test "$shlibpath_overrides_runpath" = yes ||
21356 test "$enable_shared" = no; then
21357 # Fast installation is not necessary
21358 enable_fast_install=needless
21367 fi # test -n "$compiler"
21373 with_gnu_ld=$lt_save_with_gnu_ld
21374 lt_cv_path_LDCXX=$lt_cv_path_LD
21375 lt_cv_path_LD=$lt_save_path_LD
21376 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21377 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21378 fi # test "$_lt_caught_CXX_error" != yes
21381 ac_cpp='$CPP $CPPFLAGS'
21382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21401 # Only expand once:
21407 # Identify the assembler which will work hand-in-glove with the newly
21408 # built GCC, so that we can examine its features. This is the assembler
21409 # which will be driven by the driver program.
21411 # If build != host, and we aren't building gas in-tree, we identify a
21412 # build->target assembler and hope that it will have the same features
21413 # as the host->target assembler we'll be using.
21414 gcc_cv_gas_major_version=
21415 gcc_cv_gas_minor_version=
21416 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21418 if test "${gcc_cv_as+set}" = set; then :
21422 if test -x "$DEFAULT_ASSEMBLER"; then
21423 gcc_cv_as="$DEFAULT_ASSEMBLER"
21424 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21425 && test -f ../gas/Makefile \
21426 && test x$build = x$host; then
21427 gcc_cv_as=../gas/as-new$build_exeext
21428 elif test -x as$build_exeext; then
21429 # Build using assembler in the current directory.
21430 gcc_cv_as=./as$build_exeext
21431 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21432 gcc_cv_as="$AS_FOR_TARGET"
21434 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21435 set dummy $AS_FOR_TARGET; ac_word=$2
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21437 $as_echo_n "checking for $ac_word... " >&6; }
21438 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21443 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21447 for as_dir in $PATH
21450 test -z "$as_dir" && as_dir=.
21451 for ac_exec_ext in '' $ac_executable_extensions; do
21452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21453 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21464 gcc_cv_as=$ac_cv_path_gcc_cv_as
21465 if test -n "$gcc_cv_as"; then
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21467 $as_echo "$gcc_cv_as" >&6; }
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21477 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21479 case "$ORIGINAL_AS_FOR_TARGET" in
21480 ./as | ./as$build_exeext) ;;
21481 *) ac_config_files="$ac_config_files as:exec-tool.in"
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21486 $as_echo_n "checking what assembler to use... " >&6; }
21487 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21488 # Single tree build which includes gas. We want to prefer it
21489 # over whatever linker top-level may have detected, since
21490 # we'll use what we're building after installation anyway.
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21492 $as_echo "newly built gas" >&6; }
21494 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21495 for f in $gcc_cv_as_bfd_srcdir/configure \
21496 $gcc_cv_as_gas_srcdir/configure \
21497 $gcc_cv_as_gas_srcdir/configure.in \
21498 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21499 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21500 if test x$gcc_cv_gas_version != x; then
21504 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21505 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21506 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21507 case $gcc_cv_gas_patch_version in
21508 "") gcc_cv_gas_patch_version="0" ;;
21510 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21511 + $gcc_cv_gas_minor_version \) \* 1000 \
21512 + $gcc_cv_gas_patch_version`
21514 in_tree_gas_is_elf=no
21515 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21516 || (grep 'obj_format = multi' ../gas/Makefile \
21517 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21519 in_tree_gas_is_elf=yes
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21523 $as_echo "$gcc_cv_as" >&6; }
21527 # Identify the linker which will work hand-in-glove with the newly
21528 # built GCC, so that we can examine its features. This is the linker
21529 # which will be driven by the driver program.
21531 # If build != host, and we aren't building gas in-tree, we identify a
21532 # build->target linker and hope that it will have the same features
21533 # as the host->target linker we'll be using.
21534 gcc_cv_gld_major_version=
21535 gcc_cv_gld_minor_version=
21536 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21537 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21539 if test "${gcc_cv_ld+set}" = set; then :
21543 if test -x "$DEFAULT_LINKER"; then
21544 gcc_cv_ld="$DEFAULT_LINKER"
21545 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21546 && test -f ../ld/Makefile \
21547 && test x$build = x$host; then
21548 gcc_cv_ld=../ld/ld-new$build_exeext
21549 elif test -x collect-ld$build_exeext; then
21550 # Build using linker in the current directory.
21551 gcc_cv_ld=./collect-ld$build_exeext
21552 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21553 gcc_cv_ld="$LD_FOR_TARGET"
21555 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21556 set dummy $LD_FOR_TARGET; ac_word=$2
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21558 $as_echo_n "checking for $ac_word... " >&6; }
21559 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21560 $as_echo_n "(cached) " >&6
21564 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21568 for as_dir in $PATH
21571 test -z "$as_dir" && as_dir=.
21572 for ac_exec_ext in '' $ac_executable_extensions; do
21573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21574 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21585 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21586 if test -n "$gcc_cv_ld"; then
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21588 $as_echo "$gcc_cv_ld" >&6; }
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21598 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21599 PLUGIN_LD=`basename $gcc_cv_ld`
21601 # Check whether --with-plugin-ld was given.
21602 if test "${with_plugin_ld+set}" = set; then :
21603 withval=$with_plugin_ld; if test x"$withval" != x; then
21604 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21605 PLUGIN_LD="$withval"
21611 cat >>confdefs.h <<_ACEOF
21612 #define PLUGIN_LD "$PLUGIN_LD"
21616 # Check to see if we are using gold instead of ld
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21618 $as_echo_n "checking whether we are using gold... " >&6; }
21620 if test x$gcc_cv_ld != x; then
21621 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21622 | grep "GNU gold" > /dev/null; then
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21627 $as_echo "$ld_is_gold" >&6; }
21629 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21631 case "$ORIGINAL_LD_FOR_TARGET" in
21632 ./collect-ld | ./collect-ld$build_exeext) ;;
21633 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21638 $as_echo_n "checking what linker to use... " >&6; }
21639 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21640 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21641 # Single tree build which includes ld. We want to prefer it
21642 # over whatever linker top-level may have detected, since
21643 # we'll use what we're building after installation anyway.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21645 $as_echo "newly built ld" >&6; }
21647 in_tree_ld_is_elf=no
21648 if (grep 'EMUL = .*elf' ../ld/Makefile \
21649 || grep 'EMUL = .*linux' ../ld/Makefile \
21650 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21651 in_tree_ld_is_elf=yes
21652 elif test "$ld_is_gold" = yes; then
21653 in_tree_ld_is_elf=yes
21655 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
21657 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21658 if test x$gcc_cv_gld_version != x; then
21662 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21663 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21666 $as_echo "$gcc_cv_ld" >&6; }
21670 # Figure out what nm we will be using.
21671 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21672 if test "${gcc_cv_nm+set}" = set; then :
21676 if test -f $gcc_cv_binutils_srcdir/configure.in \
21677 && test -f ../binutils/Makefile \
21678 && test x$build = x$host; then
21679 gcc_cv_nm=../binutils/nm-new$build_exeext
21680 elif test -x nm$build_exeext; then
21681 gcc_cv_nm=./nm$build_exeext
21682 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21683 gcc_cv_nm="$NM_FOR_TARGET"
21685 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21686 set dummy $NM_FOR_TARGET; ac_word=$2
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21688 $as_echo_n "checking for $ac_word... " >&6; }
21689 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21694 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21698 for as_dir in $PATH
21701 test -z "$as_dir" && as_dir=.
21702 for ac_exec_ext in '' $ac_executable_extensions; do
21703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21704 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21715 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21716 if test -n "$gcc_cv_nm"; then
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21718 $as_echo "$gcc_cv_nm" >&6; }
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21721 $as_echo "no" >&6; }
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21729 $as_echo_n "checking what nm to use... " >&6; }
21730 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21731 # Single tree build which includes binutils.
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21733 $as_echo "newly built nm" >&6; }
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21737 $as_echo "$gcc_cv_nm" >&6; }
21741 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21743 case "$ORIGINAL_NM_FOR_TARGET" in
21744 ./nm | ./nm$build_exeext) ;;
21745 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21750 # Figure out what objdump we will be using.
21751 if test "${gcc_cv_objdump+set}" = set; then :
21755 if test -f $gcc_cv_binutils_srcdir/configure.in \
21756 && test -f ../binutils/Makefile \
21757 && test x$build = x$host; then
21758 # Single tree build which includes binutils.
21759 gcc_cv_objdump=../binutils/objdump$build_exeext
21760 elif test -x objdump$build_exeext; then
21761 gcc_cv_objdump=./objdump$build_exeext
21762 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21763 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21765 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21766 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21768 $as_echo_n "checking for $ac_word... " >&6; }
21769 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21770 $as_echo_n "(cached) " >&6
21772 case $gcc_cv_objdump in
21774 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21778 for as_dir in $PATH
21781 test -z "$as_dir" && as_dir=.
21782 for ac_exec_ext in '' $ac_executable_extensions; do
21783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21784 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21795 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21796 if test -n "$gcc_cv_objdump"; then
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21798 $as_echo "$gcc_cv_objdump" >&6; }
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21801 $as_echo "no" >&6; }
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21809 $as_echo_n "checking what objdump to use... " >&6; }
21810 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21811 # Single tree build which includes binutils.
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21813 $as_echo "newly built objdump" >&6; }
21814 elif test x$gcc_cv_objdump = x; then
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21816 $as_echo "not found" >&6; }
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21819 $as_echo "$gcc_cv_objdump" >&6; }
21822 # Figure out what readelf we will be using.
21823 if test "${gcc_cv_readelf+set}" = set; then :
21827 if test -f $gcc_cv_binutils_srcdir/configure.in \
21828 && test -f ../binutils/Makefile \
21829 && test x$build = x$host; then
21830 # Single tree build which includes binutils.
21831 gcc_cv_readelf=../binutils/readelf$build_exeext
21832 elif test -x readelf$build_exeext; then
21833 gcc_cv_readelf=./readelf$build_exeext
21835 # Extract the first word of "readelf", so it can be a program name with args.
21836 set dummy readelf; ac_word=$2
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21838 $as_echo_n "checking for $ac_word... " >&6; }
21839 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21842 case $gcc_cv_readelf in
21844 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848 for as_dir in $PATH
21851 test -z "$as_dir" && as_dir=.
21852 for ac_exec_ext in '' $ac_executable_extensions; do
21853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21854 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21865 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21866 if test -n "$gcc_cv_readelf"; then
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21868 $as_echo "$gcc_cv_readelf" >&6; }
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21871 $as_echo "no" >&6; }
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21879 $as_echo_n "checking what readelf to use... " >&6; }
21880 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21881 # Single tree build which includes binutils.
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21883 $as_echo "newly built readelf" >&6; }
21884 elif test x$gcc_cv_readelf = x; then
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21886 $as_echo "not found" >&6; }
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21889 $as_echo "$gcc_cv_readelf" >&6; }
21892 # Figure out what assembler alignment features are present.
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21894 $as_echo_n "checking assembler flags... " >&6; }
21895 if test "${gcc_cv_as_flags+set}" = set; then :
21896 $as_echo_n "(cached) " >&6
21899 i[34567]86-*-linux*)
21900 gcc_cv_as_flags="--32"
21902 powerpc*-*-darwin*)
21903 gcc_cv_as_flags="-arch ppc"
21906 gcc_cv_as_flags=" "
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21911 $as_echo "$gcc_cv_as_flags" >&6; }
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21914 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21915 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21916 $as_echo_n "(cached) " >&6
21918 gcc_cv_as_balign_and_p2align=no
21919 if test $in_tree_gas = yes; then
21920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21921 then gcc_cv_as_balign_and_p2align=yes
21923 elif test x$gcc_cv_as != x; then
21924 $as_echo '.balign 4
21925 .p2align 2' > 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_balign_and_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_balign_and_p2align" >&5
21942 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21943 if test $gcc_cv_as_balign_and_p2align = yes; then
21945 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21950 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21951 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21954 gcc_cv_as_max_skip_p2align=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_max_skip_p2align=yes
21959 elif test x$gcc_cv_as != x; then
21960 $as_echo '.p2align 4,,7' > 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_max_skip_p2align=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_max_skip_p2align" >&5
21977 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21978 if test $gcc_cv_as_max_skip_p2align = yes; then
21980 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21985 $as_echo_n "checking assembler for .literal16... " >&6; }
21986 if test "${gcc_cv_as_literal16+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21989 gcc_cv_as_literal16=no
21990 if test $in_tree_gas = yes; then
21991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21992 then gcc_cv_as_literal16=yes
21994 elif test x$gcc_cv_as != x; then
21995 $as_echo '.literal16' > conftest.s
21996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21998 (eval $ac_try) 2>&5
22000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22001 test $ac_status = 0; }; }
22003 gcc_cv_as_literal16=yes
22005 echo "configure: failed program was" >&5
22008 rm -f conftest.o conftest.s
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22012 $as_echo "$gcc_cv_as_literal16" >&6; }
22013 if test $gcc_cv_as_literal16 = yes; then
22015 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22020 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22021 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22022 $as_echo_n "(cached) " >&6
22024 gcc_cv_as_subsection_m1=no
22025 if test $in_tree_gas = yes; then
22026 if test $in_tree_gas_is_elf = yes \
22027 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22028 then gcc_cv_as_subsection_m1=yes
22030 elif test x$gcc_cv_as != x; then
22031 $as_echo 'conftest_label1: .word 0
22033 conftest_label2: .word 0
22034 .previous' > conftest.s
22035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22037 (eval $ac_try) 2>&5
22039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22040 test $ac_status = 0; }; }
22042 if test x$gcc_cv_nm != x; then
22043 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22044 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22045 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22047 else gcc_cv_as_subsection_m1=yes
22049 rm -f conftest.nm1 conftest.nm2
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_subsection_m1" >&5
22059 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22060 if test $gcc_cv_as_subsection_m1 = yes; then
22062 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22067 $as_echo_n "checking assembler for .weak... " >&6; }
22068 if test "${gcc_cv_as_weak+set}" = set; then :
22069 $as_echo_n "(cached) " >&6
22072 if test $in_tree_gas = yes; then
22073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22074 then gcc_cv_as_weak=yes
22076 elif test x$gcc_cv_as != x; then
22077 $as_echo ' .weak foobar' > conftest.s
22078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080 (eval $ac_try) 2>&5
22082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083 test $ac_status = 0; }; }
22087 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_weak" >&5
22094 $as_echo "$gcc_cv_as_weak" >&6; }
22095 if test $gcc_cv_as_weak = yes; then
22097 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22102 $as_echo_n "checking assembler for .weakref... " >&6; }
22103 if test "${gcc_cv_as_weakref+set}" = set; then :
22104 $as_echo_n "(cached) " >&6
22106 gcc_cv_as_weakref=no
22107 if test $in_tree_gas = yes; then
22108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22109 then gcc_cv_as_weakref=yes
22111 elif test x$gcc_cv_as != x; then
22112 $as_echo ' .weakref foobar, barfnot' > conftest.s
22113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22115 (eval $ac_try) 2>&5
22117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22118 test $ac_status = 0; }; }
22120 gcc_cv_as_weakref=yes
22122 echo "configure: failed program was" >&5
22125 rm -f conftest.o conftest.s
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22129 $as_echo "$gcc_cv_as_weakref" >&6; }
22130 if test $gcc_cv_as_weakref = yes; then
22132 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22137 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22138 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22139 $as_echo_n "(cached) " >&6
22141 gcc_cv_as_nsubspa_comdat=no
22142 if test $in_tree_gas = yes; then
22143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22144 then gcc_cv_as_nsubspa_comdat=yes
22146 elif test x$gcc_cv_as != x; then
22147 $as_echo ' .SPACE $TEXT$
22148 .NSUBSPA $CODE$,COMDAT' > conftest.s
22149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22151 (eval $ac_try) 2>&5
22153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22154 test $ac_status = 0; }; }
22156 gcc_cv_as_nsubspa_comdat=yes
22158 echo "configure: failed program was" >&5
22161 rm -f conftest.o conftest.s
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22165 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22166 if test $gcc_cv_as_nsubspa_comdat = yes; then
22168 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22172 # .hidden needs to be supported in both the assembler and the linker,
22173 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22174 # This is irritatingly difficult to feature test for; we have to check the
22175 # date string after the version number. If we've got an in-tree
22176 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22178 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22180 $as_echo_n "checking assembler for .hidden... " >&6; }
22181 if test "${gcc_cv_as_hidden+set}" = set; then :
22182 $as_echo_n "(cached) " >&6
22184 gcc_cv_as_hidden=no
22185 if test $in_tree_gas = yes; then
22186 if test $in_tree_gas_is_elf = yes \
22187 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22188 then gcc_cv_as_hidden=yes
22190 elif test x$gcc_cv_as != x; then
22191 $as_echo ' .hidden foobar
22192 foobar:' > conftest.s
22193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22195 (eval $ac_try) 2>&5
22197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22198 test $ac_status = 0; }; }
22201 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22202 # STV_HIDDEN, so disable .hidden support if so.
22203 case "${target}" in
22204 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22205 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22206 cat > conftest.s <<EOF
22211 .set default,hidden
22213 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22214 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22215 grep '\.hidden default' > /dev/null; then
22216 gcc_cv_as_hidden=no
22218 gcc_cv_as_hidden=yes
22221 # Assume bug is present if objdump is missing.
22222 gcc_cv_as_hidden=no
22226 gcc_cv_as_hidden=yes
22230 echo "configure: failed program was" >&5
22233 rm -f conftest.o conftest.s
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22237 $as_echo "$gcc_cv_as_hidden" >&6; }
22239 case "${target}" in
22241 # Darwin as has some visibility support, though with a different syntax.
22242 gcc_cv_as_hidden=yes
22246 # gnu_indirect_function type is an extension proposed at
22247 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22248 # selection of function implementation
22249 # Check whether --enable-gnu-indirect-function was given.
22250 if test "${enable_gnu_indirect_function+set}" = set; then :
22251 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22253 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22254 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22257 enable_gnu_indirect_function="$default_gnu_indirect_function"
22260 if test x$enable_gnu_indirect_function = xyes; then
22262 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22266 if test $in_tree_ld != yes ; then
22267 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22268 if echo "$ld_ver" | grep GNU > /dev/null; then
22269 if test x"$ld_is_gold" = xyes; then
22270 # GNU gold --version looks like this:
22272 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22274 # We extract the binutils version which is more familiar and specific
22275 # than the gold version.
22276 ld_vers=`echo $ld_ver | sed -n \
22277 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22279 # GNU ld --version looks like this:
22281 # GNU ld (GNU Binutils) 2.21.51.20110225
22282 ld_vers=`echo $ld_ver | sed -n \
22283 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22285 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'`
22286 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22287 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22288 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22290 case "${target}" in
22293 # Solaris 2 ld -V output looks like this for a regular version:
22295 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22297 # but test versions add stuff at the end:
22299 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22301 ld_ver=`$gcc_cv_ld -V 2>&1`
22302 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22303 ld_vers=`echo $ld_ver | sed -n \
22304 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22305 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22306 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22314 $as_echo_n "checking linker for .hidden support... " >&6; }
22315 if test "${gcc_cv_ld_hidden+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22318 if test $in_tree_ld = yes ; then
22319 gcc_cv_ld_hidden=no
22320 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 \
22321 && test $in_tree_ld_is_elf = yes; then
22322 gcc_cv_ld_hidden=yes
22325 gcc_cv_ld_hidden=yes
22326 if test x"$ld_is_gold" = xyes; then
22328 elif echo "$ld_ver" | grep GNU > /dev/null; then
22329 if test 0"$ld_date" -lt 20020404; then
22330 if test -n "$ld_date"; then
22331 # If there was date string, but was earlier than 2002-04-04, fail
22332 gcc_cv_ld_hidden=no
22333 elif test -z "$ld_vers"; then
22334 # If there was no date string nor ld version number, something is wrong
22335 gcc_cv_ld_hidden=no
22337 test -z "$ld_vers_patch" && ld_vers_patch=0
22338 if test "$ld_vers_major" -lt 2; then
22339 gcc_cv_ld_hidden=no
22340 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22341 gcc_cv_ld_hidden="no"
22342 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22343 gcc_cv_ld_hidden=no
22348 case "${target}" in
22350 # Darwin ld has some visibility support.
22351 gcc_cv_ld_hidden=yes
22353 hppa64*-*-hpux* | ia64*-*-hpux*)
22354 gcc_cv_ld_hidden=yes
22357 # .hidden support was backported to Solaris 8, starting with ld
22359 if test "$ld_vers_minor" -ge 276; then
22360 gcc_cv_ld_hidden=yes
22362 gcc_cv_ld_hidden=no
22365 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22366 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22367 # .symbolic was only added in Solaris 9 12/02.
22368 gcc_cv_ld_hidden=yes
22371 gcc_cv_ld_hidden=no
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22378 $as_echo "$gcc_cv_ld_hidden" >&6; }
22379 libgcc_visibility=no
22382 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22383 libgcc_visibility=yes
22385 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22390 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22391 gcc_cv_ld_ro_rw_mix=unknown
22392 if test $in_tree_ld = yes ; then
22393 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 \
22394 && test $in_tree_ld_is_elf = yes; then
22395 gcc_cv_ld_ro_rw_mix=read-write
22397 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22398 echo '.section myfoosect, "a"' > conftest1.s
22399 echo '.section myfoosect, "aw"' > conftest2.s
22400 echo '.byte 1' >> conftest2.s
22401 echo '.section myfoosect, "a"' > conftest3.s
22402 echo '.byte 0' >> conftest3.s
22403 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22404 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22405 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22406 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22407 conftest2.o conftest3.o > /dev/null 2>&1; then
22408 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22409 | sed -e '/myfoosect/!d' -e N`
22410 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22411 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22412 gcc_cv_ld_ro_rw_mix=read-only
22414 gcc_cv_ld_ro_rw_mix=read-write
22418 rm -f conftest.* conftest[123].*
22420 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22422 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22426 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22428 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22430 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22431 if test "${gcc_cv_as_leb128+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22434 gcc_cv_as_leb128=no
22435 if test $in_tree_gas = yes; then
22436 if test $in_tree_gas_is_elf = yes \
22437 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22438 then gcc_cv_as_leb128=yes
22440 elif test x$gcc_cv_as != x; then
22447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22449 (eval $ac_try) 2>&5
22451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22452 test $ac_status = 0; }; }
22454 # GAS versions before 2.11 do not support uleb128,
22455 # despite appearing to.
22456 # ??? There exists an elf-specific test that will crash
22457 # the assembler. Perhaps it's better to figure out whether
22458 # arbitrary sections are supported and try the test.
22459 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22460 if echo "$as_ver" | grep GNU > /dev/null; then
22461 as_vers=`echo $as_ver | sed -n \
22462 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22463 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22464 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22465 if test $as_major -eq 2 && test $as_minor -lt 11
22467 else gcc_cv_as_leb128=yes
22471 echo "configure: failed program was" >&5
22474 rm -f conftest.o conftest.s
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22478 $as_echo "$gcc_cv_as_leb128" >&6; }
22479 if test $gcc_cv_as_leb128 = yes; then
22481 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22485 # Check if we have assembler support for unwind directives.
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22487 $as_echo_n "checking assembler for cfi directives... " >&6; }
22488 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22489 $as_echo_n "(cached) " >&6
22491 gcc_cv_as_cfi_directive=no
22492 if test x$gcc_cv_as != x; then
22498 .cfi_escape 1, 2, 3, 4, 5
22499 .cfi_endproc' > conftest.s
22500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22502 (eval $ac_try) 2>&5
22504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22505 test $ac_status = 0; }; }
22509 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22510 # read-only and read-write sections, we need to make sure that the
22511 # assembler used emits read-write .eh_frame sections.
22512 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22513 if test "x$gcc_cv_objdump" != x; then
22514 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22515 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22516 gcc_cv_as_cfi_directive=no
22519 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22520 # On Solaris/x86, make sure that GCC and gas agree on using
22521 # read-only .eh_frame sections for 64-bit.
22522 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22523 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22524 sed -e /.eh_frame/!d -e N | \
22525 grep READONLY > /dev/null; then
22526 gcc_cv_as_cfi_directive=yes
22528 gcc_cv_as_cfi_directive=no
22532 gcc_cv_as_cfi_directive=yes
22537 # no objdump, err on the side of caution
22538 gcc_cv_as_cfi_directive=no
22541 gcc_cv_as_cfi_directive=yes
22545 gcc_cv_as_cfi_directive=yes
22549 echo "configure: failed program was" >&5
22552 rm -f conftest.o conftest.s
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22556 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22558 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22560 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22561 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22562 $as_echo_n "(cached) " >&6
22564 gcc_cv_as_cfi_advance_working=no
22565 if test x$gcc_cv_as != x; then
22568 .cfi_adjust_cfa_offset 64
22570 .cfi_adjust_cfa_offset 128
22571 .cfi_endproc' > conftest.s
22572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574 (eval $ac_try) 2>&5
22576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577 test $ac_status = 0; }; }
22580 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22581 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22582 gcc_cv_as_cfi_advance_working=yes
22586 echo "configure: failed program was" >&5
22589 rm -f conftest.o conftest.s
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22593 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22596 # no objdump, err on the side of caution
22597 gcc_cv_as_cfi_advance_working=no
22601 cat >>confdefs.h <<_ACEOF
22602 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22603 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22609 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22610 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22613 gcc_cv_as_cfi_personality_directive=no
22614 if test x$gcc_cv_as != x; then
22617 .cfi_personality 0, symbol
22618 .cfi_endproc' > conftest.s
22619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22621 (eval $ac_try) 2>&5
22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624 test $ac_status = 0; }; }
22626 gcc_cv_as_cfi_personality_directive=yes
22628 echo "configure: failed program was" >&5
22631 rm -f conftest.o conftest.s
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22635 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22638 cat >>confdefs.h <<_ACEOF
22639 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22640 then echo 1; else echo 0; fi`
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22645 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22646 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22647 $as_echo_n "(cached) " >&6
22649 gcc_cv_as_cfi_sections_directive=no
22650 if test x$gcc_cv_as != x; then
22652 .cfi_sections .debug_frame, .eh_frame
22654 .cfi_endproc' > conftest.s
22655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22663 win32 | pe | cygwin* | mingw32* | uwin*)
22664 # Need to check that we generated the correct relocation for the
22665 # .debug_frame section. This was fixed for binutils 2.21.
22666 gcc_cv_as_cfi_sections_directive=no
22667 if test "x$gcc_cv_objdump" != x; then
22668 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22669 grep secrel > /dev/null; then
22670 gcc_cv_as_cfi_sections_directive=yes
22675 gcc_cv_as_cfi_sections_directive=yes
22679 echo "configure: failed program was" >&5
22682 rm -f conftest.o conftest.s
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22686 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22690 cat >>confdefs.h <<_ACEOF
22691 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22692 then echo 1; else echo 0; fi`
22696 # GAS versions up to and including 2.11.0 may mis-optimize
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22699 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22700 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22703 gcc_cv_as_eh_frame=no
22704 if test $in_tree_gas = yes; then
22705 if test $in_tree_gas_is_elf = yes \
22706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22707 then gcc_cv_as_eh_frame=yes
22709 elif test x$gcc_cv_as != x; then
22716 .section .eh_frame,"aw",@progbits
22718 .4byte .LECIE1-.LSCIE1
22732 .4byte .LEFDE1-.LASFDE1
22734 .4byte .LASFDE1-__FRAME_BEGIN__
22741 .LEFDE1:' > conftest.s
22742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744 (eval $ac_try) 2>&5
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; }
22749 cat > conftest.lit <<EOF
22750 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22751 0010 01000000 12000000 18000000 00000000 ................
22752 0020 08000000 04080000 0044 .........D
22754 cat > conftest.big <<EOF
22755 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22756 0010 00000001 00000012 00000018 00000000 ................
22757 0020 00000008 04000000 0844 .........D
22759 # If the assembler didn't choke, and we can objdump,
22760 # and we got the correct data, then succeed.
22761 # The text in the here-document typically retains its unix-style line
22762 # endings, while the output of objdump will use host line endings.
22763 # Therefore, use diff -b for the comparisons.
22764 if test x$gcc_cv_objdump != x \
22765 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22766 | tail -3 > conftest.got \
22767 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22768 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22770 gcc_cv_as_eh_frame=yes
22771 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22773 (eval $ac_try) 2>&5
22775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22776 test $ac_status = 0; }; }; then
22777 gcc_cv_as_eh_frame=buggy
22779 # Uh oh, what do we do now?
22780 gcc_cv_as_eh_frame=no
22783 echo "configure: failed program was" >&5
22786 rm -f conftest.o conftest.s
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22790 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22793 if test $gcc_cv_as_eh_frame = buggy; then
22795 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22800 $as_echo_n "checking assembler for section merging support... " >&6; }
22801 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22802 $as_echo_n "(cached) " >&6
22804 gcc_cv_as_shf_merge=no
22805 if test $in_tree_gas = yes; then
22806 if test $in_tree_gas_is_elf = yes \
22807 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22808 then gcc_cv_as_shf_merge=yes
22810 elif test x$gcc_cv_as != x; then
22811 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22814 (eval $ac_try) 2>&5
22816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22817 test $ac_status = 0; }; }
22819 gcc_cv_as_shf_merge=yes
22821 echo "configure: failed program was" >&5
22824 rm -f conftest.o conftest.s
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22828 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22830 if test $gcc_cv_as_shf_merge = no; then
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22832 $as_echo_n "checking assembler for section merging support... " >&6; }
22833 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22836 gcc_cv_as_shf_merge=no
22837 if test $in_tree_gas = yes; then
22838 if test $in_tree_gas_is_elf = yes \
22839 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22840 then gcc_cv_as_shf_merge=yes
22842 elif test x$gcc_cv_as != x; then
22843 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22846 (eval $ac_try) 2>&5
22848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22849 test $ac_status = 0; }; }
22851 gcc_cv_as_shf_merge=yes
22853 echo "configure: failed program was" >&5
22856 rm -f conftest.o conftest.s
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22860 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22864 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22870 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22871 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22872 $as_echo_n "(cached) " >&6
22874 gcc_cv_as_comdat_group=no
22875 if test $in_tree_gas = yes; then
22876 if test $in_tree_gas_is_elf = yes \
22877 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22878 then gcc_cv_as_comdat_group=yes
22880 elif test x$gcc_cv_as != x; then
22881 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22884 (eval $ac_try) 2>&5
22886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22887 test $ac_status = 0; }; }
22889 gcc_cv_as_comdat_group=yes
22891 echo "configure: failed program was" >&5
22894 rm -f conftest.o conftest.s
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22898 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22900 if test $gcc_cv_as_comdat_group = yes; then
22901 gcc_cv_as_comdat_group_percent=no
22902 gcc_cv_as_comdat_group_group=no
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22905 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22906 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22909 gcc_cv_as_comdat_group_percent=no
22910 if test $in_tree_gas = yes; then
22911 if test $in_tree_gas_is_elf = yes \
22912 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22913 then gcc_cv_as_comdat_group_percent=yes
22915 elif test x$gcc_cv_as != x; then
22916 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22919 (eval $ac_try) 2>&5
22921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22922 test $ac_status = 0; }; }
22924 gcc_cv_as_comdat_group_percent=yes
22926 echo "configure: failed program was" >&5
22929 rm -f conftest.o conftest.s
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22933 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22935 if test $gcc_cv_as_comdat_group_percent = yes; then
22936 gcc_cv_as_comdat_group_group=no
22938 case "${target}" in
22939 # Sun as uses a completely different syntax.
22941 case "${target}" in
22942 sparc*-*-solaris2*)
22944 .group foo,".text%foo",#comdat
22945 .section ".text%foo", #alloc,#execinstr,#progbits
22950 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22952 .group foo,.text%foo,#comdat
22953 .section .text%foo, "ax", @progbits
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22960 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22961 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22962 $as_echo_n "(cached) " >&6
22964 gcc_cv_as_comdat_group_group=no
22965 if test x$gcc_cv_as != x; then
22966 $as_echo "$conftest_s" > conftest.s
22967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22969 (eval $ac_try) 2>&5
22971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22972 test $ac_status = 0; }; }
22974 gcc_cv_as_comdat_group_group=yes
22976 echo "configure: failed program was" >&5
22979 rm -f conftest.o conftest.s
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22983 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22989 if test x"$ld_is_gold" = xyes; then
22991 elif test $in_tree_ld = yes ; then
22993 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 \
22994 && test $in_tree_ld_is_elf = yes; then
22997 elif echo "$ld_ver" | grep GNU > /dev/null; then
22999 if test 0"$ld_date" -lt 20050308; then
23000 if test -n "$ld_date"; then
23001 # If there was date string, but was earlier than 2005-03-08, fail
23003 elif test "$ld_vers_major" -lt 2; then
23005 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23010 case "${target}" in
23011 *-*-solaris2.1[1-9]*)
23013 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23014 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23017 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23018 # least ld version 1.2267.
23019 if test "$ld_vers_major" -gt 1; then
23021 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23023 elif test "$ld_vers_minor" -ge 2267; then
23028 # Assume linkers other than GNU ld don't support COMDAT group.
23033 # Allow overriding the automatic COMDAT group tests above.
23034 # Check whether --enable-comdat was given.
23035 if test "${enable_comdat+set}" = set; then :
23036 enableval=$enable_comdat; comdat_group="$enable_comdat"
23039 if test $comdat_group = no; then
23040 gcc_cv_as_comdat_group=no
23041 gcc_cv_as_comdat_group_percent=no
23042 gcc_cv_as_comdat_group_group=no
23045 cat >>confdefs.h <<_ACEOF
23046 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23047 || test $gcc_cv_as_comdat_group_percent = yes \
23048 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23053 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23054 if test "${gcc_cv_as_discriminator+set}" = set; then :
23055 $as_echo_n "(cached) " >&6
23057 gcc_cv_as_discriminator=no
23058 if test $in_tree_gas = yes; then
23059 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23060 then gcc_cv_as_discriminator=yes
23062 elif test x$gcc_cv_as != x; then
23065 .loc 1 1 0 discriminator 1' > conftest.s
23066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23068 (eval $ac_try) 2>&5
23070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23071 test $ac_status = 0; }; }
23073 gcc_cv_as_discriminator=yes
23075 echo "configure: failed program was" >&5
23078 rm -f conftest.o conftest.s
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23082 $as_echo "$gcc_cv_as_discriminator" >&6; }
23083 if test $gcc_cv_as_discriminator = yes; then
23085 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23089 # Thread-local storage - the check is heavily parameterized.
23097 .section ".tdata","awT",@progbits
23100 ldq $27,__tls_get_addr($29) !literal!1
23101 lda $16,foo($29) !tlsgd!1
23102 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23103 ldq $27,__tls_get_addr($29) !literal!2
23104 lda $16,foo($29) !tlsldm!2
23105 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23106 ldq $1,foo($29) !gotdtprel
23107 ldah $2,foo($29) !dtprelhi
23108 lda $3,foo($2) !dtprello
23109 lda $4,foo($29) !dtprel
23110 ldq $1,foo($29) !gottprel
23111 ldah $2,foo($29) !tprelhi
23112 lda $3,foo($2) !tprello
23113 lda $4,foo($29) !tprel'
23116 tls_as_opt=--fatal-warnings
23118 cris-*-*|crisv32-*-*)
23120 .section ".tdata","awT",@progbits
23127 tls_as_opt=--fatal-warnings
23131 .section ".tdata","awT",@progbits
23134 call #gettlsoff(x)'
23143 .section ".tdata","awT",@progbits
23147 addil LT%foo-$tls_gdidx$,gp
23148 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23151 addil LT%foo-$tls_ldidx$,gp
23153 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23154 addil LR%foo-$tls_dtpoff$,%ret0
23155 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23157 addil LT%foo-$tls_ieoff$,gp
23158 ldw RT%foo-$tls_ieoff$(%r1),%t2
23161 addil LR%foo-$tls_leoff$,%t1
23162 ldo RR%foo-$tls_leoff$(%r1),%t2'
23165 tls_as_opt=--fatal-warnings
23169 .section ".tdata","awT",%progbits
23172 .word foo(gottpoff)
23180 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23182 i[34567]86-*-solaris2.*)
23184 tga_func=___tls_get_addr
23186 x86_64-*-solaris2.1[0-9]*)
23188 tga_func=__tls_get_addr
23194 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23196 .section .tdata,"awt",@progbits'
23200 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23204 .section ".tdata","awT",@progbits'
23207 tls_as_opt="--fatal-warnings"
23209 conftest_s="$conftest_s
23213 leal foo@tlsgd(,%ebx,1), %eax
23214 leal foo@tlsldm(%ebx), %eax
23215 leal foo@dtpoff(%eax), %edx
23216 movl foo@gottpoff(%ebx), %eax
23217 subl foo@gottpoff(%ebx), %eax
23218 addl foo@gotntpoff(%ebx), %eax
23219 movl foo@indntpoff, %eax
23220 movl \$foo@tpoff, %eax
23221 subl \$foo@tpoff, %eax
23222 leal foo@ntpoff(%ecx), %eax"
23226 .section ".tdata","awT",@progbits
23230 leaq foo@TLSGD(%rip), %rdi
23231 leaq foo@TLSLD(%rip), %rdi
23232 leaq foo@DTPOFF(%rax), %rdx
23233 movq foo@GOTTPOFF(%rip), %rax
23234 movq $foo@TPOFF, %rax'
23237 tls_as_opt=--fatal-warnings
23241 .section ".tdata","awT",@progbits
23244 addl r16 = @ltoff(@dtpmod(foo#)), gp
23245 addl r17 = @ltoff(@dtprel(foo#)), gp
23246 addl r18 = @ltoff(@tprel(foo#)), gp
23247 addl r19 = @dtprel(foo#), gp
23248 adds r21 = @dtprel(foo#), r13
23249 movl r23 = @dtprel(foo#)
23250 addl r20 = @tprel(foo#), gp
23251 adds r22 = @tprel(foo#), r13
23252 movl r24 = @tprel(foo#)'
23255 tls_as_opt=--fatal-warnings
23259 .section .tdata,"awT",@progbits
23263 addiu $4, $28, %tlsgd(x)
23264 addiu $4, $28, %tlsldm(x)
23265 lui $4, %dtprel_hi(x)
23266 addiu $4, $4, %dtprel_lo(x)
23267 lw $4, %gottprel(x)($28)
23268 lui $4, %tprel_hi(x)
23269 addiu $4, $4, %tprel_lo(x)'
23272 tls_as_opt='-32 --fatal-warnings'
23276 .section .tdata,"awT",@progbits
23281 move.l x@TLSGD(%a5),%a0
23282 move.l x@TLSLDM(%a5),%a0
23283 move.l x@TLSLDO(%a5),%a0
23284 move.l x@TLSIE(%a5),%a0
23285 move.l x@TLSLE(%a5),%a0'
23288 tls_as_opt='--fatal-warnings'
23292 .section ".tdata","awT",@progbits
23300 addi 3,31,ld0@got@tlsgd
23302 addi 3,31,x1@got@tlsld
23305 addis 9,3,x2@dtprel@ha
23306 addi 9,9,x2@dtprel@l
23307 lwz 9,x3@got@tprel(31)
23310 addis 9,2,x2@tprel@ha
23311 addi 9,9,x2@tprel@l'
23314 tls_as_opt="-a32 --fatal-warnings"
23318 .section ".tdata","awT",@progbits
23326 addi 3,2,ld0@got@tlsgd
23332 addi 3,2,x1@got@tlsld
23338 addis 9,3,x2@dtprel@ha
23339 addi 9,9,x2@dtprel@l
23342 ld 9,x3@got@dtprel(2)
23348 tls_as_opt="-a64 --fatal-warnings"
23352 .section ".tdata","awT",@progbits
23359 .long foo@GOTNTPOFF
23360 .long foo@INDNTPOFF
23361 l %r1,foo@GOTNTPOFF(%r12)
23362 l %r1,0(%r1):tls_load:foo
23363 bas %r14,0(%r1,%r13):tls_gdcall:foo
23364 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23367 tls_as_opt="-m31 --fatal-warnings"
23371 .section ".tdata","awT",@progbits
23378 .quad foo@GOTNTPOFF
23379 lg %r1,foo@GOTNTPOFF(%r12)
23380 larl %r1,foo@INDNTPOFF
23381 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23382 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23385 tls_as_opt="-m64 -Aesame --fatal-warnings"
23387 sh-*-* | sh[34]-*-*)
23389 .section ".tdata","awT",@progbits
23399 tls_as_opt=--fatal-warnings
23403 sparc*-sun-solaris2.*)
23405 tga_func=__tls_get_addr
23411 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23413 .section ".tdata",#alloc,#write,#tls'
23418 .section ".tdata","awT",@progbits'
23421 tls_as_opt="-32 --fatal-warnings"
23423 conftest_s="$conftest_s
23426 sethi %tgd_hi22(foo), %o0
23427 add %o0, %tgd_lo10(foo), %o1
23428 add %l7, %o1, %o0, %tgd_add(foo)
23429 call __tls_get_addr, %tgd_call(foo)
23430 sethi %tldm_hi22(foo), %l1
23431 add %l1, %tldm_lo10(foo), %l2
23432 add %l7, %l2, %o0, %tldm_add(foo)
23433 call __tls_get_addr, %tldm_call(foo)
23434 sethi %tldo_hix22(foo), %l3
23435 xor %l3, %tldo_lox10(foo), %l4
23436 add %o0, %l4, %l5, %tldo_add(foo)
23437 sethi %tie_hi22(foo), %o3
23438 add %o3, %tie_lo10(foo), %o3
23439 ld [%l7 + %o3], %o2, %tie_ld(foo)
23440 add %g7, %o2, %o4, %tie_add(foo)
23441 sethi %tle_hix22(foo), %l1
23442 xor %l1, %tle_lox10(foo), %o5
23443 ld [%g7 + %o5], %o1"
23447 .section ".tdata","awT",@progbits
23450 movi a8, foo@TLSFUNC
23451 movi a10, foo@TLSARG
23452 callx8.tls a8, foo@TLSCALL'
23458 if test "x$enable_tls" = xno ; then
23459 : # TLS explicitly disabled.
23460 elif test "x$enable_tls" = xyes ; then
23461 set_have_as_tls=yes # TLS explicitly enabled.
23462 elif test -z "$tls_first_major"; then
23463 : # If we don't have a check, assume no support.
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23466 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23467 if test "${gcc_cv_as_tls+set}" = set; then :
23468 $as_echo_n "(cached) " >&6
23471 if test $in_tree_gas = yes; then
23472 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23473 then gcc_cv_as_tls=yes
23475 elif test x$gcc_cv_as != x; then
23476 $as_echo "$conftest_s" > conftest.s
23477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23479 (eval $ac_try) 2>&5
23481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482 test $ac_status = 0; }; }
23486 echo "configure: failed program was" >&5
23489 rm -f conftest.o conftest.s
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23493 $as_echo "$gcc_cv_as_tls" >&6; }
23494 if test $gcc_cv_as_tls = yes; then
23495 set_have_as_tls=yes
23500 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23501 # with TLS support are in use, native TLS cannot work.
23505 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23506 # gld with TLS support are in use, native TLS cannot work.
23509 # TLS was introduced in the Solaris 9 FCS release and backported to
23510 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23511 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23512 # ld and GCC don't support any longer.
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23515 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23517 # Check ld and ld.so.1 TLS support.
23518 if echo "$ld_ver" | grep GNU > /dev/null; then
23519 # Assume all interesting versions of GNU ld have TLS support.
23520 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23524 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23526 min_tls_ld_vers_minor=280
23528 # Solaris 8/SPARC ld has TLS support since version 1.272.
23529 sparc*-*-solaris2.8)
23530 min_tls_ld_vers_minor=272
23532 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23534 min_tls_ld_vers_minor=374
23536 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23537 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23538 min_tls_ld_vers_minor=343
23541 if test "$ld_vers_major" -gt 1 || \
23542 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23549 $as_echo "$ld_tls_support" >&6; }
23552 save_LDFLAGS="$LDFLAGS"
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23557 $as_echo_n "checking alternate thread library... " >&6; }
23559 # TLS support was backported to Solaris 8 patches, but only lives in
23560 # the alternate thread library which became the default in Solaris 9.
23561 # We want to always use that, irrespective of TLS support.
23563 # Take multilib subdir into account. There's no spec to handle
23564 # this. The 64 symlink exists since Solaris 8.
23565 lwp_dir=/usr/lib/lwp
23566 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23567 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23574 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23576 cat >>confdefs.h <<_ACEOF
23577 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23581 $as_echo "$lwp_dir" >&6; }
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23584 $as_echo_n "checking library containing $tga_func... " >&6; }
23585 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23586 # (32-bit x86) only lived in libthread, so check for that. Keep
23587 # set_have_as_tls if found, disable if not.
23588 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23590 $as_echo_n "checking for library containing $tga_func... " >&6; }
23591 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23592 $as_echo_n "(cached) " >&6
23594 ac_func_search_save_LIBS=$LIBS
23595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23596 /* end confdefs.h. */
23598 /* Override any GCC internal prototype to avoid an error.
23599 Use char because int might match the return type of a GCC
23600 builtin and then its argument prototype would still apply. */
23608 return $tga_func ();
23613 for ac_lib in '' thread; do
23614 if test -z "$ac_lib"; then
23615 ac_res="none required"
23618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23620 if ac_fn_c_try_link "$LINENO"; then :
23621 eval "$as_ac_Search=\$ac_res"
23623 rm -f core conftest.err conftest.$ac_objext \
23625 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23629 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23632 eval "$as_ac_Search=no"
23634 rm conftest.$ac_ext
23635 LIBS=$ac_func_search_save_LIBS
23637 eval ac_res=\$$as_ac_Search
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23639 $as_echo "$ac_res" >&6; }
23640 eval ac_res=\$$as_ac_Search
23641 if test "$ac_res" != no; then :
23642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23648 # Clear LIBS if we cannot support TLS.
23649 if test $set_have_as_tls = no; then
23652 # Always define LIB_TLS_SPEC, even without TLS support.
23654 cat >>confdefs.h <<_ACEOF
23655 #define LIB_TLS_SPEC "$LIBS"
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23659 $as_echo "$LIBS" >&6; }
23662 LDFLAGS="$save_LDFLAGS"
23665 if test $set_have_as_tls = yes ; then
23667 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23671 # Target-specific assembler checks.
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23674 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23675 gcc_cv_ld_static_dynamic=no
23676 gcc_cv_ld_static_option='-Bstatic'
23677 gcc_cv_ld_dynamic_option='-Bdynamic'
23678 if test $in_tree_ld = yes ; then
23679 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
23680 gcc_cv_ld_static_dynamic=yes
23682 elif test x$gcc_cv_ld != x; then
23683 # Check if linker supports -Bstatic/-Bdynamic option
23684 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23685 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23686 gcc_cv_ld_static_dynamic=yes
23689 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23691 gcc_cv_ld_static_dynamic=yes
23692 gcc_cv_ld_static_option="-noso"
23693 gcc_cv_ld_dynamic_option="-so_archive"
23695 # HP-UX ld uses -a flags to select between shared and archive.
23697 if test x"$gnu_ld" = xno; then
23698 gcc_cv_ld_static_dynamic=yes
23699 gcc_cv_ld_static_option="-aarchive_shared"
23700 gcc_cv_ld_dynamic_option="-adefault"
23703 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23705 gcc_cv_ld_static_dynamic=yes
23707 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23709 gcc_cv_ld_static_dynamic=yes
23714 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23716 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23719 cat >>confdefs.h <<_ACEOF
23720 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23724 cat >>confdefs.h <<_ACEOF
23725 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23730 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23732 if test x"$demangler_in_ld" = xyes; then
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23734 $as_echo_n "checking linker --demangle support... " >&6; }
23735 gcc_cv_ld_demangle=no
23736 if test $in_tree_ld = yes; then
23737 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 \
23738 gcc_cv_ld_demangle=yes
23740 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23741 # Check if the GNU linker supports --demangle option
23742 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23743 gcc_cv_ld_demangle=yes
23746 if test x"$gcc_cv_ld_demangle" = xyes; then
23748 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23752 $as_echo "$gcc_cv_ld_demangle" >&6; }
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23756 $as_echo_n "checking linker plugin support... " >&6; }
23757 gcc_cv_lto_plugin=0
23758 if test -f liblto_plugin.la; then
23759 save_ld_ver="$ld_ver"
23760 save_ld_vers_major="$ld_vers_major"
23761 save_ld_vers_minor="$ld_vers_minor"
23762 save_ld_is_gold="$ld_is_gold"
23766 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23768 # FIXME: ld_is_gold?
23769 ld_vers_major="$gcc_cv_gld_major_version"
23770 ld_vers_minor="$gcc_cv_gld_minor_version"
23772 # Determine plugin linker version.
23773 # FIXME: Partial duplicate from above, generalize.
23774 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23775 if echo "$ld_ver" | grep GNU > /dev/null; then
23776 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23778 ld_vers=`echo $ld_ver | sed -n \
23779 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23781 ld_vers=`echo $ld_ver | sed -n \
23782 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23784 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23785 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23789 # Determine plugin support.
23790 if echo "$ld_ver" | grep GNU > /dev/null; then
23791 # Require GNU ld or gold 2.21+ for plugin support by default.
23792 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23793 gcc_cv_lto_plugin=2
23794 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23795 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23796 gcc_cv_lto_plugin=1
23800 ld_ver="$save_ld_ver"
23801 ld_vers_major="$save_ld_vers_major"
23802 ld_vers_minor="$save_ld_vers_minor"
23803 ld_is_gold="$save_ld_is_gold"
23806 cat >>confdefs.h <<_ACEOF
23807 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23811 $as_echo "$gcc_cv_lto_plugin" >&6; }
23814 # All TARGET_ABI_OSF targets.
23815 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23817 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23818 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23819 $as_echo_n "(cached) " >&6
23821 gcc_cv_as_alpha_explicit_relocs=no
23822 if test $in_tree_gas = yes; then
23823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23824 then gcc_cv_as_alpha_explicit_relocs=yes
23826 elif test x$gcc_cv_as != x; then
23827 $as_echo ' .set nomacro
23829 extbl $3, $2, $3 !lituse_bytoff!1
23830 ldq $2, a($29) !literal!1
23831 ldq $4, b($29) !literal!2
23832 ldq_u $3, 0($2) !lituse_base!1
23833 ldq $27, f($29) !literal!5
23834 jsr $26, ($27), f !lituse_jsr!5
23835 ldah $29, 0($26) !gpdisp!3
23836 lda $0, c($29) !gprel
23837 ldah $1, d($29) !gprelhigh
23838 lda $1, d($1) !gprellow
23839 lda $29, 0($29) !gpdisp!3' > conftest.s
23840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23842 (eval $ac_try) 2>&5
23844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23845 test $ac_status = 0; }; }
23847 gcc_cv_as_alpha_explicit_relocs=yes
23849 echo "configure: failed program was" >&5
23852 rm -f conftest.o conftest.s
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23856 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23857 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23859 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23863 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23864 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23865 $as_echo_n "(cached) " >&6
23867 gcc_cv_as_alpha_jsrdirect_relocs=no
23868 if test $in_tree_gas = yes; then
23869 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23870 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23872 elif test x$gcc_cv_as != x; then
23873 $as_echo ' .set nomacro
23875 ldq $27, a($29) !literal!1
23876 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23884 gcc_cv_as_alpha_jsrdirect_relocs=yes
23886 echo "configure: failed program was" >&5
23889 rm -f conftest.o conftest.s
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23893 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23894 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23896 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23903 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23904 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23905 $as_echo_n "(cached) " >&6
23907 gcc_cv_as_cris_no_mul_bug=no
23908 if test $in_tree_gas = yes; then
23909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23910 then gcc_cv_as_cris_no_mul_bug=yes
23912 elif test x$gcc_cv_as != x; then
23913 $as_echo '.text' > conftest.s
23914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23916 (eval $ac_try) 2>&5
23918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23919 test $ac_status = 0; }; }
23921 gcc_cv_as_cris_no_mul_bug=yes
23923 echo "configure: failed program was" >&5
23926 rm -f conftest.o conftest.s
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23930 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23931 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23933 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23940 $as_echo_n "checking assembler for .register... " >&6; }
23941 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23942 $as_echo_n "(cached) " >&6
23944 gcc_cv_as_sparc_register_op=no
23945 if test x$gcc_cv_as != x; then
23946 $as_echo '.register %g2, #scratch' > conftest.s
23947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23949 (eval $ac_try) 2>&5
23951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23952 test $ac_status = 0; }; }
23954 gcc_cv_as_sparc_register_op=yes
23956 echo "configure: failed program was" >&5
23959 rm -f conftest.o conftest.s
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23963 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23964 if test $gcc_cv_as_sparc_register_op = yes; then
23966 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23971 $as_echo_n "checking assembler for -relax option... " >&6; }
23972 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23973 $as_echo_n "(cached) " >&6
23975 gcc_cv_as_sparc_relax=no
23976 if test x$gcc_cv_as != x; then
23977 $as_echo '.text' > conftest.s
23978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23980 (eval $ac_try) 2>&5
23982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23983 test $ac_status = 0; }; }
23985 gcc_cv_as_sparc_relax=yes
23987 echo "configure: failed program was" >&5
23990 rm -f conftest.o conftest.s
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23994 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23995 if test $gcc_cv_as_sparc_relax = yes; then
23997 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24002 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24003 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24004 $as_echo_n "(cached) " >&6
24006 gcc_cv_as_sparc_gotdata_op=no
24007 if test x$gcc_cv_as != x; then
24013 sethi %gdop_hix22(foo), %g1
24014 xor %g1, %gdop_lox10(foo), %g1
24015 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018 (eval $ac_try) 2>&5
24020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021 test $ac_status = 0; }; }
24023 if test x$gcc_cv_ld != x \
24024 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24025 if test x$gcc_cv_objdump != x; then
24026 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24027 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24028 gcc_cv_as_sparc_gotdata_op=no
24030 gcc_cv_as_sparc_gotdata_op=yes
24036 echo "configure: failed program was" >&5
24039 rm -f conftest.o conftest.s
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24043 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24044 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24046 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24051 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24052 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24055 gcc_cv_as_sparc_ua_pcrel=no
24056 if test x$gcc_cv_as != x; then
24063 .uaword %r_disp32(foo)' > conftest.s
24064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; }
24071 if test x$gcc_cv_ld != x \
24072 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24073 gcc_cv_as_sparc_ua_pcrel=yes
24077 echo "configure: failed program was" >&5
24080 rm -f conftest.o conftest.s
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24084 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24085 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24087 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24091 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24092 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24095 gcc_cv_as_sparc_ua_pcrel_hidden=no
24096 if test x$gcc_cv_as != x; then
24100 .uaword %r_disp32(foo)
24101 .byte 0x32, 0x33, 0x34
24105 .skip 4' > conftest.s
24106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24108 (eval $ac_try) 2>&5
24110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111 test $ac_status = 0; }; }
24113 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24114 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24115 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24116 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24117 if $gcc_cv_objdump -R conftest 2> /dev/null \
24118 | grep 'DISP32' > /dev/null 2>&1; then
24121 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24126 echo "configure: failed program was" >&5
24129 rm -f conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24133 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24134 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24136 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24140 fi # unaligned pcrel relocs
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24143 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24144 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24147 gcc_cv_as_sparc_offsetable_lo10=no
24148 if test x$gcc_cv_as != x; then
24150 or %g1, %lo(ab) + 12, %g1
24151 or %g1, %lo(ab + 12), %g1' > conftest.s
24152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24154 (eval $ac_try) 2>&5
24156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24157 test $ac_status = 0; }; }
24159 if test x$gcc_cv_objdump != x \
24160 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24161 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24162 gcc_cv_as_sparc_offsetable_lo10=yes
24165 echo "configure: failed program was" >&5
24168 rm -f conftest.o conftest.s
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24172 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24173 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24175 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24180 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24181 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24182 $as_echo_n "(cached) " >&6
24184 gcc_cv_as_sparc_fmaf=no
24185 if test x$gcc_cv_as != x; then
24187 .register %g2, #scratch
24188 .register %g3, #scratch
24190 fmaddd %f0, %f2, %f4, %f6
24191 addxccc %g1, %g2, %g3
24192 fsrl32 %f2, %f4, %f8
24193 fnaddd %f10, %f12, %f14' > conftest.s
24194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24196 (eval $ac_try) 2>&5
24198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199 test $ac_status = 0; }; }
24201 gcc_cv_as_sparc_fmaf=yes
24203 echo "configure: failed program was" >&5
24206 rm -f conftest.o conftest.s
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24210 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24211 if test $gcc_cv_as_sparc_fmaf = yes; then
24213 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24218 i[34567]86-*-* | x86_64-*-*)
24221 # Full C++ conformance when using a shared libstdc++-v3 requires some
24222 # support from the Cygwin DLL, which in more recent versions exports
24223 # wrappers to aid in interposing and redirecting operators new, delete,
24224 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24225 # are configuring for a version of Cygwin that exports the wrappers.
24226 if test x$host = x$target; then
24227 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24228 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24229 gcc_ac_cygwin_dll_wrappers=yes
24231 gcc_ac_cygwin_dll_wrappers=no
24235 # Can't check presence of libc functions during cross-compile, so
24236 # we just have to assume we're building for an up-to-date target.
24237 gcc_ac_cygwin_dll_wrappers=yes
24240 cat >>confdefs.h <<_ACEOF
24241 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24246 cygwin* | pe | mingw32*)
24247 # Recent binutils allows the three-operand form of ".comm" on PE. This
24248 # definition is used unconditionally to initialise the default state of
24249 # the target option variable that governs usage of the feature.
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24251 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24252 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24253 $as_echo_n "(cached) " >&6
24255 gcc_cv_as_comm_has_align=no
24256 if test $in_tree_gas = yes; then
24257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24258 then gcc_cv_as_comm_has_align=yes
24260 elif test x$gcc_cv_as != x; then
24261 $as_echo '.comm foo,1,32' > conftest.s
24262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24264 (eval $ac_try) 2>&5
24266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24267 test $ac_status = 0; }; }
24269 gcc_cv_as_comm_has_align=yes
24271 echo "configure: failed program was" >&5
24274 rm -f conftest.o conftest.s
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24278 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24281 cat >>confdefs.h <<_ACEOF
24282 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24285 # Used for DWARF 2 in PE
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24287 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24288 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24289 $as_echo_n "(cached) " >&6
24291 gcc_cv_as_ix86_pe_secrel32=no
24292 if test $in_tree_gas = yes; then
24293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24294 then gcc_cv_as_ix86_pe_secrel32=yes
24296 elif test x$gcc_cv_as != x; then
24300 .secrel32 foo' > conftest.s
24301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303 (eval $ac_try) 2>&5
24305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; }
24308 if test x$gcc_cv_ld != x \
24309 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24310 gcc_cv_as_ix86_pe_secrel32=yes
24314 echo "configure: failed program was" >&5
24317 rm -f conftest.o conftest.s
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24321 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24322 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24324 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24327 # Test if the assembler supports the extended form of the .section
24328 # directive that specifies section alignment. LTO support uses this,
24329 # but normally only after installation, so we warn but don't fail the
24330 # configure if LTO is enabled but the assembler does not support it.
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24332 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24333 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24334 $as_echo_n "(cached) " >&6
24336 gcc_cv_as_section_has_align=no
24337 if test $in_tree_gas = yes; then
24338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24339 then gcc_cv_as_section_has_align=yes
24341 elif test x$gcc_cv_as != x; then
24342 $as_echo '.section lto_test,"dr0"' > conftest.s
24343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }
24350 gcc_cv_as_section_has_align=yes
24352 echo "configure: failed program was" >&5
24355 rm -f conftest.o conftest.s
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24359 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24361 if test x$gcc_cv_as_section_has_align != xyes; then
24362 case ",$enable_languages," in
24364 { $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
24365 $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;}
24369 # Test if the assembler supports the section flag 'e' for specifying
24370 # an excluded section.
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24372 $as_echo_n "checking assembler for .section with e... " >&6; }
24373 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24376 gcc_cv_as_section_has_e=no
24377 if test $in_tree_gas = yes; then
24378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24379 then gcc_cv_as_section_has_e=yes
24381 elif test x$gcc_cv_as != x; then
24382 $as_echo '.section foo1,"e"
24383 .byte 0,0,0,0' > conftest.s
24384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24386 (eval $ac_try) 2>&5
24388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24389 test $ac_status = 0; }; }
24391 gcc_cv_as_section_has_e=yes
24393 echo "configure: failed program was" >&5
24396 rm -f conftest.o conftest.s
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24400 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24403 cat >>confdefs.h <<_ACEOF
24404 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24411 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24412 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24415 gcc_cv_as_ix86_filds=no
24416 if test x$gcc_cv_as != x; then
24417 $as_echo 'filds mem; fists mem' > conftest.s
24418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24425 gcc_cv_as_ix86_filds=yes
24427 echo "configure: failed program was" >&5
24430 rm -f conftest.o conftest.s
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24434 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24435 if test $gcc_cv_as_ix86_filds = yes; then
24437 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24442 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24443 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24444 $as_echo_n "(cached) " >&6
24446 gcc_cv_as_ix86_fildq=no
24447 if test x$gcc_cv_as != x; then
24448 $as_echo 'fildq mem; fistpq mem' > conftest.s
24449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24451 (eval $ac_try) 2>&5
24453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24454 test $ac_status = 0; }; }
24456 gcc_cv_as_ix86_fildq=yes
24458 echo "configure: failed program was" >&5
24461 rm -f conftest.o conftest.s
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24465 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24466 if test $gcc_cv_as_ix86_fildq = yes; then
24468 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24473 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24474 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24475 $as_echo_n "(cached) " >&6
24477 gcc_cv_as_ix86_cmov_sun_syntax=no
24478 if test x$gcc_cv_as != x; then
24479 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24482 (eval $ac_try) 2>&5
24484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24485 test $ac_status = 0; }; }
24487 gcc_cv_as_ix86_cmov_sun_syntax=yes
24489 echo "configure: failed program was" >&5
24492 rm -f conftest.o conftest.s
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24496 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24497 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24499 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24504 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24505 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24508 gcc_cv_as_ix86_ffreep=no
24509 if test x$gcc_cv_as != x; then
24510 $as_echo 'ffreep %st(1)' > conftest.s
24511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24513 (eval $ac_try) 2>&5
24515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24516 test $ac_status = 0; }; }
24518 gcc_cv_as_ix86_ffreep=yes
24520 echo "configure: failed program was" >&5
24523 rm -f conftest.o conftest.s
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24527 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24528 if test $gcc_cv_as_ix86_ffreep = yes; then
24530 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24535 $as_echo_n "checking assembler for .quad directive... " >&6; }
24536 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24537 $as_echo_n "(cached) " >&6
24539 gcc_cv_as_ix86_quad=no
24540 if test x$gcc_cv_as != x; then
24541 $as_echo '.quad 0' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24549 gcc_cv_as_ix86_quad=yes
24551 echo "configure: failed program was" >&5
24554 rm -f conftest.o conftest.s
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24558 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24559 if test $gcc_cv_as_ix86_quad = yes; then
24561 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24566 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24567 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24570 gcc_cv_as_ix86_sahf=no
24571 if test x$gcc_cv_as != x; then
24574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; }
24581 gcc_cv_as_ix86_sahf=yes
24583 echo "configure: failed program was" >&5
24586 rm -f conftest.o conftest.s
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24590 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24591 if test $gcc_cv_as_ix86_sahf = yes; then
24593 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24598 $as_echo_n "checking assembler for swap suffix... " >&6; }
24599 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24602 gcc_cv_as_ix86_swap=no
24603 if test x$gcc_cv_as != x; then
24604 $as_echo 'movl.s %esp, %ebp' > conftest.s
24605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607 (eval $ac_try) 2>&5
24609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610 test $ac_status = 0; }; }
24612 gcc_cv_as_ix86_swap=yes
24614 echo "configure: failed program was" >&5
24617 rm -f conftest.o conftest.s
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24621 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24622 if test $gcc_cv_as_ix86_swap = yes; then
24624 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24629 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24630 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24631 $as_echo_n "(cached) " >&6
24633 gcc_cv_as_ix86_diff_sect_delta=no
24634 if test x$gcc_cv_as != x; then
24635 $as_echo '.section .rodata
24641 .L2: nop' > conftest.s
24642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644 (eval $ac_try) 2>&5
24646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647 test $ac_status = 0; }; }
24649 gcc_cv_as_ix86_diff_sect_delta=yes
24651 echo "configure: failed program was" >&5
24654 rm -f conftest.o conftest.s
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24658 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24659 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24661 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24665 # These two are used unconditionally by i386.[ch]; it is to be defined
24666 # to 1 if the feature is present, 0 otherwise.
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24668 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24669 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24670 $as_echo_n "(cached) " >&6
24672 gcc_cv_as_ix86_gotoff_in_data=no
24673 if test $in_tree_gas = yes; then
24674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24675 then gcc_cv_as_ix86_gotoff_in_data=yes
24677 elif test x$gcc_cv_as != x; then
24682 .long .L0@GOTOFF' > 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_gotoff_in_data=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_gotoff_in_data" >&5
24699 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24708 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24709 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24712 gcc_cv_as_ix86_rep_lock_prefix=no
24713 if test x$gcc_cv_as != x; then
24714 $as_echo 'rep movsl
24715 lock addl %edi, (%eax,%esi)
24716 lock orl $0, (%esp)' > conftest.s
24717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24719 (eval $ac_try) 2>&5
24721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24722 test $ac_status = 0; }; }
24724 gcc_cv_as_ix86_rep_lock_prefix=yes
24726 echo "configure: failed program was" >&5
24729 rm -f conftest.o conftest.s
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24733 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24734 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24736 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24741 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24742 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24743 $as_echo_n "(cached) " >&6
24745 gcc_cv_as_ix86_tlsgdplt=no
24746 if test x$gcc_cv_as != x; then
24747 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24755 gcc_cv_as_ix86_tlsgdplt=yes
24757 echo "configure: failed program was" >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24764 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24765 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24767 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24772 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24773 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24776 gcc_cv_as_ix86_tlsldmplt=no
24777 if test x$gcc_cv_as != x; then
24778 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24786 gcc_cv_as_ix86_tlsldmplt=yes
24788 echo "configure: failed program was" >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24795 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24796 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24798 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24806 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24807 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24808 $as_echo_n "(cached) " >&6
24810 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24811 if test $in_tree_gas = yes; then
24812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24813 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24815 elif test x$gcc_cv_as != x; then
24817 addl r15 = @ltoffx(x#), gp
24819 ld8.mov r16 = [r15], x#' > conftest.s
24820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24827 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24829 echo "configure: failed program was" >&5
24832 rm -f conftest.o conftest.s
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24836 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24837 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24839 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24847 *-*-aix*) conftest_s=' .machine "pwr5"
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24852 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24853 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24854 $as_echo_n "(cached) " >&6
24856 gcc_cv_as_machine_directive=no
24857 if test x$gcc_cv_as != x; then
24858 $as_echo ' .machine ppc7400' > conftest.s
24859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; }
24866 gcc_cv_as_machine_directive=yes
24868 echo "configure: failed program was" >&5
24871 rm -f conftest.o conftest.s
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24875 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24877 if test x$gcc_cv_as_machine_directive != xyes; then
24878 echo "*** This target requires an assembler supporting \".machine\"" >&2
24879 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24880 test x$build = x$target && exit 1
24884 *) conftest_s=' .machine power4
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24890 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24891 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24894 gcc_cv_as_powerpc_mfcrf=no
24895 if test $in_tree_gas = yes; then
24896 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24897 then gcc_cv_as_powerpc_mfcrf=yes
24899 elif test x$gcc_cv_as != x; then
24900 $as_echo "$conftest_s" > conftest.s
24901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }
24908 gcc_cv_as_powerpc_mfcrf=yes
24910 echo "configure: failed program was" >&5
24913 rm -f conftest.o conftest.s
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24917 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24918 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24920 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24925 *-*-aix*) conftest_s=' .machine "pwr5"
24928 *) conftest_s=' .machine power5
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24934 $as_echo_n "checking assembler for popcntb support... " >&6; }
24935 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24938 gcc_cv_as_powerpc_popcntb=no
24939 if test $in_tree_gas = yes; then
24940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24941 then gcc_cv_as_powerpc_popcntb=yes
24943 elif test x$gcc_cv_as != x; then
24944 $as_echo "$conftest_s" > conftest.s
24945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24947 (eval $ac_try) 2>&5
24949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24950 test $ac_status = 0; }; }
24952 gcc_cv_as_powerpc_popcntb=yes
24954 echo "configure: failed program was" >&5
24957 rm -f conftest.o conftest.s
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24961 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24962 if test $gcc_cv_as_powerpc_popcntb = yes; then
24964 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24969 *-*-aix*) conftest_s=' .machine "pwr5x"
24972 *) conftest_s=' .machine power5
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24978 $as_echo_n "checking assembler for fp round support... " >&6; }
24979 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24980 $as_echo_n "(cached) " >&6
24982 gcc_cv_as_powerpc_fprnd=no
24983 if test $in_tree_gas = yes; then
24984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24985 then gcc_cv_as_powerpc_fprnd=yes
24987 elif test x$gcc_cv_as != x; then
24988 $as_echo "$conftest_s" > conftest.s
24989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24996 gcc_cv_as_powerpc_fprnd=yes
24998 echo "configure: failed program was" >&5
25001 rm -f conftest.o conftest.s
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25005 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25006 if test $gcc_cv_as_powerpc_fprnd = yes; then
25008 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25013 *-*-aix*) conftest_s=' .machine "pwr6"
25016 *) conftest_s=' .machine power6
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25022 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25023 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25024 $as_echo_n "(cached) " >&6
25026 gcc_cv_as_powerpc_mfpgpr=no
25027 if test $in_tree_gas = yes; then
25028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25029 then gcc_cv_as_powerpc_mfpgpr=yes
25031 elif test x$gcc_cv_as != x; then
25032 $as_echo "$conftest_s" > conftest.s
25033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25040 gcc_cv_as_powerpc_mfpgpr=yes
25042 echo "configure: failed program was" >&5
25045 rm -f conftest.o conftest.s
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25049 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25050 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25052 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25057 *-*-aix*) conftest_s=' .csect .text[PR]
25059 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25063 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25064 *) conftest_s=' .text
25066 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25070 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25071 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25072 $as_echo_n "(cached) " >&6
25074 gcc_cv_as_powerpc_rel16=no
25075 if test $in_tree_gas = yes; then
25076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25077 then gcc_cv_as_powerpc_rel16=yes
25079 elif test x$gcc_cv_as != x; then
25080 $as_echo "$conftest_s" > conftest.s
25081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083 (eval $ac_try) 2>&5
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; }
25088 gcc_cv_as_powerpc_rel16=yes
25090 echo "configure: failed program was" >&5
25093 rm -f conftest.o conftest.s
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25097 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25098 if test $gcc_cv_as_powerpc_rel16 = yes; then
25100 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25105 *-*-aix*) conftest_s=' .machine "pwr6"
25108 *) conftest_s=' .machine power6
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25114 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25115 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25118 gcc_cv_as_powerpc_cmpb=no
25119 if test $in_tree_gas = yes; then
25120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25121 then gcc_cv_as_powerpc_cmpb=yes
25123 elif test x$gcc_cv_as != x; then
25124 $as_echo "$conftest_s" > conftest.s
25125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25132 gcc_cv_as_powerpc_cmpb=yes
25134 echo "configure: failed program was" >&5
25137 rm -f conftest.o conftest.s
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25141 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25142 if test $gcc_cv_as_powerpc_cmpb = yes; then
25144 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25149 *-*-aix*) conftest_s=' .machine "pwr6"
25152 *) conftest_s=' .machine power6
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25158 $as_echo_n "checking assembler for decimal float support... " >&6; }
25159 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25162 gcc_cv_as_powerpc_dfp=no
25163 if test $in_tree_gas = yes; then
25164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25165 then gcc_cv_as_powerpc_dfp=yes
25167 elif test x$gcc_cv_as != x; then
25168 $as_echo "$conftest_s" > conftest.s
25169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25171 (eval $ac_try) 2>&5
25173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25174 test $ac_status = 0; }; }
25176 gcc_cv_as_powerpc_dfp=yes
25178 echo "configure: failed program was" >&5
25181 rm -f conftest.o conftest.s
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25185 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25186 if test $gcc_cv_as_powerpc_dfp = yes; then
25188 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25193 *-*-aix*) conftest_s=' .machine "pwr7"
25196 *) conftest_s=' .machine power7
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25202 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25203 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25206 gcc_cv_as_powerpc_vsx=no
25207 if test $in_tree_gas = yes; then
25208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25209 then gcc_cv_as_powerpc_vsx=yes
25211 elif test x$gcc_cv_as != x; then
25212 $as_echo "$conftest_s" > conftest.s
25213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25215 (eval $ac_try) 2>&5
25217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25218 test $ac_status = 0; }; }
25220 gcc_cv_as_powerpc_vsx=yes
25222 echo "configure: failed program was" >&5
25225 rm -f conftest.o conftest.s
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25229 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25230 if test $gcc_cv_as_powerpc_vsx = yes; then
25232 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25237 *-*-aix*) conftest_s=' .machine "pwr7"
25240 *) conftest_s=' .machine power7
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25246 $as_echo_n "checking assembler for popcntd support... " >&6; }
25247 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25250 gcc_cv_as_powerpc_popcntd=no
25251 if test $in_tree_gas = yes; then
25252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25253 then gcc_cv_as_powerpc_popcntd=yes
25255 elif test x$gcc_cv_as != x; then
25256 $as_echo "$conftest_s" > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25264 gcc_cv_as_powerpc_popcntd=yes
25266 echo "configure: failed program was" >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25273 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25274 if test $gcc_cv_as_powerpc_popcntd = yes; then
25276 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25281 *-*-aix*) conftest_s=' .csect .text[PR]
25283 *) conftest_s=' .text
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25288 $as_echo_n "checking assembler for lwsync support... " >&6; }
25289 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25290 $as_echo_n "(cached) " >&6
25292 gcc_cv_as_powerpc_lwsync=no
25293 if test $in_tree_gas = yes; then
25294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25295 then gcc_cv_as_powerpc_lwsync=yes
25297 elif test x$gcc_cv_as != x; then
25298 $as_echo "$conftest_s" > conftest.s
25299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301 (eval $ac_try) 2>&5
25303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304 test $ac_status = 0; }; }
25306 gcc_cv_as_powerpc_lwsync=yes
25308 echo "configure: failed program was" >&5
25311 rm -f conftest.o conftest.s
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25315 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25316 if test $gcc_cv_as_powerpc_lwsync = yes; then
25318 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25323 *-*-aix*) conftest_s=' .machine "476"
25326 *) conftest_s=' .machine "476"
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25332 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25333 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25336 gcc_cv_as_powerpc_dci=no
25337 if test $in_tree_gas = yes; then
25338 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25339 then gcc_cv_as_powerpc_dci=yes
25341 elif test x$gcc_cv_as != x; then
25342 $as_echo "$conftest_s" > conftest.s
25343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25350 gcc_cv_as_powerpc_dci=yes
25352 echo "configure: failed program was" >&5
25355 rm -f conftest.o conftest.s
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25359 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25360 if test $gcc_cv_as_powerpc_dci = yes; then
25362 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25367 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25368 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25369 $as_echo_n "(cached) " >&6
25371 gcc_cv_as_powerpc_gnu_attribute=no
25372 if test $in_tree_gas = yes; then
25373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25374 then gcc_cv_as_powerpc_gnu_attribute=yes
25376 elif test x$gcc_cv_as != x; then
25377 $as_echo '.gnu_attribute 4,1' > conftest.s
25378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25380 (eval $ac_try) 2>&5
25382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25383 test $ac_status = 0; }; }
25385 gcc_cv_as_powerpc_gnu_attribute=yes
25387 echo "configure: failed program was" >&5
25390 rm -f conftest.o conftest.s
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25394 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25395 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25397 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25402 $as_echo_n "checking assembler for tls marker support... " >&6; }
25403 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25404 $as_echo_n "(cached) " >&6
25406 gcc_cv_as_powerpc_tls_markers=no
25407 if test $in_tree_gas = yes; then
25408 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25409 then gcc_cv_as_powerpc_tls_markers=yes
25411 elif test x$gcc_cv_as != x; then
25412 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25415 (eval $ac_try) 2>&5
25417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25418 test $ac_status = 0; }; }
25420 gcc_cv_as_powerpc_tls_markers=yes
25422 echo "configure: failed program was" >&5
25425 rm -f conftest.o conftest.s
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25429 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25430 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25432 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25439 $as_echo_n "checking assembler for .ref support... " >&6; }
25440 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25441 $as_echo_n "(cached) " >&6
25443 gcc_cv_as_aix_ref=no
25444 if test $in_tree_gas = yes; then
25445 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25448 elif test x$gcc_cv_as != x; then
25449 $as_echo ' .csect stuff[rw]
25455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25457 (eval $ac_try) 2>&5
25459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25460 test $ac_status = 0; }; }
25462 gcc_cv_as_aix_ref=yes
25464 echo "configure: failed program was" >&5
25467 rm -f conftest.o conftest.s
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25471 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25472 if test $gcc_cv_as_aix_ref = yes; then
25474 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25483 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25484 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25485 $as_echo_n "(cached) " >&6
25487 gcc_cv_as_mips_explicit_relocs=no
25488 if test $in_tree_gas = yes; then
25489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25490 then gcc_cv_as_mips_explicit_relocs=yes
25492 elif test x$gcc_cv_as != x; then
25493 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25496 (eval $ac_try) 2>&5
25498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25499 test $ac_status = 0; }; }
25501 gcc_cv_as_mips_explicit_relocs=yes
25503 echo "configure: failed program was" >&5
25506 rm -f conftest.o conftest.s
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25510 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25511 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25512 if test x$target_cpu_default = x
25513 then target_cpu_default=MASK_EXPLICIT_RELOCS
25514 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25518 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25519 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25520 $as_echo_n "(cached) " >&6
25522 gcc_cv_as_mips_no_shared=no
25523 if test $in_tree_gas = yes; then
25524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25525 then gcc_cv_as_mips_no_shared=yes
25527 elif test x$gcc_cv_as != x; then
25528 $as_echo 'nop' > conftest.s
25529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25531 (eval $ac_try) 2>&5
25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534 test $ac_status = 0; }; }
25536 gcc_cv_as_mips_no_shared=yes
25538 echo "configure: failed program was" >&5
25541 rm -f conftest.o conftest.s
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25545 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25546 if test $gcc_cv_as_mips_no_shared = yes; then
25548 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25553 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25554 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25555 $as_echo_n "(cached) " >&6
25557 gcc_cv_as_mips_gnu_attribute=no
25558 if test $in_tree_gas = yes; then
25559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25560 then gcc_cv_as_mips_gnu_attribute=yes
25562 elif test x$gcc_cv_as != x; then
25563 $as_echo '.gnu_attribute 4,1' > conftest.s
25564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25566 (eval $ac_try) 2>&5
25568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25569 test $ac_status = 0; }; }
25571 gcc_cv_as_mips_gnu_attribute=yes
25573 echo "configure: failed program was" >&5
25576 rm -f conftest.o conftest.s
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25580 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25581 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25583 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25588 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25589 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25590 $as_echo_n "(cached) " >&6
25592 gcc_cv_as_mips_dtprelword=no
25593 if test $in_tree_gas = yes; then
25594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25595 then gcc_cv_as_mips_dtprelword=yes
25597 elif test x$gcc_cv_as != x; then
25598 $as_echo '.section .tdata,"awT",@progbits
25602 .dtprelword x+0x8000' > conftest.s
25603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25610 gcc_cv_as_mips_dtprelword=yes
25612 echo "configure: failed program was" >&5
25615 rm -f conftest.o conftest.s
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25619 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25620 if test $gcc_cv_as_mips_dtprelword = yes; then
25622 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25627 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25628 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25629 $as_echo_n "(cached) " >&6
25631 gcc_cv_as_mips_dspr1_mult=no
25632 if test x$gcc_cv_as != x; then
25633 $as_echo ' .set mips32r2
25641 multu $ac3,$4,$5' > conftest.s
25642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25644 (eval $ac_try) 2>&5
25646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25647 test $ac_status = 0; }; }
25649 gcc_cv_as_mips_dspr1_mult=yes
25651 echo "configure: failed program was" >&5
25654 rm -f conftest.o conftest.s
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25658 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25659 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25661 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25666 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25667 gcc_cv_as_ld_jalr_reloc=no
25668 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25669 if test $in_tree_ld = yes ; then
25670 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 \
25671 && test $in_tree_ld_is_elf = yes; then
25672 gcc_cv_as_ld_jalr_reloc=yes
25674 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25675 echo ' .ent x' > conftest.s
25676 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25677 echo ' ld $25,%call16(y)($28)' >> conftest.s
25678 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25679 echo '1: jalr $25' >> conftest.s
25680 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25681 echo '1: jalr $25' >> conftest.s
25682 echo ' .end x' >> conftest.s
25683 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25684 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25685 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25686 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25687 gcc_cv_as_ld_jalr_reloc=yes
25693 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25694 if test x$target_cpu_default = x; then
25695 target_cpu_default=MASK_RELAX_PIC_CALLS
25697 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25701 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25704 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25705 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25706 $as_echo_n "(cached) " >&6
25708 gcc_cv_ld_mips_personality_relaxation=no
25709 if test $in_tree_ld = yes ; then
25710 if test "$gcc_cv_gld_major_version" -eq 2 \
25711 -a "$gcc_cv_gld_minor_version" -ge 21 \
25712 -o "$gcc_cv_gld_major_version" -gt 2; then
25713 gcc_cv_ld_mips_personality_relaxation=yes
25715 elif test x$gcc_cv_as != x \
25716 -a x$gcc_cv_ld != x \
25717 -a x$gcc_cv_readelf != x ; then
25718 cat > conftest.s <<EOF
25720 .cfi_personality 0x80,indirect_ptr
25727 .section .data,"aw",@progbits
25731 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25732 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25733 if $gcc_cv_readelf -d conftest 2>&1 \
25734 | grep TEXTREL > /dev/null 2>&1; then
25736 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25737 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25740 gcc_cv_ld_mips_personality_relaxation=yes
25744 rm -f conftest.s conftest.o conftest
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25747 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25748 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25750 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25756 # Mips and HP-UX need the GNU assembler.
25757 # Linux on IA64 might be able to use the Intel assembler.
25760 mips*-*-* | *-*-hpux* )
25761 if test x$gas_flag = xyes \
25762 || test x"$host" != x"$build" \
25763 || test ! -x "$gcc_cv_as" \
25764 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25767 echo "*** This configuration requires the GNU assembler" >&2
25773 # ??? Not all targets support dwarf2 debug_line, even within a version
25774 # of gas. Moreover, we need to emit a valid instruction to trigger any
25775 # info to the output file. So, as supported targets are added to gas 2.11,
25776 # add some instruction here to (also) show we expect this might work.
25777 # ??? Once 2.11 is released, probably need to add first known working
25778 # version to the per-target configury.
25779 case "$cpu_type" in
25780 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25781 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25791 if test x"$insn" != x; then
25793 .file 1 \"conftest.s\"
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25797 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25798 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25799 $as_echo_n "(cached) " >&6
25801 gcc_cv_as_dwarf2_debug_line=no
25802 if test $in_tree_gas = yes; then
25803 if test $in_tree_gas_is_elf = yes \
25804 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25805 then gcc_cv_as_dwarf2_debug_line=yes
25807 elif test x$gcc_cv_as != x; then
25808 $as_echo "$conftest_s" > conftest.s
25809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25811 (eval $ac_try) 2>&5
25813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25814 test $ac_status = 0; }; }
25816 if test x$gcc_cv_objdump != x \
25817 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25818 | grep debug_line > /dev/null 2>&1; then
25819 gcc_cv_as_dwarf2_debug_line=yes
25822 echo "configure: failed program was" >&5
25825 rm -f conftest.o conftest.s
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25829 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25832 # The .debug_line file table must be in the exact order that
25833 # we specified the files, since these indices are also used
25834 # by DW_AT_decl_file. Approximate this test by testing if
25835 # the assembler bitches if the same index is assigned twice.
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25837 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25838 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25841 gcc_cv_as_dwarf2_file_buggy=no
25842 if test x$gcc_cv_as != x; then
25843 $as_echo ' .file 1 "foo.s"
25844 .file 1 "bar.s"' > conftest.s
25845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25847 (eval $ac_try) 2>&5
25849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25850 test $ac_status = 0; }; }
25852 gcc_cv_as_dwarf2_file_buggy=yes
25854 echo "configure: failed program was" >&5
25857 rm -f conftest.o conftest.s
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25861 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25864 if test $gcc_cv_as_dwarf2_debug_line = yes \
25865 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25867 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25872 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25873 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25876 gcc_cv_as_gdwarf2_flag=no
25877 if test $in_tree_gas = yes; then
25878 if test $in_tree_gas_is_elf = yes \
25879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25880 then gcc_cv_as_gdwarf2_flag=yes
25882 elif test x$gcc_cv_as != x; then
25883 $as_echo "$insn" > conftest.s
25884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25886 (eval $ac_try) 2>&5
25888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25889 test $ac_status = 0; }; }
25891 gcc_cv_as_gdwarf2_flag=yes
25893 echo "configure: failed program was" >&5
25896 rm -f conftest.o conftest.s
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25900 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25901 if test $gcc_cv_as_gdwarf2_flag = yes; then
25903 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25908 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25909 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25910 $as_echo_n "(cached) " >&6
25912 gcc_cv_as_gstabs_flag=no
25913 if test $in_tree_gas = yes; then
25914 if test $in_tree_gas_is_elf = yes \
25915 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25916 then gcc_cv_as_gstabs_flag=yes
25918 elif test x$gcc_cv_as != x; then
25919 $as_echo "$insn" > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25927 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25928 # and warns about it, but still exits successfully. So check for
25930 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25932 (eval $ac_try) 2>&5
25934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25935 test $ac_status = 0; }; }
25937 else gcc_cv_as_gstabs_flag=yes
25940 echo "configure: failed program was" >&5
25943 rm -f conftest.o conftest.s
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25947 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25948 if test $gcc_cv_as_gstabs_flag = yes; then
25950 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25955 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25956 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25957 $as_echo_n "(cached) " >&6
25959 gcc_cv_as_debug_prefix_map_flag=no
25960 if test $in_tree_gas = yes; then
25961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25962 then gcc_cv_as_debug_prefix_map_flag=yes
25964 elif test x$gcc_cv_as != x; then
25965 $as_echo "$insn" > conftest.s
25966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25968 (eval $ac_try) 2>&5
25970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25971 test $ac_status = 0; }; }
25973 gcc_cv_as_debug_prefix_map_flag=yes
25975 echo "configure: failed program was" >&5
25978 rm -f conftest.o conftest.s
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25982 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25983 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25985 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25991 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25992 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25993 $as_echo_n "(cached) " >&6
25995 gcc_cv_as_lcomm_with_alignment=no
25996 if test x$gcc_cv_as != x; then
25997 $as_echo '.lcomm bar,4,16' > conftest.s
25998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26005 gcc_cv_as_lcomm_with_alignment=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26014 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26015 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26017 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26021 # Check whether --enable-gnu-unique-object was given.
26022 if test "${enable_gnu_unique_object+set}" = set; then :
26023 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26025 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26026 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26030 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26031 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26032 $as_echo_n "(cached) " >&6
26034 gcc_cv_as_gnu_unique_object=no
26035 if test $in_tree_gas = yes; then
26036 if test $in_tree_gas_is_elf = yes \
26037 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26038 then gcc_cv_as_gnu_unique_object=yes
26040 elif test x$gcc_cv_as != x; then
26041 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26044 (eval $ac_try) 2>&5
26046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26047 test $ac_status = 0; }; }
26049 gcc_cv_as_gnu_unique_object=yes
26051 echo "configure: failed program was" >&5
26054 rm -f conftest.o conftest.s
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26058 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26059 if test $gcc_cv_as_gnu_unique_object = yes; then
26060 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26061 if test x$host = x$build -a x$host = x$target &&
26062 ldd --version 2>/dev/null &&
26063 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26064 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26065 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26066 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26067 if test "$glibcnum" -ge 2011 ; then
26068 enable_gnu_unique_object=yes
26074 if test x$enable_gnu_unique_object = xyes; then
26076 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26081 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26082 if test "${gcc_cv_as_line_zero+set}" = set; then :
26083 $as_echo_n "(cached) " >&6
26085 gcc_cv_as_line_zero=no
26086 if test $in_tree_gas = yes; then
26087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26088 then gcc_cv_as_line_zero=yes
26090 elif test "x$gcc_cv_as" != x; then
26091 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26092 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26094 (eval $ac_try) 2>&5
26096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26097 test $ac_status = 0; }; } &&
26098 test "x`cat conftest.out`" = x
26100 gcc_cv_as_line_zero=yes
26102 echo "configure: failed program was" >&5
26104 echo "configure: error output was" >&5
26105 cat conftest.out >&5
26107 rm -f conftest.o conftest.s conftest.out
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26111 $as_echo "$gcc_cv_as_line_zero" >&6; }
26112 if test "x$gcc_cv_as_line_zero" = xyes; then
26114 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26119 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26120 gcc_cv_ld_eh_frame_hdr=no
26121 if test $in_tree_ld = yes ; then
26122 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 \
26123 && test $in_tree_ld_is_elf = yes; then
26124 gcc_cv_ld_eh_frame_hdr=yes
26126 elif test x$gcc_cv_ld != x; then
26127 if echo "$ld_ver" | grep GNU > /dev/null; then
26128 # Check if linker supports --eh-frame-hdr option
26129 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26130 gcc_cv_ld_eh_frame_hdr=yes
26135 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26136 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26137 gcc_cv_ld_eh_frame_hdr=yes
26144 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26146 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26150 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26153 $as_echo_n "checking linker position independent executable support... " >&6; }
26155 if test $in_tree_ld = yes ; then
26156 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 \
26157 && test $in_tree_ld_is_elf = yes; then
26160 elif test x$gcc_cv_ld != x; then
26161 # Check if linker supports -pie option
26162 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26166 if test x"$gcc_cv_ld_pie" = xyes; then
26168 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26172 $as_echo "$gcc_cv_ld_pie" >&6; }
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26175 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26176 gcc_cv_ld_eh_gc_sections=no
26177 if test $in_tree_ld = yes ; then
26178 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 \
26179 && test $in_tree_ld_is_elf = yes; then
26180 gcc_cv_ld_eh_gc_sections=yes
26182 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26183 cat > conftest.s <<EOF
26186 .type _start, @function
26189 .size _start, .-_start
26190 .section .text.foo,"ax",@progbits
26191 .type foo, @function
26195 .section .gcc_except_table.foo,"a",@progbits
26198 .section .eh_frame,"a",@progbits
26201 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26202 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26203 | grep "gc-sections option ignored" > /dev/null; then
26204 gcc_cv_ld_eh_gc_sections=no
26205 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26206 | grep gcc_except_table > /dev/null; then
26207 gcc_cv_ld_eh_gc_sections=yes
26208 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26209 if test x$gcc_cv_as_comdat_group != xyes; then
26210 gcc_cv_ld_eh_gc_sections=no
26211 cat > conftest.s <<EOF
26214 .type _start, @function
26217 .size _start, .-_start
26218 .section .gnu.linkonce.t.foo,"ax",@progbits
26219 .type foo, @function
26223 .section .gcc_except_table.foo,"a",@progbits
26226 .section .eh_frame,"a",@progbits
26229 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26230 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26231 | grep "gc-sections option ignored" > /dev/null; then
26232 gcc_cv_ld_eh_gc_sections=no
26233 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26234 | grep gcc_except_table > /dev/null; then
26235 gcc_cv_ld_eh_gc_sections=yes
26241 rm -f conftest.s conftest.o conftest
26245 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26246 gcc_cv_ld_eh_gc_sections=no
26249 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26251 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26255 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26258 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26259 gcc_cv_ld_eh_gc_sections_bug=no
26260 if test $in_tree_ld = yes ; then
26261 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 \
26262 && test $in_tree_ld_is_elf = yes; then
26263 gcc_cv_ld_eh_gc_sections_bug=yes
26265 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
26266 gcc_cv_ld_eh_gc_sections_bug=yes
26267 cat > conftest.s <<EOF
26270 .type _start, @function
26273 .size _start, .-_start
26274 .section .text.startup.foo,"ax",@progbits
26275 .type foo, @function
26279 .section .gcc_except_table.foo,"a",@progbits
26282 .section .eh_frame,"a",@progbits
26285 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26286 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26287 | grep "gc-sections option ignored" > /dev/null; then
26289 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26290 | grep gcc_except_table > /dev/null; then
26291 gcc_cv_ld_eh_gc_sections_bug=no
26294 rm -f conftest.s conftest.o conftest
26296 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26298 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26302 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26309 $as_echo_n "checking linker --as-needed support... " >&6; }
26310 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26311 $as_echo_n "(cached) " >&6
26313 gcc_cv_ld_as_needed=no
26314 if test $in_tree_ld = yes ; then
26315 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 \
26316 && test $in_tree_ld_is_elf = yes; then
26317 gcc_cv_ld_as_needed=yes
26319 elif test x$gcc_cv_ld != x; then
26320 # Check if linker supports --as-needed and --no-as-needed options
26321 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26322 gcc_cv_ld_as_needed=yes
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26328 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26329 if test x"$gcc_cv_ld_as_needed" = xyes; then
26331 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26335 case "$target:$tm_file" in
26336 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26338 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26339 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26340 $as_echo_n "(cached) " >&6
26342 gcc_cv_ld_no_dot_syms=no
26343 if test $in_tree_ld = yes ; then
26344 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
26345 gcc_cv_ld_no_dot_syms=yes
26347 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26348 cat > conftest1.s <<EOF
26352 cat > conftest2.s <<EOF
26353 .section ".opd","aw"
26356 .type foo,@function
26358 .quad .LEfoo,.TOC.@tocbase,0
26364 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26365 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26366 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26367 gcc_cv_ld_no_dot_syms=yes
26369 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26374 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26375 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26377 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26382 $as_echo_n "checking linker large toc support... " >&6; }
26383 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26384 $as_echo_n "(cached) " >&6
26386 gcc_cv_ld_large_toc=no
26387 if test $in_tree_ld = yes ; then
26388 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
26389 gcc_cv_ld_large_toc=yes
26391 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26392 cat > conftest.s <<EOF
26393 .section ".tbss","awT",@nobits
26399 addis 9,13,ie0@got@tprel@ha
26400 ld 9,ie0@got@tprel@l(9)
26402 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26403 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26404 gcc_cv_ld_large_toc=yes
26406 rm -f conftest conftest.o conftest.s
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26411 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26412 if test x"$gcc_cv_ld_large_toc" = xyes; then
26414 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26421 $as_echo_n "checking linker --build-id support... " >&6; }
26422 if test "${gcc_cv_ld_buildid+set}" = set; then :
26423 $as_echo_n "(cached) " >&6
26425 gcc_cv_ld_buildid=no
26426 if test $in_tree_ld = yes ; then
26427 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26428 "$gcc_cv_gld_minor_version" -ge 18 -o \
26429 "$gcc_cv_gld_major_version" -gt 2 \
26430 && test $in_tree_ld_is_elf = yes; then
26431 gcc_cv_ld_buildid=yes
26433 elif test x$gcc_cv_ld != x; then
26434 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26435 gcc_cv_ld_buildid=yes
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26440 $as_echo "$gcc_cv_ld_buildid" >&6; }
26441 if test x"$gcc_cv_ld_buildid" = xyes; then
26443 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26447 # Check whether --enable-linker-build-id was given.
26448 if test "${enable_linker_build_id+set}" = set; then :
26449 enableval=$enable_linker_build_id;
26451 enable_linker_build_id=no
26455 if test x"$enable_linker_build_id" = xyes; then
26456 if test x"$gcc_cv_ld_buildid" = xyes; then
26458 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26462 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26466 # In binutils 2.21, GNU ld gained support for new emulations fully
26467 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26469 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26470 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26471 $as_echo_n "(cached) " >&6
26473 gcc_cv_ld_sol2_emulation=no
26474 if test $in_tree_ld = yes ; then
26475 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26476 "$gcc_cv_gld_minor_version" -ge 21 -o \
26477 "$gcc_cv_gld_major_version" -gt 2 \
26478 && test $in_tree_ld_is_elf = yes; then
26479 gcc_cv_ld_sol2_emulation=yes
26481 elif test x$gcc_cv_ld != x; then
26482 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26483 grep _sol2 > /dev/null; then
26484 gcc_cv_ld_sol2_emulation=yes
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26489 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26490 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26492 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26497 $as_echo_n "checking linker --sysroot support... " >&6; }
26498 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26501 gcc_cv_ld_sysroot=no
26502 if test $in_tree_ld = yes ; then
26503 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
26504 gcc_cv_ld_sysroot=yes
26506 elif test x$gcc_cv_ld != x; then
26507 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26508 gcc_cv_ld_sysroot=yes
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26513 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26514 if test x"$gcc_cv_ld_sysroot" = xyes; then
26516 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26520 if test x$with_sysroot = x && test x$host = x$target \
26521 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26522 && test "$prefix" != "NONE"; then
26524 cat >>confdefs.h <<_ACEOF
26525 #define PREFIX_INCLUDE_DIR "$prefix/include"
26530 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26531 if test "x$with_headers" != x; then
26532 target_header_dir=$with_headers
26533 elif test "x$with_sysroot" = x; then
26534 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26535 elif test "x$with_build_sysroot" != "x"; then
26536 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26537 elif test "x$with_sysroot" = xyes; then
26538 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26540 target_header_dir="${with_sysroot}${native_system_header_dir}"
26543 target_header_dir=${native_system_header_dir}
26546 # Test for stack protector support in target C library.
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26548 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26549 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26550 $as_echo_n "(cached) " >&6
26552 gcc_cv_libc_provides_ssp=no
26554 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26555 # glibc 2.4 and later provides __stack_chk_fail and
26556 # either __stack_chk_guard, or TLS access to stack guard canary.
26557 if test -f $target_header_dir/features.h \
26558 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26559 $target_header_dir/features.h > /dev/null; then
26560 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26561 $target_header_dir/features.h > /dev/null; then
26562 gcc_cv_libc_provides_ssp=yes
26563 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26564 $target_header_dir/features.h > /dev/null \
26565 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26566 $target_header_dir/features.h > /dev/null; then
26567 gcc_cv_libc_provides_ssp=yes
26568 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26569 $target_header_dir/features.h > /dev/null && \
26570 test -f $target_header_dir/bits/uClibc_config.h && \
26571 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26572 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26573 gcc_cv_libc_provides_ssp=yes
26578 # Avoid complicated tests (see
26579 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26580 # simply assert that glibc does provide this, which is true for all
26581 # realistically usable GNU/Hurd configurations.
26582 gcc_cv_libc_provides_ssp=yes;;
26583 *-*-darwin* | *-*-freebsd*)
26584 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26585 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26586 gcc_cv_libc_provides_ssp=yes
26588 echo "no __stack_chk_fail on this target"
26592 *) gcc_cv_libc_provides_ssp=no ;;
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26596 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26598 if test x$gcc_cv_libc_provides_ssp = xyes; then
26600 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26604 # Test for <sys/sdt.h> on the target.
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26607 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26609 if test -f $target_header_dir/sys/sdt.h; then
26612 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26616 $as_echo "$have_sys_sdt_h" >&6; }
26618 # Check if TFmode long double should be used by default or not.
26619 # Some glibc targets used DFmode long double, but with glibc 2.4
26620 # and later they can use TFmode.
26622 powerpc*-*-linux* | \
26623 sparc*-*-linux* | \
26627 # Check whether --with-long-double-128 was given.
26628 if test "${with_long_double_128+set}" = set; then :
26629 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26631 gcc_cv_target_ldbl128=no
26632 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26633 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26634 && gcc_cv_target_ldbl128=yes
26640 if test x$gcc_cv_target_ldbl128 = xyes; then
26642 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26647 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26648 gcc_cv_target_dl_iterate_phdr=unknown
26651 # <link.h> needs both a dl_iterate_phdr declaration and support for
26652 # compilation with largefile support.
26653 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26654 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26655 gcc_cv_target_dl_iterate_phdr=yes
26657 gcc_cv_target_dl_iterate_phdr=no
26662 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26664 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26668 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26670 # Find out what GC implementation we want, or may, use.
26672 # Check whether --with-gc was given.
26673 if test "${with_gc+set}" = set; then :
26674 withval=$with_gc; case "$withval" in
26681 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26685 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26693 echo "Using $GGC for garbage collection."
26695 # Libraries to use on the host. This will normally be set by the top
26696 # level Makefile. Here we simply capture the value for our Makefile.
26697 if test -z "${HOST_LIBS+set}"; then
26702 # Use the system's zlib library.
26704 zlibinc="-I\$(srcdir)/../zlib"
26706 # Check whether --with-system-zlib was given.
26707 if test "${with_system_zlib+set}" = set; then :
26708 withval=$with_system_zlib; zlibdir=
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26718 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26719 # Check whether --enable-maintainer-mode was given.
26720 if test "${enable_maintainer_mode+set}" = set; then :
26721 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26728 $as_echo "$maintainer_mode" >&6; }
26730 if test "$maintainer_mode" = "yes"; then
26740 # Make empty files to contain the specs and options for each language.
26741 # Then add #include lines to for a compiler that has specs and/or options.
26747 # These (without "all_") are set in each config-lang.in.
26748 # `language' must be a single word so is spelled singularly.
26751 all_outputs='Makefile'
26752 # List of language makefile fragments.
26753 all_lang_makefrags=
26754 # Additional files for gengtype
26755 all_gtfiles="$target_gtfiles"
26757 # These are the languages that are set in --enable-languages,
26758 # and are available in the GCC tree.
26759 all_selected_languages=
26761 # Add the language fragments.
26762 # Languages are added via two mechanisms. Some information must be
26763 # recorded in makefile variables, these are defined in config-lang.in.
26764 # We accumulate them and plug them into the main Makefile.
26765 # The other mechanism is a set of hooks for each of the main targets
26766 # like `clean', `install', etc.
26768 language_hooks="Make-hooks"
26770 for lang in ${srcdir}/*/config-lang.in
26772 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26774 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26775 if test "x$lang_alias" = x
26777 echo "$lang doesn't set \$language." 1>&2
26780 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26781 subdirs="$subdirs $subdir"
26783 # $gcc_subdir is where the gcc integration files are to be found
26784 # for a language, both for internal compiler purposes (compiler
26785 # sources implementing front-end to GCC tree converters), and for
26786 # build infrastructure purposes (Make-lang.in, etc.)
26788 # This will be <subdir> (relative to $srcdir) if a line like
26789 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26790 # is found in <langdir>/config-lang.in, and will remain <langdir>
26793 # Except for the language alias (fetched above), the regular
26794 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26795 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26796 # only this and the language alias.
26798 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26799 if [ "$gcc_subdir" = "" ]; then
26800 gcc_subdir="$subdir"
26803 case ",$enable_languages," in
26805 all_selected_languages="$all_selected_languages $lang_alias"
26806 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26807 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26818 . ${srcdir}/$gcc_subdir/config-lang.in
26819 if test "x$language" = x
26821 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26826 case ",$enable_languages," in
26827 *,$lang_alias,*) ;;
26829 for i in $subdir_requires; do
26830 test -f "${srcdir}/$i/config-lang.in" && continue
26838 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26839 if test -f $srcdir/$gcc_subdir/lang.opt; then
26840 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26841 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26843 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26844 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26846 all_languages="$all_languages $language"
26847 all_compilers="$all_compilers $compilers"
26848 all_outputs="$all_outputs $outputs"
26849 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26850 case ",$enable_languages," in
26853 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26862 # Pick up gtfiles for c
26864 . ${srcdir}/c-config-lang.in
26865 all_gtfiles="$all_gtfiles [c] $gtfiles"
26868 for language in $all_selected_languages
26870 check_languages="$check_languages check-$language"
26873 # We link each language in with a set of hooks, reached indirectly via
26874 # lang.${target}. Only do so for selected languages.
26878 target_list="all.cross start.encap rest.encap tags \
26879 install-common install-man install-info install-pdf install-html dvi \
26880 pdf html uninstall info man srcextra srcman srcinfo \
26881 mostlyclean clean distclean maintainer-clean install-plugin"
26883 for t in $target_list
26886 for lang in $all_selected_languages
26890 echo "lang.$t: $x" >> Make-hooks
26894 # Option include files
26897 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26898 option_includes="option-includes.mk"
26907 echo "dir ." > .gdbinit
26908 echo "dir ${srcdir}" >> .gdbinit
26909 if test x$gdb_needs_out_file_path = xyes
26911 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26913 if test "x$subdirs" != x; then
26916 echo "dir ${srcdir}/$s" >> .gdbinit
26919 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26921 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26925 # Find a directory in which to install a shared libgcc.
26927 # Check whether --enable-version-specific-runtime-libs was given.
26928 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26929 enableval=$enable_version_specific_runtime_libs;
26933 # Substitute configuration variables
26997 if test x${build} = x${host} ; then
26998 if test x${host} = x${target} ; then
26999 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27001 echo "Links are now set up to build a cross-compiler" 1>&2
27002 echo " from ${host} to ${target}." 1>&2
27005 if test x${host} = x${target} ; then
27006 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27007 echo " for ${target}." 1>&2
27009 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27010 echo " from ${host} to ${target}." 1>&2
27022 if test "x${CLOOGLIBS}" != "x" ; then
27024 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27028 # Check for plugin support
27029 # Check whether --enable-plugin was given.
27030 if test "${enable_plugin+set}" = set; then :
27031 enableval=$enable_plugin; enable_plugin=$enableval
27033 enable_plugin=yes; default_plugin=yes
27041 if test x$build = x$host; then
27042 export_sym_check="nm${exeext} -g"
27043 elif test x$host = x$target; then
27044 export_sym_check="$gcc_cv_nm -g"
27050 if test x$build = x$host; then
27051 export_sym_check="objdump${exeext} -T"
27052 elif test x$host = x$target; then
27053 export_sym_check="$gcc_cv_objdump -T"
27060 if test x"$enable_plugin" = x"yes"; then
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27063 $as_echo_n "checking for exported symbols... " >&6; }
27064 if test "x$export_sym_check" != x; then
27065 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27066 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27067 if $export_sym_check conftest | grep foobar > /dev/null; then
27068 : # No need to use a flag
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27070 $as_echo "yes" >&6; }
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27073 $as_echo "yes" >&6; }
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27075 $as_echo_n "checking for -rdynamic... " >&6; }
27076 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27077 if $export_sym_check conftest | grep foobar > /dev/null; then
27078 plugin_rdynamic=yes
27079 pluginlibs="-rdynamic"
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27085 $as_echo "$plugin_rdynamic" >&6; }
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27089 $as_echo "unable to check" >&6; }
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27095 $as_echo_n "checking for library containing dlopen... " >&6; }
27096 if test "${ac_cv_search_dlopen+set}" = set; then :
27097 $as_echo_n "(cached) " >&6
27099 ac_func_search_save_LIBS=$LIBS
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27103 /* Override any GCC internal prototype to avoid an error.
27104 Use char because int might match the return type of a GCC
27105 builtin and then its argument prototype would still apply. */
27118 for ac_lib in '' dl; do
27119 if test -z "$ac_lib"; then
27120 ac_res="none required"
27123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27125 if ac_fn_c_try_link "$LINENO"; then :
27126 ac_cv_search_dlopen=$ac_res
27128 rm -f core conftest.err conftest.$ac_objext \
27130 if test "${ac_cv_search_dlopen+set}" = set; then :
27134 if test "${ac_cv_search_dlopen+set}" = set; then :
27137 ac_cv_search_dlopen=no
27139 rm conftest.$ac_ext
27140 LIBS=$ac_func_search_save_LIBS
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27143 $as_echo "$ac_cv_search_dlopen" >&6; }
27144 ac_res=$ac_cv_search_dlopen
27145 if test "$ac_res" != no; then :
27146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27150 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27151 pluginlibs="$pluginlibs -ldl"
27155 # Check that we can build shared objects with -fPIC -shared
27156 saved_LDFLAGS="$LDFLAGS"
27157 saved_CFLAGS="$CFLAGS"
27160 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27161 CFLAGS="$CFLAGS -fPIC"
27162 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27165 CFLAGS="$CFLAGS -fPIC"
27166 LDFLAGS="$LDFLAGS -fPIC -shared"
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27170 $as_echo_n "checking for -fPIC -shared... " >&6; }
27171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27172 /* end confdefs.h. */
27182 if ac_fn_c_try_link "$LINENO"; then :
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27184 $as_echo "yes" >&6; }; have_pic_shared=yes
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27187 $as_echo "no" >&6; }; have_pic_shared=no
27189 rm -f core conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext conftest.$ac_ext
27191 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27195 LDFLAGS="$saved_LDFLAGS"
27196 CFLAGS="$saved_CFLAGS"
27198 # If plugin support had been requested but not available, fail.
27199 if test x"$enable_plugin" = x"no" ; then
27200 if test x"$default_plugin" != x"yes"; then
27202 Building GCC with plugin support requires a host that supports
27203 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27210 if test x"$enable_plugin" = x"yes"; then
27212 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27217 # Check whether --enable-libquadmath-support was given.
27218 if test "${enable_libquadmath_support+set}" = set; then :
27219 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27221 ENABLE_LIBQUADMATH_SUPPORT=yes
27224 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27226 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27231 # Specify what hash style to use by default.
27233 # Check whether --with-linker-hash-style was given.
27234 if test "${with_linker_hash_style+set}" = set; then :
27235 withval=$with_linker_hash_style; case x"$withval" in
27237 LINKER_HASH_STYLE=sysv
27240 LINKER_HASH_STYLE=gnu
27243 LINKER_HASH_STYLE=both
27246 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27250 LINKER_HASH_STYLE=''
27253 if test x"${LINKER_HASH_STYLE}" != x; then
27255 cat >>confdefs.h <<_ACEOF
27256 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27261 # Configure the subdirectories
27262 # AC_CONFIG_SUBDIRS($subdirs)
27264 # Create the Makefile
27265 # and configure language subdirectories
27266 ac_config_files="$ac_config_files $all_outputs"
27269 ac_config_commands="$ac_config_commands default"
27271 cat >confcache <<\_ACEOF
27272 # This file is a shell script that caches the results of configure
27273 # tests run on this system so they can be shared between configure
27274 # scripts and configure runs, see configure's option --config-cache.
27275 # It is not useful on other systems. If it contains results you don't
27276 # want to keep, you may remove or edit it.
27278 # config.status only pays attention to the cache file if you give it
27279 # the --recheck option to rerun configure.
27281 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27282 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27283 # following values.
27287 # The following way of writing the cache mishandles newlines in values,
27288 # but we know of no workaround that is simple, portable, and efficient.
27289 # So, we kill variables containing newlines.
27290 # Ultrix sh set writes to stderr and can't be redirected directly,
27291 # and sets the high bit in the cache file unless we assign to the vars.
27293 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27294 eval ac_val=\$$ac_var
27298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27302 _ | IFS | as_nl) ;; #(
27303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27304 *) { eval $ac_var=; unset $ac_var;} ;;
27310 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27311 *${as_nl}ac_space=\ *)
27312 # `set' does not quote correctly, so add quotes: double-quote
27313 # substitution turns \\\\ into \\, and sed turns \\ into \.
27316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27319 # `set' quotes correctly as required by POSIX, so do not add quotes.
27320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27331 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27333 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27334 if test -w "$cache_file"; then
27335 test "x$cache_file" != "x/dev/null" &&
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27337 $as_echo "$as_me: updating cache $cache_file" >&6;}
27338 cat confcache >$cache_file
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27341 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27347 # Let make expand exec_prefix.
27348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27350 DEFS=-DHAVE_CONFIG_H
27354 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27355 # 1. Remove the extension, and $U if already installed.
27356 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27357 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27358 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27359 # will be set to the directory where LIBOBJS objects are built.
27360 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27361 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27363 LIBOBJS=$ac_libobjs
27365 LTLIBOBJS=$ac_ltlibobjs
27370 : ${CONFIG_STATUS=./config.status}
27372 ac_clean_files_save=$ac_clean_files
27373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27377 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27379 # Generated by $as_me.
27380 # Run this file to recreate the current configuration.
27381 # Compiler output produced by configure, useful for debugging
27382 # configure, is in config.log if it exists.
27385 ac_cs_recheck=false
27388 SHELL=\${CONFIG_SHELL-$SHELL}
27391 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27392 ## -------------------- ##
27393 ## M4sh Initialization. ##
27394 ## -------------------- ##
27396 # Be more Bourne compatible
27397 DUALCASE=1; export DUALCASE # for MKS sh
27398 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27402 # is contrary to our usage. Disable this feature.
27403 alias -g '${1+"$@"}'='"$@"'
27404 setopt NO_GLOB_SUBST
27406 case `(set -o) 2>/dev/null` in #(
27418 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27419 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27422 # Prefer a ksh shell builtin over an external printf program on Solaris,
27423 # but without wasting forks for bash or zsh.
27424 if test -z "$BASH_VERSION$ZSH_VERSION" \
27425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27426 as_echo='print -r --'
27427 as_echo_n='print -rn --'
27428 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27429 as_echo='printf %s\n'
27430 as_echo_n='printf %s'
27432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27434 as_echo_n='/usr/ucb/echo -n'
27436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27437 as_echo_n_body='eval
27441 expr "X$arg" : "X\\(.*\\)$as_nl";
27442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27446 export as_echo_n_body
27447 as_echo_n='sh -c $as_echo_n_body as_echo'
27449 export as_echo_body
27450 as_echo='sh -c $as_echo_body as_echo'
27453 # The user is always right.
27454 if test "${PATH_SEPARATOR+set}" != set; then
27456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27464 # We need space, tab and new line, in precisely that order. Quoting is
27465 # there to prevent editors from complaining about space-tab.
27466 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27467 # splitting by setting IFS to empty value.)
27470 # Find who we are. Look in the path if we contain no directory separator.
27472 *[\\/]* ) as_myself=$0 ;;
27473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27474 for as_dir in $PATH
27477 test -z "$as_dir" && as_dir=.
27478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27484 # We did not find ourselves, most probably we were run as `sh COMMAND'
27485 # in which case we are not to be found in the path.
27486 if test "x$as_myself" = x; then
27489 if test ! -f "$as_myself"; then
27490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27494 # Unset variables that we do not need and which cause bugs (e.g. in
27495 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27496 # suppresses any "Segmentation fault" message there. '((' could
27497 # trigger a bug in pdksh 5.2.14.
27498 for as_var in BASH_ENV ENV MAIL MAILPATH
27499 do eval test x\${$as_var+set} = xset \
27500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27513 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27516 # as_fn_error ERROR [LINENO LOG_FD]
27517 # ---------------------------------
27518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27520 # script with status $?, using 1 if that was 0.
27523 as_status=$?; test $as_status -eq 0 && as_status=1
27525 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27528 $as_echo "$as_me: error: $1" >&2
27529 as_fn_exit $as_status
27533 # as_fn_set_status STATUS
27534 # -----------------------
27535 # Set $? to STATUS, without forking.
27536 as_fn_set_status ()
27539 } # as_fn_set_status
27541 # as_fn_exit STATUS
27542 # -----------------
27543 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27547 as_fn_set_status $1
27553 # Portably unset VAR.
27556 { eval $1=; unset $1;}
27558 as_unset=as_fn_unset
27559 # as_fn_append VAR VALUE
27560 # ----------------------
27561 # Append the text in VALUE to the end of the definition contained in VAR. Take
27562 # advantage of any shell optimizations that allow amortized linear growth over
27563 # repeated appends, instead of the typical quadratic growth present in naive
27565 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27566 eval 'as_fn_append ()
27577 # as_fn_arith ARG...
27578 # ------------------
27579 # Perform arithmetic evaluation on the ARGs, and store the result in the
27580 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27581 # must be portable across $(()) and expr.
27582 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27583 eval 'as_fn_arith ()
27590 as_val=`expr "$@" || test $? -eq 1`
27595 if expr a : '\(a\)' >/dev/null 2>&1 &&
27596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27602 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27603 as_basename=basename
27608 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27614 as_me=`$as_basename -- "$0" ||
27615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27616 X"$0" : 'X\(//\)$' \| \
27617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27619 sed '/^.*\/\([^/][^/]*\)\/*$/{
27633 # Avoid depending upon Character Ranges.
27634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27637 as_cr_digits='0123456789'
27638 as_cr_alnum=$as_cr_Letters$as_cr_digits
27640 ECHO_C= ECHO_N= ECHO_T=
27641 case `echo -n x` in #(((((
27643 case `echo 'xy\c'` in
27644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27653 rm -f conf$$ conf$$.exe conf$$.file
27654 if test -d conf$$.dir; then
27655 rm -f conf$$.dir/conf$$.file
27658 mkdir conf$$.dir 2>/dev/null
27660 if (echo >conf$$.file) 2>/dev/null; then
27661 if ln -s conf$$.file conf$$ 2>/dev/null; then
27663 # ... but there are two gotchas:
27664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27666 # In both cases, we have to default to `cp -p'.
27667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27669 elif ln conf$$.file conf$$ 2>/dev/null; then
27677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27678 rmdir conf$$.dir 2>/dev/null
27683 # Create "$as_dir" as a directory, including parents if necessary.
27688 -*) as_dir=./$as_dir;;
27690 test -d "$as_dir" || eval $as_mkdir_p || {
27694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27695 *) as_qdir=$as_dir;;
27697 as_dirs="'$as_qdir' $as_dirs"
27698 as_dir=`$as_dirname -- "$as_dir" ||
27699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27700 X"$as_dir" : 'X\(//\)[^/]' \| \
27701 X"$as_dir" : 'X\(//\)$' \| \
27702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27703 $as_echo X"$as_dir" |
27704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27708 /^X\(\/\/\)[^/].*/{
27721 test -d "$as_dir" && break
27723 test -z "$as_dirs" || eval "mkdir $as_dirs"
27724 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27728 if mkdir -p . 2>/dev/null; then
27729 as_mkdir_p='mkdir -p "$as_dir"'
27731 test -d ./-p && rmdir ./-p
27735 if test -x / >/dev/null 2>&1; then
27736 as_test_x='test -x'
27738 if ls -dL / >/dev/null 2>&1; then
27745 if test -d "$1"; then
27751 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27752 ???[sx]*):;;*)false;;esac;fi
27756 as_executable_p=$as_test_x
27758 # Sed expression to map a string onto a valid CPP name.
27759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27761 # Sed expression to map a string onto a valid variable name.
27762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27766 ## ----------------------------------- ##
27767 ## Main body of $CONFIG_STATUS script. ##
27768 ## ----------------------------------- ##
27770 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27773 # Save the log message, to keep $0 and so on meaningful, and to
27774 # report actual input values of CONFIG_FILES etc. instead of their
27775 # values after options handling.
27777 This file was extended by $as_me, which was
27778 generated by GNU Autoconf 2.64. Invocation command line was
27780 CONFIG_FILES = $CONFIG_FILES
27781 CONFIG_HEADERS = $CONFIG_HEADERS
27782 CONFIG_LINKS = $CONFIG_LINKS
27783 CONFIG_COMMANDS = $CONFIG_COMMANDS
27786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27791 case $ac_config_files in *"
27792 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27795 case $ac_config_headers in *"
27796 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27801 # Files that config.status was made for.
27802 config_files="$ac_config_files"
27803 config_headers="$ac_config_headers"
27804 config_commands="$ac_config_commands"
27808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27810 \`$as_me' instantiates files and other configuration actions
27811 from templates according to the current configuration. Unless the files
27812 and actions are specified as TAGs, all are instantiated by default.
27814 Usage: $0 [OPTION]... [TAG]...
27816 -h, --help print this help, then exit
27817 -V, --version print version number and configuration settings, then exit
27818 -q, --quiet, --silent
27819 do not print progress messages
27820 -d, --debug don't remove temporary files
27821 --recheck update $as_me by reconfiguring in the same conditions
27822 --file=FILE[:TEMPLATE]
27823 instantiate the configuration file FILE
27824 --header=FILE[:TEMPLATE]
27825 instantiate the configuration header FILE
27827 Configuration files:
27830 Configuration headers:
27833 Configuration commands:
27836 Report bugs to the package provider."
27839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27842 configured by $0, generated by GNU Autoconf 2.64,
27843 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27845 Copyright (C) 2009 Free Software Foundation, Inc.
27846 This config.status script is free software; the Free Software Foundation
27847 gives unlimited permission to copy, distribute and modify it."
27852 test -n "\$AWK" || AWK=awk
27855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27856 # The default lists apply if the user does not specify any file.
27862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27874 # Handling of the options.
27875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27877 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27878 $as_echo "$ac_cs_version"; exit ;;
27879 --debug | --debu | --deb | --de | --d | -d )
27881 --file | --fil | --fi | --f )
27884 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27886 as_fn_append CONFIG_FILES " '$ac_optarg'"
27887 ac_need_defaults=false;;
27888 --header | --heade | --head | --hea )
27891 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27893 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27894 ac_need_defaults=false;;
27896 # Conflict between --help and --header
27897 as_fn_error "ambiguous option: \`$1'
27898 Try \`$0 --help' for more information.";;
27899 --help | --hel | -h )
27900 $as_echo "$ac_cs_usage"; exit ;;
27901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27902 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27905 # This is an error.
27906 -*) as_fn_error "unrecognized option: \`$1'
27907 Try \`$0 --help' for more information." ;;
27909 *) as_fn_append ac_config_targets " $1"
27910 ac_need_defaults=false ;;
27916 ac_configure_extra_args=
27918 if $ac_cs_silent; then
27920 ac_configure_extra_args="$ac_configure_extra_args --silent"
27924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27925 if \$ac_cs_recheck; then
27926 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27928 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27929 CONFIG_SHELL='$SHELL'
27930 export CONFIG_SHELL
27935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27940 ## Running $as_me. ##
27946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27956 # Handling of arguments.
27957 for ac_config_target in $ac_config_targets
27959 case $ac_config_target in
27960 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27961 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27962 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27963 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27964 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27965 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27972 # If the user did not use the arguments to specify the items to instantiate,
27973 # then the envvar interface is used. Set only those that are not.
27974 # We use the long form for the default assignment because of an extremely
27975 # bizarre bug on SunOS 4.1.3.
27976 if $ac_need_defaults; then
27977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27982 # Have a temporary directory for convenience. Make it in the build tree
27983 # simply because there is no reason against having it here, and in addition,
27984 # creating and moving files from /tmp can sometimes cause problems.
27985 # Hook for its removal unless debugging.
27986 # Note that there is a small window in which the directory will not be cleaned:
27987 # after its creation but before its name has been assigned to `$tmp'.
27991 trap 'exit_status=$?
27992 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27994 trap 'as_fn_exit 1' 1 2 13 15
27996 # Create a (secure) tmp directory for tmp files.
27999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28000 test -n "$tmp" && test -d "$tmp"
28003 tmp=./conf$$-$RANDOM
28004 (umask 077 && mkdir "$tmp")
28005 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28007 # Set up the scripts for CONFIG_FILES section.
28008 # No need to generate them if there are no CONFIG_FILES.
28009 # This happens for instance with `./config.status config.h'.
28010 if test -n "$CONFIG_FILES"; then
28012 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28013 ac_cs_awk_getline=:
28014 ac_cs_awk_pipe_init=
28015 ac_cs_awk_read_file='
28016 while ((getline aline < (F[key])) > 0)
28019 ac_cs_awk_pipe_fini=
28021 ac_cs_awk_getline=false
28022 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28023 ac_cs_awk_read_file='
28025 print "cat " F[key] " &&"
28026 '$ac_cs_awk_pipe_init
28027 # The final `:' finishes the AND list.
28028 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28030 ac_cr=`echo X | tr X '\015'`
28031 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28032 # But we know of no other shell where ac_cr would be empty at this
28033 # point, so we can use a bashism as a fallback.
28034 if test "x$ac_cr" = x; then
28035 eval ac_cr=\$\'\\r\'
28037 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28038 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28041 ac_cs_awk_cr=$ac_cr
28044 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28047 # Create commands to substitute file output variables.
28049 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28050 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28051 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28054 } >conf$$files.sh &&
28055 . ./conf$$files.sh ||
28056 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28057 rm -f conf$$files.sh
28060 echo "cat >conf$$subs.awk <<_ACEOF" &&
28061 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28063 } >conf$$subs.sh ||
28064 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28065 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28067 for ac_last_try in false false false false false :; do
28068 . ./conf$$subs.sh ||
28069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28071 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28072 if test $ac_delim_n = $ac_delim_num; then
28074 elif $ac_last_try; then
28075 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28080 rm -f conf$$subs.sh
28082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28083 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28087 s/^/S["/; s/!.*/"]=/
28097 s/\(.\{148\}\).*/\1/
28099 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28104 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28111 s/\(.\{148\}\).*/\1/
28113 s/["\\]/\\&/g; s/^/"/; s/$/"/
28117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28122 ' <conf$$subs.awk | sed '
28127 ' >>$CONFIG_STATUS || ac_write_fail=1
28128 rm -f conf$$subs.awk
28129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28131 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28132 for (key in S) S_is_set[key] = 1
28134 \$ac_cs_awk_pipe_init
28138 nfields = split(line, field, "@")
28140 len = length(field[1])
28141 for (i = 2; i < nfields; i++) {
28143 keylen = length(key)
28144 if (S_is_set[key]) {
28146 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28147 len += length(value) + length(field[++i])
28152 if (nfields == 3 && !substed) {
28154 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28155 \$ac_cs_awk_read_file
28161 \$ac_cs_awk_pipe_fini
28164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28165 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28166 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28169 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28170 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28173 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28174 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28175 # trailing colons and then remove the whole line if VPATH becomes empty
28176 # (actually we leave an empty line to preserve line numbers).
28177 if test "x$srcdir" = x.; then
28178 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28179 s/:*\$(srcdir):*/:/
28180 s/:*\${srcdir}:*/:/
28182 s/^\([^=]*=[ ]*\):*/\1/
28188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28189 fi # test -n "$CONFIG_FILES"
28191 # Set up the scripts for CONFIG_HEADERS section.
28192 # No need to generate them if there are no CONFIG_HEADERS.
28193 # This happens for instance with `./config.status Makefile'.
28194 if test -n "$CONFIG_HEADERS"; then
28195 cat >"$tmp/defines.awk" <<\_ACAWK ||
28199 # Transform confdefs.h into an awk script `defines.awk', embedded as
28200 # here-document in config.status, that substitutes the proper values into
28201 # config.h.in to produce config.h.
28203 # Create a delimiter string that does not exist in confdefs.h, to ease
28204 # handling of long lines.
28206 for ac_last_try in false false :; do
28207 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28208 if test -z "$ac_t"; then
28210 elif $ac_last_try; then
28211 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28217 # For the awk script, D is an array of macro values keyed by name,
28218 # likewise P contains macro parameters if any. Preserve backslash
28219 # newline sequences.
28221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28223 s/.\{148\}/&'"$ac_delim"'/g
28226 s/^[ ]*#[ ]*define[ ][ ]*/ /
28233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28239 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28240 D["\1"]=" \3\\\\\\n"\\/p
28242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28247 s/.\{148\}/&'"$ac_delim"'/g
28252 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28255 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28257 ' <confdefs.h | sed '
28258 s/'"$ac_delim"'/"\\\
28259 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28262 for (key in D) D_is_set[key] = 1
28265 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28267 split(line, arg, " ")
28268 if (arg[1] == "#") {
28272 defundef = substr(arg[1], 2)
28275 split(mac1, mac2, "(") #)
28277 prefix = substr(line, 1, index(line, defundef) - 1)
28278 if (D_is_set[macro]) {
28279 # Preserve the white space surrounding the "#".
28280 print prefix "define", macro P[macro] D[macro]
28283 # Replace #undef with comments. This is necessary, for example,
28284 # in the case of _POSIX_SOURCE, which is predefined and required
28285 # on some systems where configure will not decide to define it.
28286 if (defundef == "undef") {
28287 print "/*", prefix defundef, macro, "*/"
28295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28296 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28297 fi # test -n "$CONFIG_HEADERS"
28300 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28305 :[FHLC]) ac_mode=$ac_tag; continue;;
28307 case $ac_mode$ac_tag in
28309 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28310 :[FH]-) ac_tag=-:-;;
28311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28328 -) ac_f="$tmp/stdin";;
28329 *) # Look for the file first in the build tree, then in the source tree
28330 # (if the path is not absolute). The absolute path cannot be DOS-style,
28331 # because $ac_f cannot contain `:'.
28335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28337 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28339 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28340 as_fn_append ac_file_inputs " '$ac_f'"
28343 # Let's still pretend it is `configure' which instantiates (i.e., don't
28344 # use $as_me), people would be surprised to read:
28345 # /* config.h. Generated by config.status. */
28346 configure_input='Generated from '`
28347 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28349 if test x"$ac_file" != x-; then
28350 configure_input="$ac_file. $configure_input"
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28352 $as_echo "$as_me: creating $ac_file" >&6;}
28354 # Neutralize special characters interpreted by sed in replacement strings.
28355 case $configure_input in #(
28356 *\&* | *\|* | *\\* )
28357 ac_sed_conf_input=`$as_echo "$configure_input" |
28358 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28359 *) ac_sed_conf_input=$configure_input;;
28363 *:-:* | *:-) cat >"$tmp/stdin" \
28364 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28369 ac_dir=`$as_dirname -- "$ac_file" ||
28370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28371 X"$ac_file" : 'X\(//\)[^/]' \| \
28372 X"$ac_file" : 'X\(//\)$' \| \
28373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28374 $as_echo X"$ac_file" |
28375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28379 /^X\(\/\/\)[^/].*/{
28392 as_dir="$ac_dir"; as_fn_mkdir_p
28396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28399 # A ".." for each directory in $ac_dir_suffix.
28400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28401 case $ac_top_builddir_sub in
28402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28406 ac_abs_top_builddir=$ac_pwd
28407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28408 # for backward compatibility:
28409 ac_top_builddir=$ac_top_build_prefix
28412 .) # We are building in place.
28414 ac_top_srcdir=$ac_top_builddir_sub
28415 ac_abs_top_srcdir=$ac_pwd ;;
28416 [\\/]* | ?:[\\/]* ) # Absolute name.
28417 ac_srcdir=$srcdir$ac_dir_suffix;
28418 ac_top_srcdir=$srcdir
28419 ac_abs_top_srcdir=$srcdir ;;
28420 *) # Relative name.
28421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28422 ac_top_srcdir=$ac_top_build_prefix$srcdir
28423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28437 # If the template does not know about datarootdir, expand it.
28438 # FIXME: This hack should be removed a few years after 2.60.
28439 ac_datarootdir_hack=; ac_datarootdir_seen=
28450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28451 *datarootdir*) ac_datarootdir_seen=yes;;
28452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28457 ac_datarootdir_hack='
28458 s&@datadir@&$datadir&g
28459 s&@docdir@&$docdir&g
28460 s&@infodir@&$infodir&g
28461 s&@localedir@&$localedir&g
28462 s&@mandir@&$mandir&g
28463 s&\\\${datarootdir}&$datarootdir&g' ;;
28467 # Neutralize VPATH when `$srcdir' = `.'.
28468 # Shell code in configure.ac might set extrasub.
28469 # FIXME: do we really want to maintain this feature?
28470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28471 ac_sed_extra="$ac_vpsub
28474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28477 s|@configure_input@|$ac_sed_conf_input|;t t
28478 s&@top_builddir@&$ac_top_builddir_sub&;t t
28479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28480 s&@srcdir@&$ac_srcdir&;t t
28481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28482 s&@top_srcdir@&$ac_top_srcdir&;t t
28483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28484 s&@builddir@&$ac_builddir&;t t
28485 s&@abs_builddir@&$ac_abs_builddir&;t t
28486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28487 $ac_datarootdir_hack
28489 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28490 if $ac_cs_awk_getline; then
28491 $AWK -f "$tmp/subs.awk"
28493 $AWK -f "$tmp/subs.awk" | $SHELL
28495 || as_fn_error "could not create $ac_file" "$LINENO" 5
28497 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28498 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28499 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28501 which seems to be undefined. Please make sure it is defined." >&5
28502 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28503 which seems to be undefined. Please make sure it is defined." >&2;}
28507 -) cat "$tmp/out" && rm -f "$tmp/out";;
28508 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28510 || as_fn_error "could not create $ac_file" "$LINENO" 5
28516 if test x"$ac_file" != x-; then
28518 $as_echo "/* $configure_input */" \
28519 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28520 } >"$tmp/config.h" \
28521 || as_fn_error "could not create $ac_file" "$LINENO" 5
28522 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28524 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28527 mv "$tmp/config.h" "$ac_file" \
28528 || as_fn_error "could not create $ac_file" "$LINENO" 5
28531 $as_echo "/* $configure_input */" \
28532 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28533 || as_fn_error "could not create -" "$LINENO" 5
28537 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28538 $as_echo "$as_me: executing $ac_file commands" >&6;}
28543 case $ac_file$ac_mode in
28544 "as":F) chmod +x as ;;
28545 "collect-ld":F) chmod +x collect-ld ;;
28546 "nm":F) chmod +x nm ;;
28548 case ${CONFIG_HEADERS} in
28549 *auto-host.h:config.in*)
28552 # Make sure all the subdirs exist.
28553 for d in $subdirs doc build common c-family
28555 test -d $d || mkdir $d
28565 ac_clean_files=$ac_clean_files_save
28567 test $ac_write_fail = 0 ||
28568 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28571 # configure is writing to config.log, and then calls config.status.
28572 # config.status does its own redirection, appending to config.log.
28573 # Unfortunately, on DOS this fails, as config.log is still kept open
28574 # by configure, so config.status won't be able to write to it; its
28575 # output is simply discarded. So we exec the FD to /dev/null,
28576 # effectively closing config.log, so it can be properly (re)opened and
28577 # appended to by config.status. When coming back to configure, we
28578 # need to make the FD available again.
28579 if test "$no_create" != yes; then
28581 ac_config_status_args=
28582 test "$silent" = yes &&
28583 ac_config_status_args="$ac_config_status_args --quiet"
28585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28588 # would make configure fail if this is the last instruction.
28589 $ac_cs_success || as_fn_exit $?
28591 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28593 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}