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
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
685 ORIGINAL_NM_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
770 ENABLE_BUILD_WITH_CXX
773 valgrind_path_defines
845 program_transform_name
856 ac_subst_files='language_hooks'
858 enable_option_checking
863 enable_generated_files_in_srcdir
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
894 enable_initfini_array
895 enable_sjlj_exceptions
896 with_system_libunwind
899 enable_win32_registry
906 enable_gnu_unique_object
907 enable_linker_build_id
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
916 ac_precious_vars='build_alias
939 # Initialize some variables set by options.
941 ac_init_version=false
942 ac_unrecognized_opts=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name=s,x,x,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE}'
978 infodir='${datarootdir}/info'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
999 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1029 -datadir | --datadir | --datadi | --datad)
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1041 -disable-* | --disable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1055 eval enable_$ac_useropt=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1245 -site=* | --site=* | --sit=*)
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1285 eval with_$ac_useropt=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1301 eval with_$ac_useropt=no ;;
1304 # Obsolete; use --with-x.
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1321 -*) as_fn_error "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' | [0-9]* | *[!_$as_cr_alnum]* )
1330 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error "missing argument to $ac_option"
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1354 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1372 # Be sure to have absolute directory names.
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error "pwd does not report name of working directory"
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1444 ac_srcdir_defaulted=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1478 \`configure' configures this package to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 --target=TARGET configure for building compilers for TARGET [HOST]
1547 if test -n "$ac_init_help"; then
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-generated-files-in-srcdir
1556 put copies of generated files in source dir
1557 intended for creating source tarballs for users
1558 without texinfo bison or flex.
1559 --enable-werror-always enable -Werror despite compiler version
1560 --enable-checking=LIST
1561 enable expensive run-time checks. With LIST,
1562 enable only specific categories of checks.
1563 Categories are: yes,no,all,none,release.
1564 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1565 rtlflag,rtl,runtime,tree,valgrind,types.
1566 --enable-coverage=LEVEL
1567 enable compiler's code coverage collection.
1568 Use to measure compiler performance and locate
1569 unused parts of the compiler. With LEVEL, specify
1570 optimization. Values are opt, noopt,
1572 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1573 --enable-build-with-cxx build with C++ compiler instead of C compiler
1574 --enable-multilib enable library support for multiple ABIs
1575 --enable-__cxa_atexit enable __cxa_atexit for C++
1576 --enable-decimal-float={no,yes,bid,dpd}
1577 enable decimal float extension to C. Selecting 'bid'
1578 or 'dpd' choses which decimal floating point format
1580 --enable-fixed-point enable fixed-point arithmetic extension to C
1581 --enable-threads enable thread usage for target GCC
1582 --enable-threads=LIB use LIB thread package for target GCC
1583 --enable-tls enable or disable generation of tls code
1584 overriding the assembler check for tls support
1585 --enable-objc-gc enable the use of Boehm's garbage collector with
1586 the GNU Objective-C runtime
1587 --disable-shared don't provide a shared libgcc
1588 --enable-intermodule build the compiler in one step
1589 --enable-languages=LIST specify which front-ends to build
1590 --disable-rpath do not hardcode runtime library paths
1591 --enable-initfini-array use .init_array/.fini_array sections
1592 --enable-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-cld enable -mcld by default for 32bit x86
1596 --disable-win32-registry
1597 disable lookup of installation paths in the
1598 Registry on Windows hosts
1599 --enable-win32-registry enable registry lookup (default)
1600 --enable-win32-registry=KEY
1601 use KEY instead of GCC version as the last portion
1603 --enable-shared[=PKGS] build shared libraries [default=yes]
1604 --enable-static[=PKGS] build static libraries [default=yes]
1605 --enable-fast-install[=PKGS]
1606 optimize for fast installation [default=yes]
1607 --disable-libtool-lock avoid locking (might break parallel builds)
1608 --enable-comdat enable COMDAT group support
1609 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1611 --enable-linker-build-id
1612 compiler will always pass --build-id to linker
1613 --enable-maintainer-mode
1614 enable make rules and dependencies not useful
1615 (and sometimes confusing) to the casual installer
1616 --enable-version-specific-runtime-libs
1617 specify that runtime libraries should be
1618 installed in a compiler-specific directory
1619 --enable-plugin enable plugin support
1622 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1623 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1624 --with-build-libsubdir=DIR Directory where to find libraries for build system
1625 --with-local-prefix=DIR specifies directory to put local include
1626 --with-gxx-include-dir=DIR
1627 specifies directory to put g++ header files
1628 --with-cpp-install-dir=DIR
1629 install the user visible C preprocessor in DIR
1630 (relative to PREFIX) as well as PREFIX/bin
1631 --with-gnu-ld arrange to work with GNU ld.
1632 --with-ld arrange to use the specified ld (full pathname)
1633 --with-demangler-in-ld try to use demangler in GNU ld.
1634 --with-gnu-as arrange to work with GNU as
1635 --with-as arrange to use the specified as (full pathname)
1636 --with-stabs arrange to use stabs instead of host debug format
1637 --with-dwarf2 force the default debug format to be DWARF 2
1638 --with-build-sysroot=sysroot
1639 use sysroot as the system root during the build
1640 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1641 --with-specs=SPECS add SPECS to driver command-line processing
1642 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1643 --with-bugurl=URL Direct users to URL to report a bug
1644 --with-multilib-list Select multilibs (SH only)
1645 --with-gnu-ld assume the C compiler uses GNU ld default=no
1646 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1647 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1648 --with-system-libunwind use installed libunwind
1649 --with-pic try to use only PIC/non-PIC objects [default=use
1651 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1652 --with-plugin-ld=[ARG] specify the plugin linker
1653 --with-long-double-128 Use 128-bit long double by default.
1654 --with-gc={page,zone} choose the garbage collection mechanism to use
1656 --with-system-zlib use installed libz
1657 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1659 Some influential environment variables:
1660 CC C compiler command
1661 CFLAGS C compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
1664 LIBS libraries to pass to the linker, e.g. -l<library>
1665 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1666 you have headers in a nonstandard directory <include dir>
1667 CXX C++ compiler command
1668 CXXFLAGS C++ compiler flags
1670 CXXCPP C++ preprocessor
1671 GMPLIBS How to link GMP
1672 GMPINC How to find GMP include files
1673 PPLLIBS How to link PPL
1674 PPLINC How to find PPL include files
1675 CLOOGLIBS How to link CLOOG
1676 CLOOGINC How to find CLOOG include files
1677 LIBELFLIBS How to link libelf
1678 LIBELFINC How to find libelf include files
1680 Use these variables to override the choices made by `configure' or to help
1681 it to find libraries and programs with nonstandard names/locations.
1683 Report bugs to the package provider.
1688 if test "$ac_init_help" = "recursive"; then
1689 # If there are subdirs, report their specific --help.
1690 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691 test -d "$ac_dir" ||
1692 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700 # A ".." for each directory in $ac_dir_suffix.
1701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702 case $ac_top_builddir_sub in
1703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1713 .) # We are building in place.
1715 ac_top_srcdir=$ac_top_builddir_sub
1716 ac_abs_top_srcdir=$ac_pwd ;;
1717 [\\/]* | ?:[\\/]* ) # Absolute name.
1718 ac_srcdir=$srcdir$ac_dir_suffix;
1719 ac_top_srcdir=$srcdir
1720 ac_abs_top_srcdir=$srcdir ;;
1722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723 ac_top_srcdir=$ac_top_build_prefix$srcdir
1724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728 cd "$ac_dir" || { ac_status=$?; continue; }
1729 # Check for guested configure.
1730 if test -f "$ac_srcdir/configure.gnu"; then
1732 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733 elif test -f "$ac_srcdir/configure"; then
1735 $SHELL "$ac_srcdir/configure" --help=recursive
1737 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 cd "$ac_pwd" || { ac_status=$?; break; }
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1747 generated by GNU Autoconf 2.64
1749 Copyright (C) 2009 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext
1767 if { { ac_try="$ac_compile"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_compile") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest.$ac_objext; then :
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_try_compile
1798 # ac_fn_cxx_try_compile LINENO
1799 # ----------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_cxx_try_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_cxx_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_cxx_try_compile
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } >/dev/null && {
1858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1878 ac_fn_c_check_header_mongrel ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_header_compiler=yes
1902 ac_header_compiler=no
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1915 if ac_fn_c_try_cpp "$LINENO"; then :
1916 ac_header_preproc=yes
1918 ac_header_preproc=no
1920 rm -f conftest.err conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1950 eval "$3=\$ac_header_compiler"
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 } # ac_fn_c_check_header_mongrel
1960 # ac_fn_c_try_run LINENO
1961 # ----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1963 # that executables *can* be run.
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 if { { ac_try="$ac_link"
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>&5
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1978 { { case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_try") 2>&5
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; }; }; then :
1990 $as_echo "$as_me: program exited with status $ac_status" >&5
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1994 ac_retval=$ac_status
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists and can be compiled using the include files in
2005 # INCLUDES, setting the cache variable VAR accordingly.
2006 ac_fn_c_check_header_compile ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2019 if ac_fn_c_try_compile "$LINENO"; then :
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 } # ac_fn_c_check_header_compile
2033 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2034 # --------------------------------------------
2035 # Tries to find the compile-time value of EXPR in a program that includes
2036 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2038 ac_fn_c_compute_int ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if test "$cross_compiling" = yes; then
2042 # Depending upon the size, compute the lo and hi bounds.
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2049 static int test_array [1 - 2 * !(($2) >= 0)];
2056 if ac_fn_c_try_compile "$LINENO"; then :
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_hi=$ac_mid; break
2075 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2076 if test $ac_lo -le $ac_mid; then
2080 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2091 static int test_array [1 - 2 * !(($2) < 0)];
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_lo=$ac_mid; break
2117 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2118 if test $ac_mid -le $ac_hi; then
2122 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 # Binary search between lo and hi bounds.
2133 while test "x$ac_lo" != "x$ac_hi"; do
2134 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 if ac_fn_c_try_compile "$LINENO"; then :
2151 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2163 static long int longval () { return $2; }
2164 static unsigned long int ulongval () { return $2; }
2171 FILE *f = fopen ("conftest.val", "w");
2176 long int i = longval ();
2179 fprintf (f, "%ld", i);
2183 unsigned long int i = ulongval ();
2186 fprintf (f, "%lu", i);
2188 /* Do not output a trailing newline, as this causes \r\n confusion
2189 on some platforms. */
2190 return ferror (f) || fclose (f) != 0;
2196 if ac_fn_c_try_run "$LINENO"; then :
2197 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2202 conftest.$ac_objext conftest.beam conftest.$ac_ext
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 } # ac_fn_c_compute_int
2211 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2212 # -------------------------------------------
2213 # Tests whether TYPE exists after having included INCLUDES, setting cache
2214 # variable VAR accordingly.
2215 ac_fn_c_check_type ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2221 $as_echo_n "(cached) " >&6
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2249 if ac_fn_c_try_compile "$LINENO"; then :
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 } # ac_fn_c_check_type
2265 # ac_fn_c_find_intX_t LINENO BITS VAR
2266 # -----------------------------------
2267 # Finds a signed integer type with width BITS, setting cache variable VAR
2269 ac_fn_c_find_intX_t ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2273 $as_echo_n "checking for int$2_t... " >&6; }
2274 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2278 for ac_type in int$2_t 'int' 'long int' \
2279 'long long int' 'short int' 'signed char'; do
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $ac_includes_default
2286 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2300 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2301 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2308 if ac_fn_c_try_compile "$LINENO"; then :
2315 eval "$3=\$ac_type" ;;
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 if test "x$as_val" = x""no; then :
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 } # ac_fn_c_find_intX_t
2336 # ac_fn_c_try_link LINENO
2337 # -----------------------
2338 # Try to link conftest.$ac_ext, and return whether this succeeded.
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 rm -f conftest.$ac_objext conftest$ac_exeext
2343 if { { ac_try="$ac_link"
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349 $as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_link") 2>conftest.err
2352 if test -s conftest.err; then
2353 grep -v '^ *+' conftest.err >conftest.er1
2354 cat conftest.er1 >&5
2355 mv -f conftest.er1 conftest.err
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && {
2359 test -z "$ac_c_werror_flag" ||
2360 test ! -s conftest.err
2361 } && test -s conftest$ac_exeext && {
2362 test "$cross_compiling" = yes ||
2363 $as_test_x conftest$ac_exeext
2367 $as_echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2372 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2373 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2374 # interfere with the next link command; also delete a directory that is
2375 # left behind by Apple's compiler. We do this before executing the actions.
2376 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_try_link
2382 # ac_fn_c_find_uintX_t LINENO BITS VAR
2383 # ------------------------------------
2384 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2386 ac_fn_c_find_uintX_t ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2390 $as_echo_n "checking for uint$2_t... " >&6; }
2391 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2395 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2396 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2403 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2410 if ac_fn_c_try_compile "$LINENO"; then :
2415 eval "$3=\$ac_type" ;;
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 if test "x$as_val" = x""no; then :
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432 } # ac_fn_c_find_uintX_t
2434 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2435 # ----------------------------------------------
2436 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2437 ac_fn_c_check_header_preproc ()
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2441 $as_echo_n "checking for $2... " >&6; }
2442 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2443 $as_echo_n "(cached) " >&6
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2449 if ac_fn_c_try_cpp "$LINENO"; then :
2454 rm -f conftest.err conftest.$ac_ext
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 } # ac_fn_c_check_header_preproc
2463 # ac_fn_c_check_func LINENO FUNC VAR
2464 # ----------------------------------
2465 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2466 ac_fn_c_check_func ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2472 $as_echo_n "(cached) " >&6
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2478 #define $2 innocuous_$2
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $2 (); below.
2482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2483 <limits.h> exists even on freestanding compilers. */
2486 # include <limits.h>
2488 # include <assert.h>
2493 /* Override any GCC internal prototype to avoid an error.
2494 Use char because int might match the return type of a GCC
2495 builtin and then its argument prototype would still apply. */
2500 /* The GNU C library defines this for functions which it implements
2501 to always fail with ENOSYS. Some functions are actually named
2502 something starting with __ and the normal name is an alias. */
2503 #if defined __stub_$2 || defined __stub___$2
2515 if ac_fn_c_try_link "$LINENO"; then :
2520 rm -f core conftest.err conftest.$ac_objext \
2521 conftest$ac_exeext conftest.$ac_ext
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528 } # ac_fn_c_check_func
2530 # ac_fn_cxx_try_cpp LINENO
2531 # ------------------------
2532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2533 ac_fn_cxx_try_cpp ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 if { { ac_try="$ac_cpp conftest.$ac_ext"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2542 $as_echo "$ac_try_echo"; } >&5
2543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2545 if test -s conftest.err; then
2546 grep -v '^ *+' conftest.err >conftest.er1
2547 cat conftest.er1 >&5
2548 mv -f conftest.er1 conftest.err
2550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2551 test $ac_status = 0; } >/dev/null && {
2552 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2553 test ! -s conftest.err
2557 $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 } # ac_fn_cxx_try_cpp
2567 # ac_fn_cxx_try_link LINENO
2568 # -------------------------
2569 # Try to link conftest.$ac_ext, and return whether this succeeded.
2570 ac_fn_cxx_try_link ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 rm -f conftest.$ac_objext conftest$ac_exeext
2574 if { { ac_try="$ac_link"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>conftest.err
2583 if test -s conftest.err; then
2584 grep -v '^ *+' conftest.err >conftest.er1
2585 cat conftest.er1 >&5
2586 mv -f conftest.er1 conftest.err
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; } && {
2590 test -z "$ac_cxx_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest$ac_exeext && {
2593 test "$cross_compiling" = yes ||
2594 $as_test_x conftest$ac_exeext
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605 # interfere with the next link command; also delete a directory that is
2606 # left behind by Apple's compiler. We do this before executing the actions.
2607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 } # ac_fn_cxx_try_link
2612 cat >config.log <<_ACEOF
2613 This file contains any messages produced by compilers while
2614 running configure, to aid debugging if configure makes a mistake.
2616 It was created by $as_me, which was
2617 generated by GNU Autoconf 2.64. Invocation command line was
2629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 $as_echo "PATH: $as_dir"
2669 # Keep a trace of the command line.
2670 # Strip out --no-create and --no-recursion so they do not pile up.
2671 # Strip out --silent because we don't want to record it for future runs.
2672 # Also quote any args containing shell meta-characters.
2673 # Make two passes to allow for proper duplicate-argument suppression.
2677 ac_must_keep_next=false
2683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2685 | -silent | --silent | --silen | --sile | --sil)
2688 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2693 as_fn_append ac_configure_args1 " '$ac_arg'"
2694 if test $ac_must_keep_next = true; then
2695 ac_must_keep_next=false # Got value, back to normal.
2698 *=* | --config-cache | -C | -disable-* | --disable-* \
2699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2701 | -with-* | --with-* | -without-* | --without-* | --x)
2702 case "$ac_configure_args0 " in
2703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706 -* ) ac_must_keep_next=true ;;
2709 as_fn_append ac_configure_args " '$ac_arg'"
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2717 # When interrupted or exit'd, cleanup temporary files, and complete
2718 # config.log. We remove comments because anyway the quotes in there
2719 # would cause problems or look ugly.
2720 # WARNING: Use '\'' to represent an apostrophe within the trap.
2721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722 trap 'exit_status=$?
2723 # Save into config.log some information that might help in debugging.
2728 ## ---------------- ##
2729 ## Cache variables. ##
2730 ## ---------------- ##
2733 # The following way of writing the cache mishandles newlines in values,
2735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736 eval ac_val=\$$ac_var
2740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744 _ | IFS | as_nl) ;; #(
2745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746 *) { eval $ac_var=; unset $ac_var;} ;;
2751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752 *${as_nl}ac_space=\ *)
2754 "s/'\''/'\''\\\\'\'''\''/g;
2755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2766 ## ----------------- ##
2767 ## Output variables. ##
2768 ## ----------------- ##
2771 for ac_var in $ac_subst_vars
2773 eval ac_val=\$$ac_var
2775 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2777 $as_echo "$ac_var='\''$ac_val'\''"
2781 if test -n "$ac_subst_files"; then
2783 ## ------------------- ##
2784 ## File substitutions. ##
2785 ## ------------------- ##
2788 for ac_var in $ac_subst_files
2790 eval ac_val=\$$ac_var
2792 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2794 $as_echo "$ac_var='\''$ac_val'\''"
2799 if test -s confdefs.h; then
2809 test "$ac_signal" != 0 &&
2810 $as_echo "$as_me: caught signal $ac_signal"
2811 $as_echo "$as_me: exit $exit_status"
2813 rm -f core *.core core.conftest.* &&
2814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2817 for ac_signal in 1 2 13 15; do
2818 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2823 rm -f -r conftest* confdefs.h
2825 $as_echo "/* confdefs.h */" > confdefs.h
2827 # Predefined preprocessor variables.
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_NAME "$PACKAGE_NAME"
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_STRING "$PACKAGE_STRING"
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_URL "$PACKAGE_URL"
2854 # Let the site file select an alternate cache file if it wants to.
2855 # Prefer an explicitly selected file to automatically selected ones.
2858 if test -n "$CONFIG_SITE"; then
2859 ac_site_file1=$CONFIG_SITE
2860 elif test "x$prefix" != xNONE; then
2861 ac_site_file1=$prefix/share/config.site
2862 ac_site_file2=$prefix/etc/config.site
2864 ac_site_file1=$ac_default_prefix/share/config.site
2865 ac_site_file2=$ac_default_prefix/etc/config.site
2867 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2869 test "x$ac_site_file" = xNONE && continue
2870 if test -r "$ac_site_file"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2872 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2873 sed 's/^/| /' "$ac_site_file" >&5
2878 if test -r "$cache_file"; then
2879 # Some versions of bash will fail to source /dev/null (special
2880 # files actually), so we avoid doing that.
2881 if test -f "$cache_file"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2883 $as_echo "$as_me: loading cache $cache_file" >&6;}
2885 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2886 *) . "./$cache_file";;
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2891 $as_echo "$as_me: creating cache $cache_file" >&6;}
2895 # Check that the precious variables saved in the cache have kept the same
2897 ac_cache_corrupted=false
2898 for ac_var in $ac_precious_vars; do
2899 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2900 eval ac_new_set=\$ac_env_${ac_var}_set
2901 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2902 eval ac_new_val=\$ac_env_${ac_var}_value
2903 case $ac_old_set,$ac_new_set in
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2906 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2907 ac_cache_corrupted=: ;;
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2914 if test "x$ac_old_val" != "x$ac_new_val"; then
2915 # differences in whitespace do not lead to failure.
2916 ac_old_val_w=`echo x $ac_old_val`
2917 ac_new_val_w=`echo x $ac_new_val`
2918 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2920 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2921 ac_cache_corrupted=:
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2924 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2925 eval $ac_var=\$ac_old_val
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2928 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2930 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2933 # Pass precious variables to config.status.
2934 if test "$ac_new_set" = set; then
2936 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2937 *) ac_arg=$ac_var=$ac_new_val ;;
2939 case " $ac_configure_args " in
2940 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2941 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2945 if $ac_cache_corrupted; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2949 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2950 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2952 ## -------------------- ##
2953 ## Main body of script. ##
2954 ## -------------------- ##
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2970 gcc_version=`cat $srcdir/BASE-VER`
2972 # Determine the host, build, and target systems
2974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2975 for ac_t in install-sh install.sh shtool; do
2976 if test -f "$ac_dir/$ac_t"; then
2978 ac_install_sh="$ac_aux_dir/$ac_t -c"
2983 if test -z "$ac_aux_dir"; then
2984 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2987 # These three variables are undocumented and unsupported,
2988 # and are intended to be withdrawn in a future Autoconf release.
2989 # They can cause serious problems if a builder's source tree is in a directory
2990 # whose full name contains unusual characters.
2991 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2992 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2993 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2996 # Make sure we can run config.sub.
2997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2998 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3001 $as_echo_n "checking build system type... " >&6; }
3002 if test "${ac_cv_build+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3005 ac_build_alias=$build_alias
3006 test "x$ac_build_alias" = x &&
3007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3008 test "x$ac_build_alias" = x &&
3009 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3011 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3015 $as_echo "$ac_cv_build" >&6; }
3016 case $ac_cv_build in
3018 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3021 ac_save_IFS=$IFS; IFS='-'
3027 # Remember, the first character of IFS is used to create $*,
3028 # except with old shells:
3031 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3035 $as_echo_n "checking host system type... " >&6; }
3036 if test "${ac_cv_host+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 if test "x$host_alias" = x; then
3040 ac_cv_host=$ac_cv_build
3042 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3043 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3048 $as_echo "$ac_cv_host" >&6; }
3051 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3054 ac_save_IFS=$IFS; IFS='-'
3060 # Remember, the first character of IFS is used to create $*,
3061 # except with old shells:
3064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3068 $as_echo_n "checking target system type... " >&6; }
3069 if test "${ac_cv_target+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 if test "x$target_alias" = x; then
3073 ac_cv_target=$ac_cv_host
3075 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3076 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3081 $as_echo "$ac_cv_target" >&6; }
3082 case $ac_cv_target in
3084 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3086 target=$ac_cv_target
3087 ac_save_IFS=$IFS; IFS='-'
3093 # Remember, the first character of IFS is used to create $*,
3094 # except with old shells:
3097 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3100 # The aliases save the names the user supplied, while $host etc.
3101 # will get canonicalized.
3102 test -n "$target_alias" &&
3103 test "$program_prefix$program_suffix$program_transform_name" = \
3105 program_prefix=${target_alias}-
3107 # Determine the noncanonical target name, for directory use.
3108 case ${build_alias} in
3109 "") build_noncanonical=${build} ;;
3110 *) build_noncanonical=${build_alias} ;;
3113 case ${host_alias} in
3114 "") host_noncanonical=${build_noncanonical} ;;
3115 *) host_noncanonical=${host_alias} ;;
3118 case ${target_alias} in
3119 "") target_noncanonical=${host_noncanonical} ;;
3120 *) target_noncanonical=${target_alias} ;;
3126 # Determine the target- and build-specific subdirectories
3128 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3129 # have matching libraries, they should use host libraries: Makefile.tpl
3130 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3131 # However, they still use the build modules, because the corresponding
3132 # host modules (e.g. bison) are only built for the host when bootstrap
3134 # - build_subdir is where we find build modules, and never changes.
3135 # - build_libsubdir is where we find build libraries, and can be overridden.
3137 # Prefix 'build-' so this never conflicts with target_subdir.
3138 build_subdir="build-${build_noncanonical}"
3140 # Check whether --with-build-libsubdir was given.
3141 if test "${with_build_libsubdir+set}" = set; then :
3142 withval=$with_build_libsubdir; build_libsubdir="$withval"
3144 build_libsubdir="$build_subdir"
3147 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3148 if ( test $srcdir = . && test -d gcc ) \
3149 || test -d $srcdir/../host-${host_noncanonical}; then
3150 host_subdir="host-${host_noncanonical}"
3155 target_subdir=${target_noncanonical}
3158 # Set program_transform_name
3159 test "$program_prefix" != NONE &&
3160 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3161 # Use a double $ so make ignores it.
3162 test "$program_suffix" != NONE &&
3163 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3164 # Double any \ or $.
3165 # By default was `s,x,x', remove it if useless.
3166 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3167 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3170 # Check for bogus environment variables.
3171 # Test if LIBRARY_PATH contains the notation for the current directory
3172 # since this would lead to problems installing/building glibc.
3173 # LIBRARY_PATH contains the current directory if one of the following
3175 # - one of the terminals (":" and ";") is the first or last sign
3176 # - two terminals occur directly after each other
3177 # - the path contains an element with a dot in it
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3179 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3180 case ${LIBRARY_PATH} in
3181 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3182 library_path_setting="contains current directory"
3185 library_path_setting="ok"
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3189 $as_echo "$library_path_setting" >&6; }
3190 if test "$library_path_setting" != "ok"; then
3192 *** LIBRARY_PATH shouldn't contain the current directory when
3193 *** building gcc. Please change the environment variable
3194 *** and run configure again." "$LINENO" 5
3197 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3198 # since this would lead to problems installing/building glibc.
3199 # GCC_EXEC_PREFIX contains the current directory if one of the following
3201 # - one of the terminals (":" and ";") is the first or last sign
3202 # - two terminals occur directly after each other
3203 # - the path contains an element with a dot in it
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3205 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3206 case ${GCC_EXEC_PREFIX} in
3207 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3208 gcc_exec_prefix_setting="contains current directory"
3211 gcc_exec_prefix_setting="ok"
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3215 $as_echo "$gcc_exec_prefix_setting" >&6; }
3216 if test "$gcc_exec_prefix_setting" != "ok"; then
3218 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3219 *** building gcc. Please change the environment variable
3220 *** and run configure again." "$LINENO" 5
3227 # Specify the local prefix
3230 # Check whether --with-local-prefix was given.
3231 if test "${with_local_prefix+set}" = set; then :
3232 withval=$with_local_prefix; case "${withval}" in
3233 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3235 *) local_prefix=$with_local_prefix ;;
3240 # Default local prefix if it is empty
3241 if test x$local_prefix = x; then
3242 local_prefix=/usr/local
3245 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3246 # passed in by the toplevel make and thus we'd get different behavior
3247 # depending on where we built the sources.
3248 gcc_gxx_include_dir=
3249 # Specify the g++ header file directory
3251 # Check whether --with-gxx-include-dir was given.
3252 if test "${with_gxx_include_dir+set}" = set; then :
3253 withval=$with_gxx_include_dir; case "${withval}" in
3254 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3256 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3261 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3262 if test x${gcc_gxx_include_dir} = x; then
3263 if test x${enable_version_specific_runtime_libs} = xyes; then
3264 gcc_gxx_include_dir='${libsubdir}/include/c++'
3266 libstdcxx_incdir='include/c++/$(version)'
3267 if test x$host != x$target; then
3268 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3270 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3275 # Check whether --with-cpp_install_dir was given.
3276 if test "${with_cpp_install_dir+set}" = set; then :
3277 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3278 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3279 elif test x$withval != xno; then
3280 cpp_install_dir=$withval
3285 # We would like to our source tree to be readonly. However when releases or
3286 # pre-releases are generated, the flex/bison generated files as well as the
3287 # various formats of manuals need to be included along with the rest of the
3288 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3292 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3293 # Check whether --enable-generated-files-in-srcdir was given.
3294 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3295 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3297 generated_files_in_srcdir=no
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3302 $as_echo "$generated_files_in_srcdir" >&6; }
3304 if test "$generated_files_in_srcdir" = "yes"; then
3311 # -------------------
3312 # Find default linker
3313 # -------------------
3317 # Check whether --with-gnu-ld was given.
3318 if test "${with_gnu_ld+set}" = set; then :
3319 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3325 # With pre-defined ld
3327 # Check whether --with-ld was given.
3328 if test "${with_ld+set}" = set; then :
3329 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3332 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3333 if test ! -x "$DEFAULT_LINKER"; then
3334 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3335 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3339 cat >>confdefs.h <<_ACEOF
3340 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3345 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3347 cat >>confdefs.h <<_ACEOF
3348 #define HAVE_GNU_LD $gnu_ld
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3353 $as_echo_n "checking whether a default linker was specified... " >&6; }
3354 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3355 if test x"$gnu_ld_flag" = x"no"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3357 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3360 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3367 # With demangler in GNU ld
3369 # Check whether --with-demangler-in-ld was given.
3370 if test "${with_demangler_in_ld+set}" = set; then :
3371 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3377 # ----------------------
3378 # Find default assembler
3379 # ----------------------
3383 # Check whether --with-gnu-as was given.
3384 if test "${with_gnu_as+set}" = set; then :
3385 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3392 # Check whether --with-as was given.
3393 if test "${with_as+set}" = set; then :
3394 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3397 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3398 if test ! -x "$DEFAULT_ASSEMBLER"; then
3399 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3400 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3404 cat >>confdefs.h <<_ACEOF
3405 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3410 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3412 cat >>confdefs.h <<_ACEOF
3413 #define HAVE_GNU_AS $gnu_as
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3418 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3419 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3420 if test x"$gas_flag" = x"no"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3422 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3425 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3436 # If a non-executable a.out is present (e.g. created by GNU as above even if
3437 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3438 # file, even when creating an executable, so an execution test fails.
3439 # Remove possible default executable files to avoid this.
3441 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3442 # Autoconf includes it.
3443 rm -f a.out a.exe b.out
3445 # Find the native compiler
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3490 if test -z "$ac_cv_prog_CC"; then
3492 # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC="gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3528 if test "x$ac_ct_CC" = x; then
3531 case $cross_compiling:$ac_tool_warned in
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned=yes ;;
3543 if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}cc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_CC="${ac_tool_prefix}cc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3584 if test -z "$CC"; then
3585 # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3592 if test -n "$CC"; then
3593 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604 ac_prog_rejected=yes
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test $ac_prog_rejected = yes; then
3616 # We found a bogon in the path, so make sure we never use it.
3617 set dummy $ac_cv_prog_CC
3619 if test $# != 0; then
3620 # We chose a different compiler from the bogus one.
3621 # However, it has the same basename, so the bogon will be chosen
3622 # first if we set CC to just the basename; use the full file name.
3624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in cl.exe
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$CC" && break
3684 if test -z "$CC"; then
3686 for ac_prog in cl.exe
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$ac_ct_CC"; then
3696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_CC="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3718 $as_echo "$ac_ct_CC" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$ac_ct_CC" && break
3728 if test "x$ac_ct_CC" = x; then
3731 case $cross_compiling:$ac_tool_warned in
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error "no acceptable C compiler found in \$PATH
3747 See \`config.log' for more details." "$LINENO" 5; }
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 for ac_option in --version -v -V -qversion; do
3754 { { ac_try="$ac_compiler $ac_option >&5"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3763 if test -s conftest.err; then
3765 ... rest of stderr output deleted ...
3766 10q' conftest.err >conftest.er1
3767 cat conftest.er1 >&5
3768 rm -f conftest.er1 conftest.err
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 ac_clean_files_save=$ac_clean_files
3786 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3787 # Try to create an executable without -o first, disregard a.out.
3788 # It will help us diagnose broken compilers, and finding out an intuition
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3791 $as_echo_n "checking for C compiler default output file name... " >&6; }
3792 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3794 # The possible output files:
3795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3798 for ac_file in $ac_files
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3807 if { { ac_try="$ac_link_default"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_link_default") 2>&5
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3820 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3821 # so that the user can short-circuit this test for compilers unknown to
3823 for ac_file in $ac_files ''
3825 test -f "$ac_file" || continue
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3830 # We found the default executable, but exeext='' is most
3834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 # We set ac_cv_exeext here because the later test for it is not
3839 # safe: cross compilers may not add the suffix if given an `-o'
3840 # argument, so we may need to know it at that point already.
3841 # Even if this section looks crufty: it has the advantage of
3848 test "$ac_cv_exeext" = no && ac_cv_exeext=
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3854 $as_echo "$ac_file" >&6; }
3855 if test -z "$ac_file"; then :
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 { as_fn_set_status 77
3862 as_fn_error "C compiler cannot create executables
3863 See \`config.log' for more details." "$LINENO" 5; }; }
3865 ac_exeext=$ac_cv_exeext
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3870 $as_echo_n "checking whether the C compiler works... " >&6; }
3871 # If not cross compiling, check that we can run a simple program.
3872 if test "$cross_compiling" != yes; then
3873 if { ac_try='./$ac_file'
3874 { { case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_try") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; }; then
3886 if test "$cross_compiling" = maybe; then
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error "cannot run C compiled programs.
3892 If you meant to cross compile, use \`--host'.
3893 See \`config.log' for more details." "$LINENO" 5; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3898 $as_echo "yes" >&6; }
3900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3901 ac_clean_files=$ac_clean_files_save
3902 # Check that the compiler produces executables we can run. If not, either
3903 # the compiler is broken, or we cross compile.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3905 $as_echo_n "checking whether we are cross compiling... " >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 $as_echo "$cross_compiling" >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3910 $as_echo_n "checking for suffix of executables... " >&6; }
3911 if { { ac_try="$ac_link"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link") 2>&5
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3924 # work properly (i.e., refer to `conftest.exe'), while it won't with
3926 for ac_file in conftest.exe conftest conftest.*; do
3927 test -f "$ac_file" || continue
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "cannot compute suffix of executables: cannot compile and link
3939 See \`config.log' for more details." "$LINENO" 5; }
3941 rm -f conftest$ac_cv_exeext
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3943 $as_echo "$ac_cv_exeext" >&6; }
3945 rm -f conftest.$ac_ext
3946 EXEEXT=$ac_cv_exeext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if test "${ac_cv_objext+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try="$ac_compile"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compile") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error "cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details." "$LINENO" 5; }
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4018 if ac_fn_c_try_compile "$LINENO"; then :
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if test "${ac_cv_prog_cc_g+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4108 if test "$GCC" = yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4119 ac_cv_prog_cc_c89=no
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4141 s = g (p, va_arg (v,int));
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156 inside strings and character constants. */
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break
4184 rm -f conftest.$ac_ext
4189 case "x$ac_cv_prog_cc_c89" in
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4197 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 if test "x$CC" != xcc; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4213 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4216 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4218 set dummy $CC; ac_cc=`$as_echo "$2" |
4219 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4220 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4221 $as_echo_n "(cached) " >&6
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 # Make sure it works both with $CC and with simple cc.
4235 # We do the test twice because some compilers refuse to overwrite an
4236 # existing .o file with -o, though they will create one.
4237 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4239 if { { case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 $as_echo "$ac_try_echo"; } >&5
4245 (eval "$ac_try") 2>&5
4247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; } &&
4249 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_try") 2>&5
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; };
4260 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4261 if test "x$CC" != xcc; then
4262 # Test first that cc exists at all.
4263 if { ac_try='cc -c conftest.$ac_ext >&5'
4264 { { case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 $as_echo "$ac_try_echo"; } >&5
4270 (eval "$ac_try") 2>&5
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }; }; then
4274 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4276 if { { case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_try") 2>&5
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; } &&
4286 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_try") 2>&5
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; };
4300 # cc exists but doesn't like -o.
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308 rm -f core conftest*
4311 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4313 $as_echo "yes" >&6; }
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4318 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4322 # expand $ac_aux_dir to an absolute path
4323 am_aux_dir=`cd $ac_aux_dir && pwd`
4325 # FIXME: we rely on the cache variable name because
4326 # there is no other way.
4328 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4329 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4330 if test "$am_t" != yes; then
4331 # Losing compiler, so override with the script.
4332 # FIXME: It is wrong to rewrite CC.
4333 # But if we don't then we get into trouble of one sort or another.
4334 # A longer-term fix would be to have automake use am__CC in this case,
4335 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4336 CC="$am_aux_dir/compile $CC"
4341 ac_cpp='$CXXCPP $CPPFLAGS'
4342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4345 if test -z "$CXX"; then
4346 if test -n "$CCC"; then
4349 if test -n "$ac_tool_prefix"; then
4350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_CXX+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -n "$CXX"; then
4360 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 if test -n "$CXX"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4382 $as_echo "$CXX" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4389 test -n "$CXX" && break
4392 if test -z "$CXX"; then
4394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4403 if test -n "$ac_ct_CXX"; then
4404 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_ac_ct_CXX="$ac_prog"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4424 if test -n "$ac_ct_CXX"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4426 $as_echo "$ac_ct_CXX" >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4433 test -n "$ac_ct_CXX" && break
4436 if test "x$ac_ct_CXX" = x; then
4439 case $cross_compiling:$ac_tool_warned in
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443 ac_tool_warned=yes ;;
4451 # Provide some information about the compiler.
4452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4455 for ac_option in --version -v -V -qversion; do
4456 { { ac_try="$ac_compiler $ac_option >&5"
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4465 if test -s conftest.err; then
4467 ... rest of stderr output deleted ...
4468 10q' conftest.err >conftest.er1
4469 cat conftest.er1 >&5
4470 rm -f conftest.er1 conftest.err
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4477 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4478 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4505 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4506 if test $ac_compiler_gnu = yes; then
4511 ac_test_CXXFLAGS=${CXXFLAGS+set}
4512 ac_save_CXXFLAGS=$CXXFLAGS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4514 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4515 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4519 ac_cxx_werror_flag=yes
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4533 if ac_fn_cxx_try_compile "$LINENO"; then :
4534 ac_cv_prog_cxx_g=yes
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4548 if ac_fn_cxx_try_compile "$LINENO"; then :
4551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565 ac_cv_prog_cxx_g=yes
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4575 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4576 if test "$ac_test_CXXFLAGS" = set; then
4577 CXXFLAGS=$ac_save_CXXFLAGS
4578 elif test $ac_cv_prog_cxx_g = yes; then
4579 if test "$GXX" = yes; then
4585 if test "$GXX" = yes; then
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 if test -n "$ac_tool_prefix"; then
4601 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4602 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$GNATBIND"; then
4609 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 GNATBIND=$ac_cv_prog_GNATBIND
4629 if test -n "$GNATBIND"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4631 $as_echo "$GNATBIND" >&6; }
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4639 if test -z "$ac_cv_prog_GNATBIND"; then
4640 ac_ct_GNATBIND=$GNATBIND
4641 # Extract the first word of "gnatbind", so it can be a program name with args.
4642 set dummy gnatbind; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4648 if test -n "$ac_ct_GNATBIND"; then
4649 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4669 if test -n "$ac_ct_GNATBIND"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4671 $as_echo "$ac_ct_GNATBIND" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4677 if test "x$ac_ct_GNATBIND" = x; then
4680 case $cross_compiling:$ac_tool_warned in
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4686 GNATBIND=$ac_ct_GNATBIND
4689 GNATBIND="$ac_cv_prog_GNATBIND"
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
4700 if test -n "$GNATMAKE"; then
4701 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 GNATMAKE=$ac_cv_prog_GNATMAKE
4721 if test -n "$GNATMAKE"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4723 $as_echo "$GNATMAKE" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4731 if test -z "$ac_cv_prog_GNATMAKE"; then
4732 ac_ct_GNATMAKE=$GNATMAKE
4733 # Extract the first word of "gnatmake", so it can be a program name with args.
4734 set dummy gnatmake; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -n "$ac_ct_GNATMAKE"; then
4741 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4761 if test -n "$ac_ct_GNATMAKE"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4763 $as_echo "$ac_ct_GNATMAKE" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4769 if test "x$ac_ct_GNATMAKE" = x; then
4772 case $cross_compiling:$ac_tool_warned in
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4778 GNATMAKE=$ac_ct_GNATMAKE
4781 GNATMAKE="$ac_cv_prog_GNATMAKE"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4785 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4786 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 cat >conftest.adb <<EOF
4790 procedure conftest is begin null; end conftest;
4792 acx_cv_cc_gcc_supports_ada=no
4793 # There is a bug in old released versions of GCC which causes the
4794 # driver to exit successfully when the appropriate language module
4795 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4796 # Therefore we must check for the error message as well as an
4797 # unsuccessful exit.
4798 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4799 # given a .adb file, but produce no object file. So we must check
4800 # if an object file was really produced to guard against this.
4801 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4802 if test x"$errors" = x && test -f conftest.$ac_objext; then
4803 acx_cv_cc_gcc_supports_ada=yes
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4808 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4810 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4817 # autoconf is lame and doesn't give us any substitution variable for this.
4818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4819 NO_MINUS_C_MINUS_O=yes
4821 OUTPUT_OPTION='-o $@'
4826 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4827 # optimizations to be activated explicitly by the toplevel.
4829 */prev-gcc/xgcc*) ;;
4830 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4834 # -------------------------
4835 # Check C compiler features
4836 # -------------------------
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4845 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4846 # On Suns, sometimes $CPP names a directory.
4847 if test -n "$CPP" && test -d "$CPP"; then
4850 if test -z "$CPP"; then
4851 if test "${ac_cv_prog_CPP+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4854 # Double quotes because CPP needs to be expanded
4855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4858 for ac_c_preproc_warn_flag in '' yes
4860 # Use a header file that comes with gcc, so configuring glibc
4861 # with a fresh cross-compiler works.
4862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863 # <limits.h> exists even on freestanding compilers.
4864 # On the NeXT, cc -E runs the code through the compiler's parser,
4865 # not just through cpp. "Syntax error" is here to catch this case.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4869 # include <limits.h>
4871 # include <assert.h>
4875 if ac_fn_c_try_cpp "$LINENO"; then :
4878 # Broken: fails on valid input.
4881 rm -f conftest.err conftest.$ac_ext
4883 # OK, works on sane cases. Now check whether nonexistent headers
4884 # can be detected and how.
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <ac_nonexistent.h>
4889 if ac_fn_c_try_cpp "$LINENO"; then :
4890 # Broken: success on invalid input.
4893 # Passes both tests.
4897 rm -f conftest.err conftest.$ac_ext
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then :
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4915 $as_echo "$CPP" >&6; }
4917 for ac_c_preproc_warn_flag in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4928 # include <limits.h>
4930 # include <assert.h>
4934 if ac_fn_c_try_cpp "$LINENO"; then :
4937 # Broken: fails on valid input.
4940 rm -f conftest.err conftest.$ac_ext
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4948 if ac_fn_c_try_cpp "$LINENO"; then :
4949 # Broken: success on invalid input.
4952 # Passes both tests.
4956 rm -f conftest.err conftest.$ac_ext
4959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 rm -f conftest.err conftest.$ac_ext
4961 if $ac_preproc_ok; then :
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4967 See \`config.log' for more details." "$LINENO" 5; }
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4979 if test "${ac_cv_path_GREP+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4982 if test -z "$GREP"; then
4983 ac_path_GREP_found=false
4984 # Loop through the user's path and test for each of PROGNAME-LIST
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989 test -z "$as_dir" && as_dir=.
4990 for ac_prog in grep ggrep; do
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4994 # Check for GNU ac_path_GREP and select it if it is found.
4995 # Check for GNU $ac_path_GREP
4996 case `"$ac_path_GREP" --version 2>&1` in
4998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5001 $as_echo_n 0123456789 >"conftest.in"
5004 cat "conftest.in" "conftest.in" >"conftest.tmp"
5005 mv "conftest.tmp" "conftest.in"
5006 cp "conftest.in" "conftest.nl"
5007 $as_echo 'GREP' >> "conftest.nl"
5008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010 as_fn_arith $ac_count + 1 && ac_count=$as_val
5011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5012 # Best one so far, save it but keep looking for a better one
5013 ac_cv_path_GREP="$ac_path_GREP"
5014 ac_path_GREP_max=$ac_count
5016 # 10*(2^10) chars as input seems more than enough
5017 test $ac_count -gt 10 && break
5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 $ac_path_GREP_found && break 3
5027 if test -z "$ac_cv_path_GREP"; then
5028 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031 ac_cv_path_GREP=$GREP
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5036 $as_echo "$ac_cv_path_GREP" >&6; }
5037 GREP="$ac_cv_path_GREP"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5041 $as_echo_n "checking for egrep... " >&6; }
5042 if test "${ac_cv_path_EGREP+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5046 then ac_cv_path_EGREP="$GREP -E"
5048 if test -z "$EGREP"; then
5049 ac_path_EGREP_found=false
5050 # Loop through the user's path and test for each of PROGNAME-LIST
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 test -z "$as_dir" && as_dir=.
5056 for ac_prog in egrep; do
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5060 # Check for GNU ac_path_EGREP and select it if it is found.
5061 # Check for GNU $ac_path_EGREP
5062 case `"$ac_path_EGREP" --version 2>&1` in
5064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5067 $as_echo_n 0123456789 >"conftest.in"
5070 cat "conftest.in" "conftest.in" >"conftest.tmp"
5071 mv "conftest.tmp" "conftest.in"
5072 cp "conftest.in" "conftest.nl"
5073 $as_echo 'EGREP' >> "conftest.nl"
5074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5076 as_fn_arith $ac_count + 1 && ac_count=$as_val
5077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5078 # Best one so far, save it but keep looking for a better one
5079 ac_cv_path_EGREP="$ac_path_EGREP"
5080 ac_path_EGREP_max=$ac_count
5082 # 10*(2^10) chars as input seems more than enough
5083 test $ac_count -gt 10 && break
5085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 $ac_path_EGREP_found && break 3
5093 if test -z "$ac_cv_path_EGREP"; then
5094 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097 ac_cv_path_EGREP=$EGREP
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5103 $as_echo "$ac_cv_path_EGREP" >&6; }
5104 EGREP="$ac_cv_path_EGREP"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5108 $as_echo_n "checking for ANSI C header files... " >&6; }
5109 if test "${ac_cv_header_stdc+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 ac_cv_header_stdc=yes
5130 ac_cv_header_stdc=no
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 if test $ac_cv_header_stdc = yes; then
5135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142 $EGREP "memchr" >/dev/null 2>&1; then :
5145 ac_cv_header_stdc=no
5151 if test $ac_cv_header_stdc = yes; then
5152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "free" >/dev/null 2>&1; then :
5162 ac_cv_header_stdc=no
5168 if test $ac_cv_header_stdc = yes; then
5169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5170 if test "$cross_compiling" = yes; then :
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5177 #if ((' ' & 0x0FF) == 0x020)
5178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5181 # define ISLOWER(c) \
5182 (('a' <= (c) && (c) <= 'i') \
5183 || ('j' <= (c) && (c) <= 'r') \
5184 || ('s' <= (c) && (c) <= 'z'))
5185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5193 for (i = 0; i < 256; i++)
5194 if (XOR (islower (i), ISLOWER (i))
5195 || toupper (i) != TOUPPER (i))
5200 if ac_fn_c_try_run "$LINENO"; then :
5203 ac_cv_header_stdc=no
5205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5206 conftest.$ac_objext conftest.beam conftest.$ac_ext
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5212 $as_echo "$ac_cv_header_stdc" >&6; }
5213 if test $ac_cv_header_stdc = yes; then
5215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5221 inttypes.h stdint.h unistd.h
5223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5226 eval as_val=\$$as_ac_Header
5227 if test "x$as_val" = x""yes; then :
5228 cat >>confdefs.h <<_ACEOF
5229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5239 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5246 if test "$MINIX" = yes; then
5248 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5251 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5254 $as_echo "#define _MINIX 1" >>confdefs.h
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5260 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5261 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5267 # define __EXTENSIONS__ 1
5268 $ac_includes_default
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 ac_cv_safe_to_define___extensions__=yes
5280 ac_cv_safe_to_define___extensions__=no
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5285 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5286 test $ac_cv_safe_to_define___extensions__ = yes &&
5287 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5289 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5295 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5299 ac_cpp='$CPP $CPPFLAGS'
5300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5305 # On Suns, sometimes $CPP names a directory.
5306 if test -n "$CPP" && test -d "$CPP"; then
5309 if test -z "$CPP"; then
5310 if test "${ac_cv_prog_CPP+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5313 # Double quotes because CPP needs to be expanded
5314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5317 for ac_c_preproc_warn_flag in '' yes
5319 # Use a header file that comes with gcc, so configuring glibc
5320 # with a fresh cross-compiler works.
5321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322 # <limits.h> exists even on freestanding compilers.
5323 # On the NeXT, cc -E runs the code through the compiler's parser,
5324 # not just through cpp. "Syntax error" is here to catch this case.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5328 # include <limits.h>
5330 # include <assert.h>
5334 if ac_fn_c_try_cpp "$LINENO"; then :
5337 # Broken: fails on valid input.
5340 rm -f conftest.err conftest.$ac_ext
5342 # OK, works on sane cases. Now check whether nonexistent headers
5343 # can be detected and how.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #include <ac_nonexistent.h>
5348 if ac_fn_c_try_cpp "$LINENO"; then :
5349 # Broken: success on invalid input.
5352 # Passes both tests.
5356 rm -f conftest.err conftest.$ac_ext
5359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360 rm -f conftest.err conftest.$ac_ext
5361 if $ac_preproc_ok; then :
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5374 $as_echo "$CPP" >&6; }
5376 for ac_c_preproc_warn_flag in '' yes
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5387 # include <limits.h>
5389 # include <assert.h>
5393 if ac_fn_c_try_cpp "$LINENO"; then :
5396 # Broken: fails on valid input.
5399 rm -f conftest.err conftest.$ac_ext
5401 # OK, works on sane cases. Now check whether nonexistent headers
5402 # can be detected and how.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <ac_nonexistent.h>
5407 if ac_fn_c_try_cpp "$LINENO"; then :
5408 # Broken: success on invalid input.
5411 # Passes both tests.
5415 rm -f conftest.err conftest.$ac_ext
5418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5419 rm -f conftest.err conftest.$ac_ext
5420 if $ac_preproc_ok; then :
5423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5425 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5426 See \`config.log' for more details." "$LINENO" 5; }
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5436 $as_echo_n "checking for inline... " >&6; }
5437 if test "${ac_cv_c_inline+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5441 for ac_kw in inline __inline__ __inline; do
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5446 static $ac_kw foo_t static_foo () {return 0; }
5447 $ac_kw foo_t foo () {return 0; }
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452 ac_cv_c_inline=$ac_kw
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 test "$ac_cv_c_inline" != no && break
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5460 $as_echo "$ac_cv_c_inline" >&6; }
5462 case $ac_cv_c_inline in
5465 case $ac_cv_c_inline in
5467 *) ac_val=$ac_cv_c_inline;;
5469 cat >>confdefs.h <<_ACEOF
5471 #define inline $ac_val
5478 # sizeof(char) is 1 by definition.
5479 # The cast to long int works around a bug in the HP C Compiler
5480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5482 # This bug is HP SR number 8606223364.
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5484 $as_echo_n "checking size of void *... " >&6; }
5485 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5491 if test "$ac_cv_type_void_p" = yes; then
5492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5494 { as_fn_set_status 77
5495 as_fn_error "cannot compute sizeof (void *)
5496 See \`config.log' for more details." "$LINENO" 5; }; }
5498 ac_cv_sizeof_void_p=0
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5504 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5508 cat >>confdefs.h <<_ACEOF
5509 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5513 # The cast to long int works around a bug in the HP C Compiler
5514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5516 # This bug is HP SR number 8606223364.
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5518 $as_echo_n "checking size of short... " >&6; }
5519 if test "${ac_cv_sizeof_short+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5525 if test "$ac_cv_type_short" = yes; then
5526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5528 { as_fn_set_status 77
5529 as_fn_error "cannot compute sizeof (short)
5530 See \`config.log' for more details." "$LINENO" 5; }; }
5532 ac_cv_sizeof_short=0
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5538 $as_echo "$ac_cv_sizeof_short" >&6; }
5542 cat >>confdefs.h <<_ACEOF
5543 #define SIZEOF_SHORT $ac_cv_sizeof_short
5547 # The cast to long int works around a bug in the HP C Compiler
5548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5550 # This bug is HP SR number 8606223364.
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5552 $as_echo_n "checking size of int... " >&6; }
5553 if test "${ac_cv_sizeof_int+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5559 if test "$ac_cv_type_int" = yes; then
5560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5562 { as_fn_set_status 77
5563 as_fn_error "cannot compute sizeof (int)
5564 See \`config.log' for more details." "$LINENO" 5; }; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5572 $as_echo "$ac_cv_sizeof_int" >&6; }
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_INT $ac_cv_sizeof_int
5581 # The cast to long int works around a bug in the HP C Compiler
5582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5584 # This bug is HP SR number 8606223364.
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5586 $as_echo_n "checking size of long... " >&6; }
5587 if test "${ac_cv_sizeof_long+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5593 if test "$ac_cv_type_long" = yes; then
5594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5596 { as_fn_set_status 77
5597 as_fn_error "cannot compute sizeof (long)
5598 See \`config.log' for more details." "$LINENO" 5; }; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5606 $as_echo "$ac_cv_sizeof_long" >&6; }
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_LONG $ac_cv_sizeof_long
5615 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5616 if test "x$ac_cv_type_long_long" = x""yes; then :
5618 cat >>confdefs.h <<_ACEOF
5619 #define HAVE_LONG_LONG 1
5622 # The cast to long int works around a bug in the HP C Compiler
5623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5625 # This bug is HP SR number 8606223364.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5627 $as_echo_n "checking size of long long... " >&6; }
5628 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5634 if test "$ac_cv_type_long_long" = yes; then
5635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637 { as_fn_set_status 77
5638 as_fn_error "cannot compute sizeof (long long)
5639 See \`config.log' for more details." "$LINENO" 5; }; }
5641 ac_cv_sizeof_long_long=0
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5647 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5651 cat >>confdefs.h <<_ACEOF
5652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5658 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5659 if test "x$ac_cv_type___int64" = x""yes; then :
5661 cat >>confdefs.h <<_ACEOF
5662 #define HAVE___INT64 1
5665 # The cast to long int works around a bug in the HP C Compiler
5666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5668 # This bug is HP SR number 8606223364.
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5670 $as_echo_n "checking size of __int64... " >&6; }
5671 if test "${ac_cv_sizeof___int64+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5674 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5677 if test "$ac_cv_type___int64" = yes; then
5678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5680 { as_fn_set_status 77
5681 as_fn_error "cannot compute sizeof (__int64)
5682 See \`config.log' for more details." "$LINENO" 5; }; }
5684 ac_cv_sizeof___int64=0
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5690 $as_echo "$ac_cv_sizeof___int64" >&6; }
5694 cat >>confdefs.h <<_ACEOF
5695 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5701 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5702 case $ac_cv_c_int8_t in #(
5706 cat >>confdefs.h <<_ACEOF
5707 #define int8_t $ac_cv_c_int8_t
5712 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5713 case $ac_cv_c_int16_t in #(
5717 cat >>confdefs.h <<_ACEOF
5718 #define int16_t $ac_cv_c_int16_t
5723 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5724 case $ac_cv_c_int32_t in #(
5728 cat >>confdefs.h <<_ACEOF
5729 #define int32_t $ac_cv_c_int32_t
5734 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5735 case $ac_cv_c_int64_t in #(
5739 cat >>confdefs.h <<_ACEOF
5740 #define int64_t $ac_cv_c_int64_t
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5747 $as_echo_n "checking for long long int... " >&6; }
5748 if test "${ac_cv_type_long_long_int+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5754 /* For now, do not test the preprocessor; as of 2007 there are too many
5755 implementations with broken preprocessors. Perhaps this can
5756 be revisited in 2012. In the meantime, code should not expect
5757 #if to work with literals wider than 32 bits. */
5758 /* Test literals. */
5759 long long int ll = 9223372036854775807ll;
5760 long long int nll = -9223372036854775807LL;
5761 unsigned long long int ull = 18446744073709551615ULL;
5762 /* Test constant expressions. */
5763 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5765 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5771 /* Test availability of runtime routines for shift and division. */
5772 long long int llmax = 9223372036854775807ll;
5773 unsigned long long int ullmax = 18446744073709551615ull;
5774 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5775 | (llmax / ll) | (llmax % ll)
5776 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5777 | (ullmax / ull) | (ullmax % ull));
5783 if ac_fn_c_try_link "$LINENO"; then :
5784 if test "$cross_compiling" = yes; then :
5785 ac_cv_type_long_long_int=yes
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5792 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5793 # define LLONG_MAX (HALF - 1 + HALF)
5798 long long int n = 1;
5802 long long int m = n << i;
5805 if (LLONG_MAX / 2 < m)
5813 if ac_fn_c_try_run "$LINENO"; then :
5814 ac_cv_type_long_long_int=yes
5816 ac_cv_type_long_long_int=no
5818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5819 conftest.$ac_objext conftest.beam conftest.$ac_ext
5823 ac_cv_type_long_long_int=no
5825 rm -f core conftest.err conftest.$ac_objext \
5826 conftest$ac_exeext conftest.$ac_ext
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5829 $as_echo "$ac_cv_type_long_long_int" >&6; }
5830 if test $ac_cv_type_long_long_int = yes; then
5832 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5838 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5839 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5841 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5844 test $ac_cv_type_long_long_int = yes \
5845 && ac_type='long long int' \
5846 || ac_type='long int'
5848 cat >>confdefs.h <<_ACEOF
5849 #define intmax_t $ac_type
5856 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5857 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5859 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5862 for ac_type in 'int' 'long int' 'long long int'; do
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 $ac_includes_default
5869 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5876 if ac_fn_c_try_compile "$LINENO"; then :
5878 cat >>confdefs.h <<_ACEOF
5879 #define intptr_t $ac_type
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 test -z "$ac_type" && break
5890 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5891 case $ac_cv_c_uint8_t in #(
5895 $as_echo "#define _UINT8_T 1" >>confdefs.h
5898 cat >>confdefs.h <<_ACEOF
5899 #define uint8_t $ac_cv_c_uint8_t
5904 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5905 case $ac_cv_c_uint16_t in #(
5910 cat >>confdefs.h <<_ACEOF
5911 #define uint16_t $ac_cv_c_uint16_t
5916 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5917 case $ac_cv_c_uint32_t in #(
5921 $as_echo "#define _UINT32_T 1" >>confdefs.h
5924 cat >>confdefs.h <<_ACEOF
5925 #define uint32_t $ac_cv_c_uint32_t
5930 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5931 case $ac_cv_c_uint64_t in #(
5935 $as_echo "#define _UINT64_T 1" >>confdefs.h
5938 cat >>confdefs.h <<_ACEOF
5939 #define uint64_t $ac_cv_c_uint64_t
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5946 $as_echo_n "checking for unsigned long long int... " >&6; }
5947 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5953 /* For now, do not test the preprocessor; as of 2007 there are too many
5954 implementations with broken preprocessors. Perhaps this can
5955 be revisited in 2012. In the meantime, code should not expect
5956 #if to work with literals wider than 32 bits. */
5957 /* Test literals. */
5958 long long int ll = 9223372036854775807ll;
5959 long long int nll = -9223372036854775807LL;
5960 unsigned long long int ull = 18446744073709551615ULL;
5961 /* Test constant expressions. */
5962 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5964 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5970 /* Test availability of runtime routines for shift and division. */
5971 long long int llmax = 9223372036854775807ll;
5972 unsigned long long int ullmax = 18446744073709551615ull;
5973 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5974 | (llmax / ll) | (llmax % ll)
5975 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5976 | (ullmax / ull) | (ullmax % ull));
5982 if ac_fn_c_try_link "$LINENO"; then :
5983 ac_cv_type_unsigned_long_long_int=yes
5985 ac_cv_type_unsigned_long_long_int=no
5987 rm -f core conftest.err conftest.$ac_objext \
5988 conftest$ac_exeext conftest.$ac_ext
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5991 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5992 if test $ac_cv_type_unsigned_long_long_int = yes; then
5994 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6000 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6001 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6003 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6006 test $ac_cv_type_unsigned_long_long_int = yes \
6007 && ac_type='unsigned long long int' \
6008 || ac_type='unsigned long int'
6010 cat >>confdefs.h <<_ACEOF
6011 #define uintmax_t $ac_type
6018 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6019 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6021 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6024 for ac_type in 'unsigned int' 'unsigned long int' \
6025 'unsigned long long int'; do
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 $ac_includes_default
6032 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6039 if ac_fn_c_try_compile "$LINENO"; then :
6041 cat >>confdefs.h <<_ACEOF
6042 #define uintptr_t $ac_type
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 test -z "$ac_type" && break
6066 # ---------------------
6067 # Warnings and checking
6068 # ---------------------
6070 # Check $CC warning features (if it's GCC).
6071 # We want to use -pedantic, but we don't want warnings about
6074 # * overlong strings
6075 # So, we only use -pedantic if we can disable those warnings.
6078 save_CFLAGS="$CFLAGS"
6079 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6080 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6083 $as_echo_n "checking whether $CC supports $option... " >&6; }
6084 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6085 $as_echo_n "(cached) " >&6
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6099 if ac_fn_c_try_compile "$LINENO"; then :
6100 eval "$as_acx_Woption=yes"
6102 eval "$as_acx_Woption=no"
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 eval ac_res=\$$as_acx_Woption
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6109 $as_echo "$ac_res" >&6; }
6110 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6111 loose_warn="$loose_warn${loose_warn:+ }$option"
6114 CFLAGS="$save_CFLAGS"
6117 save_CFLAGS="$CFLAGS"
6118 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6119 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6122 $as_echo_n "checking whether $CC supports $option... " >&6; }
6123 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6124 $as_echo_n "(cached) " >&6
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 eval "$as_acx_Woption=yes"
6141 eval "$as_acx_Woption=no"
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 eval ac_res=\$$as_acx_Woption
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6148 $as_echo "$ac_res" >&6; }
6149 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6150 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6153 CFLAGS="$save_CFLAGS"
6156 save_CFLAGS="$CFLAGS"
6157 for option in -Wmissing-format-attribute; do
6158 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6161 $as_echo_n "checking whether $CC supports $option... " >&6; }
6162 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6163 $as_echo_n "(cached) " >&6
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 eval "$as_acx_Woption=yes"
6180 eval "$as_acx_Woption=no"
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 eval ac_res=\$$as_acx_Woption
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6187 $as_echo "$ac_res" >&6; }
6188 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6189 strict_warn="$strict_warn${strict_warn:+ }$option"
6192 CFLAGS="$save_CFLAGS"
6195 save_CFLAGS="$CFLAGS"
6196 for option in -Wold-style-definition -Wc++-compat; do
6197 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6200 $as_echo_n "checking whether $CC supports $option... " >&6; }
6201 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6202 $as_echo_n "(cached) " >&6
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 eval "$as_acx_Woption=yes"
6219 eval "$as_acx_Woption=no"
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 eval ac_res=\$$as_acx_Woption
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6226 $as_echo "$ac_res" >&6; }
6227 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6228 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6231 CFLAGS="$save_CFLAGS"
6233 if test "$GCC" = yes; then :
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6235 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6236 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6239 save_CFLAGS="$CFLAGS"
6240 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6255 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 CFLAGS="$save_CFLAGS"
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6261 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6262 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6263 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6268 # Check whether --enable-werror-always was given.
6269 if test "${enable_werror_always+set}" = set; then :
6270 enableval=$enable_werror_always;
6272 enable_werror_always=no
6275 if test $enable_werror_always = yes; then :
6276 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6281 # The above macros do nothing if the compiler is not GCC. However, the
6282 # Makefile has more goo to add other flags, so these variables are used
6283 # to enable warnings only for GCC.
6286 if test "x$GCC" = "xyes"; then
6287 warn_cflags='$(GCC_WARN_CFLAGS)'
6288 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6293 # Enable expensive internal checks
6295 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6299 # Check whether --enable-checking was given.
6300 if test "${enable_checking+set}" = set; then :
6301 enableval=$enable_checking; ac_checking_flags="${enableval}"
6304 # Determine the default checks.
6305 if test x$is_release = x ; then
6306 ac_checking_flags=yes
6308 ac_checking_flags=release
6312 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6313 for check in release $ac_checking_flags
6316 # these set all the flags to specific states
6317 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6318 ac_fold_checking= ; ac_gc_checking=1 ;
6319 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6320 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6321 ac_tree_checking=1 ; ac_valgrind_checking= ;
6322 ac_types_checking=1 ;;
6323 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6324 ac_fold_checking= ; ac_gc_checking= ;
6325 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6326 ac_rtlflag_checking= ; ac_runtime_checking= ;
6327 ac_tree_checking= ; ac_valgrind_checking= ;
6328 ac_types_checking= ;;
6329 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6330 ac_fold_checking=1 ; ac_gc_checking=1 ;
6331 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6332 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6333 ac_tree_checking=1 ; ac_valgrind_checking= ;
6334 ac_types_checking=1 ;;
6335 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6336 ac_fold_checking= ; ac_gc_checking= ;
6337 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6338 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6339 ac_tree_checking= ; ac_valgrind_checking= ;
6340 ac_types_checking= ;;
6341 # these enable particular checks
6342 assert) ac_assert_checking=1 ;;
6343 df) ac_df_checking=1 ;;
6344 fold) ac_fold_checking=1 ;;
6345 gc) ac_gc_checking=1 ;;
6346 gcac) ac_gc_always_collect=1 ;;
6347 gimple) ac_gimple_checking=1 ;;
6348 misc) ac_checking=1 ;;
6349 rtl) ac_rtl_checking=1 ;;
6350 rtlflag) ac_rtlflag_checking=1 ;;
6351 runtime) ac_runtime_checking=1 ;;
6352 tree) ac_tree_checking=1 ;;
6353 types) ac_types_checking=1 ;;
6354 valgrind) ac_valgrind_checking=1 ;;
6355 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6361 if test x$ac_checking != x ; then
6363 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6365 nocommon_flag=-fno-common
6368 if test x$ac_df_checking != x ; then
6370 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6373 if test x$ac_assert_checking != x ; then
6375 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6378 if test x$ac_gimple_checking != x ; then
6380 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6384 if test x$ac_runtime_checking != x ; then
6386 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6389 if test x$ac_tree_checking != x ; then
6391 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6393 TREEBROWSER=tree-browser.o
6395 if test x$ac_types_checking != x ; then
6397 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6401 if test x$ac_rtl_checking != x ; then
6403 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6406 if test x$ac_rtlflag_checking != x ; then
6408 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6411 if test x$ac_gc_checking != x ; then
6413 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6416 if test x$ac_gc_always_collect != x ; then
6418 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6421 if test x$ac_fold_checking != x ; then
6423 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6426 valgrind_path_defines=
6429 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6430 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6438 if test x$ac_valgrind_checking != x ; then
6439 # It is certainly possible that there's valgrind but no valgrind.h.
6440 # GCC relies on making annotations so we must have both.
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6442 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 #include <valgrind/memcheck.h>
6446 #ifndef VALGRIND_DISCARD
6447 #error VALGRIND_DISCARD not defined
6450 if ac_fn_c_try_cpp "$LINENO"; then :
6451 gcc_cv_header_valgrind_memcheck_h=yes
6453 gcc_cv_header_valgrind_memcheck_h=no
6455 rm -f conftest.err conftest.$ac_ext
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6457 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6459 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462 #include <memcheck.h>
6463 #ifndef VALGRIND_DISCARD
6464 #error VALGRIND_DISCARD not defined
6467 if ac_fn_c_try_cpp "$LINENO"; then :
6468 gcc_cv_header_memcheck_h=yes
6470 gcc_cv_header_memcheck_h=no
6472 rm -f conftest.err conftest.$ac_ext
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6474 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6476 # Prepare PATH_SEPARATOR.
6477 # The user is always right.
6478 if test "${PATH_SEPARATOR+set}" != set; then
6479 echo "#! /bin/sh" >conf$$.sh
6480 echo "exit 0" >>conf$$.sh
6482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6490 # Find out how to test for executable files. Don't use a zero-byte file,
6491 # as systems may use methods other than mode bits to determine executability.
6492 cat >conf$$.file <<_ASEOF
6496 chmod +x conf$$.file
6497 if test -x conf$$.file >/dev/null 2>&1; then
6498 ac_executable_p="test -x"
6500 ac_executable_p="test -f"
6504 # Extract the first word of "valgrind", so it can be a program name with args.
6505 set dummy valgrind; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6511 case "$valgrind_path" in
6513 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6516 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6517 for ac_dir in $PATH; do
6519 test -z "$ac_dir" && ac_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6522 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6523 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6533 valgrind_path="$ac_cv_path_valgrind_path"
6534 if test -n "$valgrind_path"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6536 $as_echo "$valgrind_path" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6542 if test "x$valgrind_path" = "x" \
6543 || (test $have_valgrind_h = no \
6544 && test $gcc_cv_header_memcheck_h = no \
6545 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6546 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6548 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6549 valgrind_command="$valgrind_path -q"
6551 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6553 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6555 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6558 if test $gcc_cv_header_memcheck_h = yes; then
6560 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6567 # Enable code coverage collection
6568 # Check whether --enable-coverage was given.
6569 if test "${enable_coverage+set}" = set; then :
6570 enableval=$enable_coverage; case "${enableval}" in
6572 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6575 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6578 # a.k.a. --disable-coverage
6582 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6591 # Check whether --enable-gather-detailed-mem-stats was given.
6592 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6593 enableval=$enable_gather_detailed_mem_stats;
6595 enable_gather_detailed_mem_stats=no
6598 if test x$enable_gather_detailed_mem_stats = xyes ; then
6600 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6604 # -------------------------------
6605 # Miscenalleous configure options
6606 # -------------------------------
6608 # See if we are building gcc with C++.
6609 # Check whether --enable-build-with-cxx was given.
6610 if test "${enable_build_with_cxx+set}" = set; then :
6611 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6613 ENABLE_BUILD_WITH_CXX=no
6620 # Check whether --with-stabs was given.
6621 if test "${with_stabs+set}" = set; then :
6622 withval=$with_stabs; stabs="$with_stabs"
6628 # Determine whether or not multilibs are enabled.
6629 # Check whether --enable-multilib was given.
6630 if test "${enable_multilib+set}" = set; then :
6631 enableval=$enable_multilib;
6638 # Enable __cxa_atexit for C++.
6639 # Check whether --enable-__cxa_atexit was given.
6640 if test "${enable___cxa_atexit+set}" = set; then :
6641 enableval=$enable___cxa_atexit;
6645 # Enable C extension for decimal float if target supports it.
6646 # Check whether --enable-decimal-float was given.
6647 if test "${enable_decimal_float+set}" = set; then :
6648 enableval=$enable_decimal_float;
6649 case $enable_decimal_float in
6650 yes | no | bid | dpd) ;;
6651 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6652 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6658 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6659 enable_decimal_float=yes
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6663 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6664 enable_decimal_float=no
6671 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6673 cat >>confdefs.h <<_ACEOF
6674 #define ENABLE_DECIMAL_FLOAT $dfp
6678 # x86's use BID format instead of DPD
6679 case x$enable_decimal_float in
6682 i?86*-*-linux* | x86_64*-*-linux*)
6683 enable_decimal_float=bid
6686 enable_decimal_float=dpd
6691 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6692 # dependency on libdecnumber.
6693 enable_decimal_float=dpd
6698 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6700 cat >>confdefs.h <<_ACEOF
6701 #define ENABLE_DECIMAL_BID_FORMAT $bid
6705 # Enable C extension for fixed-point arithmetic.
6706 # Check whether --enable-fixed-point was given.
6707 if test "${enable_fixed_point+set}" = set; then :
6708 enableval=$enable_fixed_point;
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6717 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6718 enable_fixed_point=no
6721 enable_fixed_point=yes
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6727 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6728 enable_fixed_point=no
6736 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6738 cat >>confdefs.h <<_ACEOF
6739 #define ENABLE_FIXED_POINT $fixedpoint
6744 # Pass with no value to take the default
6745 # Pass with a value to specify a thread package
6746 # Check whether --enable-threads was given.
6747 if test "${enable_threads+set}" = set; then :
6748 enableval=$enable_threads;
6754 # Check whether --enable-tls was given.
6755 if test "${enable_tls+set}" = set; then :
6756 enableval=$enable_tls;
6759 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6760 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6768 # Check whether --enable-objc-gc was given.
6769 if test "${enable_objc_gc+set}" = set; then :
6770 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6781 # Check whether --with-dwarf2 was given.
6782 if test "${with_dwarf2+set}" = set; then :
6783 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6789 # Check whether --enable-shared was given.
6790 if test "${enable_shared+set}" = set; then :
6791 enableval=$enable_shared;
6792 case $enable_shared in
6796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6797 for pkg in $enableval; do
6798 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6813 # Check whether --with-build-sysroot was given.
6814 if test "${with_build_sysroot+set}" = set; then :
6815 withval=$with_build_sysroot;
6820 # Check whether --with-sysroot was given.
6821 if test "${with_sysroot+set}" = set; then :
6822 withval=$with_sysroot;
6823 case ${with_sysroot} in
6824 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6825 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6828 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6829 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6831 if test "x$prefix" = xNONE; then
6832 test_prefix=/usr/local
6836 if test "x$exec_prefix" = xNONE; then
6837 test_exec_prefix=$test_prefix
6839 test_exec_prefix=$exec_prefix
6841 case ${TARGET_SYSTEM_ROOT} in
6842 "${test_prefix}"|"${test_prefix}/"*|\
6843 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6844 '${prefix}'|'${prefix}/'*|\
6845 '${exec_prefix}'|'${exec_prefix}/'*)
6846 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6847 TARGET_SYSTEM_ROOT_DEFINE="$t"
6854 TARGET_SYSTEM_ROOT_DEFINE=
6855 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6864 # Check whether --with-specs was given.
6865 if test "${with_specs+set}" = set; then :
6866 withval=$with_specs; CONFIGURE_SPECS=$withval
6874 # Build with intermodule optimisations
6875 # Check whether --enable-intermodule was given.
6876 if test "${enable_intermodule+set}" = set; then :
6877 enableval=$enable_intermodule; case ${enable_intermodule} in
6878 yes) onestep="-onestep";;
6889 # Check whether --with-pkgversion was given.
6890 if test "${with_pkgversion+set}" = set; then :
6891 withval=$with_pkgversion; case "$withval" in
6892 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6894 *) PKGVERSION="($withval) " ;;
6905 # Check whether --with-bugurl was given.
6906 if test "${with_bugurl+set}" = set; then :
6907 withval=$with_bugurl; case "$withval" in
6908 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6911 *) BUGURL="$withval"
6915 BUGURL="http://gcc.gnu.org/bugs.html"
6925 REPORT_BUGS_TO="<$BUGURL>"
6926 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6933 # Sanity check enable_languages in case someone does not run the toplevel
6934 # configure # script.
6935 # Check whether --enable-languages was given.
6936 if test "${enable_languages+set}" = set; then :
6937 enableval=$enable_languages; case ,${enable_languages}, in
6939 # go safe -- we cannot be much sure without the toplevel
6941 # analysis of which target libs are present and usable
6945 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6950 enable_languages=c,${enable_languages}
6959 # Check whether --with-multilib-list was given.
6960 if test "${with_multilib_list+set}" = set; then :
6961 withval=$with_multilib_list; :
6963 with_multilib_list=default
6967 # -------------------------
6968 # Checks for other programs
6969 # -------------------------
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6974 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6975 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6976 $as_echo_n "(cached) " >&6
6978 cat >conftest.make <<\_ACEOF
6981 @echo '@@@%%%=$(MAKE)=@@@%%%'
6983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6986 eval ac_cv_prog_make_${ac_make}_set=yes;;
6988 eval ac_cv_prog_make_${ac_make}_set=no;;
6992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6994 $as_echo "yes" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 SET_MAKE="MAKE=${MAKE-make}"
7003 # Find some useful tools
7004 for ac_prog in gawk mawk nawk awk
7006 # Extract the first word of "$ac_prog", so it can be a program name with args.
7007 set dummy $ac_prog; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if test "${ac_cv_prog_AWK+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7013 if test -n "$AWK"; then
7014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_AWK="$ac_prog"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 if test -n "$AWK"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7036 $as_echo "$AWK" >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7043 test -n "$AWK" && break
7046 # We need awk to create options.c and options.h.
7047 # Bail out if it's missing.
7049 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7053 $as_echo_n "checking whether ln -s works... " >&6; }
7054 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7057 rm -f conftestdata_t
7058 echo >conftestdata_f
7059 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7061 gcc_cv_prog_LN_S="ln -s"
7063 if ln conftestdata_f conftestdata_t 2>/dev/null
7067 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7069 gcc_cv_prog_LN_S="cp -p"
7075 rm -f conftestdata_f conftestdata_t
7078 LN_S="$gcc_cv_prog_LN_S"
7079 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7081 $as_echo "yes" >&6; }
7083 if test "$gcc_cv_prog_LN_S" = "ln"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7085 $as_echo "no, using ln" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7088 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7093 $as_echo_n "checking whether ln works... " >&6; }
7094 if test "${acx_cv_prog_LN+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 rm -f conftestdata_t
7098 echo >conftestdata_f
7099 if ln conftestdata_f conftestdata_t 2>/dev/null
7105 rm -f conftestdata_f conftestdata_t
7108 if test $acx_cv_prog_LN = no; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7111 $as_echo "no, using $LN" >&6; }
7113 LN="$acx_cv_prog_LN"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7115 $as_echo "yes" >&6; }
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7126 if test -n "$RANLIB"; then
7127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 RANLIB=$ac_cv_prog_RANLIB
7147 if test -n "$RANLIB"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7149 $as_echo "$RANLIB" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7157 if test -z "$ac_cv_prog_RANLIB"; then
7158 ac_ct_RANLIB=$RANLIB
7159 # Extract the first word of "ranlib", so it can be a program name with args.
7160 set dummy ranlib; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7166 if test -n "$ac_ct_RANLIB"; then
7167 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_ac_ct_RANLIB="ranlib"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7187 if test -n "$ac_ct_RANLIB"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7189 $as_echo "$ac_ct_RANLIB" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7195 if test "x$ac_ct_RANLIB" = x; then
7198 case $cross_compiling:$ac_tool_warned in
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7204 RANLIB=$ac_ct_RANLIB
7207 RANLIB="$ac_cv_prog_RANLIB"
7212 # By default, the Darwin ranlib will not treat common symbols as
7213 # definitions when building the archive table of contents. Other
7214 # ranlibs do that; pass an option to the Darwin ranlib that makes
7215 # it behave similarly.
7223 # Find a good install program. We prefer a C program (faster),
7224 # so one script is as good as another. But avoid the broken or
7225 # incompatible versions:
7226 # SysV /etc/install, /usr/sbin/install
7227 # SunOS /usr/etc/install
7228 # IRIX /sbin/install
7230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7232 # ./install, which can be erroneously created by make from ./install.sh.
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7234 $as_echo_n "checking for a BSD compatible install... " >&6; }
7235 if test -z "$INSTALL"; then
7236 if test "${ac_cv_path_install+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7239 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7240 for ac_dir in $PATH; do
7241 # Account for people who put trailing slashes in PATH elements.
7243 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7245 # OSF1 and SCO ODT 3.0 have their own names for install.
7246 for ac_prog in ginstall scoinst install; do
7247 if test -f $ac_dir/$ac_prog; then
7248 if test $ac_prog = install &&
7249 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7250 # AIX install. It has an incompatible calling convention.
7251 # OSF/1 installbsd also uses dspmsg, but is usable.
7254 ac_cv_path_install="$ac_dir/$ac_prog -c"
7265 if test "${ac_cv_path_install+set}" = set; then
7266 INSTALL="$ac_cv_path_install"
7268 # As a last resort, use the slow shell script. We don't cache a
7269 # path for INSTALL within a source directory, because that will
7270 # break other packages using the cache if that directory is
7271 # removed, or if the path is relative.
7272 INSTALL="$ac_install_sh"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7276 $as_echo "$INSTALL" >&6; }
7278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7279 # It thinks the first close brace ends the variable substitution.
7280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7285 # See if cmp has --ignore-initial.
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7287 $as_echo_n "checking for cmp's capabilities... " >&6; }
7288 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7293 gcc_cv_prog_cmp_skip=slowcompare
7294 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7295 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7298 gcc_cv_prog_cmp_skip=gnucompare
7301 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7302 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7303 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7306 gcc_cv_prog_cmp_skip=fastcompare
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7314 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7315 make_compare_target=$gcc_cv_prog_cmp_skip
7319 # See if we have the mktemp command.
7320 # Extract the first word of "mktemp", so it can be a program name with args.
7321 set dummy mktemp; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7327 if test -n "$have_mktemp_command"; then
7328 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_have_mktemp_command="yes"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7348 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7349 if test -n "$have_mktemp_command"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7351 $as_echo "$have_mktemp_command" >&6; }
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7359 # See if makeinfo has been installed and is modern enough
7360 # that we can use it.
7362 # Extract the first word of "makeinfo", so it can be a program name with args.
7363 set dummy makeinfo; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7369 if test -n "$MAKEINFO"; then
7370 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_MAKEINFO="makeinfo"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 MAKEINFO=$ac_cv_prog_MAKEINFO
7390 if test -n "$MAKEINFO"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7392 $as_echo "$MAKEINFO" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7399 if test -n "$MAKEINFO"; then
7400 # Found it, now check the version.
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7402 $as_echo_n "checking for modern makeinfo... " >&6; }
7403 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7406 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7407 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7409 case $ac_prog_version in
7410 '') gcc_cv_prog_makeinfo_modern=no;;
7411 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7412 *) gcc_cv_prog_makeinfo_modern=no;;
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7417 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7419 gcc_cv_prog_makeinfo_modern=no
7421 if test $gcc_cv_prog_makeinfo_modern = no; then
7422 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7425 if test $gcc_cv_prog_makeinfo_modern = no; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7427 *** Makeinfo is missing or too old.
7428 *** Info documentation will not be built." >&5
7429 $as_echo "$as_me: WARNING:
7430 *** Makeinfo is missing or too old.
7431 *** Info documentation will not be built." >&2;}
7438 # Is pod2man recent enough to regenerate manpages?
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7440 $as_echo_n "checking for recent Pod::Man... " >&6; }
7441 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7444 GENERATED_MANPAGES=generated-manpages
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7452 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if test "${ac_cv_prog_FLEX+set}" = set; then :
7462 $as_echo_n "(cached) " >&6
7464 if test -n "$FLEX"; then
7465 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_prog_FLEX="$ac_prog"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 FLEX=$ac_cv_prog_FLEX
7485 if test -n "$FLEX"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7487 $as_echo "$FLEX" >&6; }
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7494 test -n "$FLEX" && break
7496 test -n "$FLEX" || FLEX="$MISSING flex"
7500 for ac_prog in bison
7502 # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if test "${ac_cv_prog_BISON+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7509 if test -n "$BISON"; then
7510 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_BISON="$ac_prog"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 BISON=$ac_cv_prog_BISON
7530 if test -n "$BISON"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7532 $as_echo "$BISON" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7539 test -n "$BISON" && break
7541 test -n "$BISON" || BISON="$MISSING bison"
7544 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7545 # check for build == host before using them.
7548 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7549 && test -d ../binutils ; then
7550 NM='$(objdir)/../binutils/nm-new'
7552 # Extract the first word of "nm", so it can be a program name with args.
7553 set dummy nm; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_NM+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$NM"; then
7560 ac_cv_prog_NM="$NM" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7581 if test -n "$NM"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7583 $as_echo "$NM" >&6; }
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7593 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7594 && test -d ../binutils ; then
7595 AR='$(objdir)/../binutils/ar'
7597 # Extract the first word of "ar", so it can be a program name with args.
7598 set dummy ar; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if test "${ac_cv_prog_AR+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7604 if test -n "$AR"; then
7605 ac_cv_prog_AR="$AR" # Let the user override the test.
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7626 if test -n "$AR"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7628 $as_echo "$AR" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7638 # --------------------
7639 # Checks for C headers
7640 # --------------------
7642 # Need to reject headers which give warnings, so that the -Werror bootstrap
7643 # works later. *sigh* This needs to come before all header checks.
7645 ac_c_preproc_warn_flag=yes
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7648 $as_echo_n "checking for ANSI C header files... " >&6; }
7649 if test "${ac_cv_header_stdc+set}" = set; then :
7650 $as_echo_n "(cached) " >&6
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7667 if ac_fn_c_try_compile "$LINENO"; then :
7668 ac_cv_header_stdc=yes
7670 ac_cv_header_stdc=no
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 if test $ac_cv_header_stdc = yes; then
7675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682 $EGREP "memchr" >/dev/null 2>&1; then :
7685 ac_cv_header_stdc=no
7691 if test $ac_cv_header_stdc = yes; then
7692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7699 $EGREP "free" >/dev/null 2>&1; then :
7702 ac_cv_header_stdc=no
7708 if test $ac_cv_header_stdc = yes; then
7709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7710 if test "$cross_compiling" = yes; then :
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7717 #if ((' ' & 0x0FF) == 0x020)
7718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7721 # define ISLOWER(c) \
7722 (('a' <= (c) && (c) <= 'i') \
7723 || ('j' <= (c) && (c) <= 'r') \
7724 || ('s' <= (c) && (c) <= 'z'))
7725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7733 for (i = 0; i < 256; i++)
7734 if (XOR (islower (i), ISLOWER (i))
7735 || toupper (i) != TOUPPER (i))
7740 if ac_fn_c_try_run "$LINENO"; then :
7743 ac_cv_header_stdc=no
7745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7746 conftest.$ac_objext conftest.beam conftest.$ac_ext
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7752 $as_echo "$ac_cv_header_stdc" >&6; }
7753 if test $ac_cv_header_stdc = yes; then
7755 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7760 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7761 if test "${ac_cv_header_time+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #include <sys/types.h>
7767 #include <sys/time.h>
7773 if ((struct tm *) 0)
7779 if ac_fn_c_try_compile "$LINENO"; then :
7780 ac_cv_header_time=yes
7782 ac_cv_header_time=no
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7787 $as_echo "$ac_cv_header_time" >&6; }
7788 if test $ac_cv_header_time = yes; then
7790 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7795 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7796 if test "${gcc_cv_header_string+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7802 #include <strings.h>
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 gcc_cv_header_string=yes
7814 gcc_cv_header_string=no
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7819 $as_echo "$gcc_cv_header_string" >&6; }
7820 if test $gcc_cv_header_string = yes; then
7822 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7827 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7828 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <sys/types.h>
7834 #include <sys/wait.h>
7836 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 ac_cv_header_sys_wait_h=yes
7855 ac_cv_header_sys_wait_h=no
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7860 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7861 if test $ac_cv_header_sys_wait_h = yes; then
7863 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7867 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7868 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7869 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7870 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7874 eval as_val=\$$as_ac_Header
7875 if test "x$as_val" = x""yes; then :
7876 cat >>confdefs.h <<_ACEOF
7877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7884 # Check for thread headers.
7885 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7886 if test "x$ac_cv_header_thread_h" = x""yes; then :
7892 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7893 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7900 # These tests can't be done till we know if we have limits.h.
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7902 $as_echo_n "checking for CHAR_BIT... " >&6; }
7903 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 #ifdef HAVE_LIMITS_H
7915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916 $EGREP "found" >/dev/null 2>&1; then :
7917 gcc_cv_decl_char_bit=yes
7919 gcc_cv_decl_char_bit=no
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7926 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7927 if test $gcc_cv_decl_char_bit = no; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7929 $as_echo_n "checking number of bits in a byte... " >&6; }
7930 if test "${gcc_cv_c_nbby+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7935 while test $i -lt 65; do
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7943 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7944 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951 gcc_cv_c_nbby=$i; break
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7960 $as_echo "$gcc_cv_c_nbby" >&6; }
7961 if test $gcc_cv_c_nbby = failed; then
7962 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7965 cat >>confdefs.h <<_ACEOF
7966 #define CHAR_BIT $gcc_cv_c_nbby
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7972 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7973 if test "${ac_cv_c_bigendian+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7976 ac_cv_c_bigendian=unknown
7977 # See if we're dealing with a universal compiler.
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 #ifndef __APPLE_CC__
7981 not a universal capable compiler
7986 if ac_fn_c_try_compile "$LINENO"; then :
7988 # Check for potential -arch flags. It is not universal unless
7989 # there are at least two -arch flags with different values.
7992 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7993 if test -n "$ac_prev"; then
7995 i?86 | x86_64 | ppc | ppc64)
7996 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7999 ac_cv_c_bigendian=universal
8005 elif test "x$ac_word" = "x-arch"; then
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 if test $ac_cv_c_bigendian = unknown; then
8012 # See if sys/param.h defines the BYTE_ORDER macro.
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 #include <sys/types.h>
8016 #include <sys/param.h>
8021 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8022 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032 # It does; now see whether it defined to BIG_ENDIAN or not.
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 #include <sys/types.h>
8036 #include <sys/param.h>
8041 #if BYTE_ORDER != BIG_ENDIAN
8049 if ac_fn_c_try_compile "$LINENO"; then :
8050 ac_cv_c_bigendian=yes
8052 ac_cv_c_bigendian=no
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 if test $ac_cv_c_bigendian = unknown; then
8059 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8067 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 # It does; now see whether it defined to _BIG_ENDIAN or not.
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093 ac_cv_c_bigendian=yes
8095 ac_cv_c_bigendian=no
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 if test $ac_cv_c_bigendian = unknown; then
8102 # Compile a test program.
8103 if test "$cross_compiling" = yes; then :
8104 # Try to guess by grepping values from an object file.
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 short int ascii_mm[] =
8108 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8109 short int ascii_ii[] =
8110 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8111 int use_ascii (int i) {
8112 return ascii_mm[i] + ascii_ii[i];
8114 short int ebcdic_ii[] =
8115 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8116 short int ebcdic_mm[] =
8117 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8118 int use_ebcdic (int i) {
8119 return ebcdic_mm[i] + ebcdic_ii[i];
8126 return use_ascii (foo) == use_ebcdic (foo);
8131 if ac_fn_c_try_compile "$LINENO"; then :
8132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8133 ac_cv_c_bigendian=yes
8135 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8136 if test "$ac_cv_c_bigendian" = unknown; then
8137 ac_cv_c_bigendian=no
8139 # finding both strings is unlikely to happen, but who knows?
8140 ac_cv_c_bigendian=unknown
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 $ac_includes_default
8153 /* Are we little or big endian? From Harbison&Steele. */
8157 char c[sizeof (long int)];
8160 return u.c[sizeof (long int) - 1] == 1;
8166 if ac_fn_c_try_run "$LINENO"; then :
8167 ac_cv_c_bigendian=no
8169 ac_cv_c_bigendian=yes
8171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8172 conftest.$ac_objext conftest.beam conftest.$ac_ext
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8178 $as_echo "$ac_cv_c_bigendian" >&6; }
8179 case $ac_cv_c_bigendian in #(
8181 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8187 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8191 as_fn_error "unknown endianness
8192 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8201 # These libraries may be used by collect2.
8202 # We may need a special search path to get them linked.
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8204 $as_echo_n "checking for collect2 libraries... " >&6; }
8205 if test "${gcc_cv_collect2_libs+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8209 for libs in '' -lld -lmld \
8210 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8211 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 gcc_cv_collect2_libs="$libs"; break
8235 rm -f core conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8239 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8242 $as_echo "$gcc_cv_collect2_libs" >&6; }
8243 case $gcc_cv_collect2_libs in
8245 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8249 # When building Ada code on Alpha, we need exc_resume which is usually in
8250 # -lexc. So test for it.
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8254 $as_echo_n "checking for library containing exc_resume... " >&6; }
8255 if test "${ac_cv_search_exc_resume+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8258 ac_func_search_save_LIBS=$LIBS
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8262 /* Override any GCC internal prototype to avoid an error.
8263 Use char because int might match the return type of a GCC
8264 builtin and then its argument prototype would still apply. */
8272 return exc_resume ();
8277 for ac_lib in '' exc; do
8278 if test -z "$ac_lib"; then
8279 ac_res="none required"
8282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 ac_cv_search_exc_resume=$ac_res
8287 rm -f core conftest.err conftest.$ac_objext \
8289 if test "${ac_cv_search_exc_resume+set}" = set; then :
8293 if test "${ac_cv_search_exc_resume+set}" = set; then :
8296 ac_cv_search_exc_resume=no
8299 LIBS=$ac_func_search_save_LIBS
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8302 $as_echo "$ac_cv_search_exc_resume" >&6; }
8303 ac_res=$ac_cv_search_exc_resume
8304 if test "$ac_res" != no; then :
8305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313 # Some systems put ldexp and frexp in libm instead of libc; assume
8314 # they're both in the same place. jcf-dump needs them.
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8318 $as_echo_n "checking for library containing ldexp... " >&6; }
8319 if test "${ac_cv_search_ldexp+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8322 ac_func_search_save_LIBS=$LIBS
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8326 /* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8341 for ac_lib in '' m; do
8342 if test -z "$ac_lib"; then
8343 ac_res="none required"
8346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8348 if ac_fn_c_try_link "$LINENO"; then :
8349 ac_cv_search_ldexp=$ac_res
8351 rm -f core conftest.err conftest.$ac_objext \
8353 if test "${ac_cv_search_ldexp+set}" = set; then :
8357 if test "${ac_cv_search_ldexp+set}" = set; then :
8360 ac_cv_search_ldexp=no
8363 LIBS=$ac_func_search_save_LIBS
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8366 $as_echo "$ac_cv_search_ldexp" >&6; }
8367 ac_res=$ac_cv_search_ldexp
8368 if test "$ac_res" != no; then :
8369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8377 # Use <inttypes.h> only if it exists,
8378 # doesn't clash with <sys/types.h>, and declares intmax_t.
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8380 $as_echo_n "checking for inttypes.h... " >&6; }
8381 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <sys/types.h>
8387 #include <inttypes.h>
8396 if ac_fn_c_try_compile "$LINENO"; then :
8397 gcc_cv_header_inttypes_h=yes
8399 gcc_cv_header_inttypes_h=no
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8405 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8406 if test $gcc_cv_header_inttypes_h = yes; then
8408 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8414 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8415 sysconf strsignal getrusage nl_langinfo \
8416 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8417 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
8419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8421 eval as_val=\$$as_ac_var
8422 if test "x$as_val" = x""yes; then :
8423 cat >>confdefs.h <<_ACEOF
8424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8431 save_CPPFLAGS="$CPPFLAGS"
8433 LIBS="$LIBS $LIBELFLIBS"
8434 for ac_func in elf_getshdrstrndx
8436 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8437 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_ELF_GETSHDRSTRNDX 1
8443 for ac_func in elf_getshstrndx
8445 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8446 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8447 cat >>confdefs.h <<_ACEOF
8448 #define HAVE_ELF_GETSHSTRNDX 1
8450 if test "$cross_compiling" = yes; then :
8451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8453 as_fn_error "cannot run test program while cross compiling
8454 See \`config.log' for more details." "$LINENO" 5; }
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8462 return elf_getshstrndx (NULL, 0) == 0;
8465 if ac_fn_c_try_run "$LINENO"; then :
8467 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8471 conftest.$ac_objext conftest.beam conftest.$ac_ext
8482 CPPFLAGS="$save_CPPFLAGS"
8484 if test x$ac_cv_func_mbstowcs = xyes; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8486 $as_echo_n "checking whether mbstowcs works... " >&6; }
8487 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8490 if test "$cross_compiling" = yes; then :
8491 gcc_cv_func_mbstowcs_works=yes
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8502 if ac_fn_c_try_run "$LINENO"; then :
8503 gcc_cv_func_mbstowcs_works=yes
8505 gcc_cv_func_mbstowcs_works=no
8507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8508 conftest.$ac_objext conftest.beam conftest.$ac_ext
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8513 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8514 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8516 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8521 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8522 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8526 cat >>confdefs.h <<_ACEOF
8532 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8533 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8537 cat >>confdefs.h <<_ACEOF
8538 #define caddr_t char *
8545 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8546 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8547 gcc_header_sys_mman_h=yes
8549 gcc_header_sys_mman_h=no
8552 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8553 if test "x$ac_cv_func_mmap" = x""yes; then :
8559 if test "$gcc_header_sys_mman_h" != yes \
8560 || test "$gcc_func_mmap" != yes; then
8561 gcc_cv_func_mmap_file=no
8562 gcc_cv_func_mmap_dev_zero=no
8563 gcc_cv_func_mmap_anon=no
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8566 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8567 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8570 # Add a system to this blacklist if
8571 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8572 # memory area containing the same data that you'd get if you applied
8573 # read() to the same fd. The only system known to have a problem here
8574 # is VMS, where text files have record structure.
8577 gcc_cv_func_mmap_file=no ;;
8579 gcc_cv_func_mmap_file=yes;;
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8583 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8585 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8586 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8589 # Add a system to this blacklist if it has mmap() but /dev/zero
8590 # does not exist, or if mmapping /dev/zero does not give anonymous
8591 # zeroed pages with both the following properties:
8592 # 1. If you map N consecutive pages in with one call, and then
8593 # unmap any subset of those pages, the pages that were not
8594 # explicitly unmapped remain accessible.
8595 # 2. If you map two adjacent blocks of memory and then unmap them
8596 # both at once, they must both go away.
8597 # Systems known to be in this category are Windows (all variants),
8600 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8601 gcc_cv_func_mmap_dev_zero=no ;;
8603 gcc_cv_func_mmap_dev_zero=yes;;
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8607 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8609 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8611 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8612 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <sys/mman.h>
8621 #ifndef MAP_ANONYMOUS
8622 #define MAP_ANONYMOUS MAP_ANON
8628 int n = MAP_ANONYMOUS;
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634 gcc_cv_decl_map_anon=yes
8636 gcc_cv_decl_map_anon=no
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8641 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8643 if test $gcc_cv_decl_map_anon = no; then
8644 gcc_cv_func_mmap_anon=no
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8647 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8648 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8651 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8652 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8653 # doesn't give anonymous zeroed pages with the same properties listed
8654 # above for use of /dev/zero.
8655 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8657 vms* | cygwin* | pe | mingw* | sco* | udk* )
8658 gcc_cv_func_mmap_anon=no ;;
8660 gcc_cv_func_mmap_anon=yes;;
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8664 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8668 if test $gcc_cv_func_mmap_file = yes; then
8670 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8673 if test $gcc_cv_func_mmap_dev_zero = yes; then
8675 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8678 if test $gcc_cv_func_mmap_anon = yes; then
8680 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8687 # Under VMS, vfork works very differently than on Unix. The standard test
8688 # won't work, and it isn't easily adaptable. It makes more sense to
8690 ac_cv_func_vfork_works=yes
8693 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8694 if test "x$ac_cv_type_pid_t" = x""yes; then :
8698 cat >>confdefs.h <<_ACEOF
8704 for ac_header in vfork.h
8706 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8707 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_VFORK_H 1
8715 for ac_func in fork vfork
8717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8718 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8719 eval as_val=\$$as_ac_var
8720 if test "x$as_val" = x""yes; then :
8721 cat >>confdefs.h <<_ACEOF
8722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8728 if test "x$ac_cv_func_fork" = xyes; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8730 $as_echo_n "checking for working fork... " >&6; }
8731 if test "${ac_cv_func_fork_works+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8734 if test "$cross_compiling" = yes; then :
8735 ac_cv_func_fork_works=cross
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 $ac_includes_default
8744 /* By Ruediger Kuhlmann. */
8751 if ac_fn_c_try_run "$LINENO"; then :
8752 ac_cv_func_fork_works=yes
8754 ac_cv_func_fork_works=no
8756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8757 conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8762 $as_echo "$ac_cv_func_fork_works" >&6; }
8765 ac_cv_func_fork_works=$ac_cv_func_fork
8767 if test "x$ac_cv_func_fork_works" = xcross; then
8769 *-*-amigaos* | *-*-msdosdjgpp*)
8770 # Override, as these systems have only a dummy fork() stub
8771 ac_cv_func_fork_works=no
8774 ac_cv_func_fork_works=yes
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8778 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8780 ac_cv_func_vfork_works=$ac_cv_func_vfork
8781 if test "x$ac_cv_func_vfork" = xyes; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8783 $as_echo_n "checking for working vfork... " >&6; }
8784 if test "${ac_cv_func_vfork_works+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 if test "$cross_compiling" = yes; then :
8788 ac_cv_func_vfork_works=cross
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 /* Thanks to Paul Eggert for this test. */
8793 $ac_includes_default
8794 #include <sys/wait.h>
8798 /* On some sparc systems, changes by the child to local and incoming
8799 argument registers are propagated back to the parent. The compiler
8800 is told about this with #include <vfork.h>, but some compilers
8801 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8802 static variable whose address is put into a register that is
8803 clobbered by the vfork. */
8806 sparc_address_test (int arg)
8808 sparc_address_test (arg) int arg;
8829 pid_t parent = getpid ();
8832 sparc_address_test (0);
8837 /* Here is another test for sparc vfork register problems. This
8838 test uses lots of local variables, at least as many local
8839 variables as main has allocated so far including compiler
8840 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8841 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8842 reuse the register of parent for one of the local variables,
8843 since it will think that parent can't possibly be used any more
8844 in this routine. Assigning to the local variable will thus
8845 munge parent in the parent process. */
8847 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8848 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8849 /* Convince the compiler that p..p7 are live; otherwise, it might
8850 use the same hardware register for all 8 local variables. */
8851 if (p != p1 || p != p2 || p != p3 || p != p4
8852 || p != p5 || p != p6 || p != p7)
8855 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8856 from child file descriptors. If the child closes a descriptor
8857 before it execs or exits, this munges the parent's descriptor
8858 as well. Test for this by closing stdout in the child. */
8859 _exit(close(fileno(stdout)) != 0);
8864 while (wait(&status) != child)
8867 /* Was there some problem with vforking? */
8870 /* Did the child fail? (This shouldn't happen.) */
8873 /* Did the vfork/compiler bug occur? */
8874 || parent != getpid()
8876 /* Did the file descriptor bug occur? */
8877 || fstat(fileno(stdout), &st) != 0
8882 if ac_fn_c_try_run "$LINENO"; then :
8883 ac_cv_func_vfork_works=yes
8885 ac_cv_func_vfork_works=no
8887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8888 conftest.$ac_objext conftest.beam conftest.$ac_ext
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8893 $as_echo "$ac_cv_func_vfork_works" >&6; }
8896 if test "x$ac_cv_func_fork_works" = xcross; then
8897 ac_cv_func_vfork_works=$ac_cv_func_vfork
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8899 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8902 if test "x$ac_cv_func_vfork_works" = xyes; then
8904 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8908 $as_echo "#define vfork fork" >>confdefs.h
8911 if test "x$ac_cv_func_fork_works" = xyes; then
8913 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8919 if test "X$prefix" = "XNONE"; then
8920 acl_final_prefix="$ac_default_prefix"
8922 acl_final_prefix="$prefix"
8924 if test "X$exec_prefix" = "XNONE"; then
8925 acl_final_exec_prefix='${prefix}'
8927 acl_final_exec_prefix="$exec_prefix"
8929 acl_save_prefix="$prefix"
8930 prefix="$acl_final_prefix"
8931 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8932 prefix="$acl_save_prefix"
8935 # Check whether --with-gnu-ld was given.
8936 if test "${with_gnu_ld+set}" = set; then :
8937 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8942 # Prepare PATH_SEPARATOR.
8943 # The user is always right.
8944 if test "${PATH_SEPARATOR+set}" != set; then
8945 echo "#! /bin/sh" >conf$$.sh
8946 echo "exit 0" >>conf$$.sh
8948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8956 if test "$GCC" = yes; then
8957 # Check if gcc -print-prog-name=ld gives a path.
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8959 $as_echo_n "checking for ld used by GCC... " >&6; }
8962 # gcc leaves a trailing carriage return which upsets mingw
8963 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8965 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8968 # Accept absolute paths.
8969 [\\/]* | [A-Za-z]:[\\/]*)
8970 re_direlt='/[^/][^/]*/\.\./'
8971 # Canonicalize the path of ld
8972 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8973 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8974 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8976 test -z "$LD" && LD="$ac_prog"
8979 # If it fails, then pretend we aren't using GCC.
8983 # If it is relative, then search for the first ld in PATH.
8987 elif test "$with_gnu_ld" = yes; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8989 $as_echo_n "checking for GNU ld... " >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8992 $as_echo_n "checking for non-GNU ld... " >&6; }
8994 if test "${acl_cv_path_LD+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
8997 if test -z "$LD"; then
8998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8999 for ac_dir in $PATH; do
9000 test -z "$ac_dir" && ac_dir=.
9001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9002 acl_cv_path_LD="$ac_dir/$ac_prog"
9003 # Check to see if the program is GNU ld. I'd rather use --version,
9004 # but apparently some GNU ld's only accept -v.
9005 # Break only if it was the GNU/non-GNU ld that we prefer.
9006 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9007 test "$with_gnu_ld" != no && break
9009 test "$with_gnu_ld" != yes && break
9015 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9019 LD="$acl_cv_path_LD"
9020 if test -n "$LD"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9022 $as_echo "$LD" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9027 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9030 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9033 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9034 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9035 acl_cv_prog_gnu_ld=yes
9037 acl_cv_prog_gnu_ld=no
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9041 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9042 with_gnu_ld=$acl_cv_prog_gnu_ld
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9047 $as_echo_n "checking for shared library run path origin... " >&6; }
9048 if test "${acl_cv_rpath+set}" = set; then :
9049 $as_echo_n "(cached) " >&6
9052 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9053 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9060 $as_echo "$acl_cv_rpath" >&6; }
9062 libext="$acl_cv_libext"
9063 shlibext="$acl_cv_shlibext"
9064 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9065 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9066 hardcode_direct="$acl_cv_hardcode_direct"
9067 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9068 # Check whether --enable-rpath was given.
9069 if test "${enable_rpath+set}" = set; then :
9070 enableval=$enable_rpath; :
9084 acl_save_prefix="$prefix"
9085 prefix="$acl_final_prefix"
9086 acl_save_exec_prefix="$exec_prefix"
9087 exec_prefix="$acl_final_exec_prefix"
9089 eval additional_includedir=\"$includedir\"
9090 eval additional_libdir=\"$libdir\"
9092 exec_prefix="$acl_save_exec_prefix"
9093 prefix="$acl_save_prefix"
9096 # Check whether --with-libiconv-prefix was given.
9097 if test "${with_libiconv_prefix+set}" = set; then :
9098 withval=$with_libiconv_prefix;
9099 if test "X$withval" = "Xno"; then
9102 if test "X$withval" = "X"; then
9104 acl_save_prefix="$prefix"
9105 prefix="$acl_final_prefix"
9106 acl_save_exec_prefix="$exec_prefix"
9107 exec_prefix="$acl_final_exec_prefix"
9109 eval additional_includedir=\"$includedir\"
9110 eval additional_libdir=\"$libdir\"
9112 exec_prefix="$acl_save_exec_prefix"
9113 prefix="$acl_save_prefix"
9116 additional_includedir="$withval/include"
9117 additional_libdir="$withval/lib"
9128 names_already_handled=
9129 names_next_round='iconv '
9130 while test -n "$names_next_round"; do
9131 names_this_round="$names_next_round"
9133 for name in $names_this_round; do
9135 for n in $names_already_handled; do
9136 if test "$n" = "$name"; then
9141 if test -z "$already_handled"; then
9142 names_already_handled="$names_already_handled $name"
9143 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9144 eval value=\"\$HAVE_LIB$uppername\"
9145 if test -n "$value"; then
9146 if test "$value" = yes; then
9147 eval value=\"\$LIB$uppername\"
9148 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9149 eval value=\"\$LTLIB$uppername\"
9150 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9159 if test $use_additional = yes; then
9160 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9161 found_dir="$additional_libdir"
9162 found_so="$additional_libdir/lib$name.$shlibext"
9163 if test -f "$additional_libdir/lib$name.la"; then
9164 found_la="$additional_libdir/lib$name.la"
9167 if test -f "$additional_libdir/lib$name.$libext"; then
9168 found_dir="$additional_libdir"
9169 found_a="$additional_libdir/lib$name.$libext"
9170 if test -f "$additional_libdir/lib$name.la"; then
9171 found_la="$additional_libdir/lib$name.la"
9176 if test "X$found_dir" = "X"; then
9177 for x in $LDFLAGS $LTLIBICONV; do
9179 acl_save_prefix="$prefix"
9180 prefix="$acl_final_prefix"
9181 acl_save_exec_prefix="$exec_prefix"
9182 exec_prefix="$acl_final_exec_prefix"
9184 exec_prefix="$acl_save_exec_prefix"
9185 prefix="$acl_save_prefix"
9189 dir=`echo "X$x" | sed -e 's/^X-L//'`
9190 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9192 found_so="$dir/lib$name.$shlibext"
9193 if test -f "$dir/lib$name.la"; then
9194 found_la="$dir/lib$name.la"
9197 if test -f "$dir/lib$name.$libext"; then
9199 found_a="$dir/lib$name.$libext"
9200 if test -f "$dir/lib$name.la"; then
9201 found_la="$dir/lib$name.la"
9207 if test "X$found_dir" != "X"; then
9212 if test "X$found_dir" != "X"; then
9213 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9214 if test "X$found_so" != "X"; then
9215 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9216 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9219 for x in $ltrpathdirs; do
9220 if test "X$x" = "X$found_dir"; then
9225 if test -z "$haveit"; then
9226 ltrpathdirs="$ltrpathdirs $found_dir"
9228 if test "$hardcode_direct" = yes; then
9229 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9231 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9232 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9234 for x in $rpathdirs; do
9235 if test "X$x" = "X$found_dir"; then
9240 if test -z "$haveit"; then
9241 rpathdirs="$rpathdirs $found_dir"
9245 for x in $LDFLAGS $LIBICONV; do
9247 acl_save_prefix="$prefix"
9248 prefix="$acl_final_prefix"
9249 acl_save_exec_prefix="$exec_prefix"
9250 exec_prefix="$acl_final_exec_prefix"
9252 exec_prefix="$acl_save_exec_prefix"
9253 prefix="$acl_save_prefix"
9255 if test "X$x" = "X-L$found_dir"; then
9260 if test -z "$haveit"; then
9261 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9263 if test "$hardcode_minus_L" != no; then
9264 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9266 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9272 if test "X$found_a" != "X"; then
9273 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9275 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9278 additional_includedir=
9279 case "$found_dir" in
9281 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9282 additional_includedir="$basedir/include"
9285 if test "X$additional_includedir" != "X"; then
9286 if test "X$additional_includedir" != "X/usr/include"; then
9288 if test "X$additional_includedir" = "X/usr/local/include"; then
9289 if test -n "$GCC"; then
9291 linux*) haveit=yes;;
9295 if test -z "$haveit"; then
9296 for x in $CPPFLAGS $INCICONV; do
9298 acl_save_prefix="$prefix"
9299 prefix="$acl_final_prefix"
9300 acl_save_exec_prefix="$exec_prefix"
9301 exec_prefix="$acl_final_exec_prefix"
9303 exec_prefix="$acl_save_exec_prefix"
9304 prefix="$acl_save_prefix"
9306 if test "X$x" = "X-I$additional_includedir"; then
9311 if test -z "$haveit"; then
9312 if test -d "$additional_includedir"; then
9313 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9319 if test -n "$found_la"; then
9320 save_libdir="$libdir"
9322 */* | *\\*) . "$found_la" ;;
9323 *) . "./$found_la" ;;
9325 libdir="$save_libdir"
9326 for dep in $dependency_libs; do
9329 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9330 if test "X$additional_libdir" != "X/usr/lib"; then
9332 if test "X$additional_libdir" = "X/usr/local/lib"; then
9333 if test -n "$GCC"; then
9335 linux*) haveit=yes;;
9339 if test -z "$haveit"; then
9341 for x in $LDFLAGS $LIBICONV; do
9343 acl_save_prefix="$prefix"
9344 prefix="$acl_final_prefix"
9345 acl_save_exec_prefix="$exec_prefix"
9346 exec_prefix="$acl_final_exec_prefix"
9348 exec_prefix="$acl_save_exec_prefix"
9349 prefix="$acl_save_prefix"
9351 if test "X$x" = "X-L$additional_libdir"; then
9356 if test -z "$haveit"; then
9357 if test -d "$additional_libdir"; then
9358 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9362 for x in $LDFLAGS $LTLIBICONV; do
9364 acl_save_prefix="$prefix"
9365 prefix="$acl_final_prefix"
9366 acl_save_exec_prefix="$exec_prefix"
9367 exec_prefix="$acl_final_exec_prefix"
9369 exec_prefix="$acl_save_exec_prefix"
9370 prefix="$acl_save_prefix"
9372 if test "X$x" = "X-L$additional_libdir"; then
9377 if test -z "$haveit"; then
9378 if test -d "$additional_libdir"; then
9379 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9386 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9387 if test "$enable_rpath" != no; then
9389 for x in $rpathdirs; do
9390 if test "X$x" = "X$dir"; then
9395 if test -z "$haveit"; then
9396 rpathdirs="$rpathdirs $dir"
9399 for x in $ltrpathdirs; do
9400 if test "X$x" = "X$dir"; then
9405 if test -z "$haveit"; then
9406 ltrpathdirs="$ltrpathdirs $dir"
9411 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9414 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9417 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9418 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9424 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9431 if test "X$rpathdirs" != "X"; then
9432 if test -n "$hardcode_libdir_separator"; then
9434 for found_dir in $rpathdirs; do
9435 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9437 acl_save_libdir="$libdir"
9439 eval flag=\"$hardcode_libdir_flag_spec\"
9440 libdir="$acl_save_libdir"
9441 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9443 for found_dir in $rpathdirs; do
9444 acl_save_libdir="$libdir"
9446 eval flag=\"$hardcode_libdir_flag_spec\"
9447 libdir="$acl_save_libdir"
9448 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9452 if test "X$ltrpathdirs" != "X"; then
9453 for found_dir in $ltrpathdirs; do
9454 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9464 am_save_CPPFLAGS="$CPPFLAGS"
9466 for element in $INCICONV; do
9468 for x in $CPPFLAGS; do
9470 acl_save_prefix="$prefix"
9471 prefix="$acl_final_prefix"
9472 acl_save_exec_prefix="$exec_prefix"
9473 exec_prefix="$acl_final_exec_prefix"
9475 exec_prefix="$acl_save_exec_prefix"
9476 prefix="$acl_save_prefix"
9478 if test "X$x" = "X$element"; then
9483 if test -z "$haveit"; then
9484 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9490 $as_echo_n "checking for iconv... " >&6; }
9491 if test "${am_cv_func_iconv+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9495 am_cv_func_iconv="no, consider installing GNU libiconv"
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9504 iconv_t cd = iconv_open("","");
9505 iconv(cd,NULL,NULL,NULL,NULL);
9511 if ac_fn_c_try_link "$LINENO"; then :
9512 am_cv_func_iconv=yes
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 if test "$am_cv_func_iconv" != yes; then
9517 am_save_LIBS="$LIBS"
9518 LIBS="$LIBS $LIBICONV"
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9526 iconv_t cd = iconv_open("","");
9527 iconv(cd,NULL,NULL,NULL,NULL);
9533 if ac_fn_c_try_link "$LINENO"; then :
9535 am_cv_func_iconv=yes
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LIBS="$am_save_LIBS"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9544 $as_echo "$am_cv_func_iconv" >&6; }
9545 if test "$am_cv_func_iconv" = yes; then
9547 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9550 if test "$am_cv_lib_iconv" = yes; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9552 $as_echo_n "checking how to link with libiconv... " >&6; }
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9554 $as_echo "$LIBICONV" >&6; }
9556 CPPFLAGS="$am_save_CPPFLAGS"
9563 if test "$am_cv_func_iconv" = yes; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9565 $as_echo_n "checking for iconv declaration... " >&6; }
9566 if test "${am_cv_proto_iconv+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9579 #if defined(__STDC__) || defined(__cplusplus)
9580 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9593 if ac_fn_c_try_compile "$LINENO"; then :
9594 am_cv_proto_iconv_arg1=""
9596 am_cv_proto_iconv_arg1="const"
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599 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);"
9602 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9604 }$am_cv_proto_iconv" >&5
9606 }$am_cv_proto_iconv" >&6; }
9608 cat >>confdefs.h <<_ACEOF
9609 #define ICONV_CONST $am_cv_proto_iconv_arg1
9614 # Until we have in-tree GNU iconv:
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9620 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9621 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9622 $as_echo_n "(cached) " >&6
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9635 if ac_fn_c_try_link "$LINENO"; then :
9636 am_cv_val_LC_MESSAGES=yes
9638 am_cv_val_LC_MESSAGES=no
9640 rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9644 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9645 if test $am_cv_val_LC_MESSAGES = yes; then
9647 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9654 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9655 if test "${am_cv_langinfo_codeset+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9660 #include <langinfo.h>
9664 char* cs = nl_langinfo(CODESET);
9669 if ac_fn_c_try_link "$LINENO"; then :
9670 am_cv_langinfo_codeset=yes
9672 am_cv_langinfo_codeset=no
9674 rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9679 $as_echo "$am_cv_langinfo_codeset" >&6; }
9680 if test $am_cv_langinfo_codeset = yes; then
9682 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9687 # We will need to find libiberty.h and ansidecl.h
9688 saved_CFLAGS="$CFLAGS"
9689 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9690 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9691 strsignal strstr strverscmp \
9692 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9693 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
9695 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9697 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9698 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9699 $as_echo_n "(cached) " >&6
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9704 #define $ac_tr_decl 1
9706 #include "ansidecl.h"
9713 char *(*pfn) = (char *(*)) $ac_func ;
9719 if ac_fn_c_try_compile "$LINENO"; then :
9720 eval "gcc_cv_have_decl_$ac_func=yes"
9722 eval "gcc_cv_have_decl_$ac_func=no"
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9729 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9730 #define $ac_tr_decl 1
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9736 #define $ac_tr_decl 0
9744 for ac_func in getrlimit setrlimit getrusage
9746 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9748 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9749 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9750 $as_echo_n "(cached) " >&6
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9755 #define $ac_tr_decl 1
9757 #include "ansidecl.h"
9759 #ifdef HAVE_SYS_RESOURCE_H
9760 #include <sys/resource.h>
9768 char *(*pfn) = (char *(*)) $ac_func ;
9774 if ac_fn_c_try_compile "$LINENO"; then :
9775 eval "gcc_cv_have_decl_$ac_func=yes"
9777 eval "gcc_cv_have_decl_$ac_func=no"
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9784 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9785 #define $ac_tr_decl 1
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9791 #define $ac_tr_decl 0
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9802 #include "ansidecl.h"
9804 #ifdef HAVE_SYS_RESOURCE_H
9805 #include <sys/resource.h>
9816 if ac_fn_c_try_compile "$LINENO"; then :
9820 $as_echo "#define rlim_t long" >>confdefs.h
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9826 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9827 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9828 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9829 for ac_func in ldgetname
9831 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9833 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9834 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9835 $as_echo_n "(cached) " >&6
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 #define $ac_tr_decl 1
9842 #include "ansidecl.h"
9855 char *(*pfn) = (char *(*)) $ac_func ;
9861 if ac_fn_c_try_compile "$LINENO"; then :
9862 eval "gcc_cv_have_decl_$ac_func=yes"
9864 eval "gcc_cv_have_decl_$ac_func=no"
9866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9872 #define $ac_tr_decl 1
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9878 #define $ac_tr_decl 0
9886 for ac_func in times
9888 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9890 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9891 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9892 $as_echo_n "(cached) " >&6
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9897 #define $ac_tr_decl 1
9899 #include "ansidecl.h"
9901 #ifdef HAVE_SYS_TIMES_H
9902 #include <sys/times.h>
9910 char *(*pfn) = (char *(*)) $ac_func ;
9916 if ac_fn_c_try_compile "$LINENO"; then :
9917 eval "gcc_cv_have_decl_$ac_func=yes"
9919 eval "gcc_cv_have_decl_$ac_func=no"
9921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9926 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9927 #define $ac_tr_decl 1
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9933 #define $ac_tr_decl 0
9941 for ac_func in sigaltstack
9943 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9945 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9946 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9947 $as_echo_n "(cached) " >&6
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9952 #define $ac_tr_decl 1
9954 #include "ansidecl.h"
9963 char *(*pfn) = (char *(*)) $ac_func ;
9969 if ac_fn_c_try_compile "$LINENO"; then :
9970 eval "gcc_cv_have_decl_$ac_func=yes"
9972 eval "gcc_cv_have_decl_$ac_func=no"
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9979 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9980 #define $ac_tr_decl 1
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9986 #define $ac_tr_decl 0
9994 # More time-related stuff.
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9996 $as_echo_n "checking for struct tms... " >&6; }
9997 if test "${ac_cv_struct_tms+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10004 #include "ansidecl.h"
10005 #include "system.h"
10006 #ifdef HAVE_SYS_TIMES_H
10007 #include <sys/times.h>
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 ac_cv_struct_tms=yes
10021 ac_cv_struct_tms=no
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10026 $as_echo "$ac_cv_struct_tms" >&6; }
10027 if test $ac_cv_struct_tms = yes; then
10029 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10033 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10034 # revisit after autoconf 2.50.
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10036 $as_echo_n "checking for clock_t... " >&6; }
10037 if test "${gcc_cv_type_clock_t+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10044 #include "ansidecl.h"
10045 #include "system.h"
10055 if ac_fn_c_try_compile "$LINENO"; then :
10056 gcc_cv_type_clock_t=yes
10058 gcc_cv_type_clock_t=no
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10063 $as_echo "$gcc_cv_type_clock_t" >&6; }
10064 if test $gcc_cv_type_clock_t = yes; then
10066 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10070 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10071 CFLAGS="$saved_CFLAGS"
10073 # Check whether --enable-initfini-array was given.
10074 if test "${enable_initfini_array+set}" = set; then :
10075 enableval=$enable_initfini_array;
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10079 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10080 if test "${gcc_cv_initfini_array+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10083 if test "$cross_compiling" = yes; then :
10084 gcc_cv_initfini_array=no
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10090 int main (void) { return x; }
10091 int foo (void) { x = 0; }
10092 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10094 if ac_fn_c_try_run "$LINENO"; then :
10095 gcc_cv_initfini_array=yes
10097 gcc_cv_initfini_array=no
10099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10100 conftest.$ac_objext conftest.beam conftest.$ac_ext
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10105 $as_echo "$gcc_cv_initfini_array" >&6; }
10106 enable_initfini_array=$gcc_cv_initfini_array
10110 if test $enable_initfini_array = yes; then
10112 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10116 # mkdir takes a single argument on some systems.
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10118 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10119 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10125 #include <sys/types.h>
10126 #ifdef HAVE_SYS_STAT_H
10127 # include <sys/stat.h>
10129 #ifdef HAVE_UNISTD_H
10130 # include <unistd.h>
10132 #ifdef HAVE_DIRECT_H
10133 # include <direct.h>
10143 if ac_fn_c_try_compile "$LINENO"; then :
10144 gcc_cv_mkdir_takes_one_arg=no
10146 gcc_cv_mkdir_takes_one_arg=yes
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10151 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10152 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10154 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10165 # With Setjmp/Longjmp based exception handling.
10166 # Check whether --enable-sjlj-exceptions was given.
10167 if test "${enable_sjlj_exceptions+set}" = set; then :
10168 enableval=$enable_sjlj_exceptions; case $target in
10170 if test $enableval != yes; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10172 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10177 force_sjlj_exceptions=yes
10181 force_sjlj_exceptions=yes
10185 force_sjlj_exceptions=no
10190 if test $force_sjlj_exceptions = yes; then
10191 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10193 cat >>confdefs.h <<_ACEOF
10194 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10199 # For platforms with the unwind ABI which includes an unwind library,
10200 # libunwind, we can choose to use the system libunwind.
10201 # config.gcc also contains tests of with_system_libunwind.
10204 # Check whether --with-system-libunwind was given.
10205 if test "${with_system_libunwind+set}" = set; then :
10206 withval=$with_system_libunwind;
10209 # If system-libunwind was not specifically set, pick a default setting.
10210 if test x$with_system_libunwind = x; then
10212 ia64-*-hpux*) with_system_libunwind=yes ;;
10213 *) with_system_libunwind=no ;;
10216 # Based on system-libunwind and target, do we have ipinfo?
10217 if test x$with_system_libunwind = xyes; then
10219 ia64-*-*) have_unwind_getipinfo=no ;;
10220 *) have_unwind_getipinfo=yes ;;
10223 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10226 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10227 *) have_unwind_getipinfo=yes ;;
10232 if test x$have_unwind_getipinfo = xyes; then
10234 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10239 # --------------------------------------------------------
10240 # Build, host, and target specific configuration fragments
10241 # --------------------------------------------------------
10243 # Collect build-machine-specific information.
10244 . ${srcdir}/config.build
10246 # Collect host-machine-specific information.
10247 . ${srcdir}/config.host
10251 # Collect target-machine-specific information.
10252 . ${srcdir}/config.gcc
10254 extra_objs="${host_extra_objs} ${extra_objs}"
10255 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10257 # Default the target-machine variables that were not explicitly set.
10258 if test x"$tm_file" = x
10259 then tm_file=$cpu_type/$cpu_type.h; fi
10261 if test x"$extra_headers" = x
10262 then extra_headers=; fi
10264 if test x$md_file = x
10265 then md_file=$cpu_type/$cpu_type.md; fi
10267 if test x$out_file = x
10268 then out_file=$cpu_type/$cpu_type.c; fi
10270 if test x"$tmake_file" = x
10271 then tmake_file=$cpu_type/t-$cpu_type
10274 if test x"$dwarf2" = xyes
10275 then tm_file="$tm_file tm-dwarf2.h"
10278 # Say what files are being used for the output code and MD file.
10279 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10280 echo "Using \`$srcdir/config/$md_file' as machine description file."
10282 # If any of the xm_file variables contain nonexistent files, warn
10283 # about them and drop them.
10286 for x in $build_xm_file; do
10287 if test -f $srcdir/config/$x
10289 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10290 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10293 build_xm_file="$bx"
10296 for x in $host_xm_file; do
10297 if test -f $srcdir/config/$x
10299 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10300 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10306 for x in $xm_file; do
10307 if test -f $srcdir/config/$x
10309 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10310 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10316 for f in $tm_file; do
10319 if test $count = ax; then
10320 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10322 echo "Using the following target machine macro files:"
10323 for f in $tm_file; do
10324 echo " $srcdir/config/$f"
10328 if test x$need_64bit_hwint = xyes; then
10330 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10334 if test x$use_long_long_for_widest_fast_int = xyes; then
10336 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10341 for f in $host_xm_file; do
10344 if test $count = a; then
10346 elif test $count = ax; then
10347 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10349 echo "Using the following host machine macro files:"
10350 for f in $host_xm_file; do
10351 echo " $srcdir/config/$f"
10354 echo "Using ${out_host_hook_obj} for host machine hooks."
10356 if test "$host_xm_file" != "$build_xm_file"; then
10358 for f in $build_xm_file; do
10361 if test $count = a; then
10363 elif test $count = ax; then
10364 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10366 echo "Using the following build machine macro files:"
10367 for f in $build_xm_file; do
10368 echo " $srcdir/config/$f"
10374 powerpc*-*-darwin*)
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10376 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10377 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10378 $as_echo_n "(cached) " >&6
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10383 #include <sys/cdefs.h>
10384 #include <sys/signal.h>
10385 #include <ucontext.h>
10386 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390 gcc_cv_mcontext_underscores=no
10392 gcc_cv_mcontext_underscores=yes
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10397 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10398 if test $gcc_cv_mcontext_underscores = yes; then
10400 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10410 # Check if a valid thread package
10411 case ${enable_threads} in
10414 target_thread_file='single'
10418 target_thread_file='single'
10420 aix | dce | gnat | irix | posix | posix95 | rtems | \
10421 single | solaris | vxworks | win32 | mipssde)
10422 target_thread_file=${enable_threads}
10425 echo "${enable_threads} is an unknown thread package" 1>&2
10430 if test x${thread_file} = x; then
10431 # No thread file set by target-specific clauses in config.gcc,
10432 # so use file chosen by default logic above
10433 thread_file=${target_thread_file}
10436 # Make gthr-default.h if we have a thread file.
10438 if test $thread_file != single; then
10439 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10440 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10441 rm -f gthr-default.h-t
10443 mv -f gthr-default.h-t gthr-default.h
10445 gthread_flags=-DHAVE_GTHR_DEFAULT
10454 if test x$enable___cxa_atexit = xyes || \
10455 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10456 if test x$host = x$target; then
10458 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10459 # keyed to flag_use_cxa_atexit
10464 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10465 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10468 echo "__cxa_atexit can't be enabled on this target"
10474 # We can't check for __cxa_atexit when building a cross, so assume
10478 if test x$use_cxa_atexit = xyes; then
10480 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10485 # Look for a file containing extra machine modes.
10486 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10487 extra_modes_file='$(srcdir)'/config/${extra_modes}
10490 cat >>confdefs.h <<_ACEOF
10491 #define EXTRA_MODES_FILE "config/$extra_modes"
10496 # Convert extra_options into a form suitable for Makefile use.
10498 for f in $extra_options; do
10499 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10503 # auto-host.h is the file containing items generated by autoconf and is
10504 # the first file included by config.h.
10505 # If host=build, it is correct to have bconfig include auto-host.h
10506 # as well. If host!=build, we are in error and need to do more
10507 # work to find out the build config parameters.
10508 if test x$host = x$build
10510 build_auto=auto-host.h
10512 # We create a subdir, then run autoconf in the subdir.
10513 # To prevent recursion we set host and build for the new
10514 # invocation of configure to the build for this invocation
10521 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10522 *) realsrcdir=../${srcdir};;
10524 saved_CFLAGS="${CFLAGS}"
10525 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10526 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10527 ${realsrcdir}/configure \
10528 --enable-languages=${enable_languages-all} \
10529 --target=$target_alias --host=$build_alias --build=$build_alias
10530 CFLAGS="${saved_CFLAGS}"
10532 # We just finished tests for the build machine, so rename
10533 # the file auto-build.h in the gcc directory.
10534 mv auto-host.h ../auto-build.h
10537 build_auto=auto-build.h
10541 tm_file="${tm_file} defaults.h"
10542 tm_p_file="${tm_p_file} tm-preds.h"
10543 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10544 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10545 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10546 # put this back in temporarily.
10547 xm_file="auto-host.h ansidecl.h ${xm_file}"
10553 # Compile in configure arguments.
10554 if test -f configargs.h ; then
10555 # Being re-configured.
10556 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10557 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10559 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10562 # Double all backslashes and backslash all quotes to turn
10563 # gcc_config_arguments into a C string.
10564 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10565 $gcc_config_arguments
10567 gcc_config_arguments_str=`cat conftest.out`
10570 cat > configargs.h <<EOF
10571 /* Generated automatically. */
10572 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10573 static const char thread_model[] = "$thread_file";
10575 static const struct {
10576 const char *name, *value;
10577 } configure_default_options[] = $configure_default_options;
10580 gcc_BASEVER=`cat $srcdir/BASE-VER`
10581 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10582 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10583 if test -f $srcdir/REVISION ; then
10584 gcc_REVISION=`cat $srcdir/REVISION`
10588 cat > plugin-version.h <<EOF
10589 #include "configargs.h"
10591 static char basever[] = "$gcc_BASEVER";
10592 static char datestamp[] = "$gcc_DATESTAMP";
10593 static char devphase[] = "$gcc_DEVPHASE";
10594 static char revision[] = "$gcc_REVISION";
10596 /* FIXME plugins: We should make the version information more precise.
10597 One way to do is to add a checksum. */
10599 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10600 devphase, revision,
10601 configuration_arguments};
10604 # Internationalization
10605 # If we haven't got the data from the intl directory,
10606 # assume NLS is disabled.
10615 if test -f ../intl/config.intl; then
10616 . ../intl/config.intl
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10619 $as_echo_n "checking whether NLS is requested... " >&6; }
10620 if test x"$USE_NLS" != xyes; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10625 $as_echo "yes" >&6; }
10627 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10631 $as_echo_n "checking for catalogs to be installed... " >&6; }
10632 # Look for .po and .gmo files in the source directory.
10635 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10636 # If there aren't any .gmo files the shell will give us the
10637 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10639 case "$cat" in *\**)
10642 # The quadruple backslash is collapsed to a double backslash
10643 # by the backticks, then collapsed again by the double quotes,
10644 # leaving us with one backslash in the sed expression (right
10645 # before the dot that mustn't act as a wildcard).
10646 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10647 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10648 # The user is allowed to set LINGUAS to a list of languages to
10649 # install catalogs for. If it's empty that means "all of them."
10650 if test "x$LINGUAS" = x; then
10651 CATALOGS="$CATALOGS $cat"
10652 XLINGUAS="$XLINGUAS $lang"
10654 case "$LINGUAS" in *$lang*)
10655 CATALOGS="$CATALOGS $cat"
10656 XLINGUAS="$XLINGUAS $lang"
10661 LINGUAS="$XLINGUAS"
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10663 $as_echo "$LINGUAS" >&6; }
10676 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10677 # -liconv on the link line twice.
10678 case "$LIBINTL" in *$LIBICONV*)
10682 # Check whether --enable-secureplt was given.
10683 if test "${enable_secureplt+set}" = set; then :
10684 enableval=$enable_secureplt;
10688 # Check whether --enable-cld was given.
10689 if test "${enable_cld+set}" = set; then :
10690 enableval=$enable_cld;
10696 # Windows32 Registry support for specifying GCC installation paths.
10697 # Check whether --enable-win32-registry was given.
10698 if test "${enable_win32_registry+set}" = set; then :
10699 enableval=$enable_win32_registry;
10704 win32 | pe | cygwin* | mingw32* | uwin*)
10705 if test "x$enable_win32_registry" != xno; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10707 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10708 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10711 ac_func_search_save_LIBS=$LIBS
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10721 char RegOpenKeyExA ();
10725 return RegOpenKeyExA ();
10730 for ac_lib in '' advapi32; do
10731 if test -z "$ac_lib"; then
10732 ac_res="none required"
10735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 ac_cv_search_RegOpenKeyExA=$ac_res
10740 rm -f core conftest.err conftest.$ac_objext \
10742 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10746 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10749 ac_cv_search_RegOpenKeyExA=no
10751 rm conftest.$ac_ext
10752 LIBS=$ac_func_search_save_LIBS
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10755 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10756 ac_res=$ac_cv_search_RegOpenKeyExA
10757 if test "$ac_res" != no; then :
10758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10761 enable_win32_registry=no
10766 if test "x$enable_win32_registry" != xno; then
10768 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10771 if test "x$enable_win32_registry" != xyes \
10772 && test "x$enable_win32_registry" != x; then
10774 cat >>confdefs.h <<_ACEOF
10775 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10783 # Get an absolute path to the GCC top-level source directory
10784 holddir=`${PWDCMD-pwd}`
10786 topdir=`${PWDCMD-pwd}`
10789 # Conditionalize the makefile for this host machine.
10791 for f in ${host_xmake_file}
10793 if test -f ${srcdir}/config/$f
10795 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10799 # Conditionalize the makefile for this target machine.
10801 for f in ${tmake_file}
10803 if test -f ${srcdir}/config/$f
10805 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10808 tmake_file="${tmake_file_}"
10810 out_object_file=`basename $out_file .c`.o
10812 tm_file_list="options.h"
10813 tm_include_list="options.h"
10814 for f in $tm_file; do
10817 f=`echo $f | sed 's/^..//'`
10818 tm_file_list="${tm_file_list} $f"
10819 tm_include_list="${tm_include_list} $f"
10822 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10823 tm_include_list="${tm_include_list} $f"
10826 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10827 tm_include_list="${tm_include_list} config/$f"
10834 for f in $tm_p_file; do
10837 tm_p_file_list="${tm_p_file_list} $f"
10838 tm_p_include_list="${tm_p_include_list} $f"
10841 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10842 tm_p_include_list="${tm_p_include_list} config/$f"
10848 for f in $xm_file; do
10851 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10852 xm_include_list="${xm_include_list} $f"
10855 xm_file_list="${xm_file_list} $f"
10856 xm_include_list="${xm_include_list} $f"
10859 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10860 xm_include_list="${xm_include_list} config/$f"
10866 host_xm_include_list=
10867 for f in $host_xm_file; do
10870 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10871 host_xm_include_list="${host_xm_include_list} $f"
10874 host_xm_file_list="${host_xm_file_list} $f"
10875 host_xm_include_list="${host_xm_include_list} $f"
10878 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10879 host_xm_include_list="${host_xm_include_list} config/$f"
10884 build_xm_file_list=
10885 for f in $build_xm_file; do
10888 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10889 build_xm_include_list="${build_xm_include_list} $f"
10891 auto-build.h | auto-host.h )
10892 build_xm_file_list="${build_xm_file_list} $f"
10893 build_xm_include_list="${build_xm_include_list} $f"
10896 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10897 build_xm_include_list="${build_xm_include_list} config/$f"
10902 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10903 # cross-compiler which does not use the native headers and libraries.
10904 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10907 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10909 if test "x$with_build_sysroot" != x; then
10910 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10912 # This value is used, even on a native system, because
10913 # CROSS_SYSTEM_HEADER_DIR is just
10914 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10915 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10918 if test x$host != x$target
10920 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10922 SYSTEM_HEADER_DIR=$build_system_header_dir
10923 case "$host","$target" in
10924 # Darwin crosses can use the host system's libraries and headers,
10925 # because of the fat library support. Of course, it must be the
10926 # same version of Darwin on both sides. Allow the user to
10927 # just say --target=foo-darwin without a version number to mean
10928 # "the version on this system".
10929 *-*-darwin*,*-*-darwin*)
10930 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10931 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10932 if test $hostos = $targetos -o $targetos = darwin ; then
10934 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10939 i?86-*-*,x86_64-*-* \
10940 | powerpc*-*-*,powerpc64*-*-*)
10941 CROSS="$CROSS -DNATIVE_CROSS" ;;
10943 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10944 SYSTEM_HEADER_DIR=$build_system_header_dir
10947 # If this is a cross-compiler that does not
10948 # have its own set of headers then define
10951 # If this is using newlib, without having the headers available now,
10952 # then define inhibit_libc in LIBGCC2_CFLAGS.
10953 # This prevents libgcc2 from containing any code which requires libc
10955 : ${inhibit_libc=false}
10956 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10957 test x$with_newlib = xyes ; } &&
10958 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10963 # When building gcc with a cross-compiler, we need to adjust things so
10964 # that the generator programs are still built with the native compiler.
10965 # Also, we cannot run fixincludes.
10967 # These are the normal (build=host) settings:
10968 CC_FOR_BUILD='$(CC)'
10969 BUILD_CFLAGS='$(ALL_CFLAGS)'
10970 BUILD_LDFLAGS='$(LDFLAGS)'
10971 STMP_FIXINC=stmp-fixinc
10973 # And these apply if build != host, or we are generating coverage data
10974 if test x$build != x$host || test "x$coverage_flags" != x
10976 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10977 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10980 # Expand extra_headers to include complete path.
10981 # This substitutes for lots of t-* files.
10982 extra_headers_list=
10983 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10984 for file in ${extra_headers} ; do
10985 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10988 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10989 if test x"$use_gcc_tgmath" = xyes
10990 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10993 # Define collect2 in Makefile.
10994 case $host_can_use_collect2 in
10996 *) collect2='collect2$(exeext)' ;;
11000 # Add a definition of USE_COLLECT2 if system wants one.
11001 case $use_collect2 in
11002 no) use_collect2= ;;
11005 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11006 xm_defines="${xm_defines} USE_COLLECT2"
11007 case $host_can_use_collect2 in
11009 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11015 # ---------------------------
11016 # Assembler & linker features
11017 # ---------------------------
11019 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11020 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11021 # However when ld-new is first executed from the build tree, libtool will
11022 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11023 # to the build tree. While doing this we need to use the previous-stage
11024 # linker, or we have an infinite loop. The presence of a shell script as
11025 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11026 # the gcc/collect-ld script. So we need to know how libtool works, or
11027 # exec-tool will fail.
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11033 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11038 macro_version='2.2.7a'
11039 macro_revision='1.3134'
11053 ltmain="$ac_aux_dir/ltmain.sh"
11055 # Backslashify metacharacters that are still active within
11056 # double-quoted strings.
11057 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11059 # Same as above, but do not quote variable references.
11060 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11062 # Sed substitution to delay expansion of an escaped shell variable in a
11063 # double_quote_subst'ed string.
11064 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11066 # Sed substitution to delay expansion of an escaped single quote.
11067 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11069 # Sed substitution to avoid accidental globbing in evaled expressions
11070 no_glob_subst='s/\*/\\\*/g'
11072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11077 $as_echo_n "checking how to print strings... " >&6; }
11078 # Test print first, because it will be a builtin if present.
11079 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11085 # Use this function as a fallback that always works.
11086 func_fallback_echo ()
11088 eval 'cat <<_LTECHO_EOF
11092 ECHO='func_fallback_echo'
11095 # func_echo_all arg...
11096 # Invoke $ECHO with all args, space-separated.
11103 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11104 $as_echo "printf" >&6; } ;;
11105 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11106 $as_echo "print -r" >&6; } ;;
11107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11108 $as_echo "cat" >&6; } ;;
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11126 if test "${ac_cv_path_SED+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11130 for ac_i in 1 2 3 4 5 6 7; do
11131 ac_script="$ac_script$as_nl$ac_script"
11133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11134 { ac_script=; unset ac_script;}
11135 if test -z "$SED"; then
11136 ac_path_SED_found=false
11137 # Loop through the user's path and test for each of PROGNAME-LIST
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11142 test -z "$as_dir" && as_dir=.
11143 for ac_prog in sed gsed; do
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11146 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11147 # Check for GNU ac_path_SED and select it if it is found.
11148 # Check for GNU $ac_path_SED
11149 case `"$ac_path_SED" --version 2>&1` in
11151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11154 $as_echo_n 0123456789 >"conftest.in"
11157 cat "conftest.in" "conftest.in" >"conftest.tmp"
11158 mv "conftest.tmp" "conftest.in"
11159 cp "conftest.in" "conftest.nl"
11160 $as_echo '' >> "conftest.nl"
11161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11163 as_fn_arith $ac_count + 1 && ac_count=$as_val
11164 if test $ac_count -gt ${ac_path_SED_max-0}; then
11165 # Best one so far, save it but keep looking for a better one
11166 ac_cv_path_SED="$ac_path_SED"
11167 ac_path_SED_max=$ac_count
11169 # 10*(2^10) chars as input seems more than enough
11170 test $ac_count -gt 10 && break
11172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11175 $ac_path_SED_found && break 3
11180 if test -z "$ac_cv_path_SED"; then
11181 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11184 ac_cv_path_SED=$SED
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11189 $as_echo "$ac_cv_path_SED" >&6; }
11190 SED="$ac_cv_path_SED"
11193 test -z "$SED" && SED=sed
11194 Xsed="$SED -e 1s/^X//"
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11207 $as_echo_n "checking for fgrep... " >&6; }
11208 if test "${ac_cv_path_FGREP+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11212 then ac_cv_path_FGREP="$GREP -F"
11214 if test -z "$FGREP"; then
11215 ac_path_FGREP_found=false
11216 # Loop through the user's path and test for each of PROGNAME-LIST
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11221 test -z "$as_dir" && as_dir=.
11222 for ac_prog in fgrep; do
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11226 # Check for GNU ac_path_FGREP and select it if it is found.
11227 # Check for GNU $ac_path_FGREP
11228 case `"$ac_path_FGREP" --version 2>&1` in
11230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11233 $as_echo_n 0123456789 >"conftest.in"
11236 cat "conftest.in" "conftest.in" >"conftest.tmp"
11237 mv "conftest.tmp" "conftest.in"
11238 cp "conftest.in" "conftest.nl"
11239 $as_echo 'FGREP' >> "conftest.nl"
11240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11242 as_fn_arith $ac_count + 1 && ac_count=$as_val
11243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11244 # Best one so far, save it but keep looking for a better one
11245 ac_cv_path_FGREP="$ac_path_FGREP"
11246 ac_path_FGREP_max=$ac_count
11248 # 10*(2^10) chars as input seems more than enough
11249 test $ac_count -gt 10 && break
11251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11254 $ac_path_FGREP_found && break 3
11259 if test -z "$ac_cv_path_FGREP"; then
11260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11263 ac_cv_path_FGREP=$FGREP
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11269 $as_echo "$ac_cv_path_FGREP" >&6; }
11270 FGREP="$ac_cv_path_FGREP"
11273 test -z "$GREP" && GREP=grep
11293 # Check whether --with-gnu-ld was given.
11294 if test "${with_gnu_ld+set}" = set; then :
11295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11301 if test "$GCC" = yes; then
11302 # Check if gcc -print-prog-name=ld gives a path.
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11304 $as_echo_n "checking for ld used by $CC... " >&6; }
11307 # gcc leaves a trailing carriage return which upsets mingw
11308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11313 # Accept absolute paths.
11315 re_direlt='/[^/][^/]*/\.\./'
11316 # Canonicalize the pathname of ld
11317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11321 test -z "$LD" && LD="$ac_prog"
11324 # If it fails, then pretend we aren't using GCC.
11328 # If it is relative, then search for the first ld in PATH.
11329 with_gnu_ld=unknown
11332 elif test "$with_gnu_ld" = yes; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11334 $as_echo_n "checking for GNU ld... " >&6; }
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11337 $as_echo_n "checking for non-GNU ld... " >&6; }
11339 if test "${lt_cv_path_LD+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11342 if test -z "$LD"; then
11343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11344 for ac_dir in $PATH; do
11346 test -z "$ac_dir" && ac_dir=.
11347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11348 lt_cv_path_LD="$ac_dir/$ac_prog"
11349 # Check to see if the program is GNU ld. I'd rather use --version,
11350 # but apparently some variants of GNU ld only accept -v.
11351 # Break only if it was the GNU/non-GNU ld that we prefer.
11352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11353 *GNU* | *'with BFD'*)
11354 test "$with_gnu_ld" != no && break
11357 test "$with_gnu_ld" != yes && break
11364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11368 LD="$lt_cv_path_LD"
11369 if test -n "$LD"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11371 $as_echo "$LD" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11383 case `$LD -v 2>&1 </dev/null` in
11384 *GNU* | *'with BFD'*)
11385 lt_cv_prog_gnu_ld=yes
11388 lt_cv_prog_gnu_ld=no
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11394 with_gnu_ld=$lt_cv_prog_gnu_ld
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11406 if test "${lt_cv_path_NM+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11409 if test -n "$NM"; then
11410 # Let the user override the test.
11411 lt_cv_path_NM="$NM"
11413 lt_nm_to_check="${ac_tool_prefix}nm"
11414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11415 lt_nm_to_check="$lt_nm_to_check nm"
11417 for lt_tmp_nm in $lt_nm_to_check; do
11418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11421 test -z "$ac_dir" && ac_dir=.
11422 tmp_nm="$ac_dir/$lt_tmp_nm"
11423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11424 # Check to see if the nm accepts a BSD-compat flag.
11425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11426 # nm: unknown option "B" ignored
11427 # Tru64's nm complains that /dev/null is an invalid object file
11428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11429 */dev/null* | *'Invalid file or object type'*)
11430 lt_cv_path_NM="$tmp_nm -B"
11434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11436 lt_cv_path_NM="$tmp_nm -p"
11440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11441 continue # so that we can try to find one that supports BSD flags
11450 : ${lt_cv_path_NM=no}
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11454 $as_echo "$lt_cv_path_NM" >&6; }
11455 if test "$lt_cv_path_NM" != "no"; then
11456 NM="$lt_cv_path_NM"
11458 # Didn't find any BSD compatible name lister, look for dumpbin.
11459 if test -n "$DUMPBIN"; then :
11460 # Let the user override the test.
11462 if test -n "$ac_tool_prefix"; then
11463 for ac_prog in dumpbin "link -dump"
11465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11468 $as_echo_n "checking for $ac_word... " >&6; }
11469 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11472 if test -n "$DUMPBIN"; then
11473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $PATH
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 DUMPBIN=$ac_cv_prog_DUMPBIN
11493 if test -n "$DUMPBIN"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11495 $as_echo "$DUMPBIN" >&6; }
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11502 test -n "$DUMPBIN" && break
11505 if test -z "$DUMPBIN"; then
11506 ac_ct_DUMPBIN=$DUMPBIN
11507 for ac_prog in dumpbin "link -dump"
11509 # Extract the first word of "$ac_prog", so it can be a program name with args.
11510 set dummy $ac_prog; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
11516 if test -n "$ac_ct_DUMPBIN"; then
11517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11537 if test -n "$ac_ct_DUMPBIN"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11539 $as_echo "$ac_ct_DUMPBIN" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11546 test -n "$ac_ct_DUMPBIN" && break
11549 if test "x$ac_ct_DUMPBIN" = x; then
11552 case $cross_compiling:$ac_tool_warned in
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11556 ac_tool_warned=yes ;;
11558 DUMPBIN=$ac_ct_DUMPBIN
11562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11564 DUMPBIN="$DUMPBIN -symbols"
11572 if test "$DUMPBIN" != ":"; then
11576 test -z "$NM" && NM=nm
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11585 if test "${lt_cv_nm_interface+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
11588 lt_cv_nm_interface="BSD nm"
11589 echo "int some_variable = 0;" > conftest.$ac_ext
11590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11591 (eval "$ac_compile" 2>conftest.err)
11592 cat conftest.err >&5
11593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11595 cat conftest.err >&5
11596 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11597 cat conftest.out >&5
11598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11599 lt_cv_nm_interface="MS dumpbin"
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11604 $as_echo "$lt_cv_nm_interface" >&6; }
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11607 $as_echo_n "checking whether ln -s works... " >&6; }
11609 if test "$LN_S" = "ln -s"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11611 $as_echo "yes" >&6; }
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11614 $as_echo "no, using $LN_S" >&6; }
11617 # find the maximum length of command line arguments
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11619 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11620 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11628 # On DJGPP, this test can blow up pretty badly due to problems in libc
11629 # (any single argument exceeding 2000 bytes causes a buffer overrun
11630 # during glob expansion). Even if it were fixed, the result of this
11631 # check would be larger than it should be.
11632 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11636 # Under GNU Hurd, this test is not required because there is
11637 # no limit to the length of command line arguments.
11638 # Libtool will interpret -1 as no limit whatsoever
11639 lt_cv_sys_max_cmd_len=-1;
11642 cygwin* | mingw* | cegcc*)
11643 # On Win9x/ME, this test blows up -- it succeeds, but takes
11644 # about 5 minutes as the teststring grows exponentially.
11645 # Worse, since 9x/ME are not pre-emptively multitasking,
11646 # you end up with a "frozen" computer, even though with patience
11647 # the test eventually succeeds (with a max line length of 256k).
11648 # Instead, let's just punt: use the minimum linelength reported by
11649 # all of the supported platforms: 8192 (on NT/2K/XP).
11650 lt_cv_sys_max_cmd_len=8192;
11654 # On MiNT this can take a long time and run out of memory.
11655 lt_cv_sys_max_cmd_len=8192;
11659 # On AmigaOS with pdksh, this test takes hours, literally.
11660 # So we just punt and use a minimum line length of 8192.
11661 lt_cv_sys_max_cmd_len=8192;
11664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11665 # This has been around since 386BSD, at least. Likely further.
11666 if test -x /sbin/sysctl; then
11667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11668 elif test -x /usr/sbin/sysctl; then
11669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11673 # And add a safety zone
11674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11679 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11680 lt_cv_sys_max_cmd_len=196608
11684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11686 # nice to cause kernel panics so lets avoid the loop below.
11687 # First set a reasonable default.
11688 lt_cv_sys_max_cmd_len=16384
11690 if test -x /sbin/sysconfig; then
11691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11692 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11697 lt_cv_sys_max_cmd_len=102400
11699 sysv5* | sco5v6* | sysv4.2uw2*)
11700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11701 if test -n "$kargmax"; then
11702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11704 lt_cv_sys_max_cmd_len=32768
11708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11709 if test -n "$lt_cv_sys_max_cmd_len"; then
11710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11713 # Make teststring a little bigger before we do anything with it.
11714 # a 1K string should be a reasonable start.
11715 for i in 1 2 3 4 5 6 7 8 ; do
11716 teststring=$teststring$teststring
11718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11719 # If test is not a shell built-in, we'll probably end up computing a
11720 # maximum length that is only half of the actual maximum length, but
11722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11724 test $i != 17 # 1/2 MB should be enough
11727 teststring=$teststring$teststring
11729 # Only check the string length outside the loop.
11730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11732 # Add a significant safety factor because C++ compilers can tack on
11733 # massive amounts of additional arguments before passing them to the
11734 # linker. It appears as though 1/2 is a usable value.
11735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11742 if test -n $lt_cv_sys_max_cmd_len ; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11747 $as_echo "none" >&6; }
11749 max_cmd_len=$lt_cv_sys_max_cmd_len
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11762 # Try some XSI features
11764 ( _lt_dummy="a/b/c"
11765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11767 && eval 'test $(( 1 + 1 )) -eq 2 \
11768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11771 $as_echo "$xsi_shell" >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11779 && lt_shell_append=yes
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11781 $as_echo "$lt_shell_append" >&6; }
11784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11794 # test EBCDIC or ASCII
11795 case `echo X|tr X '\101'` in
11796 A) # ASCII based system
11797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11798 lt_SP2NL='tr \040 \012'
11799 lt_NL2SP='tr \015\012 \040\040'
11801 *) # EBCDIC based system
11802 lt_SP2NL='tr \100 \n'
11803 lt_NL2SP='tr \r\n \100\100'
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11816 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11817 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11820 lt_cv_ld_reload_flag='-r'
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11823 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11824 reload_flag=$lt_cv_ld_reload_flag
11825 case $reload_flag in
11827 *) reload_flag=" $reload_flag" ;;
11829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11832 if test "$GCC" = yes; then
11833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11848 if test -n "$ac_tool_prefix"; then
11849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11854 $as_echo_n "(cached) " >&6
11856 if test -n "$OBJDUMP"; then
11857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
11865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 OBJDUMP=$ac_cv_prog_OBJDUMP
11877 if test -n "$OBJDUMP"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11879 $as_echo "$OBJDUMP" >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11887 if test -z "$ac_cv_prog_OBJDUMP"; then
11888 ac_ct_OBJDUMP=$OBJDUMP
11889 # Extract the first word of "objdump", so it can be a program name with args.
11890 set dummy objdump; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11896 if test -n "$ac_ct_OBJDUMP"; then
11897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11917 if test -n "$ac_ct_OBJDUMP"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11919 $as_echo "$ac_ct_OBJDUMP" >&6; }
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11925 if test "x$ac_ct_OBJDUMP" = x; then
11928 case $cross_compiling:$ac_tool_warned in
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11932 ac_tool_warned=yes ;;
11934 OBJDUMP=$ac_ct_OBJDUMP
11937 OBJDUMP="$ac_cv_prog_OBJDUMP"
11940 test -z "$OBJDUMP" && OBJDUMP=objdump
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11951 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11952 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11955 lt_cv_file_magic_cmd='$MAGIC_CMD'
11956 lt_cv_file_magic_test_file=
11957 lt_cv_deplibs_check_method='unknown'
11958 # Need to set the preceding variable on all platforms that support
11959 # interlibrary dependencies.
11960 # 'none' -- dependencies not supported.
11961 # `unknown' -- same as none, but documents that we really don't know.
11962 # 'pass_all' -- all dependencies passed with no checks.
11963 # 'test_compile' -- check by making test program.
11964 # 'file_magic [[regex]]' -- check by looking for files in library path
11965 # which responds to the $file_magic_cmd with a given extended regex.
11966 # If you have `file' or equivalent on your system and you're not sure
11967 # whether `pass_all' will *always* work, you probably want this one.
11971 lt_cv_deplibs_check_method=pass_all
11975 lt_cv_deplibs_check_method=pass_all
11979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11980 lt_cv_file_magic_cmd='/usr/bin/file -L'
11981 lt_cv_file_magic_test_file=/shlib/libc.so
11985 # func_win32_libid is a shell function defined in ltmain.sh
11986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11987 lt_cv_file_magic_cmd='func_win32_libid'
11991 # Base MSYS/MinGW do not provide the 'file' command needed by
11992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11993 # unless we find 'file', for example because we are cross-compiling.
11994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11997 lt_cv_file_magic_cmd='func_win32_libid'
11999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12000 lt_cv_file_magic_cmd='$OBJDUMP -f'
12005 # use the weaker test based on 'objdump'. See mingw*.
12006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12007 lt_cv_file_magic_cmd='$OBJDUMP -f'
12010 darwin* | rhapsody*)
12011 lt_cv_deplibs_check_method=pass_all
12014 freebsd* | dragonfly*)
12015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12018 # Not sure whether the presence of OpenBSD here was a mistake.
12019 # Let's accept both of them until this is cleared up.
12020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12021 lt_cv_file_magic_cmd=/usr/bin/file
12022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12026 lt_cv_deplibs_check_method=pass_all
12031 lt_cv_deplibs_check_method=pass_all
12035 lt_cv_deplibs_check_method=pass_all
12038 hpux10.20* | hpux11*)
12039 lt_cv_file_magic_cmd=/usr/bin/file
12042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12046 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]'
12047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12061 irix5* | irix6* | nonstopux*)
12063 *-32|*"-32 ") libmagic=32-bit;;
12064 *-n32|*"-n32 ") libmagic=N32;;
12065 *-64|*"-64 ") libmagic=64-bit;;
12066 *) libmagic=never-match;;
12068 lt_cv_deplibs_check_method=pass_all
12071 # This must be Linux ELF.
12072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12073 lt_cv_deplibs_check_method=pass_all
12077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12086 lt_cv_file_magic_cmd=/usr/bin/file
12087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12091 lt_cv_deplibs_check_method=pass_all
12095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12102 osf3* | osf4* | osf5*)
12103 lt_cv_deplibs_check_method=pass_all
12107 lt_cv_deplibs_check_method=pass_all
12111 lt_cv_deplibs_check_method=pass_all
12114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12115 lt_cv_deplibs_check_method=pass_all
12119 case $host_vendor in
12121 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]'
12122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12125 lt_cv_deplibs_check_method=pass_all
12128 lt_cv_file_magic_cmd='/bin/file'
12129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12132 lt_cv_file_magic_cmd='/bin/file'
12133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12134 lt_cv_file_magic_test_file=/lib/libc.so
12137 lt_cv_deplibs_check_method=pass_all
12140 lt_cv_deplibs_check_method=pass_all
12146 lt_cv_deplibs_check_method=pass_all
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12153 file_magic_cmd=$lt_cv_file_magic_cmd
12154 deplibs_check_method=$lt_cv_deplibs_check_method
12155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12168 if test -n "$ac_tool_prefix"; then
12169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12170 set dummy ${ac_tool_prefix}ar; ac_word=$2
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172 $as_echo_n "checking for $ac_word... " >&6; }
12173 if test "${ac_cv_prog_AR+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12176 if test -n "$AR"; then
12177 ac_cv_prog_AR="$AR" # Let the user override the test.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12183 test -z "$as_dir" && as_dir=.
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186 ac_cv_prog_AR="${ac_tool_prefix}ar"
12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 if test -n "$AR"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12199 $as_echo "$AR" >&6; }
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12207 if test -z "$ac_cv_prog_AR"; then
12209 # Extract the first word of "ar", so it can be a program name with args.
12210 set dummy ar; ac_word=$2
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212 $as_echo_n "checking for $ac_word... " >&6; }
12213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
12216 if test -n "$ac_ct_AR"; then
12217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226 ac_cv_prog_ac_ct_AR="ar"
12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12237 if test -n "$ac_ct_AR"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12239 $as_echo "$ac_ct_AR" >&6; }
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12245 if test "x$ac_ct_AR" = x; then
12248 case $cross_compiling:$ac_tool_warned in
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12252 ac_tool_warned=yes ;;
12257 AR="$ac_cv_prog_AR"
12260 test -z "$AR" && AR=ar
12261 test -z "$AR_FLAGS" && AR_FLAGS=cru
12273 if test -n "$ac_tool_prefix"; then
12274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12275 set dummy ${ac_tool_prefix}strip; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12277 $as_echo_n "checking for $ac_word... " >&6; }
12278 if test "${ac_cv_prog_STRIP+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12281 if test -n "$STRIP"; then
12282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 STRIP=$ac_cv_prog_STRIP
12302 if test -n "$STRIP"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12304 $as_echo "$STRIP" >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12312 if test -z "$ac_cv_prog_STRIP"; then
12314 # Extract the first word of "strip", so it can be a program name with args.
12315 set dummy strip; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12321 if test -n "$ac_ct_STRIP"; then
12322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_ac_ct_STRIP="strip"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12342 if test -n "$ac_ct_STRIP"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12344 $as_echo "$ac_ct_STRIP" >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12350 if test "x$ac_ct_STRIP" = x; then
12353 case $cross_compiling:$ac_tool_warned in
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12357 ac_tool_warned=yes ;;
12362 STRIP="$ac_cv_prog_STRIP"
12365 test -z "$STRIP" && STRIP=:
12372 if test -n "$ac_tool_prefix"; then
12373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12380 if test -n "$RANLIB"; then
12381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 RANLIB=$ac_cv_prog_RANLIB
12401 if test -n "$RANLIB"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12403 $as_echo "$RANLIB" >&6; }
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12411 if test -z "$ac_cv_prog_RANLIB"; then
12412 ac_ct_RANLIB=$RANLIB
12413 # Extract the first word of "ranlib", so it can be a program name with args.
12414 set dummy ranlib; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12420 if test -n "$ac_ct_RANLIB"; then
12421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_prog_ac_ct_RANLIB="ranlib"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12441 if test -n "$ac_ct_RANLIB"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12443 $as_echo "$ac_ct_RANLIB" >&6; }
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12449 if test "x$ac_ct_RANLIB" = x; then
12452 case $cross_compiling:$ac_tool_warned in
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12456 ac_tool_warned=yes ;;
12458 RANLIB=$ac_ct_RANLIB
12461 RANLIB="$ac_cv_prog_RANLIB"
12464 test -z "$RANLIB" && RANLIB=:
12471 # Determine commands to create old-style static archives.
12472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12473 old_postinstall_cmds='chmod 644 $oldlib'
12474 old_postuninstall_cmds=
12476 if test -n "$RANLIB"; then
12479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12490 lock_old_archive_extraction=yes ;;
12492 lock_old_archive_extraction=no ;;
12533 # If no C compiler was specified, use CC.
12536 # If no C compiler flags were specified, use CFLAGS.
12537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12539 # Allow CC to be a program name with arguments.
12543 # Check for command to grab the raw symbol name followed by C symbol from nm.
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12550 # These are sane defaults that work on at least a few old systems.
12551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12553 # Character class describing NM global symbol codes.
12554 symcode='[BCDEGRST]'
12556 # Regexp to match symbols that can be accessed directly from C.
12557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12559 # Define system-specific variables.
12564 cygwin* | mingw* | pw32* | cegcc*)
12565 symcode='[ABCDGISTW]'
12568 if test "$host_cpu" = ia64; then
12569 symcode='[ABCDEGRST]'
12572 irix* | nonstopux*)
12573 symcode='[BCDEGRST]'
12576 symcode='[BCDEGQRST]'
12587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12595 # If we're using GNU nm, then use its standard symbol codes.
12596 case `$NM -V 2>&1` in
12597 *GNU* | *'with BFD'*)
12598 symcode='[ABCDGIRSTW]' ;;
12601 # Transform an extracted symbol line into a proper C declaration.
12602 # Some systems (esp. on ia64) link data and code symbols differently,
12603 # so use this general approach.
12604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12606 # Transform an extracted symbol line into symbol name and symbol address
12607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12608 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'"
12610 # Handle CRLF in mingw tool chain
12614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12618 # Try without a prefix underscore, then with it.
12619 for ac_symprfx in "" "_"; do
12621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12622 symxfrm="\\1 $ac_symprfx\\2 \\2"
12624 # Write the raw and C identifiers.
12625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12626 # Fake it for dumpbin and say T for any non-static function
12627 # and D for any global variable.
12628 # Also find C++ and __fastcall symbols from MSVC++,
12629 # which start with @ or ?.
12630 lt_cv_sys_global_symbol_pipe="$AWK '"\
12631 " {last_section=section; section=\$ 3};"\
12632 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12633 " \$ 0!~/External *\|/{next};"\
12634 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12635 " {if(hide[section]) next};"\
12636 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12637 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12638 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12639 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12640 " ' prfx=^$ac_symprfx"
12642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12645 # Check to see that the pipe works correctly.
12649 cat > conftest.$ac_ext <<_LT_EOF
12654 void nm_test_func(void);
12655 void nm_test_func(void){}
12659 int main(){nm_test_var='a';nm_test_func();return(0);}
12662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12663 (eval $ac_compile) 2>&5
12665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666 test $ac_status = 0; }; then
12667 # Now try to grab the symbols.
12669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673 test $ac_status = 0; } && test -s "$nlist"; then
12674 # Try sorting and uniquifying the output.
12675 if sort "$nlist" | uniq > "$nlist"T; then
12676 mv -f "$nlist"T "$nlist"
12681 # Make sure that we snagged all the symbols we need.
12682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12684 cat <<_LT_EOF > conftest.$ac_ext
12690 # Now generate the symbol file.
12691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12693 cat <<_LT_EOF >> conftest.$ac_ext
12695 /* The mapping between symbol names and symbols. */
12700 lt__PROGRAM__LTX_preloaded_symbols[] =
12702 { "@PROGRAM@", (void *) 0 },
12704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12705 cat <<\_LT_EOF >> conftest.$ac_ext
12709 /* This works around a problem in FreeBSD linker */
12710 #ifdef FREEBSD_WORKAROUND
12711 static const void *lt_preloaded_setup() {
12712 return lt__PROGRAM__LTX_preloaded_symbols;
12720 # Now try linking the two files.
12721 mv conftest.$ac_objext conftstm.$ac_objext
12722 lt_save_LIBS="$LIBS"
12723 lt_save_CFLAGS="$CFLAGS"
12724 LIBS="conftstm.$ac_objext"
12725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12727 (eval $ac_link) 2>&5
12729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12733 LIBS="$lt_save_LIBS"
12734 CFLAGS="$lt_save_CFLAGS"
12736 echo "cannot find nm_test_func in $nlist" >&5
12739 echo "cannot find nm_test_var in $nlist" >&5
12742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12745 echo "$progname: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12748 rm -rf conftest* conftst*
12750 # Do not use the global_symbol_pipe unless it works.
12751 if test "$pipe_works" = yes; then
12754 lt_cv_sys_global_symbol_pipe=
12760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12761 lt_cv_sys_global_symbol_to_cdecl=
12763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12765 $as_echo "failed" >&6; }
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12768 $as_echo "ok" >&6; }
12792 # Check whether --enable-libtool-lock was given.
12793 if test "${enable_libtool_lock+set}" = set; then :
12794 enableval=$enable_libtool_lock;
12797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12799 # Some flags need to be propagated to the compiler or linker for good
12803 # Find out which ABI we are using.
12804 echo 'int i;' > conftest.$ac_ext
12805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12806 (eval $ac_compile) 2>&5
12808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12809 test $ac_status = 0; }; then
12810 case `/usr/bin/file conftest.$ac_objext` in
12812 HPUX_IA64_MODE="32"
12815 HPUX_IA64_MODE="64"
12822 # Find out which ABI we are using.
12823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12825 (eval $ac_compile) 2>&5
12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; }; then
12829 if test "$lt_cv_prog_gnu_ld" = yes; then
12830 case `/usr/bin/file conftest.$ac_objext` in
12832 LD="${LD-ld} -melf32bsmip"
12835 LD="${LD-ld} -melf32bmipn32"
12838 LD="${LD-ld} -melf64bmip"
12842 case `/usr/bin/file conftest.$ac_objext` in
12858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12860 # Find out which ABI we are using.
12861 echo 'int i;' > conftest.$ac_ext
12862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12863 (eval $ac_compile) 2>&5
12865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12866 test $ac_status = 0; }; then
12867 case `/usr/bin/file conftest.o` in
12870 x86_64-*kfreebsd*-gnu)
12871 LD="${LD-ld} -m elf_i386_fbsd"
12874 LD="${LD-ld} -m elf_i386"
12876 ppc64-*linux*|powerpc64-*linux*)
12877 LD="${LD-ld} -m elf32ppclinux"
12880 LD="${LD-ld} -m elf_s390"
12883 LD="${LD-ld} -m elf32_sparc"
12889 x86_64-*kfreebsd*-gnu)
12890 LD="${LD-ld} -m elf_x86_64_fbsd"
12893 LD="${LD-ld} -m elf_x86_64"
12895 ppc*-*linux*|powerpc*-*linux*)
12896 LD="${LD-ld} -m elf64ppc"
12898 s390*-*linux*|s390*-*tpf*)
12899 LD="${LD-ld} -m elf64_s390"
12902 LD="${LD-ld} -m elf64_sparc"
12912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12913 SAVE_CFLAGS="$CFLAGS"
12914 CFLAGS="$CFLAGS -belf"
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12916 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12917 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
12921 ac_cpp='$CPP $CPPFLAGS'
12922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12937 if ac_fn_c_try_link "$LINENO"; then :
12938 lt_cv_cc_needs_belf=yes
12940 lt_cv_cc_needs_belf=no
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12945 ac_cpp='$CPP $CPPFLAGS'
12946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12952 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12955 CFLAGS="$SAVE_CFLAGS"
12959 # Find out which ABI we are using.
12960 echo 'int i;' > conftest.$ac_ext
12961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12962 (eval $ac_compile) 2>&5
12964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12965 test $ac_status = 0; }; then
12966 case `/usr/bin/file conftest.o` in
12968 case $lt_cv_prog_gnu_ld in
12969 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12971 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12983 need_locks="$enable_libtool_lock"
12987 rhapsody* | darwin*)
12988 if test -n "$ac_tool_prefix"; then
12989 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12990 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992 $as_echo_n "checking for $ac_word... " >&6; }
12993 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 if test -n "$DSYMUTIL"; then
12997 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
13005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13006 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13017 if test -n "$DSYMUTIL"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13019 $as_echo "$DSYMUTIL" >&6; }
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13027 if test -z "$ac_cv_prog_DSYMUTIL"; then
13028 ac_ct_DSYMUTIL=$DSYMUTIL
13029 # Extract the first word of "dsymutil", so it can be a program name with args.
13030 set dummy dsymutil; ac_word=$2
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032 $as_echo_n "checking for $ac_word... " >&6; }
13033 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13034 $as_echo_n "(cached) " >&6
13036 if test -n "$ac_ct_DSYMUTIL"; then
13037 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
13045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13046 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13057 if test -n "$ac_ct_DSYMUTIL"; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13059 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062 $as_echo "no" >&6; }
13065 if test "x$ac_ct_DSYMUTIL" = x; then
13068 case $cross_compiling:$ac_tool_warned in
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13072 ac_tool_warned=yes ;;
13074 DSYMUTIL=$ac_ct_DSYMUTIL
13077 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13080 if test -n "$ac_tool_prefix"; then
13081 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13082 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13086 $as_echo_n "(cached) " >&6
13088 if test -n "$NMEDIT"; then
13089 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 NMEDIT=$ac_cv_prog_NMEDIT
13109 if test -n "$NMEDIT"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13111 $as_echo "$NMEDIT" >&6; }
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13119 if test -z "$ac_cv_prog_NMEDIT"; then
13120 ac_ct_NMEDIT=$NMEDIT
13121 # Extract the first word of "nmedit", so it can be a program name with args.
13122 set dummy nmedit; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13128 if test -n "$ac_ct_NMEDIT"; then
13129 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13149 if test -n "$ac_ct_NMEDIT"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13151 $as_echo "$ac_ct_NMEDIT" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13157 if test "x$ac_ct_NMEDIT" = x; then
13160 case $cross_compiling:$ac_tool_warned in
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13164 ac_tool_warned=yes ;;
13166 NMEDIT=$ac_ct_NMEDIT
13169 NMEDIT="$ac_cv_prog_NMEDIT"
13172 if test -n "$ac_tool_prefix"; then
13173 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13174 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if test "${ac_cv_prog_LIPO+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13180 if test -n "$LIPO"; then
13181 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13190 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13200 LIPO=$ac_cv_prog_LIPO
13201 if test -n "$LIPO"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13203 $as_echo "$LIPO" >&6; }
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13206 $as_echo "no" >&6; }
13211 if test -z "$ac_cv_prog_LIPO"; then
13213 # Extract the first word of "lipo", so it can be a program name with args.
13214 set dummy lipo; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13220 if test -n "$ac_ct_LIPO"; then
13221 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230 ac_cv_prog_ac_ct_LIPO="lipo"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13241 if test -n "$ac_ct_LIPO"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13243 $as_echo "$ac_ct_LIPO" >&6; }
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13249 if test "x$ac_ct_LIPO" = x; then
13252 case $cross_compiling:$ac_tool_warned in
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13256 ac_tool_warned=yes ;;
13261 LIPO="$ac_cv_prog_LIPO"
13264 if test -n "$ac_tool_prefix"; then
13265 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13266 set dummy ${ac_tool_prefix}otool; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13272 if test -n "$OTOOL"; then
13273 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13282 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 OTOOL=$ac_cv_prog_OTOOL
13293 if test -n "$OTOOL"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13295 $as_echo "$OTOOL" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13303 if test -z "$ac_cv_prog_OTOOL"; then
13305 # Extract the first word of "otool", so it can be a program name with args.
13306 set dummy otool; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13310 $as_echo_n "(cached) " >&6
13312 if test -n "$ac_ct_OTOOL"; then
13313 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322 ac_cv_prog_ac_ct_OTOOL="otool"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13333 if test -n "$ac_ct_OTOOL"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13335 $as_echo "$ac_ct_OTOOL" >&6; }
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13341 if test "x$ac_ct_OTOOL" = x; then
13344 case $cross_compiling:$ac_tool_warned in
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13348 ac_tool_warned=yes ;;
13353 OTOOL="$ac_cv_prog_OTOOL"
13356 if test -n "$ac_tool_prefix"; then
13357 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13358 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360 $as_echo_n "checking for $ac_word... " >&6; }
13361 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13364 if test -n "$OTOOL64"; then
13365 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368 for as_dir in $PATH
13371 test -z "$as_dir" && as_dir=.
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13374 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 OTOOL64=$ac_cv_prog_OTOOL64
13385 if test -n "$OTOOL64"; then
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13387 $as_echo "$OTOOL64" >&6; }
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13395 if test -z "$ac_cv_prog_OTOOL64"; then
13396 ac_ct_OTOOL64=$OTOOL64
13397 # Extract the first word of "otool64", so it can be a program name with args.
13398 set dummy otool64; ac_word=$2
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400 $as_echo_n "checking for $ac_word... " >&6; }
13401 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13402 $as_echo_n "(cached) " >&6
13404 if test -n "$ac_ct_OTOOL64"; then
13405 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13414 ac_cv_prog_ac_ct_OTOOL64="otool64"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13425 if test -n "$ac_ct_OTOOL64"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13427 $as_echo "$ac_ct_OTOOL64" >&6; }
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13433 if test "x$ac_ct_OTOOL64" = x; then
13436 case $cross_compiling:$ac_tool_warned in
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13440 ac_tool_warned=yes ;;
13442 OTOOL64=$ac_ct_OTOOL64
13445 OTOOL64="$ac_cv_prog_OTOOL64"
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13475 $as_echo_n "checking for -single_module linker flag... " >&6; }
13476 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13477 $as_echo_n "(cached) " >&6
13479 lt_cv_apple_cc_single_mod=no
13480 if test -z "${LT_MULTI_MODULE}"; then
13481 # By default we will add the -single_module flag. You can override
13482 # by either setting the environment variable LT_MULTI_MODULE
13483 # non-empty at configure time, or by adding -multi_module to the
13485 rm -rf libconftest.dylib*
13486 echo "int foo(void){return 1;}" > conftest.c
13487 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13488 -dynamiclib -Wl,-single_module conftest.c" >&5
13489 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13490 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13492 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13493 lt_cv_apple_cc_single_mod=yes
13495 cat conftest.err >&5
13497 rm -rf libconftest.dylib*
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13502 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13504 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13505 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13508 lt_cv_ld_exported_symbols_list=no
13509 save_LDFLAGS=$LDFLAGS
13510 echo "_main" > conftest.sym
13511 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13523 if ac_fn_c_try_link "$LINENO"; then :
13524 lt_cv_ld_exported_symbols_list=yes
13526 lt_cv_ld_exported_symbols_list=no
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 LDFLAGS="$save_LDFLAGS"
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13534 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13536 $as_echo_n "checking for -force_load linker flag... " >&6; }
13537 if test "${lt_cv_ld_force_load+set}" = set; then :
13538 $as_echo_n "(cached) " >&6
13540 lt_cv_ld_force_load=no
13541 cat > conftest.c << _LT_EOF
13542 int forced_loaded() { return 2;}
13544 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13545 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13546 echo "$AR cru libconftest.a conftest.o" >&5
13547 $AR cru libconftest.a conftest.o 2>&5
13548 cat > conftest.c << _LT_EOF
13549 int main() { return 0;}
13551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13554 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13555 lt_cv_ld_force_load=yes
13557 cat conftest.err >&5
13559 rm -f conftest.err libconftest.a conftest conftest.c
13560 rm -rf conftest.dSYM
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13564 $as_echo "$lt_cv_ld_force_load" >&6; }
13566 rhapsody* | darwin1.[012])
13567 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13569 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13570 darwin*) # darwin 5.x on
13571 # if running on 10.5 or later, the deployment target defaults
13572 # to the OS version, if on x86, and 10.4, the deployment
13573 # target defaults to 10.4. Don't you love it?
13574 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13575 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13576 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13578 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13580 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13584 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13585 _lt_dar_single_mod='$single_module'
13587 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13588 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13592 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13593 _lt_dsymutil='~$DSYMUTIL $lib || :'
13600 for ac_header in dlfcn.h
13602 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13603 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_DLFCN_H 1
13623 enable_win32_dll=no
13626 # Check whether --enable-shared was given.
13627 if test "${enable_shared+set}" = set; then :
13628 enableval=$enable_shared; p=${PACKAGE-default}
13630 yes) enable_shared=yes ;;
13631 no) enable_shared=no ;;
13634 # Look at the argument we got. We use all the common list separators.
13635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13636 for pkg in $enableval; do
13638 if test "X$pkg" = "X$p"; then
13657 # Check whether --enable-static was given.
13658 if test "${enable_static+set}" = set; then :
13659 enableval=$enable_static; p=${PACKAGE-default}
13661 yes) enable_static=yes ;;
13662 no) enable_static=no ;;
13665 # Look at the argument we got. We use all the common list separators.
13666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13667 for pkg in $enableval; do
13669 if test "X$pkg" = "X$p"; then
13689 # Check whether --with-pic was given.
13690 if test "${with_pic+set}" = set; then :
13691 withval=$with_pic; pic_mode="$withval"
13697 test -z "$pic_mode" && pic_mode=default
13705 # Check whether --enable-fast-install was given.
13706 if test "${enable_fast_install+set}" = set; then :
13707 enableval=$enable_fast_install; p=${PACKAGE-default}
13709 yes) enable_fast_install=yes ;;
13710 no) enable_fast_install=no ;;
13712 enable_fast_install=no
13713 # Look at the argument we got. We use all the common list separators.
13714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13715 for pkg in $enableval; do
13717 if test "X$pkg" = "X$p"; then
13718 enable_fast_install=yes
13725 enable_fast_install=yes
13738 # This can be used to rebuild libtool when needed
13739 LIBTOOL_DEPS="$ltmain"
13741 # Always use our own libtool.
13742 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13769 test -z "$LN_S" && LN_S="ln -s"
13784 if test -n "${ZSH_VERSION+set}" ; then
13785 setopt NO_GLOB_SUBST
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13789 $as_echo_n "checking for objdir... " >&6; }
13790 if test "${lt_cv_objdir+set}" = set; then :
13791 $as_echo_n "(cached) " >&6
13793 rm -f .libs 2>/dev/null
13794 mkdir .libs 2>/dev/null
13795 if test -d .libs; then
13798 # MS-DOS does not allow filenames that begin with a dot.
13801 rmdir .libs 2>/dev/null
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13804 $as_echo "$lt_cv_objdir" >&6; }
13805 objdir=$lt_cv_objdir
13811 cat >>confdefs.h <<_ACEOF
13812 #define LT_OBJDIR "$lt_cv_objdir/"
13820 # AIX sometimes has problems with the GCC collect2 program. For some
13821 # reason, if we set the COLLECT_NAMES environment variable, the problems
13822 # vanish in a puff of smoke.
13823 if test "X${COLLECT_NAMES+set}" != Xset; then
13825 export COLLECT_NAMES
13830 # Global variables:
13832 can_build_shared=yes
13834 # All known linkers require a `.a' archive for static linking (except MSVC,
13835 # which needs '.lib').
13838 with_gnu_ld="$lt_cv_prog_gnu_ld"
13841 old_CFLAGS="$CFLAGS"
13843 # Set sane defaults for various variables
13844 test -z "$CC" && CC=cc
13845 test -z "$LTCC" && LTCC=$CC
13846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13847 test -z "$LD" && LD=ld
13848 test -z "$ac_objext" && ac_objext=o
13850 for cc_temp in $compiler""; do
13852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13858 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13861 # Only perform the check for file, if the check method requires it
13862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13863 case $deplibs_check_method in
13865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13869 $as_echo_n "(cached) " >&6
13873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13876 lt_save_MAGIC_CMD="$MAGIC_CMD"
13877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13879 for ac_dir in $ac_dummy; do
13881 test -z "$ac_dir" && ac_dir=.
13882 if test -f $ac_dir/${ac_tool_prefix}file; then
13883 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13884 if test -n "$file_magic_test_file"; then
13885 case $deplibs_check_method in
13887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13890 $EGREP "$file_magic_regex" > /dev/null; then
13895 *** Warning: the command libtool uses to detect shared libraries,
13896 *** $file_magic_cmd, produces output that libtool cannot recognize.
13897 *** The result is that libtool may fail to recognize shared libraries
13898 *** as such. This will affect the creation of libtool libraries that
13899 *** depend on shared libraries, but programs linked with such libtool
13900 *** libraries will work regardless of this problem. Nevertheless, you
13901 *** may want to report the problem to your system manager and/or to
13902 *** bug-libtool@gnu.org
13912 MAGIC_CMD="$lt_save_MAGIC_CMD"
13917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13918 if test -n "$MAGIC_CMD"; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13920 $as_echo "$MAGIC_CMD" >&6; }
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13930 if test -z "$lt_cv_path_MAGIC_CMD"; then
13931 if test -n "$ac_tool_prefix"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13933 $as_echo_n "checking for file... " >&6; }
13934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13935 $as_echo_n "(cached) " >&6
13939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13942 lt_save_MAGIC_CMD="$MAGIC_CMD"
13943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13945 for ac_dir in $ac_dummy; do
13947 test -z "$ac_dir" && ac_dir=.
13948 if test -f $ac_dir/file; then
13949 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13950 if test -n "$file_magic_test_file"; then
13951 case $deplibs_check_method in
13953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13956 $EGREP "$file_magic_regex" > /dev/null; then
13961 *** Warning: the command libtool uses to detect shared libraries,
13962 *** $file_magic_cmd, produces output that libtool cannot recognize.
13963 *** The result is that libtool may fail to recognize shared libraries
13964 *** as such. This will affect the creation of libtool libraries that
13965 *** depend on shared libraries, but programs linked with such libtool
13966 *** libraries will work regardless of this problem. Nevertheless, you
13967 *** may want to report the problem to your system manager and/or to
13968 *** bug-libtool@gnu.org
13978 MAGIC_CMD="$lt_save_MAGIC_CMD"
13983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13984 if test -n "$MAGIC_CMD"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13986 $as_echo "$MAGIC_CMD" >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13989 $as_echo "no" >&6; }
14002 # Use C for the default configuration in the libtool script
14006 ac_cpp='$CPP $CPPFLAGS'
14007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14012 # Source file extension for C test sources.
14015 # Object file extension for compiled C test sources.
14019 # Code to be used in simple compile tests
14020 lt_simple_compile_test_code="int some_variable = 0;"
14022 # Code to be used in simple link tests
14023 lt_simple_link_test_code='int main(){return(0);}'
14031 # If no C compiler was specified, use CC.
14034 # If no C compiler flags were specified, use CFLAGS.
14035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14037 # Allow CC to be a program name with arguments.
14040 # Save the default compiler, since it gets overwritten when the other
14041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14042 compiler_DEFAULT=$CC
14044 # save warnings/boilerplate of simple test code
14045 ac_outfile=conftest.$ac_objext
14046 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14047 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14048 _lt_compiler_boilerplate=`cat conftest.err`
14051 ac_outfile=conftest.$ac_objext
14052 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14053 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14054 _lt_linker_boilerplate=`cat conftest.err`
14059 ## There is no encapsulation within the following macros, do not change
14060 ## the running order or otherwise move them around unless you know exactly
14061 ## what you are doing...
14062 if test -n "$compiler"; then
14064 lt_prog_compiler_no_builtin_flag=
14066 if test "$GCC" = yes; then
14067 case $cc_basename in
14069 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14071 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14075 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14076 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14079 lt_cv_prog_compiler_rtti_exceptions=no
14080 ac_outfile=conftest.$ac_objext
14081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14082 lt_compiler_flag="-fno-rtti -fno-exceptions"
14083 # Insert the option either (1) after the last *FLAGS variable, or
14084 # (2) before a word containing "conftest.", or (3) at the end.
14085 # Note that $ac_compile itself does not contain backslashes and begins
14086 # with a dollar sign (not a hyphen), so the echo should work correctly.
14087 # The option is referenced via a variable to avoid confusing sed.
14088 lt_compile=`echo "$ac_compile" | $SED \
14089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14091 -e 's:$: $lt_compiler_flag:'`
14092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14093 (eval "$lt_compile" 2>conftest.err)
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 if (exit $ac_status) && test -s "$ac_outfile"; then
14098 # The compiler can only warn and ignore the option if not recognized
14099 # So say no if there are warnings other than the usual output.
14100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14103 lt_cv_prog_compiler_rtti_exceptions=yes
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14110 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14113 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14125 lt_prog_compiler_wl=
14126 lt_prog_compiler_pic=
14127 lt_prog_compiler_static=
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14130 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14132 if test "$GCC" = yes; then
14133 lt_prog_compiler_wl='-Wl,'
14134 lt_prog_compiler_static='-static'
14138 # All AIX code is PIC.
14139 if test "$host_cpu" = ia64; then
14140 # AIX 5 now supports IA64 processor
14141 lt_prog_compiler_static='-Bstatic'
14148 # see comment about AmigaOS4 .so support
14149 lt_prog_compiler_pic='-fPIC'
14152 # FIXME: we need at least 68020 code to build shared libraries, but
14153 # adding the `-m68020' flag to GCC prevents building anything better,
14155 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14161 # PIC is the default for these OSes.
14164 mingw* | cygwin* | pw32* | os2* | cegcc*)
14165 # This hack is so that the source file can tell whether it is being
14166 # built for inclusion in a dll (and should export symbols for example).
14167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14168 # (--disable-auto-import) libraries
14169 lt_prog_compiler_pic='-DDLL_EXPORT'
14172 darwin* | rhapsody*)
14173 # PIC is the default on this platform
14174 # Common symbols not allowed in MH_DYLIB files
14175 lt_prog_compiler_pic='-fno-common'
14179 # PIC is the default for Haiku.
14180 # The "-static" flag exists, but is broken.
14181 lt_prog_compiler_static=
14185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14187 # sets the default TLS model and affects inlining.
14193 lt_prog_compiler_pic='-fPIC'
14199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14200 # Instead, we relocate shared libraries at runtime.
14204 # Just because we use GCC doesn't mean we suddenly get shared libraries
14205 # on systems that don't support them.
14206 lt_prog_compiler_can_build_shared=no
14211 # QNX uses GNU C++, but need to define -shared option too, otherwise
14212 # it will coredump.
14213 lt_prog_compiler_pic='-fPIC -shared'
14217 if test -d /usr/nec; then
14218 lt_prog_compiler_pic=-Kconform_pic
14223 lt_prog_compiler_pic='-fPIC'
14227 case $cc_basename in
14228 nvcc*) # Cuda Compiler Driver 2.2
14229 lt_prog_compiler_wl='-Xlinker '
14230 lt_prog_compiler_pic='-Xcompiler -fPIC'
14234 # PORTME Check for flag to pass linker flags through the system compiler.
14237 lt_prog_compiler_wl='-Wl,'
14238 if test "$host_cpu" = ia64; then
14239 # AIX 5 now supports IA64 processor
14240 lt_prog_compiler_static='-Bstatic'
14242 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14246 mingw* | cygwin* | pw32* | os2* | cegcc*)
14247 # This hack is so that the source file can tell whether it is being
14248 # built for inclusion in a dll (and should export symbols for example).
14249 lt_prog_compiler_pic='-DDLL_EXPORT'
14252 hpux9* | hpux10* | hpux11*)
14253 lt_prog_compiler_wl='-Wl,'
14254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255 # not for PA HP-UX.
14261 lt_prog_compiler_pic='+Z'
14264 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14265 lt_prog_compiler_static='${wl}-a ${wl}archive'
14268 irix5* | irix6* | nonstopux*)
14269 lt_prog_compiler_wl='-Wl,'
14270 # PIC (with -KPIC) is the default.
14271 lt_prog_compiler_static='-non_shared'
14274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14275 case $cc_basename in
14276 # old Intel for x86_64 which still supported -KPIC.
14278 lt_prog_compiler_wl='-Wl,'
14279 lt_prog_compiler_pic='-KPIC'
14280 lt_prog_compiler_static='-static'
14282 # icc used to be incompatible with GCC.
14283 # ICC 10 doesn't accept -KPIC any more.
14285 lt_prog_compiler_wl='-Wl,'
14286 lt_prog_compiler_pic='-fPIC'
14287 lt_prog_compiler_static='-static'
14289 # Lahey Fortran 8.1.
14291 lt_prog_compiler_wl='-Wl,'
14292 lt_prog_compiler_pic='--shared'
14293 lt_prog_compiler_static='--static'
14295 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14296 # Portland Group compilers (*not* the Pentium gcc compiler,
14297 # which looks to be a dead project)
14298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-fpic'
14300 lt_prog_compiler_static='-Bstatic'
14303 lt_prog_compiler_wl='-Wl,'
14304 # All Alpha code is PIC.
14305 lt_prog_compiler_static='-non_shared'
14307 xl* | bgxl* | bgf* | mpixl*)
14308 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14309 lt_prog_compiler_wl='-Wl,'
14310 lt_prog_compiler_pic='-qpic'
14311 lt_prog_compiler_static='-qstaticlink'
14314 case `$CC -V 2>&1 | sed 5q` in
14315 *Sun\ F* | *Sun*Fortran*)
14316 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14317 lt_prog_compiler_pic='-KPIC'
14318 lt_prog_compiler_static='-Bstatic'
14319 lt_prog_compiler_wl=''
14323 lt_prog_compiler_pic='-KPIC'
14324 lt_prog_compiler_static='-Bstatic'
14325 lt_prog_compiler_wl='-Wl,'
14333 lt_prog_compiler_pic='-KPIC'
14334 lt_prog_compiler_static='-Bstatic'
14338 # QNX uses GNU C++, but need to define -shared option too, otherwise
14339 # it will coredump.
14340 lt_prog_compiler_pic='-fPIC -shared'
14343 osf3* | osf4* | osf5*)
14344 lt_prog_compiler_wl='-Wl,'
14345 # All OSF/1 code is PIC.
14346 lt_prog_compiler_static='-non_shared'
14350 lt_prog_compiler_static='-non_shared'
14354 lt_prog_compiler_pic='-KPIC'
14355 lt_prog_compiler_static='-Bstatic'
14356 case $cc_basename in
14357 f77* | f90* | f95*)
14358 lt_prog_compiler_wl='-Qoption ld ';;
14360 lt_prog_compiler_wl='-Wl,';;
14365 lt_prog_compiler_wl='-Qoption ld '
14366 lt_prog_compiler_pic='-PIC'
14367 lt_prog_compiler_static='-Bstatic'
14370 sysv4 | sysv4.2uw2* | sysv4.3*)
14371 lt_prog_compiler_wl='-Wl,'
14372 lt_prog_compiler_pic='-KPIC'
14373 lt_prog_compiler_static='-Bstatic'
14377 if test -d /usr/nec ;then
14378 lt_prog_compiler_pic='-Kconform_pic'
14379 lt_prog_compiler_static='-Bstatic'
14383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14390 lt_prog_compiler_wl='-Wl,'
14391 lt_prog_compiler_can_build_shared=no
14395 lt_prog_compiler_pic='-pic'
14396 lt_prog_compiler_static='-Bstatic'
14400 lt_prog_compiler_can_build_shared=no
14406 # For platforms which do not support PIC, -DPIC is meaningless:
14408 lt_prog_compiler_pic=
14411 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14415 $as_echo "$lt_prog_compiler_pic" >&6; }
14423 # Check to make sure the PIC flag actually works.
14425 if test -n "$lt_prog_compiler_pic"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14427 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14428 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14431 lt_cv_prog_compiler_pic_works=no
14432 ac_outfile=conftest.$ac_objext
14433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14434 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14435 # Insert the option either (1) after the last *FLAGS variable, or
14436 # (2) before a word containing "conftest.", or (3) at the end.
14437 # Note that $ac_compile itself does not contain backslashes and begins
14438 # with a dollar sign (not a hyphen), so the echo should work correctly.
14439 # The option is referenced via a variable to avoid confusing sed.
14440 lt_compile=`echo "$ac_compile" | $SED \
14441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14443 -e 's:$: $lt_compiler_flag:'`
14444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14445 (eval "$lt_compile" 2>conftest.err)
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 if (exit $ac_status) && test -s "$ac_outfile"; then
14450 # The compiler can only warn and ignore the option if not recognized
14451 # So say no if there are warnings other than the usual output.
14452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14455 lt_cv_prog_compiler_pic_works=yes
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14462 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14464 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14465 case $lt_prog_compiler_pic in
14467 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14470 lt_prog_compiler_pic=
14471 lt_prog_compiler_can_build_shared=no
14482 # Check to make sure the static flag actually works.
14484 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14486 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14487 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14488 $as_echo_n "(cached) " >&6
14490 lt_cv_prog_compiler_static_works=no
14491 save_LDFLAGS="$LDFLAGS"
14492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14493 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14495 # The linker can only warn and ignore the option if not recognized
14496 # So say no if there are warnings
14497 if test -s conftest.err; then
14498 # Append any errors to the config.log.
14499 cat conftest.err 1>&5
14500 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14502 if diff conftest.exp conftest.er2 >/dev/null; then
14503 lt_cv_prog_compiler_static_works=yes
14506 lt_cv_prog_compiler_static_works=yes
14510 LDFLAGS="$save_LDFLAGS"
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14514 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14516 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14519 lt_prog_compiler_static=
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14530 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14533 lt_cv_prog_compiler_c_o=no
14534 $RM -r conftest 2>/dev/null
14538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14540 lt_compiler_flag="-o out/conftest2.$ac_objext"
14541 # Insert the option either (1) after the last *FLAGS variable, or
14542 # (2) before a word containing "conftest.", or (3) at the end.
14543 # Note that $ac_compile itself does not contain backslashes and begins
14544 # with a dollar sign (not a hyphen), so the echo should work correctly.
14545 lt_compile=`echo "$ac_compile" | $SED \
14546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14548 -e 's:$: $lt_compiler_flag:'`
14549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14550 (eval "$lt_compile" 2>out/conftest.err)
14552 cat out/conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14556 # The compiler can only warn and ignore the option if not recognized
14557 # So say no if there are warnings
14558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14561 lt_cv_prog_compiler_c_o=yes
14566 # SGI C++ compiler will create directory out/ii_files/ for
14567 # template instantiation
14568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14569 $RM out/* && rmdir out
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14576 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14584 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14585 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14586 $as_echo_n "(cached) " >&6
14588 lt_cv_prog_compiler_c_o=no
14589 $RM -r conftest 2>/dev/null
14593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595 lt_compiler_flag="-o out/conftest2.$ac_objext"
14596 # Insert the option either (1) after the last *FLAGS variable, or
14597 # (2) before a word containing "conftest.", or (3) at the end.
14598 # Note that $ac_compile itself does not contain backslashes and begins
14599 # with a dollar sign (not a hyphen), so the echo should work correctly.
14600 lt_compile=`echo "$ac_compile" | $SED \
14601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14603 -e 's:$: $lt_compiler_flag:'`
14604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14605 (eval "$lt_compile" 2>out/conftest.err)
14607 cat out/conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14611 # The compiler can only warn and ignore the option if not recognized
14612 # So say no if there are warnings
14613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14616 lt_cv_prog_compiler_c_o=yes
14621 # SGI C++ compiler will create directory out/ii_files/ for
14622 # template instantiation
14623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14624 $RM out/* && rmdir out
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14631 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14636 hard_links="nottested"
14637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14638 # do not overwrite the value of need_locks provided by the user
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14640 $as_echo_n "checking if we can lock with hard links... " >&6; }
14643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14645 ln conftest.a conftest.b 2>&5 || hard_links=no
14646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14648 $as_echo "$hard_links" >&6; }
14649 if test "$hard_links" = no; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14651 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14664 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14667 allow_undefined_flag=
14668 always_export_symbols=no
14670 archive_expsym_cmds=
14671 compiler_needs_object=no
14672 enable_shared_with_static_runtimes=no
14673 export_dynamic_flag_spec=
14674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14675 hardcode_automatic=no
14677 hardcode_direct_absolute=no
14678 hardcode_libdir_flag_spec=
14679 hardcode_libdir_flag_spec_ld=
14680 hardcode_libdir_separator=
14681 hardcode_minus_L=no
14682 hardcode_shlibpath_var=unsupported
14684 link_all_deplibs=unknown
14686 module_expsym_cmds=
14687 old_archive_from_new_cmds=
14688 old_archive_from_expsyms_cmds=
14689 thread_safe_flag_spec=
14690 whole_archive_flag_spec=
14691 # include_expsyms should be a list of space-separated symbols to be *always*
14692 # included in the symbol list
14694 # exclude_expsyms can be an extended regexp of symbols to exclude
14695 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14697 # as well as any symbol that contains `d'.
14698 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14700 # platforms (ab)use it in PIC code, but their linkers get confused if
14701 # the symbol is explicitly referenced. Since portable code cannot
14702 # rely on this symbol name, it's probably fine to never include it in
14703 # preloaded symbol tables.
14704 # Exclude shared library initialization/finalization symbols.
14705 extract_expsyms_cmds=
14708 cygwin* | mingw* | pw32* | cegcc*)
14709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14710 # When not using gcc, we currently assume that we are using
14711 # Microsoft Visual C++.
14712 if test "$GCC" != yes; then
14717 # we just hope/assume this is gcc and not c89 (= MSVC++)
14727 # On some targets, GNU ld is compatible enough with the native linker
14728 # that we're better off using the native interface for both.
14729 lt_use_gnu_ld_interface=no
14730 if test "$with_gnu_ld" = yes; then
14733 # The AIX port of GNU ld has always aspired to compatibility
14734 # with the native linker. However, as the warning in the GNU ld
14735 # block says, versions before 2.19.5* couldn't really create working
14736 # shared libraries, regardless of the interface used.
14737 case `$LD -v 2>&1` in
14738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14740 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14742 lt_use_gnu_ld_interface=yes
14747 lt_use_gnu_ld_interface=yes
14752 if test "$lt_use_gnu_ld_interface" = yes; then
14753 # If archive_cmds runs LD, not CC, wlarc should be empty
14756 # Set some defaults for GNU ld with shared library support. These
14757 # are reset later if shared libraries are not supported. Putting them
14758 # here allows them to be overridden if necessary.
14759 runpath_var=LD_RUN_PATH
14760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14761 export_dynamic_flag_spec='${wl}--export-dynamic'
14762 # ancient GNU ld didn't support --whole-archive et. al.
14763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14764 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14766 whole_archive_flag_spec=
14768 supports_anon_versioning=no
14769 case `$LD -v 2>&1` in
14770 *GNU\ gold*) supports_anon_versioning=yes ;;
14771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14774 *\ 2.11.*) ;; # other 2.11 versions
14775 *) supports_anon_versioning=yes ;;
14778 # See if GNU ld supports shared libraries.
14781 # On AIX/PPC, the GNU linker is very broken
14782 if test "$host_cpu" != ia64; then
14786 *** Warning: the GNU linker, at least up to release 2.19, is reported
14787 *** to be unable to reliably create shared libraries on AIX.
14788 *** Therefore, libtool is disabling shared libraries support. If you
14789 *** really care for shared libraries, you may want to install binutils
14790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14791 *** You will then need to restart the configuration process.
14800 # see comment about AmigaOS4 .so support
14801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14802 archive_expsym_cmds=''
14805 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)'
14806 hardcode_libdir_flag_spec='-L$libdir'
14807 hardcode_minus_L=yes
14813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14814 allow_undefined_flag=unsupported
14815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14816 # support --undefined. This deserves some investigation. FIXME
14817 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14823 cygwin* | mingw* | pw32* | cegcc*)
14824 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14825 # as there is no search path for DLLs.
14826 hardcode_libdir_flag_spec='-L$libdir'
14827 export_dynamic_flag_spec='${wl}--export-all-symbols'
14828 allow_undefined_flag=unsupported
14829 always_export_symbols=no
14830 enable_shared_with_static_runtimes=yes
14831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14833 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14835 # If the export-symbols file already is a .def file (1st line
14836 # is EXPORTS), use it as is; otherwise, prepend...
14837 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14838 cp $export_symbols $output_objdir/$soname.def;
14840 echo EXPORTS > $output_objdir/$soname.def;
14841 cat $export_symbols >> $output_objdir/$soname.def;
14843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851 link_all_deplibs=yes
14856 hardcode_shlibpath_var=no
14857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14858 export_dynamic_flag_spec='${wl}-E'
14859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14860 # Instead, shared libraries are loaded at an image base (0x10000000 by
14861 # default) and relocated if they conflict, which is a slow very memory
14862 # consuming and fragmenting process. To avoid this, we pick a random,
14863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14865 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14866 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'
14869 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14871 if test "$host_os" = linux-dietlibc; then
14872 case $cc_basename in
14873 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14876 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14877 && test "$tmp_diet" = no
14880 tmp_sharedflag='-shared'
14881 case $cc_basename,$host_cpu in
14882 pgcc*) # Portland Group C compiler
14883 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'
14884 tmp_addflag=' $pic_flag'
14886 pgf77* | pgf90* | pgf95* | pgfortran*)
14887 # Portland Group f77 and f90 compilers
14888 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'
14889 tmp_addflag=' $pic_flag -Mnomain' ;;
14890 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14891 tmp_addflag=' -i_dynamic' ;;
14892 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14893 tmp_addflag=' -i_dynamic -nofor_main' ;;
14894 ifc* | ifort*) # Intel Fortran compiler
14895 tmp_addflag=' -nofor_main' ;;
14896 lf95*) # Lahey Fortran 8.1
14897 whole_archive_flag_spec=
14898 tmp_sharedflag='--shared' ;;
14899 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14900 tmp_sharedflag='-qmkshrobj'
14902 nvcc*) # Cuda Compiler Driver 2.2
14903 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'
14904 compiler_needs_object=yes
14907 case `$CC -V 2>&1 | sed 5q` in
14908 *Sun\ C*) # Sun C 5.9
14909 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'
14910 compiler_needs_object=yes
14911 tmp_sharedflag='-G' ;;
14912 *Sun\ F*) # Sun Fortran 8.3
14913 tmp_sharedflag='-G' ;;
14915 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14917 if test "x$supports_anon_versioning" = xyes; then
14918 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14920 echo "local: *; };" >> $output_objdir/$libname.ver~
14921 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14924 case $cc_basename in
14925 xlf* | bgf* | bgxlf* | mpixlf*)
14926 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14927 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14928 hardcode_libdir_flag_spec=
14929 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14930 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14931 if test "x$supports_anon_versioning" = xyes; then
14932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14934 echo "local: *; };" >> $output_objdir/$libname.ver~
14935 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14946 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14955 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14960 *** create shared libraries on Solaris systems. Therefore, libtool
14961 *** is disabling shared libraries support. We urge you to upgrade GNU
14962 *** binutils to release 2.9.1 or newer. Another option is to modify
14963 *** your PATH or compiler configuration so that the native linker is
14964 *** used, and then restart.
14967 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14976 case `$LD -v 2>&1` in
14977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14982 *** reliably create shared libraries on SCO systems. Therefore, libtool
14983 *** is disabling shared libraries support. We urge you to upgrade GNU
14984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14985 *** your PATH or compiler configuration so that the native linker is
14986 *** used, and then restart.
14991 # For security reasons, it is highly recommended that you always
14992 # use absolute paths for naming shared libraries, and exclude the
14993 # DT_RUNPATH tag from executables and libraries. But doing so
14994 # requires that you compile everything twice, which is a pain.
14995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_direct=yes
15010 hardcode_shlibpath_var=no
15014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15023 if test "$ld_shlibs" = no; then
15025 hardcode_libdir_flag_spec=
15026 export_dynamic_flag_spec=
15027 whole_archive_flag_spec=
15030 # PORTME fill in a description of your system's linker (not GNU ld)
15033 allow_undefined_flag=unsupported
15034 always_export_symbols=yes
15035 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'
15036 # Note: this linker hardcodes the directories in LIBPATH if there
15037 # are no directories specified by -L.
15038 hardcode_minus_L=yes
15039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15040 # Neither direct hardcoding nor static linking is supported with a
15042 hardcode_direct=unsupported
15047 if test "$host_cpu" = ia64; then
15048 # On IA64, the linker does run time linking by default, so we don't
15049 # have to do anything special.
15050 aix_use_runtimelinking=no
15051 exp_sym_flag='-Bexport'
15054 # If we're using GNU nm, then we don't want the "-C" option.
15055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15056 # Also, AIX nm treats weak defined symbols like other global
15057 # defined symbols, whereas GNU nm marks them as "W".
15058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15059 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'
15061 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'
15063 aix_use_runtimelinking=no
15065 # Test if we are trying to use run time linking or normal
15066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15067 # need to do runtime linking.
15068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15069 for ld_flag in $LDFLAGS; do
15070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15071 aix_use_runtimelinking=yes
15078 exp_sym_flag='-bexport'
15079 no_entry_flag='-bnoentry'
15082 # When large executables or shared objects are built, AIX ld can
15083 # have problems creating the table of contents. If linking a library
15084 # or program results in "error TOC overflow" add -mminimal-toc to
15085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15089 hardcode_direct=yes
15090 hardcode_direct_absolute=yes
15091 hardcode_libdir_separator=':'
15092 link_all_deplibs=yes
15093 file_list_spec='${wl}-f,'
15095 if test "$GCC" = yes; then
15096 case $host_os in aix4.[012]|aix4.[012].*)
15097 # We only want to do this on AIX 4.2 and lower, the check
15098 # below for broken collect2 doesn't work under 4.3+
15099 collect2name=`${CC} -print-prog-name=collect2`
15100 if test -f "$collect2name" &&
15101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15103 # We have reworked collect2
15106 # We have old collect2
15107 hardcode_direct=unsupported
15108 # It fails to find uninstalled libraries when the uninstalled
15109 # path is not listed in the libpath. Setting hardcode_minus_L
15110 # to unsupported forces relinking
15111 hardcode_minus_L=yes
15112 hardcode_libdir_flag_spec='-L$libdir'
15113 hardcode_libdir_separator=
15117 shared_flag='-shared'
15118 if test "$aix_use_runtimelinking" = yes; then
15119 shared_flag="$shared_flag "'${wl}-G'
15123 if test "$host_cpu" = ia64; then
15124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15125 # chokes on -Wl,-G. The following line is correct:
15128 if test "$aix_use_runtimelinking" = yes; then
15129 shared_flag='${wl}-G'
15131 shared_flag='${wl}-bM:SRE'
15136 export_dynamic_flag_spec='${wl}-bexpall'
15137 # It seems that -bexpall does not export symbols beginning with
15138 # underscore (_), so it is better to generate a list of symbols to export.
15139 always_export_symbols=yes
15140 if test "$aix_use_runtimelinking" = yes; then
15141 # Warning - without using the other runtime loading flags (-brtl),
15142 # -berok will link without error, but may produce a broken library.
15143 allow_undefined_flag='-berok'
15144 # Determine the default libpath from the value encoded in an
15145 # empty executable.
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15157 if ac_fn_c_try_link "$LINENO"; then :
15159 lt_aix_libpath_sed='
15160 /Import File Strings/,/^$/ {
15166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15167 # Check for a 64-bit object if we didn't find anything.
15168 if test -z "$aix_libpath"; then
15169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15172 rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
15174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15176 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15177 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"
15179 if test "$host_cpu" = ia64; then
15180 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15181 allow_undefined_flag="-z nodefs"
15182 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"
15184 # Determine the default libpath from the value encoded in an
15185 # empty executable.
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15197 if ac_fn_c_try_link "$LINENO"; then :
15199 lt_aix_libpath_sed='
15200 /Import File Strings/,/^$/ {
15206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15207 # Check for a 64-bit object if we didn't find anything.
15208 if test -z "$aix_libpath"; then
15209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15212 rm -f core conftest.err conftest.$ac_objext \
15213 conftest$ac_exeext conftest.$ac_ext
15214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15217 # Warning - without using the other run time loading flags,
15218 # -berok will link without error, but may produce a broken library.
15219 no_undefined_flag=' ${wl}-bernotok'
15220 allow_undefined_flag=' ${wl}-berok'
15221 if test "$with_gnu_ld" = yes; then
15222 # We only use this code for GNU lds that support --whole-archive.
15223 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15225 # Exported symbols can be pulled into shared objects from archives
15226 whole_archive_flag_spec='$convenience'
15228 archive_cmds_need_lc=yes
15229 # This is similar to how AIX traditionally builds its shared libraries.
15230 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'
15238 # see comment about AmigaOS4 .so support
15239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15240 archive_expsym_cmds=''
15243 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)'
15244 hardcode_libdir_flag_spec='-L$libdir'
15245 hardcode_minus_L=yes
15251 export_dynamic_flag_spec=-rdynamic
15254 cygwin* | mingw* | pw32* | cegcc*)
15255 # When not using gcc, we currently assume that we are using
15256 # Microsoft Visual C++.
15257 # hardcode_libdir_flag_spec is actually meaningless, as there is
15258 # no search path for DLLs.
15259 hardcode_libdir_flag_spec=' '
15260 allow_undefined_flag=unsupported
15261 # Tell ltmain to make .lib files, not .a files.
15263 # Tell ltmain to make .dll files, not .so files.
15265 # FIXME: Setting linknames here is a bad hack.
15266 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15267 # The linker will automatically build a .lib file if we build a DLL.
15268 old_archive_from_new_cmds='true'
15269 # FIXME: Should let the user specify the lib program.
15270 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15271 fix_srcfile_path='`cygpath -w "$srcfile"`'
15272 enable_shared_with_static_runtimes=yes
15275 darwin* | rhapsody*)
15278 archive_cmds_need_lc=no
15280 hardcode_automatic=yes
15281 hardcode_shlibpath_var=unsupported
15282 if test "$lt_cv_ld_force_load" = "yes"; then
15283 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\"`'
15285 whole_archive_flag_spec=''
15287 link_all_deplibs=yes
15288 allow_undefined_flag="$_lt_dar_allow_undefined"
15289 case $cc_basename in
15290 ifort*) _lt_dar_can_shared=yes ;;
15291 *) _lt_dar_can_shared=$GCC ;;
15293 if test "$_lt_dar_can_shared" = "yes"; then
15294 output_verbose_link_cmd=func_echo_all
15295 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15296 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15297 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}"
15298 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}"
15307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15308 hardcode_libdir_flag_spec='-L$libdir'
15309 hardcode_shlibpath_var=no
15316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15317 # support. Future versions do this automatically, but an explicit c++rt0.o
15318 # does not break anything, and helps significantly (at the cost of a little
15321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15322 hardcode_libdir_flag_spec='-R$libdir'
15323 hardcode_direct=yes
15324 hardcode_shlibpath_var=no
15327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15330 hardcode_direct=yes
15331 hardcode_minus_L=yes
15332 hardcode_shlibpath_var=no
15335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15336 freebsd* | dragonfly*)
15337 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15338 hardcode_libdir_flag_spec='-R$libdir'
15339 hardcode_direct=yes
15340 hardcode_shlibpath_var=no
15344 if test "$GCC" = yes; then
15345 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'
15347 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'
15349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15350 hardcode_libdir_separator=:
15351 hardcode_direct=yes
15353 # hardcode_minus_L: Not really in the search PATH,
15354 # but as the default location of the library.
15355 hardcode_minus_L=yes
15356 export_dynamic_flag_spec='${wl}-E'
15360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15361 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15363 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15365 if test "$with_gnu_ld" = no; then
15366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15367 hardcode_libdir_flag_spec_ld='+b $libdir'
15368 hardcode_libdir_separator=:
15369 hardcode_direct=yes
15370 hardcode_direct_absolute=yes
15371 export_dynamic_flag_spec='${wl}-E'
15372 # hardcode_minus_L: Not really in the search PATH,
15373 # but as the default location of the library.
15374 hardcode_minus_L=yes
15379 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15382 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15394 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15397 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15401 # Older versions of the 11.00 compiler do not understand -b yet
15402 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15404 $as_echo_n "checking if $CC understands -b... " >&6; }
15405 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15406 $as_echo_n "(cached) " >&6
15408 lt_cv_prog_compiler__b=no
15409 save_LDFLAGS="$LDFLAGS"
15410 LDFLAGS="$LDFLAGS -b"
15411 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15413 # The linker can only warn and ignore the option if not recognized
15414 # So say no if there are warnings
15415 if test -s conftest.err; then
15416 # Append any errors to the config.log.
15417 cat conftest.err 1>&5
15418 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15420 if diff conftest.exp conftest.er2 >/dev/null; then
15421 lt_cv_prog_compiler__b=yes
15424 lt_cv_prog_compiler__b=yes
15428 LDFLAGS="$save_LDFLAGS"
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15432 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15434 if test x"$lt_cv_prog_compiler__b" = xyes; then
15435 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15437 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15443 if test "$with_gnu_ld" = no; then
15444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15445 hardcode_libdir_separator=:
15450 hardcode_shlibpath_var=no
15453 hardcode_direct=yes
15454 hardcode_direct_absolute=yes
15455 export_dynamic_flag_spec='${wl}-E'
15457 # hardcode_minus_L: Not really in the search PATH,
15458 # but as the default location of the library.
15459 hardcode_minus_L=yes
15465 irix5* | irix6* | nonstopux*)
15466 if test "$GCC" = yes; then
15467 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'
15468 # Try to use the -exported_symbol ld option, if it does not
15469 # work, assume that -exports_file does not work either and
15470 # implicitly export all symbols.
15471 save_LDFLAGS="$LDFLAGS"
15472 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15477 if ac_fn_c_try_link "$LINENO"; then :
15478 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'
15481 rm -f core conftest.err conftest.$ac_objext \
15482 conftest$ac_exeext conftest.$ac_ext
15483 LDFLAGS="$save_LDFLAGS"
15485 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'
15486 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'
15488 archive_cmds_need_lc='no'
15489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15490 hardcode_libdir_separator=:
15492 link_all_deplibs=yes
15496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15501 hardcode_libdir_flag_spec='-R$libdir'
15502 hardcode_direct=yes
15503 hardcode_shlibpath_var=no
15507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_direct=yes
15509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15510 hardcode_libdir_separator=:
15511 hardcode_shlibpath_var=no
15518 if test -f /usr/libexec/ld.so; then
15519 hardcode_direct=yes
15520 hardcode_shlibpath_var=no
15521 hardcode_direct_absolute=yes
15522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15524 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15526 export_dynamic_flag_spec='${wl}-E'
15529 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15531 hardcode_libdir_flag_spec='-R$libdir'
15534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15545 hardcode_libdir_flag_spec='-L$libdir'
15546 hardcode_minus_L=yes
15547 allow_undefined_flag=unsupported
15548 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'
15549 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15553 if test "$GCC" = yes; then
15554 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15555 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'
15557 allow_undefined_flag=' -expect_unresolved \*'
15558 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'
15560 archive_cmds_need_lc='no'
15561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15562 hardcode_libdir_separator=:
15565 osf4* | osf5*) # as osf3* with the addition of -msym flag
15566 if test "$GCC" = yes; then
15567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15568 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'
15569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15571 allow_undefined_flag=' -expect_unresolved \*'
15572 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'
15573 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~
15574 $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'
15576 # Both c and cxx compiler support -rpath directly
15577 hardcode_libdir_flag_spec='-rpath $libdir'
15579 archive_cmds_need_lc='no'
15580 hardcode_libdir_separator=:
15584 no_undefined_flag=' -z defs'
15585 if test "$GCC" = yes; then
15587 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15589 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15591 case `$CC -V 2>&1` in
15594 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15600 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15602 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15606 hardcode_libdir_flag_spec='-R$libdir'
15607 hardcode_shlibpath_var=no
15609 solaris2.[0-5] | solaris2.[0-5].*) ;;
15611 # The compiler driver will combine and reorder linker options,
15612 # but understands `-z linker_flag'. GCC discards it without `$wl',
15613 # but is careful enough not to reorder.
15614 # Supported since Solaris 2.6 (maybe 2.5.1?)
15615 if test "$GCC" = yes; then
15616 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15618 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15622 link_all_deplibs=yes
15626 if test "x$host_vendor" = xsequent; then
15627 # Use $CC to link under sequent, because it throws in some extra .o
15628 # files that make .init and .fini sections work.
15629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15633 hardcode_libdir_flag_spec='-L$libdir'
15634 hardcode_direct=yes
15635 hardcode_minus_L=yes
15636 hardcode_shlibpath_var=no
15640 case $host_vendor in
15642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15643 hardcode_direct=yes # is this really true???
15646 ## LD is ld it makes a PLAMLIB
15647 ## CC just makes a GrossModule.
15648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15649 reload_cmds='$CC -r -o $output$reload_objs'
15653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15657 runpath_var='LD_RUN_PATH'
15658 hardcode_shlibpath_var=no
15662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15663 hardcode_shlibpath_var=no
15664 export_dynamic_flag_spec='-Bexport'
15668 if test -d /usr/nec; then
15669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670 hardcode_shlibpath_var=no
15671 runpath_var=LD_RUN_PATH
15672 hardcode_runpath_var=yes
15677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15678 no_undefined_flag='${wl}-z,text'
15679 archive_cmds_need_lc=no
15680 hardcode_shlibpath_var=no
15681 runpath_var='LD_RUN_PATH'
15683 if test "$GCC" = yes; then
15684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15692 sysv5* | sco3.2v5* | sco5v6*)
15693 # Note: We can NOT use -z defs as we might desire, because we do not
15694 # link with -lc, and that would cause any symbols used from libc to
15695 # always be unresolved, which means just about no library would
15696 # ever link correctly. If we're not using GNU ld we use -z text
15697 # though, which does catch some bad symbols but isn't as heavy-handed
15699 no_undefined_flag='${wl}-z,text'
15700 allow_undefined_flag='${wl}-z,nodefs'
15701 archive_cmds_need_lc=no
15702 hardcode_shlibpath_var=no
15703 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15704 hardcode_libdir_separator=':'
15705 link_all_deplibs=yes
15706 export_dynamic_flag_spec='${wl}-Bexport'
15707 runpath_var='LD_RUN_PATH'
15709 if test "$GCC" = yes; then
15710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_libdir_flag_spec='-L$libdir'
15721 hardcode_shlibpath_var=no
15729 if test x$host_vendor = xsni; then
15731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15732 export_dynamic_flag_spec='${wl}-Blargedynsym'
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15739 $as_echo "$ld_shlibs" >&6; }
15740 test "$ld_shlibs" = no && can_build_shared=no
15742 with_gnu_ld=$with_gnu_ld
15759 # Do we need to explicitly link libc?
15761 case "x$archive_cmds_need_lc" in
15763 # Assume -lc should be added
15764 archive_cmds_need_lc=yes
15766 if test "$enable_shared" = yes && test "$GCC" = yes; then
15767 case $archive_cmds in
15769 # FIXME: we may have to deal with multi-command sequences.
15772 # Test whether the compiler implicitly links with -lc since on some
15773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15774 # to ld, don't add -lc before -lgcc.
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15776 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15777 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15778 $as_echo_n "(cached) " >&6
15781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15784 (eval $ac_compile) 2>&5
15786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15787 test $ac_status = 0; } 2>conftest.err; then
15790 libobjs=conftest.$ac_objext
15792 wl=$lt_prog_compiler_wl
15793 pic_flag=$lt_prog_compiler_pic
15799 lt_save_allow_undefined_flag=$allow_undefined_flag
15800 allow_undefined_flag=
15801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15805 test $ac_status = 0; }
15807 lt_cv_archive_cmds_need_lc=no
15809 lt_cv_archive_cmds_need_lc=yes
15811 allow_undefined_flag=$lt_save_allow_undefined_flag
15813 cat conftest.err 1>&5
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15819 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15984 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15986 if test "$GCC" = yes; then
15988 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15989 *) lt_awk_arg="/^libraries:/" ;;
15992 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15993 *) lt_sed_strip_eq="s,=/,/,g" ;;
15995 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15996 case $lt_search_path_spec in
15998 # if the path contains ";" then we assume it to be the separator
15999 # otherwise default to the standard path separator (i.e. ":") - it is
16000 # assumed that no part of a normal pathname contains ";" but that should
16001 # okay in the real world where ";" in dirpaths is itself problematic.
16002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16008 # Ok, now we have the path, separated by spaces, we can step through it
16009 # and add multilib dir if necessary.
16010 lt_tmp_lt_search_path_spec=
16011 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16012 for lt_sys_path in $lt_search_path_spec; do
16013 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16016 test -d "$lt_sys_path" && \
16017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16020 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16021 BEGIN {RS=" "; FS="/|\n";} {
16024 for (lt_i = NF; lt_i > 0; lt_i--) {
16025 if ($lt_i != "" && $lt_i != ".") {
16026 if ($lt_i == "..") {
16029 if (lt_count == 0) {
16030 lt_foo="/" $lt_i lt_foo;
16037 if (lt_foo != "") { lt_freq[lt_foo]++; }
16038 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16040 # AWK program above erroneously prepends '/' to C:/dos/paths
16043 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16044 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16046 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16050 library_names_spec=
16051 libname_spec='lib$name'
16055 postuninstall_cmds=
16059 shlibpath_overrides_runpath=unknown
16061 dynamic_linker="$host_os ld.so"
16062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16063 need_lib_prefix=unknown
16064 hardcode_into_libs=no
16066 # when you set need_version to no, make sure it does not cause -set_version
16067 # flags to be left without arguments
16068 need_version=unknown
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16074 shlibpath_var=LIBPATH
16076 # AIX 3 has no versioning support, so we append a major version to the name.
16077 soname_spec='${libname}${release}${shared_ext}$major'
16084 hardcode_into_libs=yes
16085 if test "$host_cpu" = ia64; then
16086 # AIX 5 supports IA64
16087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16088 shlibpath_var=LD_LIBRARY_PATH
16090 # With GCC up to 2.95.x, collect2 would create an import file
16091 # for dependence libraries. The import file would start with
16092 # the line `#! .'. This would cause the generated library to
16093 # depend on `.', always an invalid library. This was fixed in
16094 # development snapshots of GCC prior to 3.0.
16096 aix4 | aix4.[01] | aix4.[01].*)
16097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16099 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16102 can_build_shared=no
16106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16107 # soname into executable. Probably we can add versioning support to
16108 # collect2, so additional links can be useful in future.
16109 if test "$aix_use_runtimelinking" = yes; then
16110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16111 # instead of lib<name>.a to let people know that these are not
16112 # typical AIX shared libraries.
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 # We preserve .a as extension for shared libraries through AIX4.2
16116 # and later when we are not doing run time linking.
16117 library_names_spec='${libname}${release}.a $libname.a'
16118 soname_spec='${libname}${release}${shared_ext}$major'
16120 shlibpath_var=LIBPATH
16127 # Since July 2007 AmigaOS4 officially supports .so libraries.
16128 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 library_names_spec='$libname.ixlibrary $libname.a'
16133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16134 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'
16140 library_names_spec='${libname}${shared_ext}'
16141 dynamic_linker="$host_os ld.so"
16142 shlibpath_var=LIBRARY_PATH
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149 soname_spec='${libname}${release}${shared_ext}$major'
16150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16151 shlibpath_var=LD_LIBRARY_PATH
16152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16154 # the default ld.so.conf also contains /usr/contrib/lib and
16155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16156 # libtool to hard-code these into programs
16159 cygwin* | mingw* | pw32* | cegcc*)
16160 version_type=windows
16165 case $GCC,$host_os in
16166 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16167 library_names_spec='$libname.dll.a'
16168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16169 postinstall_cmds='base_file=`basename \${file}`~
16170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16171 dldir=$destdir/`dirname \$dlpath`~
16172 test -d \$dldir || mkdir -p \$dldir~
16173 $install_prog $dir/$dlname \$dldir/$dlname~
16174 chmod a+x \$dldir/$dlname~
16175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16179 dlpath=$dir/\$dldll~
16181 shlibpath_overrides_runpath=yes
16185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16191 # MinGW DLLs use traditional 'lib' prefix
16192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16195 # pw32 DLLs use 'pw' prefix rather than 'lib'
16196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16205 dynamic_linker='Win32 ld.exe'
16206 # FIXME: first we should search . and the directory the executable is in
16210 darwin* | rhapsody*)
16211 dynamic_linker="$host_os dyld"
16212 version_type=darwin
16215 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16216 soname_spec='${libname}${release}${major}$shared_ext'
16217 shlibpath_overrides_runpath=yes
16218 shlibpath_var=DYLD_LIBRARY_PATH
16219 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 shlibpath_var=LD_LIBRARY_PATH
16238 freebsd* | dragonfly*)
16239 # DragonFly does not have aout. When/if they implement a new
16240 # versioning mechanism, adjust this.
16241 if test -x /usr/bin/objformat; then
16242 objformat=`/usr/bin/objformat`
16245 freebsd[123]*) objformat=aout ;;
16246 *) objformat=elf ;;
16249 version_type=freebsd-$objformat
16250 case $version_type in
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16261 shlibpath_var=LD_LIBRARY_PATH
16264 shlibpath_overrides_runpath=yes
16266 freebsd3.[01]* | freebsdelf3.[01]*)
16267 shlibpath_overrides_runpath=yes
16268 hardcode_into_libs=yes
16270 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16271 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16272 shlibpath_overrides_runpath=no
16273 hardcode_into_libs=yes
16275 *) # from 4.6 on, and DragonFly
16276 shlibpath_overrides_runpath=yes
16277 hardcode_into_libs=yes
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 hardcode_into_libs=yes
16296 dynamic_linker="$host_os runtime_loader"
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 shlibpath_var=LIBRARY_PATH
16300 shlibpath_overrides_runpath=yes
16301 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16302 hardcode_into_libs=yes
16305 hpux9* | hpux10* | hpux11*)
16306 # Give a soname corresponding to the major version so that dld.sl refuses to
16307 # link against other versions.
16314 hardcode_into_libs=yes
16315 dynamic_linker="$host_os dld.so"
16316 shlibpath_var=LD_LIBRARY_PATH
16317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 if test "X$HPUX_IA64_MODE" = X32; then
16321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16329 hardcode_into_libs=yes
16330 dynamic_linker="$host_os dld.sl"
16331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16340 dynamic_linker="$host_os dld.sl"
16341 shlibpath_var=SHLIB_PATH
16342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344 soname_spec='${libname}${release}${shared_ext}$major'
16347 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16348 postinstall_cmds='chmod 555 $lib'
16349 # or fails outright, so override atomically:
16350 install_override_mode=555
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362 hardcode_into_libs=yes
16365 irix5* | irix6* | nonstopux*)
16367 nonstopux*) version_type=nonstopux ;;
16369 if test "$lt_cv_prog_gnu_ld" = yes; then
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16380 irix5* | nonstopux*)
16381 libsuff= shlibsuff=
16384 case $LD in # libtool.m4 will add one of these switches to LD
16385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16386 libsuff= shlibsuff= libmagic=32-bit;;
16387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16388 libsuff=32 shlibsuff=N32 libmagic=N32;;
16389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16391 *) libsuff= shlibsuff= libmagic=never-match;;
16395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16396 shlibpath_overrides_runpath=no
16397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16399 hardcode_into_libs=yes
16402 # No shared lib support for Linux oldld, aout, or coff.
16403 linux*oldld* | linux*aout* | linux*coff*)
16407 # This must be Linux ELF.
16408 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=no
16418 # Some binutils ld are patched to set DT_RUNPATH
16419 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16420 $as_echo_n "(cached) " >&6
16422 lt_cv_shlibpath_overrides_runpath=no
16423 save_LDFLAGS=$LDFLAGS
16424 save_libdir=$libdir
16425 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16426 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16438 if ac_fn_c_try_link "$LINENO"; then :
16439 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16440 lt_cv_shlibpath_overrides_runpath=yes
16443 rm -f core conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16445 LDFLAGS=$save_LDFLAGS
16446 libdir=$save_libdir
16450 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16452 # This implies no fast_install, which is unacceptable.
16453 # Some rework will be needed to allow for fast_install
16454 # before this can be enabled.
16455 hardcode_into_libs=yes
16457 # Append ld.so.conf contents to the search path
16458 if test -f /etc/ld.so.conf; then
16459 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' ' '`
16460 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16463 # We used to test for /lib/ld.so.1 and disable shared libraries on
16464 # powerpc, because MkLinux only supported shared libraries with the
16465 # GNU dynamic linker. Since this was broken with cross compilers,
16466 # most powerpc-linux boxes support dynamic linking these days and
16467 # people can always --disable-shared, the test was removed, and we
16468 # assume the GNU/Linux dynamic linker is in use.
16469 dynamic_linker='GNU/Linux ld.so'
16476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16479 dynamic_linker='NetBSD (a.out) ld.so'
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 dynamic_linker='NetBSD ld.elf_so'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 hardcode_into_libs=yes
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 shlibpath_overrides_runpath=yes
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 shlibpath_overrides_runpath=no
16505 hardcode_into_libs=yes
16506 dynamic_linker='ldqnx.so'
16511 sys_lib_dlsearch_path_spec="/usr/lib"
16513 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16515 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16516 *) need_version=no ;;
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16523 openbsd2.[89] | openbsd2.[89].*)
16524 shlibpath_overrides_runpath=no
16527 shlibpath_overrides_runpath=yes
16531 shlibpath_overrides_runpath=yes
16536 libname_spec='$name'
16539 library_names_spec='$libname${shared_ext} $libname.a'
16540 dynamic_linker='OS/2 ld.exe'
16541 shlibpath_var=LIBPATH
16544 osf3* | osf4* | osf5*)
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550 shlibpath_var=LD_LIBRARY_PATH
16551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564 soname_spec='${libname}${release}${shared_ext}$major'
16565 shlibpath_var=LD_LIBRARY_PATH
16566 shlibpath_overrides_runpath=yes
16567 hardcode_into_libs=yes
16568 # ldd complains unless libraries are executable
16569 postinstall_cmds='chmod +x $lib'
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=yes
16578 if test "$with_gnu_ld" = yes; then
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 shlibpath_var=LD_LIBRARY_PATH
16589 case $host_vendor in
16591 shlibpath_overrides_runpath=no
16593 runpath_var=LD_RUN_PATH
16601 shlibpath_overrides_runpath=no
16602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16608 if test -d /usr/nec ;then
16610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16611 soname_spec='$libname${shared_ext}.$major'
16612 shlibpath_var=LD_LIBRARY_PATH
16616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16617 version_type=freebsd-elf
16620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16621 soname_spec='${libname}${release}${shared_ext}$major'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=yes
16624 hardcode_into_libs=yes
16625 if test "$with_gnu_ld" = yes; then
16626 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16635 sys_lib_dlsearch_path_spec='/usr/lib'
16639 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 shlibpath_var=LD_LIBRARY_PATH
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16661 $as_echo "$dynamic_linker" >&6; }
16662 test "$dynamic_linker" = no && can_build_shared=no
16664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16665 if test "$GCC" = yes; then
16666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16669 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16670 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16672 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16673 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16768 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16770 if test -n "$hardcode_libdir_flag_spec" ||
16771 test -n "$runpath_var" ||
16772 test "X$hardcode_automatic" = "Xyes" ; then
16774 # We can hardcode non-existent directories.
16775 if test "$hardcode_direct" != no &&
16776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16777 # have to relink, otherwise we might link with an installed library
16778 # when we should be linking with a yet-to-be-installed one
16779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16780 test "$hardcode_minus_L" != no; then
16781 # Linking always hardcodes the temporary library directory.
16782 hardcode_action=relink
16784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16785 hardcode_action=immediate
16788 # We cannot hardcode anything, or else we can only hardcode existing
16790 hardcode_action=unsupported
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16793 $as_echo "$hardcode_action" >&6; }
16795 if test "$hardcode_action" = relink ||
16796 test "$inherit_rpath" = yes; then
16797 # Fast installation is not supported
16798 enable_fast_install=no
16799 elif test "$shlibpath_overrides_runpath" = yes ||
16800 test "$enable_shared" = no; then
16801 # Fast installation is not necessary
16802 enable_fast_install=needless
16810 if test "x$enable_dlopen" != xyes; then
16811 enable_dlopen=unknown
16812 enable_dlopen_self=unknown
16813 enable_dlopen_self_static=unknown
16820 lt_cv_dlopen="load_add_on"
16822 lt_cv_dlopen_self=yes
16825 mingw* | pw32* | cegcc*)
16826 lt_cv_dlopen="LoadLibrary"
16831 lt_cv_dlopen="dlopen"
16836 # if libdl is installed we need to link against it
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16840 $as_echo_n "(cached) " >&6
16842 ac_check_lib_save_LIBS=$LIBS
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16847 /* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16862 if ac_fn_c_try_link "$LINENO"; then :
16863 ac_cv_lib_dl_dlopen=yes
16865 ac_cv_lib_dl_dlopen=no
16867 rm -f core conftest.err conftest.$ac_objext \
16868 conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16873 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16877 lt_cv_dlopen="dyld"
16879 lt_cv_dlopen_self=yes
16886 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16887 if test "x$ac_cv_func_shl_load" = x""yes; then :
16888 lt_cv_dlopen="shl_load"
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16891 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16892 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16893 $as_echo_n "(cached) " >&6
16895 ac_check_lib_save_LIBS=$LIBS
16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h. */
16900 /* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
16910 return shl_load ();
16915 if ac_fn_c_try_link "$LINENO"; then :
16916 ac_cv_lib_dld_shl_load=yes
16918 ac_cv_lib_dld_shl_load=no
16920 rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16922 LIBS=$ac_check_lib_save_LIBS
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16925 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16926 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16927 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16929 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16930 if test "x$ac_cv_func_dlopen" = x""yes; then :
16931 lt_cv_dlopen="dlopen"
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16936 $as_echo_n "(cached) " >&6
16938 ac_check_lib_save_LIBS=$LIBS
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16943 /* Override any GCC internal prototype to avoid an error.
16944 Use char because int might match the return type of a GCC
16945 builtin and then its argument prototype would still apply. */
16958 if ac_fn_c_try_link "$LINENO"; then :
16959 ac_cv_lib_dl_dlopen=yes
16961 ac_cv_lib_dl_dlopen=no
16963 rm -f core conftest.err conftest.$ac_objext \
16964 conftest$ac_exeext conftest.$ac_ext
16965 LIBS=$ac_check_lib_save_LIBS
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16969 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16974 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16975 $as_echo_n "(cached) " >&6
16977 ac_check_lib_save_LIBS=$LIBS
16978 LIBS="-lsvld $LIBS"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16997 if ac_fn_c_try_link "$LINENO"; then :
16998 ac_cv_lib_svld_dlopen=yes
17000 ac_cv_lib_svld_dlopen=no
17002 rm -f core conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17007 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17008 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17012 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17014 $as_echo_n "(cached) " >&6
17016 ac_check_lib_save_LIBS=$LIBS
17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17021 /* Override any GCC internal prototype to avoid an error.
17022 Use char because int might match the return type of a GCC
17023 builtin and then its argument prototype would still apply. */
17031 return dld_link ();
17036 if ac_fn_c_try_link "$LINENO"; then :
17037 ac_cv_lib_dld_dld_link=yes
17039 ac_cv_lib_dld_dld_link=no
17041 rm -f core conftest.err conftest.$ac_objext \
17042 conftest$ac_exeext conftest.$ac_ext
17043 LIBS=$ac_check_lib_save_LIBS
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17046 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17047 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17048 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17069 if test "x$lt_cv_dlopen" != xno; then
17075 case $lt_cv_dlopen in
17077 save_CPPFLAGS="$CPPFLAGS"
17078 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17080 save_LDFLAGS="$LDFLAGS"
17081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17084 LIBS="$lt_cv_dlopen_libs $LIBS"
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17087 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17088 if test "${lt_cv_dlopen_self+set}" = set; then :
17089 $as_echo_n "(cached) " >&6
17091 if test "$cross_compiling" = yes; then :
17092 lt_cv_dlopen_self=cross
17094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17095 lt_status=$lt_dlunknown
17096 cat > conftest.$ac_ext <<_LT_EOF
17097 #line 17097 "configure"
17098 #include "confdefs.h"
17107 # define LT_DLGLOBAL RTLD_GLOBAL
17110 # define LT_DLGLOBAL DL_GLOBAL
17112 # define LT_DLGLOBAL 0
17116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17117 find out it does not work in some platform. */
17118 #ifndef LT_DLLAZY_OR_NOW
17120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17123 # define LT_DLLAZY_OR_NOW DL_LAZY
17126 # define LT_DLLAZY_OR_NOW RTLD_NOW
17129 # define LT_DLLAZY_OR_NOW DL_NOW
17131 # define LT_DLLAZY_OR_NOW 0
17138 /* When -fvisbility=hidden is used, assume the code has been annotated
17139 correspondingly for the symbols needed. */
17140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17141 void fnord () __attribute__((visibility("default")));
17144 void fnord () { int i=42; }
17147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17148 int status = $lt_dlunknown;
17152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17156 else puts (dlerror ());
17158 /* dlclose (self); */
17166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17167 (eval $ac_link) 2>&5
17169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17171 (./conftest; exit; ) >&5 2>/dev/null
17173 case x$lt_status in
17174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17179 # compilation failed
17180 lt_cv_dlopen_self=no
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17188 $as_echo "$lt_cv_dlopen_self" >&6; }
17190 if test "x$lt_cv_dlopen_self" = xyes; then
17191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17193 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17194 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17195 $as_echo_n "(cached) " >&6
17197 if test "$cross_compiling" = yes; then :
17198 lt_cv_dlopen_self_static=cross
17200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17201 lt_status=$lt_dlunknown
17202 cat > conftest.$ac_ext <<_LT_EOF
17203 #line 17203 "configure"
17204 #include "confdefs.h"
17213 # define LT_DLGLOBAL RTLD_GLOBAL
17216 # define LT_DLGLOBAL DL_GLOBAL
17218 # define LT_DLGLOBAL 0
17222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17223 find out it does not work in some platform. */
17224 #ifndef LT_DLLAZY_OR_NOW
17226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17229 # define LT_DLLAZY_OR_NOW DL_LAZY
17232 # define LT_DLLAZY_OR_NOW RTLD_NOW
17235 # define LT_DLLAZY_OR_NOW DL_NOW
17237 # define LT_DLLAZY_OR_NOW 0
17244 /* When -fvisbility=hidden is used, assume the code has been annotated
17245 correspondingly for the symbols needed. */
17246 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17247 void fnord () __attribute__((visibility("default")));
17250 void fnord () { int i=42; }
17253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17254 int status = $lt_dlunknown;
17258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17262 else puts (dlerror ());
17264 /* dlclose (self); */
17272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17273 (eval $ac_link) 2>&5
17275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17277 (./conftest; exit; ) >&5 2>/dev/null
17279 case x$lt_status in
17280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17285 # compilation failed
17286 lt_cv_dlopen_self_static=no
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17294 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17297 CPPFLAGS="$save_CPPFLAGS"
17298 LDFLAGS="$save_LDFLAGS"
17303 case $lt_cv_dlopen_self in
17304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17305 *) enable_dlopen_self=unknown ;;
17308 case $lt_cv_dlopen_self_static in
17309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17310 *) enable_dlopen_self_static=unknown ;;
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17333 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17338 $as_echo "yes" >&6; }
17340 # FIXME - insert some real tests, host_os isn't really good enough
17343 if test -n "$STRIP" ; then
17344 striplib="$STRIP -x"
17345 old_striplib="$STRIP -S"
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17347 $as_echo "yes" >&6; }
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17350 $as_echo "no" >&6; }
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17355 $as_echo "no" >&6; }
17371 # Report which library types will actually be built
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17373 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17375 $as_echo "$can_build_shared" >&6; }
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17378 $as_echo_n "checking whether to build shared libraries... " >&6; }
17379 test "$can_build_shared" = "no" && enable_shared=no
17381 # On AIX, shared libraries and static libraries use the same namespace, and
17382 # are all built from PIC.
17385 test "$enable_shared" = yes && enable_static=no
17386 if test -n "$RANLIB"; then
17387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17388 postinstall_cmds='$RANLIB $lib'
17393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17394 test "$enable_shared" = yes && enable_static=no
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17399 $as_echo "$enable_shared" >&6; }
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17402 $as_echo_n "checking whether to build static libraries... " >&6; }
17403 # Make sure either enable_shared or enable_static is yes.
17404 test "$enable_shared" = yes || enable_static=yes
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17406 $as_echo "$enable_static" >&6; }
17413 ac_cpp='$CPP $CPPFLAGS'
17414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17420 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17421 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17422 (test "X$CXX" != "Xg++"))) ; then
17424 ac_cpp='$CXXCPP $CPPFLAGS'
17425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17429 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17430 if test -z "$CXXCPP"; then
17431 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17432 $as_echo_n "(cached) " >&6
17434 # Double quotes because CXXCPP needs to be expanded
17435 for CXXCPP in "$CXX -E" "/lib/cpp"
17437 ac_preproc_ok=false
17438 for ac_cxx_preproc_warn_flag in '' yes
17440 # Use a header file that comes with gcc, so configuring glibc
17441 # with a fresh cross-compiler works.
17442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443 # <limits.h> exists even on freestanding compilers.
17444 # On the NeXT, cc -E runs the code through the compiler's parser,
17445 # not just through cpp. "Syntax error" is here to catch this case.
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h. */
17449 # include <limits.h>
17451 # include <assert.h>
17455 if ac_fn_cxx_try_cpp "$LINENO"; then :
17458 # Broken: fails on valid input.
17461 rm -f conftest.err conftest.$ac_ext
17463 # OK, works on sane cases. Now check whether nonexistent headers
17464 # can be detected and how.
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467 #include <ac_nonexistent.h>
17469 if ac_fn_cxx_try_cpp "$LINENO"; then :
17470 # Broken: success on invalid input.
17473 # Passes both tests.
17477 rm -f conftest.err conftest.$ac_ext
17480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17481 rm -f conftest.err conftest.$ac_ext
17482 if $ac_preproc_ok; then :
17487 ac_cv_prog_CXXCPP=$CXXCPP
17490 CXXCPP=$ac_cv_prog_CXXCPP
17492 ac_cv_prog_CXXCPP=$CXXCPP
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17495 $as_echo "$CXXCPP" >&6; }
17496 ac_preproc_ok=false
17497 for ac_cxx_preproc_warn_flag in '' yes
17499 # Use a header file that comes with gcc, so configuring glibc
17500 # with a fresh cross-compiler works.
17501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502 # <limits.h> exists even on freestanding compilers.
17503 # On the NeXT, cc -E runs the code through the compiler's parser,
17504 # not just through cpp. "Syntax error" is here to catch this case.
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17508 # include <limits.h>
17510 # include <assert.h>
17514 if ac_fn_cxx_try_cpp "$LINENO"; then :
17517 # Broken: fails on valid input.
17520 rm -f conftest.err conftest.$ac_ext
17522 # OK, works on sane cases. Now check whether nonexistent headers
17523 # can be detected and how.
17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h. */
17526 #include <ac_nonexistent.h>
17528 if ac_fn_cxx_try_cpp "$LINENO"; then :
17529 # Broken: success on invalid input.
17532 # Passes both tests.
17536 rm -f conftest.err conftest.$ac_ext
17539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17540 rm -f conftest.err conftest.$ac_ext
17541 if $ac_preproc_ok; then :
17544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17546 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17547 See \`config.log' for more details." "$LINENO" 5; }
17551 ac_cpp='$CPP $CPPFLAGS'
17552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17557 _lt_caught_CXX_error=yes
17561 ac_cpp='$CXXCPP $CPPFLAGS'
17562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17566 archive_cmds_need_lc_CXX=no
17567 allow_undefined_flag_CXX=
17568 always_export_symbols_CXX=no
17569 archive_expsym_cmds_CXX=
17570 compiler_needs_object_CXX=no
17571 export_dynamic_flag_spec_CXX=
17572 hardcode_direct_CXX=no
17573 hardcode_direct_absolute_CXX=no
17574 hardcode_libdir_flag_spec_CXX=
17575 hardcode_libdir_flag_spec_ld_CXX=
17576 hardcode_libdir_separator_CXX=
17577 hardcode_minus_L_CXX=no
17578 hardcode_shlibpath_var_CXX=unsupported
17579 hardcode_automatic_CXX=no
17580 inherit_rpath_CXX=no
17582 module_expsym_cmds_CXX=
17583 link_all_deplibs_CXX=unknown
17584 old_archive_cmds_CXX=$old_archive_cmds
17585 reload_flag_CXX=$reload_flag
17586 reload_cmds_CXX=$reload_cmds
17587 no_undefined_flag_CXX=
17588 whole_archive_flag_spec_CXX=
17589 enable_shared_with_static_runtimes_CXX=no
17591 # Source file extension for C++ test sources.
17594 # Object file extension for compiled C++ test sources.
17598 # No sense in running all these tests if we already determined that
17599 # the CXX compiler isn't working. Some variables (like enable_shared)
17600 # are currently assumed to apply to all compilers on this platform,
17601 # and will be corrupted by setting them based on a non-working compiler.
17602 if test "$_lt_caught_CXX_error" != yes; then
17603 # Code to be used in simple compile tests
17604 lt_simple_compile_test_code="int some_variable = 0;"
17606 # Code to be used in simple link tests
17607 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17616 # If no C compiler was specified, use CC.
17619 # If no C compiler flags were specified, use CFLAGS.
17620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17622 # Allow CC to be a program name with arguments.
17626 # save warnings/boilerplate of simple test code
17627 ac_outfile=conftest.$ac_objext
17628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17630 _lt_compiler_boilerplate=`cat conftest.err`
17633 ac_outfile=conftest.$ac_objext
17634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17636 _lt_linker_boilerplate=`cat conftest.err`
17640 # Allow CC to be a program name with arguments.
17645 lt_save_with_gnu_ld=$with_gnu_ld
17646 lt_save_path_LD=$lt_cv_path_LD
17647 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17648 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17650 $as_unset lt_cv_prog_gnu_ld
17652 if test -n "${lt_cv_path_LDCXX+set}"; then
17653 lt_cv_path_LD=$lt_cv_path_LDCXX
17655 $as_unset lt_cv_path_LD
17657 test -z "${LDCXX+set}" || LD=$LDCXX
17661 for cc_temp in $compiler""; do
17663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17669 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17672 if test -n "$compiler"; then
17673 # We don't want -fno-exception when compiling C++ code, so set the
17674 # no_builtin_flag separately
17675 if test "$GXX" = yes; then
17676 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17678 lt_prog_compiler_no_builtin_flag_CXX=
17681 if test "$GXX" = yes; then
17682 # Set up default GNU C++ configuration
17686 # Check whether --with-gnu-ld was given.
17687 if test "${with_gnu_ld+set}" = set; then :
17688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17694 if test "$GCC" = yes; then
17695 # Check if gcc -print-prog-name=ld gives a path.
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17697 $as_echo_n "checking for ld used by $CC... " >&6; }
17700 # gcc leaves a trailing carriage return which upsets mingw
17701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17706 # Accept absolute paths.
17708 re_direlt='/[^/][^/]*/\.\./'
17709 # Canonicalize the pathname of ld
17710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17714 test -z "$LD" && LD="$ac_prog"
17717 # If it fails, then pretend we aren't using GCC.
17721 # If it is relative, then search for the first ld in PATH.
17722 with_gnu_ld=unknown
17725 elif test "$with_gnu_ld" = yes; then
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17727 $as_echo_n "checking for GNU ld... " >&6; }
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17730 $as_echo_n "checking for non-GNU ld... " >&6; }
17732 if test "${lt_cv_path_LD+set}" = set; then :
17733 $as_echo_n "(cached) " >&6
17735 if test -z "$LD"; then
17736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17737 for ac_dir in $PATH; do
17739 test -z "$ac_dir" && ac_dir=.
17740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17741 lt_cv_path_LD="$ac_dir/$ac_prog"
17742 # Check to see if the program is GNU ld. I'd rather use --version,
17743 # but apparently some variants of GNU ld only accept -v.
17744 # Break only if it was the GNU/non-GNU ld that we prefer.
17745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17746 *GNU* | *'with BFD'*)
17747 test "$with_gnu_ld" != no && break
17750 test "$with_gnu_ld" != yes && break
17757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17761 LD="$lt_cv_path_LD"
17762 if test -n "$LD"; then
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17764 $as_echo "$LD" >&6; }
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17767 $as_echo "no" >&6; }
17769 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17771 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17772 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17773 $as_echo_n "(cached) " >&6
17775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17776 case `$LD -v 2>&1 </dev/null` in
17777 *GNU* | *'with BFD'*)
17778 lt_cv_prog_gnu_ld=yes
17781 lt_cv_prog_gnu_ld=no
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17786 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17787 with_gnu_ld=$lt_cv_prog_gnu_ld
17795 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17796 # archiving commands below assume that GNU ld is being used.
17797 if test "$with_gnu_ld" = yes; then
17798 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17799 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'
17801 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17804 # If archive_cmds runs LD, not CC, wlarc should be empty
17805 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17806 # investigate it a little bit more. (MM)
17809 # ancient GNU ld didn't support --whole-archive et. al.
17810 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17811 $GREP 'no-whole-archive' > /dev/null; then
17812 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17814 whole_archive_flag_spec_CXX=
17820 # A generic and very simple default shared library creation
17821 # command for GNU C++ for the case where it uses the native
17822 # linker, instead of GNU ld. If possible, this setting should
17823 # overridden to take advantage of the native linker features on
17824 # the platform it is being used on.
17825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17828 # Commands to make compiler produce verbose output that lists
17829 # what "hidden" libraries, object files and flags are used when
17830 # linking a shared library.
17831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17839 # PORTME: fill in a description of your system's C++ link characteristics
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17845 # FIXME: insert proper C++ library support
17849 if test "$host_cpu" = ia64; then
17850 # On IA64, the linker does run time linking by default, so we don't
17851 # have to do anything special.
17852 aix_use_runtimelinking=no
17853 exp_sym_flag='-Bexport'
17856 aix_use_runtimelinking=no
17858 # Test if we are trying to use run time linking or normal
17859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17860 # need to do runtime linking.
17861 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17862 for ld_flag in $LDFLAGS; do
17865 aix_use_runtimelinking=yes
17873 exp_sym_flag='-bexport'
17874 no_entry_flag='-bnoentry'
17877 # When large executables or shared objects are built, AIX ld can
17878 # have problems creating the table of contents. If linking a library
17879 # or program results in "error TOC overflow" add -mminimal-toc to
17880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17883 archive_cmds_CXX=''
17884 hardcode_direct_CXX=yes
17885 hardcode_direct_absolute_CXX=yes
17886 hardcode_libdir_separator_CXX=':'
17887 link_all_deplibs_CXX=yes
17888 file_list_spec_CXX='${wl}-f,'
17890 if test "$GXX" = yes; then
17891 case $host_os in aix4.[012]|aix4.[012].*)
17892 # We only want to do this on AIX 4.2 and lower, the check
17893 # below for broken collect2 doesn't work under 4.3+
17894 collect2name=`${CC} -print-prog-name=collect2`
17895 if test -f "$collect2name" &&
17896 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17898 # We have reworked collect2
17901 # We have old collect2
17902 hardcode_direct_CXX=unsupported
17903 # It fails to find uninstalled libraries when the uninstalled
17904 # path is not listed in the libpath. Setting hardcode_minus_L
17905 # to unsupported forces relinking
17906 hardcode_minus_L_CXX=yes
17907 hardcode_libdir_flag_spec_CXX='-L$libdir'
17908 hardcode_libdir_separator_CXX=
17911 shared_flag='-shared'
17912 if test "$aix_use_runtimelinking" = yes; then
17913 shared_flag="$shared_flag "'${wl}-G'
17917 if test "$host_cpu" = ia64; then
17918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17919 # chokes on -Wl,-G. The following line is correct:
17922 if test "$aix_use_runtimelinking" = yes; then
17923 shared_flag='${wl}-G'
17925 shared_flag='${wl}-bM:SRE'
17930 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17931 # It seems that -bexpall does not export symbols beginning with
17932 # underscore (_), so it is better to generate a list of symbols to
17934 always_export_symbols_CXX=yes
17935 if test "$aix_use_runtimelinking" = yes; then
17936 # Warning - without using the other runtime loading flags (-brtl),
17937 # -berok will link without error, but may produce a broken library.
17938 allow_undefined_flag_CXX='-berok'
17939 # Determine the default libpath from the value encoded in an empty
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17952 if ac_fn_cxx_try_link "$LINENO"; then :
17954 lt_aix_libpath_sed='
17955 /Import File Strings/,/^$/ {
17961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17962 # Check for a 64-bit object if we didn't find anything.
17963 if test -z "$aix_libpath"; then
17964 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17971 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17973 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"
17975 if test "$host_cpu" = ia64; then
17976 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17977 allow_undefined_flag_CXX="-z nodefs"
17978 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"
17980 # Determine the default libpath from the value encoded in an
17981 # empty executable.
17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17993 if ac_fn_cxx_try_link "$LINENO"; then :
17995 lt_aix_libpath_sed='
17996 /Import File Strings/,/^$/ {
18002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18003 # Check for a 64-bit object if we didn't find anything.
18004 if test -z "$aix_libpath"; then
18005 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18008 rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18013 # Warning - without using the other run time loading flags,
18014 # -berok will link without error, but may produce a broken library.
18015 no_undefined_flag_CXX=' ${wl}-bernotok'
18016 allow_undefined_flag_CXX=' ${wl}-berok'
18017 if test "$with_gnu_ld" = yes; then
18018 # We only use this code for GNU lds that support --whole-archive.
18019 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18021 # Exported symbols can be pulled into shared objects from archives
18022 whole_archive_flag_spec_CXX='$convenience'
18024 archive_cmds_need_lc_CXX=yes
18025 # This is similar to how AIX traditionally builds its shared
18027 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'
18033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18034 allow_undefined_flag_CXX=unsupported
18035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18036 # support --undefined. This deserves some investigation. FIXME
18037 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18044 case $cc_basename in
18046 # FIXME: insert proper C++ library support
18052 cygwin* | mingw* | pw32* | cegcc*)
18053 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18054 # as there is no search path for DLLs.
18055 hardcode_libdir_flag_spec_CXX='-L$libdir'
18056 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18057 allow_undefined_flag_CXX=unsupported
18058 always_export_symbols_CXX=no
18059 enable_shared_with_static_runtimes_CXX=yes
18061 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18062 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'
18063 # If the export-symbols file already is a .def file (1st line
18064 # is EXPORTS), use it as is; otherwise, prepend...
18065 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18066 cp $export_symbols $output_objdir/$soname.def;
18068 echo EXPORTS > $output_objdir/$soname.def;
18069 cat $export_symbols >> $output_objdir/$soname.def;
18071 $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'
18076 darwin* | rhapsody*)
18079 archive_cmds_need_lc_CXX=no
18080 hardcode_direct_CXX=no
18081 hardcode_automatic_CXX=yes
18082 hardcode_shlibpath_var_CXX=unsupported
18083 if test "$lt_cv_ld_force_load" = "yes"; then
18084 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\"`'
18086 whole_archive_flag_spec_CXX=''
18088 link_all_deplibs_CXX=yes
18089 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18090 case $cc_basename in
18091 ifort*) _lt_dar_can_shared=yes ;;
18092 *) _lt_dar_can_shared=$GCC ;;
18094 if test "$_lt_dar_can_shared" = "yes"; then
18095 output_verbose_link_cmd=func_echo_all
18096 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}"
18097 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18098 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}"
18099 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}"
18100 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18101 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}"
18102 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}"
18112 case $cc_basename in
18114 # FIXME: insert proper C++ library support
18118 # Green Hills C++ Compiler
18119 # FIXME: insert proper C++ library support
18123 # FIXME: insert proper C++ library support
18130 # C++ shared libraries reported to be fairly broken before
18136 archive_cmds_need_lc_CXX=no
18139 freebsd* | dragonfly*)
18140 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18149 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18150 link_all_deplibs_CXX=yes
18154 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18155 hardcode_libdir_separator_CXX=:
18156 export_dynamic_flag_spec_CXX='${wl}-E'
18157 hardcode_direct_CXX=yes
18158 hardcode_minus_L_CXX=yes # Not in the search PATH,
18159 # but as the default
18160 # location of the library.
18162 case $cc_basename in
18164 # FIXME: insert proper C++ library support
18168 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'
18169 # Commands to make compiler produce verbose output that lists
18170 # what "hidden" libraries, object files and flags are used when
18171 # linking a shared library.
18173 # There doesn't appear to be a way to prevent this compiler from
18174 # explicitly linking system object files so we need to strip them
18175 # from the output so that they don't get included in the library
18177 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"'
18180 if test "$GXX" = yes; then
18181 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'
18183 # FIXME: insert proper C++ library support
18191 if test $with_gnu_ld = no; then
18192 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18193 hardcode_libdir_separator_CXX=:
18199 export_dynamic_flag_spec_CXX='${wl}-E'
18205 hardcode_direct_CXX=no
18206 hardcode_shlibpath_var_CXX=no
18209 hardcode_direct_CXX=yes
18210 hardcode_direct_absolute_CXX=yes
18211 hardcode_minus_L_CXX=yes # Not in the search PATH,
18212 # but as the default
18213 # location of the library.
18217 case $cc_basename in
18219 # FIXME: insert proper C++ library support
18225 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18228 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18231 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18234 # Commands to make compiler produce verbose output that lists
18235 # what "hidden" libraries, object files and flags are used when
18236 # linking a shared library.
18238 # There doesn't appear to be a way to prevent this compiler from
18239 # explicitly linking system object files so we need to strip them
18240 # from the output so that they don't get included in the library
18242 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"'
18245 if test "$GXX" = yes; then
18246 if test $with_gnu_ld = no; then
18249 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18252 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18255 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'
18260 # FIXME: insert proper C++ library support
18268 hardcode_direct_CXX=no
18269 hardcode_shlibpath_var_CXX=no
18270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18271 export_dynamic_flag_spec_CXX='${wl}-E'
18272 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18273 # Instead, shared libraries are loaded at an image base (0x10000000 by
18274 # default) and relocated if they conflict, which is a slow very memory
18275 # consuming and fragmenting process. To avoid this, we pick a random,
18276 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18277 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18278 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'
18279 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'
18282 case $cc_basename in
18285 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'
18287 # Archives containing C++ object files must be created using
18288 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18289 # necessary to make sure instantiated templates are included
18291 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18294 if test "$GXX" = yes; then
18295 if test "$with_gnu_ld" = no; then
18296 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'
18298 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'
18301 link_all_deplibs_CXX=yes
18304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18305 hardcode_libdir_separator_CXX=:
18306 inherit_rpath_CXX=yes
18309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18310 case $cc_basename in
18312 # Kuck and Associates, Inc. (KAI) C++ Compiler
18314 # KCC will only create a shared library if the output file
18315 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18316 # to its proper name (with version) after linking.
18317 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'
18318 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'
18319 # Commands to make compiler produce verbose output that lists
18320 # what "hidden" libraries, object files and flags are used when
18321 # linking a shared library.
18323 # There doesn't appear to be a way to prevent this compiler from
18324 # explicitly linking system object files so we need to strip them
18325 # from the output so that they don't get included in the library
18327 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"'
18329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18332 # Archives containing C++ object files must be created using
18333 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18334 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18339 # version 8.0 and above of icpc choke on multiply defined symbols
18340 # if we add $predep_objects and $postdep_objects, however 7.1 and
18341 # earlier do not add the objects themselves.
18342 case `$CC -V 2>&1` in
18344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18345 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'
18347 *) # Version 8.0 or newer
18350 ia64*) tmp_idyn=' -i_dynamic';;
18352 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353 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'
18356 archive_cmds_need_lc_CXX=no
18357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18358 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18359 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18362 # Portland Group C++ compiler
18364 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18365 prelink_cmds_CXX='tpldir=Template.dir~
18367 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18368 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18369 old_archive_cmds_CXX='tpldir=Template.dir~
18371 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18372 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18374 archive_cmds_CXX='tpldir=Template.dir~
18376 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18377 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18378 archive_expsym_cmds_CXX='tpldir=Template.dir~
18380 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18381 $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'
18383 *) # Version 6 and above use weak symbols
18384 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18385 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'
18389 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18391 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'
18395 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18396 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'
18398 runpath_var=LD_RUN_PATH
18399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18400 hardcode_libdir_separator_CXX=:
18402 # Commands to make compiler produce verbose output that lists
18403 # what "hidden" libraries, object files and flags are used when
18404 # linking a shared library.
18406 # There doesn't appear to be a way to prevent this compiler from
18407 # explicitly linking system object files so we need to strip them
18408 # from the output so that they don't get included in the library
18410 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'
18412 xl* | mpixl* | bgxl*)
18413 # IBM XL 8.0 on PPC, with GNU ld
18414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18416 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18417 if test "x$supports_anon_versioning" = xyes; then
18418 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18419 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18420 echo "local: *; };" >> $output_objdir/$libname.ver~
18421 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18425 case `$CC -V 2>&1 | sed 5q` in
18428 no_undefined_flag_CXX=' -zdefs'
18429 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18430 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'
18431 hardcode_libdir_flag_spec_CXX='-R$libdir'
18432 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'
18433 compiler_needs_object_CXX=yes
18435 # Not sure whether something based on
18436 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18438 output_verbose_link_cmd='func_echo_all'
18440 # Archives containing C++ object files must be created using
18441 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18442 # necessary to make sure instantiated templates are included
18444 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18452 # FIXME: insert proper C++ library support
18457 # FIXME: insert proper C++ library support
18462 case $cc_basename in
18464 # FIXME: insert proper C++ library support
18468 # FIXME: insert proper C++ library support
18475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18476 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18478 hardcode_libdir_flag_spec_CXX='-R$libdir'
18479 hardcode_direct_CXX=yes
18480 hardcode_shlibpath_var_CXX=no
18482 # Workaround some broken pre-1.5 toolchains
18483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18491 # C++ shared libraries are fairly broken
18496 if test -f /usr/libexec/ld.so; then
18497 hardcode_direct_CXX=yes
18498 hardcode_shlibpath_var_CXX=no
18499 hardcode_direct_absolute_CXX=yes
18500 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18503 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18504 export_dynamic_flag_spec_CXX='${wl}-E'
18505 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18507 output_verbose_link_cmd=func_echo_all
18513 osf3* | osf4* | osf5*)
18514 case $cc_basename in
18516 # Kuck and Associates, Inc. (KAI) C++ Compiler
18518 # KCC will only create a shared library if the output file
18519 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18520 # to its proper name (with version) after linking.
18521 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'
18523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18524 hardcode_libdir_separator_CXX=:
18526 # Archives containing C++ object files must be created using
18527 # the KAI C++ compiler.
18529 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18530 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18534 # Rational C++ 2.4.1
18535 # FIXME: insert proper C++ library support
18541 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18542 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'
18543 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18546 allow_undefined_flag_CXX=' -expect_unresolved \*'
18547 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'
18548 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18549 echo "-hidden">> $lib.exp~
18550 $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~
18552 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18556 hardcode_libdir_separator_CXX=:
18558 # Commands to make compiler produce verbose output that lists
18559 # what "hidden" libraries, object files and flags are used when
18560 # linking a shared library.
18562 # There doesn't appear to be a way to prevent this compiler from
18563 # explicitly linking system object files so we need to strip them
18564 # from the output so that they don't get included in the library
18566 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"'
18569 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18573 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'
18576 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'
18580 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18581 hardcode_libdir_separator_CXX=:
18583 # Commands to make compiler produce verbose output that lists
18584 # what "hidden" libraries, object files and flags are used when
18585 # linking a shared library.
18586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18589 # FIXME: insert proper C++ library support
18597 # FIXME: insert proper C++ library support
18602 case $cc_basename in
18605 # FIXME: insert proper C++ library support
18610 # FIXME: insert proper C++ library support
18614 # FIXME: insert proper C++ library support
18621 case $cc_basename in
18623 # Sun C++ 4.2, 5.x and Centerline C++
18624 archive_cmds_need_lc_CXX=yes
18625 no_undefined_flag_CXX=' -zdefs'
18626 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18627 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18628 $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'
18630 hardcode_libdir_flag_spec_CXX='-R$libdir'
18631 hardcode_shlibpath_var_CXX=no
18633 solaris2.[0-5] | solaris2.[0-5].*) ;;
18635 # The compiler driver will combine and reorder linker options,
18636 # but understands `-z linker_flag'.
18637 # Supported since Solaris 2.6 (maybe 2.5.1?)
18638 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18641 link_all_deplibs_CXX=yes
18643 output_verbose_link_cmd='func_echo_all'
18645 # Archives containing C++ object files must be created using
18646 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18647 # necessary to make sure instantiated templates are included
18649 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18652 # Green Hills C++ Compiler
18653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18655 # The C++ compiler must be used to create the archive.
18656 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18659 # GNU C++ compiler with Solaris linker
18660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18661 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18662 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18663 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18664 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18665 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18667 # Commands to make compiler produce verbose output that lists
18668 # what "hidden" libraries, object files and flags are used when
18669 # linking a shared library.
18670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18672 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18674 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18675 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18676 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18678 # Commands to make compiler produce verbose output that lists
18679 # what "hidden" libraries, object files and flags are used when
18680 # linking a shared library.
18681 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18684 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18686 solaris2.[0-5] | solaris2.[0-5].*) ;;
18688 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18697 no_undefined_flag_CXX='${wl}-z,text'
18698 archive_cmds_need_lc_CXX=no
18699 hardcode_shlibpath_var_CXX=no
18700 runpath_var='LD_RUN_PATH'
18702 case $cc_basename in
18704 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18705 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18708 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18709 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18714 sysv5* | sco3.2v5* | sco5v6*)
18715 # Note: We can NOT use -z defs as we might desire, because we do not
18716 # link with -lc, and that would cause any symbols used from libc to
18717 # always be unresolved, which means just about no library would
18718 # ever link correctly. If we're not using GNU ld we use -z text
18719 # though, which does catch some bad symbols but isn't as heavy-handed
18721 no_undefined_flag_CXX='${wl}-z,text'
18722 allow_undefined_flag_CXX='${wl}-z,nodefs'
18723 archive_cmds_need_lc_CXX=no
18724 hardcode_shlibpath_var_CXX=no
18725 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18726 hardcode_libdir_separator_CXX=':'
18727 link_all_deplibs_CXX=yes
18728 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18729 runpath_var='LD_RUN_PATH'
18731 case $cc_basename in
18733 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18734 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18735 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18736 '"$old_archive_cmds_CXX"
18737 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18738 '"$reload_cmds_CXX"
18741 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18742 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18748 case $cc_basename in
18750 # NonStop-UX NCC 3.20
18751 # FIXME: insert proper C++ library support
18755 # FIXME: insert proper C++ library support
18762 # FIXME: insert proper C++ library support
18767 # FIXME: insert proper C++ library support
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18773 $as_echo "$ld_shlibs_CXX" >&6; }
18774 test "$ld_shlibs_CXX" = no && can_build_shared=no
18780 ## There is no encapsulation within the following macros, do not change
18781 ## the running order or otherwise move them around unless you know exactly
18782 ## what you are doing...
18783 # Dependencies to place before and after the object being linked:
18784 predep_objects_CXX=
18785 postdep_objects_CXX=
18788 compiler_lib_search_path_CXX=
18790 cat > conftest.$ac_ext <<_LT_EOF
18794 Foo (void) { a = 0; }
18800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18801 (eval $ac_compile) 2>&5
18803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18804 test $ac_status = 0; }; then
18805 # Parse the compiler output and extract the necessary
18806 # objects, libraries and library flags.
18808 # Sentinel used to keep track of whether or not we are before
18809 # the conftest object file.
18810 pre_test_object_deps_done=no
18812 for p in `eval "$output_verbose_link_cmd"`; do
18816 # Some compilers place space between "-{L,R}" and the path.
18817 # Remove the space.
18818 if test $p = "-L" ||
18819 test $p = "-R"; then
18826 if test "$pre_test_object_deps_done" = no; then
18829 # Internal compiler library paths should come after those
18830 # provided the user. The postdeps already come after the
18831 # user supplied libs so there is no need to process them.
18832 if test -z "$compiler_lib_search_path_CXX"; then
18833 compiler_lib_search_path_CXX="${prev}${p}"
18835 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18838 # The "-l" case would never come before the object being
18839 # linked, so don't bother handling this case.
18842 if test -z "$postdeps_CXX"; then
18843 postdeps_CXX="${prev}${p}"
18845 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18851 # This assumes that the test object file only shows up
18852 # once in the compiler output.
18853 if test "$p" = "conftest.$objext"; then
18854 pre_test_object_deps_done=yes
18858 if test "$pre_test_object_deps_done" = no; then
18859 if test -z "$predep_objects_CXX"; then
18860 predep_objects_CXX="$p"
18862 predep_objects_CXX="$predep_objects_CXX $p"
18865 if test -z "$postdep_objects_CXX"; then
18866 postdep_objects_CXX="$p"
18868 postdep_objects_CXX="$postdep_objects_CXX $p"
18873 *) ;; # Ignore the rest.
18881 echo "libtool.m4: error: problem compiling CXX test program"
18884 $RM -f confest.$objext
18886 # PORTME: override above test on systems where it is broken
18889 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18890 # hack all around it, let's just trust "g++" to DTRT.
18891 predep_objects_CXX=
18892 postdep_objects_CXX=
18897 case `$CC -V 2>&1 | sed 5q` in
18901 # The more standards-conforming stlport4 library is
18902 # incompatible with the Cstd library. Avoid specifying
18903 # it if it's in CXXFLAGS. Ignore libCrun as
18904 # -library=stlport4 depends on it.
18905 case " $CXX $CXXFLAGS " in
18906 *" -library=stlport4 "*)
18907 solaris_use_stlport4=yes
18911 if test "$solaris_use_stlport4" != yes; then
18912 postdeps_CXX='-library=Cstd -library=Crun'
18919 case $cc_basename in
18921 # The more standards-conforming stlport4 library is
18922 # incompatible with the Cstd library. Avoid specifying
18923 # it if it's in CXXFLAGS. Ignore libCrun as
18924 # -library=stlport4 depends on it.
18925 case " $CXX $CXXFLAGS " in
18926 *" -library=stlport4 "*)
18927 solaris_use_stlport4=yes
18931 # Adding this requires a known-good setup of shared libraries for
18932 # Sun compiler versions before 5.6, else PIC objects from an old
18933 # archive will be linked into the output, leading to subtle bugs.
18934 if test "$solaris_use_stlport4" != yes; then
18935 postdeps_CXX='-library=Cstd -library=Crun'
18943 case " $postdeps_CXX " in
18944 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18946 compiler_lib_search_dirs_CXX=
18947 if test -n "${compiler_lib_search_path_CXX}"; then
18948 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18981 lt_prog_compiler_wl_CXX=
18982 lt_prog_compiler_pic_CXX=
18983 lt_prog_compiler_static_CXX=
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18988 # C++ specific cases for pic, static, wl, etc.
18989 if test "$GXX" = yes; then
18990 lt_prog_compiler_wl_CXX='-Wl,'
18991 lt_prog_compiler_static_CXX='-static'
18995 # All AIX code is PIC.
18996 if test "$host_cpu" = ia64; then
18997 # AIX 5 now supports IA64 processor
18998 lt_prog_compiler_static_CXX='-Bstatic'
19005 # see comment about AmigaOS4 .so support
19006 lt_prog_compiler_pic_CXX='-fPIC'
19009 # FIXME: we need at least 68020 code to build shared libraries, but
19010 # adding the `-m68020' flag to GCC prevents building anything better,
19012 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19017 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19018 # PIC is the default for these OSes.
19020 mingw* | cygwin* | os2* | pw32* | cegcc*)
19021 # This hack is so that the source file can tell whether it is being
19022 # built for inclusion in a dll (and should export symbols for example).
19023 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19024 # (--disable-auto-import) libraries
19025 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19027 darwin* | rhapsody*)
19028 # PIC is the default on this platform
19029 # Common symbols not allowed in MH_DYLIB files
19030 lt_prog_compiler_pic_CXX='-fno-common'
19033 # DJGPP does not support shared libraries at all
19034 lt_prog_compiler_pic_CXX=
19037 # PIC is the default for Haiku.
19038 # The "-static" flag exists, but is broken.
19039 lt_prog_compiler_static_CXX=
19042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19043 # Instead, we relocate shared libraries at runtime.
19046 if test -d /usr/nec; then
19047 lt_prog_compiler_pic_CXX=-Kconform_pic
19051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19053 # sets the default TLS model and affects inlining.
19058 lt_prog_compiler_pic_CXX='-fPIC'
19063 # QNX uses GNU C++, but need to define -shared option too, otherwise
19064 # it will coredump.
19065 lt_prog_compiler_pic_CXX='-fPIC -shared'
19068 lt_prog_compiler_pic_CXX='-fPIC'
19074 # All AIX code is PIC.
19075 if test "$host_cpu" = ia64; then
19076 # AIX 5 now supports IA64 processor
19077 lt_prog_compiler_static_CXX='-Bstatic'
19079 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19083 case $cc_basename in
19085 # Green Hills C++ Compiler
19086 # _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"
19091 case $cc_basename in
19093 lt_prog_compiler_pic_CXX='-KPIC'
19096 # Green Hills C++ Compiler
19097 lt_prog_compiler_pic_CXX='-pic'
19103 freebsd* | dragonfly*)
19104 # FreeBSD uses GNU C++
19106 hpux9* | hpux10* | hpux11*)
19107 case $cc_basename in
19109 lt_prog_compiler_wl_CXX='-Wl,'
19110 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19111 if test "$host_cpu" != ia64; then
19112 lt_prog_compiler_pic_CXX='+Z'
19116 lt_prog_compiler_wl_CXX='-Wl,'
19117 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19123 lt_prog_compiler_pic_CXX='+Z'
19132 # This is c89, which is MS Visual C++ (no shared libs)
19133 # Anyone wants to do a port?
19135 irix5* | irix6* | nonstopux*)
19136 case $cc_basename in
19138 lt_prog_compiler_wl_CXX='-Wl,'
19139 lt_prog_compiler_static_CXX='-non_shared'
19140 # CC pic flag -KPIC is the default.
19146 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19147 case $cc_basename in
19150 lt_prog_compiler_wl_CXX='--backend -Wl,'
19151 lt_prog_compiler_pic_CXX='-fPIC'
19154 # old Intel C++ for x86_64 which still supported -KPIC.
19155 lt_prog_compiler_wl_CXX='-Wl,'
19156 lt_prog_compiler_pic_CXX='-KPIC'
19157 lt_prog_compiler_static_CXX='-static'
19160 # Intel C++, used to be incompatible with GCC.
19161 # ICC 10 doesn't accept -KPIC any more.
19162 lt_prog_compiler_wl_CXX='-Wl,'
19163 lt_prog_compiler_pic_CXX='-fPIC'
19164 lt_prog_compiler_static_CXX='-static'
19167 # Portland Group C++ compiler
19168 lt_prog_compiler_wl_CXX='-Wl,'
19169 lt_prog_compiler_pic_CXX='-fpic'
19170 lt_prog_compiler_static_CXX='-Bstatic'
19174 # Make sure the PIC flag is empty. It appears that all Alpha
19175 # Linux and Compaq Tru64 Unix objects are PIC.
19176 lt_prog_compiler_pic_CXX=
19177 lt_prog_compiler_static_CXX='-non_shared'
19179 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19180 # IBM XL 8.0, 9.0 on PPC and BlueGene
19181 lt_prog_compiler_wl_CXX='-Wl,'
19182 lt_prog_compiler_pic_CXX='-qpic'
19183 lt_prog_compiler_static_CXX='-qstaticlink'
19186 case `$CC -V 2>&1 | sed 5q` in
19189 lt_prog_compiler_pic_CXX='-KPIC'
19190 lt_prog_compiler_static_CXX='-Bstatic'
19191 lt_prog_compiler_wl_CXX='-Qoption ld '
19202 case $cc_basename in
19204 lt_prog_compiler_pic_CXX='-W c,exportall'
19213 # QNX uses GNU C++, but need to define -shared option too, otherwise
19214 # it will coredump.
19215 lt_prog_compiler_pic_CXX='-fPIC -shared'
19217 osf3* | osf4* | osf5*)
19218 case $cc_basename in
19220 lt_prog_compiler_wl_CXX='--backend -Wl,'
19223 # Rational C++ 2.4.1
19224 lt_prog_compiler_pic_CXX='-pic'
19227 # Digital/Compaq C++
19228 lt_prog_compiler_wl_CXX='-Wl,'
19229 # Make sure the PIC flag is empty. It appears that all Alpha
19230 # Linux and Compaq Tru64 Unix objects are PIC.
19231 lt_prog_compiler_pic_CXX=
19232 lt_prog_compiler_static_CXX='-non_shared'
19241 case $cc_basename in
19243 # Sun C++ 4.2, 5.x and Centerline C++
19244 lt_prog_compiler_pic_CXX='-KPIC'
19245 lt_prog_compiler_static_CXX='-Bstatic'
19246 lt_prog_compiler_wl_CXX='-Qoption ld '
19249 # Green Hills C++ Compiler
19250 lt_prog_compiler_pic_CXX='-PIC'
19257 case $cc_basename in
19260 lt_prog_compiler_pic_CXX='-pic'
19261 lt_prog_compiler_static_CXX='-Bstatic'
19265 lt_prog_compiler_pic_CXX='-pic'
19271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19272 case $cc_basename in
19274 lt_prog_compiler_wl_CXX='-Wl,'
19275 lt_prog_compiler_pic_CXX='-KPIC'
19276 lt_prog_compiler_static_CXX='-Bstatic'
19281 case $cc_basename in
19283 # NonStop-UX NCC 3.20
19284 lt_prog_compiler_pic_CXX='-KPIC'
19293 lt_prog_compiler_can_build_shared_CXX=no
19299 # For platforms which do not support PIC, -DPIC is meaningless:
19301 lt_prog_compiler_pic_CXX=
19304 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19308 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19313 # Check to make sure the PIC flag actually works.
19315 if test -n "$lt_prog_compiler_pic_CXX"; then
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19317 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19318 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19319 $as_echo_n "(cached) " >&6
19321 lt_cv_prog_compiler_pic_works_CXX=no
19322 ac_outfile=conftest.$ac_objext
19323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19324 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19325 # Insert the option either (1) after the last *FLAGS variable, or
19326 # (2) before a word containing "conftest.", or (3) at the end.
19327 # Note that $ac_compile itself does not contain backslashes and begins
19328 # with a dollar sign (not a hyphen), so the echo should work correctly.
19329 # The option is referenced via a variable to avoid confusing sed.
19330 lt_compile=`echo "$ac_compile" | $SED \
19331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19333 -e 's:$: $lt_compiler_flag:'`
19334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19335 (eval "$lt_compile" 2>conftest.err)
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 if (exit $ac_status) && test -s "$ac_outfile"; then
19340 # The compiler can only warn and ignore the option if not recognized
19341 # So say no if there are warnings other than the usual output.
19342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19345 lt_cv_prog_compiler_pic_works_CXX=yes
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19352 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19354 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19355 case $lt_prog_compiler_pic_CXX in
19357 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19360 lt_prog_compiler_pic_CXX=
19361 lt_prog_compiler_can_build_shared_CXX=no
19369 # Check to make sure the static flag actually works.
19371 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19373 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19374 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19375 $as_echo_n "(cached) " >&6
19377 lt_cv_prog_compiler_static_works_CXX=no
19378 save_LDFLAGS="$LDFLAGS"
19379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19380 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19382 # The linker can only warn and ignore the option if not recognized
19383 # So say no if there are warnings
19384 if test -s conftest.err; then
19385 # Append any errors to the config.log.
19386 cat conftest.err 1>&5
19387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19389 if diff conftest.exp conftest.er2 >/dev/null; then
19390 lt_cv_prog_compiler_static_works_CXX=yes
19393 lt_cv_prog_compiler_static_works_CXX=yes
19397 LDFLAGS="$save_LDFLAGS"
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19401 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19403 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19406 lt_prog_compiler_static_CXX=
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19414 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19415 $as_echo_n "(cached) " >&6
19417 lt_cv_prog_compiler_c_o_CXX=no
19418 $RM -r conftest 2>/dev/null
19422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19424 lt_compiler_flag="-o out/conftest2.$ac_objext"
19425 # Insert the option either (1) after the last *FLAGS variable, or
19426 # (2) before a word containing "conftest.", or (3) at the end.
19427 # Note that $ac_compile itself does not contain backslashes and begins
19428 # with a dollar sign (not a hyphen), so the echo should work correctly.
19429 lt_compile=`echo "$ac_compile" | $SED \
19430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19432 -e 's:$: $lt_compiler_flag:'`
19433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19434 (eval "$lt_compile" 2>out/conftest.err)
19436 cat out/conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19440 # The compiler can only warn and ignore the option if not recognized
19441 # So say no if there are warnings
19442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19445 lt_cv_prog_compiler_c_o_CXX=yes
19450 # SGI C++ compiler will create directory out/ii_files/ for
19451 # template instantiation
19452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19453 $RM out/* && rmdir out
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19460 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19467 $as_echo_n "(cached) " >&6
19469 lt_cv_prog_compiler_c_o_CXX=no
19470 $RM -r conftest 2>/dev/null
19474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19476 lt_compiler_flag="-o out/conftest2.$ac_objext"
19477 # Insert the option either (1) after the last *FLAGS variable, or
19478 # (2) before a word containing "conftest.", or (3) at the end.
19479 # Note that $ac_compile itself does not contain backslashes and begins
19480 # with a dollar sign (not a hyphen), so the echo should work correctly.
19481 lt_compile=`echo "$ac_compile" | $SED \
19482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19484 -e 's:$: $lt_compiler_flag:'`
19485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19486 (eval "$lt_compile" 2>out/conftest.err)
19488 cat out/conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19492 # The compiler can only warn and ignore the option if not recognized
19493 # So say no if there are warnings
19494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19497 lt_cv_prog_compiler_c_o_CXX=yes
19502 # SGI C++ compiler will create directory out/ii_files/ for
19503 # template instantiation
19504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19505 $RM out/* && rmdir out
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19512 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19517 hard_links="nottested"
19518 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19519 # do not overwrite the value of need_locks provided by the user
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19521 $as_echo_n "checking if we can lock with hard links... " >&6; }
19524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19526 ln conftest.a conftest.b 2>&5 || hard_links=no
19527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19529 $as_echo "$hard_links" >&6; }
19530 if test "$hard_links" = no; then
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19542 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19544 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19547 # If we're using GNU nm, then we don't want the "-C" option.
19548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19549 # Also, AIX nm treats weak defined symbols like other global defined
19550 # symbols, whereas GNU nm marks them as "W".
19551 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19552 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'
19554 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'
19558 export_symbols_cmds_CXX="$ltdll_cmds"
19560 cygwin* | mingw* | cegcc*)
19561 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'
19564 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19567 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19570 $as_echo "$ld_shlibs_CXX" >&6; }
19571 test "$ld_shlibs_CXX" = no && can_build_shared=no
19573 with_gnu_ld_CXX=$with_gnu_ld
19581 # Do we need to explicitly link libc?
19583 case "x$archive_cmds_need_lc_CXX" in
19585 # Assume -lc should be added
19586 archive_cmds_need_lc_CXX=yes
19588 if test "$enable_shared" = yes && test "$GCC" = yes; then
19589 case $archive_cmds_CXX in
19591 # FIXME: we may have to deal with multi-command sequences.
19594 # Test whether the compiler implicitly links with -lc since on some
19595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19596 # to ld, don't add -lc before -lgcc.
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19599 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19606 (eval $ac_compile) 2>&5
19608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19609 test $ac_status = 0; } 2>conftest.err; then
19612 libobjs=conftest.$ac_objext
19614 wl=$lt_prog_compiler_wl_CXX
19615 pic_flag=$lt_prog_compiler_pic_CXX
19621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19622 allow_undefined_flag_CXX=
19623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19624 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19627 test $ac_status = 0; }
19629 lt_cv_archive_cmds_need_lc_CXX=no
19631 lt_cv_archive_cmds_need_lc_CXX=yes
19633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19635 cat conftest.err 1>&5
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19641 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19642 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19715 library_names_spec=
19716 libname_spec='lib$name'
19720 postuninstall_cmds=
19724 shlibpath_overrides_runpath=unknown
19726 dynamic_linker="$host_os ld.so"
19727 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19728 need_lib_prefix=unknown
19729 hardcode_into_libs=no
19731 # when you set need_version to no, make sure it does not cause -set_version
19732 # flags to be left without arguments
19733 need_version=unknown
19738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19739 shlibpath_var=LIBPATH
19741 # AIX 3 has no versioning support, so we append a major version to the name.
19742 soname_spec='${libname}${release}${shared_ext}$major'
19749 hardcode_into_libs=yes
19750 if test "$host_cpu" = ia64; then
19751 # AIX 5 supports IA64
19752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19753 shlibpath_var=LD_LIBRARY_PATH
19755 # With GCC up to 2.95.x, collect2 would create an import file
19756 # for dependence libraries. The import file would start with
19757 # the line `#! .'. This would cause the generated library to
19758 # depend on `.', always an invalid library. This was fixed in
19759 # development snapshots of GCC prior to 3.0.
19761 aix4 | aix4.[01] | aix4.[01].*)
19762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19764 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19767 can_build_shared=no
19771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19772 # soname into executable. Probably we can add versioning support to
19773 # collect2, so additional links can be useful in future.
19774 if test "$aix_use_runtimelinking" = yes; then
19775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19776 # instead of lib<name>.a to let people know that these are not
19777 # typical AIX shared libraries.
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19780 # We preserve .a as extension for shared libraries through AIX4.2
19781 # and later when we are not doing run time linking.
19782 library_names_spec='${libname}${release}.a $libname.a'
19783 soname_spec='${libname}${release}${shared_ext}$major'
19785 shlibpath_var=LIBPATH
19792 # Since July 2007 AmigaOS4 officially supports .so libraries.
19793 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19797 library_names_spec='$libname.ixlibrary $libname.a'
19798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19799 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'
19805 library_names_spec='${libname}${shared_ext}'
19806 dynamic_linker="$host_os ld.so"
19807 shlibpath_var=LIBRARY_PATH
19813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19814 soname_spec='${libname}${release}${shared_ext}$major'
19815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19816 shlibpath_var=LD_LIBRARY_PATH
19817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19819 # the default ld.so.conf also contains /usr/contrib/lib and
19820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19821 # libtool to hard-code these into programs
19824 cygwin* | mingw* | pw32* | cegcc*)
19825 version_type=windows
19830 case $GCC,$host_os in
19831 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19832 library_names_spec='$libname.dll.a'
19833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19834 postinstall_cmds='base_file=`basename \${file}`~
19835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19836 dldir=$destdir/`dirname \$dlpath`~
19837 test -d \$dldir || mkdir -p \$dldir~
19838 $install_prog $dir/$dlname \$dldir/$dlname~
19839 chmod a+x \$dldir/$dlname~
19840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19841 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19844 dlpath=$dir/\$dldll~
19846 shlibpath_overrides_runpath=yes
19850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19855 # MinGW DLLs use traditional 'lib' prefix
19856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19859 # pw32 DLLs use 'pw' prefix rather than 'lib'
19860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19869 dynamic_linker='Win32 ld.exe'
19870 # FIXME: first we should search . and the directory the executable is in
19874 darwin* | rhapsody*)
19875 dynamic_linker="$host_os dyld"
19876 version_type=darwin
19879 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19880 soname_spec='${libname}${release}${major}$shared_ext'
19881 shlibpath_overrides_runpath=yes
19882 shlibpath_var=DYLD_LIBRARY_PATH
19883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19893 soname_spec='${libname}${release}${shared_ext}$major'
19894 shlibpath_var=LD_LIBRARY_PATH
19901 freebsd* | dragonfly*)
19902 # DragonFly does not have aout. When/if they implement a new
19903 # versioning mechanism, adjust this.
19904 if test -x /usr/bin/objformat; then
19905 objformat=`/usr/bin/objformat`
19908 freebsd[123]*) objformat=aout ;;
19909 *) objformat=elf ;;
19912 version_type=freebsd-$objformat
19913 case $version_type in
19915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19924 shlibpath_var=LD_LIBRARY_PATH
19927 shlibpath_overrides_runpath=yes
19929 freebsd3.[01]* | freebsdelf3.[01]*)
19930 shlibpath_overrides_runpath=yes
19931 hardcode_into_libs=yes
19933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19935 shlibpath_overrides_runpath=no
19936 hardcode_into_libs=yes
19938 *) # from 4.6 on, and DragonFly
19939 shlibpath_overrides_runpath=yes
19940 hardcode_into_libs=yes
19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19950 soname_spec='${libname}${release}${shared_ext}$major'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 hardcode_into_libs=yes
19959 dynamic_linker="$host_os runtime_loader"
19960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19961 soname_spec='${libname}${release}${shared_ext}$major'
19962 shlibpath_var=LIBRARY_PATH
19963 shlibpath_overrides_runpath=yes
19964 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19965 hardcode_into_libs=yes
19968 hpux9* | hpux10* | hpux11*)
19969 # Give a soname corresponding to the major version so that dld.sl refuses to
19970 # link against other versions.
19977 hardcode_into_libs=yes
19978 dynamic_linker="$host_os dld.so"
19979 shlibpath_var=LD_LIBRARY_PATH
19980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19982 soname_spec='${libname}${release}${shared_ext}$major'
19983 if test "X$HPUX_IA64_MODE" = X32; then
19984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19992 hardcode_into_libs=yes
19993 dynamic_linker="$host_os dld.sl"
19994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20003 dynamic_linker="$host_os dld.sl"
20004 shlibpath_var=SHLIB_PATH
20005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20010 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20011 postinstall_cmds='chmod 555 $lib'
20012 # or fails outright, so override atomically:
20013 install_override_mode=555
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20021 soname_spec='${libname}${release}${shared_ext}$major'
20022 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20023 shlibpath_var=LD_LIBRARY_PATH
20024 shlibpath_overrides_runpath=no
20025 hardcode_into_libs=yes
20028 irix5* | irix6* | nonstopux*)
20030 nonstopux*) version_type=nonstopux ;;
20032 if test "$lt_cv_prog_gnu_ld" = yes; then
20040 soname_spec='${libname}${release}${shared_ext}$major'
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20043 irix5* | nonstopux*)
20044 libsuff= shlibsuff=
20047 case $LD in # libtool.m4 will add one of these switches to LD
20048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20049 libsuff= shlibsuff= libmagic=32-bit;;
20050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20051 libsuff=32 shlibsuff=N32 libmagic=N32;;
20052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20054 *) libsuff= shlibsuff= libmagic=never-match;;
20058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20059 shlibpath_overrides_runpath=no
20060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20062 hardcode_into_libs=yes
20065 # No shared lib support for Linux oldld, aout, or coff.
20066 linux*oldld* | linux*aout* | linux*coff*)
20070 # This must be Linux ELF.
20071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20076 soname_spec='${libname}${release}${shared_ext}$major'
20077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20078 shlibpath_var=LD_LIBRARY_PATH
20079 shlibpath_overrides_runpath=no
20081 # Some binutils ld are patched to set DT_RUNPATH
20082 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20083 $as_echo_n "(cached) " >&6
20085 lt_cv_shlibpath_overrides_runpath=no
20086 save_LDFLAGS=$LDFLAGS
20087 save_libdir=$libdir
20088 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20089 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h. */
20101 if ac_fn_cxx_try_link "$LINENO"; then :
20102 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20103 lt_cv_shlibpath_overrides_runpath=yes
20106 rm -f core conftest.err conftest.$ac_objext \
20107 conftest$ac_exeext conftest.$ac_ext
20108 LDFLAGS=$save_LDFLAGS
20109 libdir=$save_libdir
20113 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20115 # This implies no fast_install, which is unacceptable.
20116 # Some rework will be needed to allow for fast_install
20117 # before this can be enabled.
20118 hardcode_into_libs=yes
20120 # Append ld.so.conf contents to the search path
20121 if test -f /etc/ld.so.conf; then
20122 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' ' '`
20123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20126 # We used to test for /lib/ld.so.1 and disable shared libraries on
20127 # powerpc, because MkLinux only supported shared libraries with the
20128 # GNU dynamic linker. Since this was broken with cross compilers,
20129 # most powerpc-linux boxes support dynamic linking these days and
20130 # people can always --disable-shared, the test was removed, and we
20131 # assume the GNU/Linux dynamic linker is in use.
20132 dynamic_linker='GNU/Linux ld.so'
20139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20142 dynamic_linker='NetBSD (a.out) ld.so'
20144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20145 soname_spec='${libname}${release}${shared_ext}$major'
20146 dynamic_linker='NetBSD ld.elf_so'
20148 shlibpath_var=LD_LIBRARY_PATH
20149 shlibpath_overrides_runpath=yes
20150 hardcode_into_libs=yes
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20156 shlibpath_var=LD_LIBRARY_PATH
20157 shlibpath_overrides_runpath=yes
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 soname_spec='${libname}${release}${shared_ext}$major'
20166 shlibpath_var=LD_LIBRARY_PATH
20167 shlibpath_overrides_runpath=no
20168 hardcode_into_libs=yes
20169 dynamic_linker='ldqnx.so'
20174 sys_lib_dlsearch_path_spec="/usr/lib"
20176 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20178 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20179 *) need_version=no ;;
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20183 shlibpath_var=LD_LIBRARY_PATH
20184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20186 openbsd2.[89] | openbsd2.[89].*)
20187 shlibpath_overrides_runpath=no
20190 shlibpath_overrides_runpath=yes
20194 shlibpath_overrides_runpath=yes
20199 libname_spec='$name'
20202 library_names_spec='$libname${shared_ext} $libname.a'
20203 dynamic_linker='OS/2 ld.exe'
20204 shlibpath_var=LIBPATH
20207 osf3* | osf4* | osf5*)
20211 soname_spec='${libname}${release}${shared_ext}$major'
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213 shlibpath_var=LD_LIBRARY_PATH
20214 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20215 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227 soname_spec='${libname}${release}${shared_ext}$major'
20228 shlibpath_var=LD_LIBRARY_PATH
20229 shlibpath_overrides_runpath=yes
20230 hardcode_into_libs=yes
20231 # ldd complains unless libraries are executable
20232 postinstall_cmds='chmod +x $lib'
20237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20239 shlibpath_var=LD_LIBRARY_PATH
20240 shlibpath_overrides_runpath=yes
20241 if test "$with_gnu_ld" = yes; then
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20252 case $host_vendor in
20254 shlibpath_overrides_runpath=no
20256 runpath_var=LD_RUN_PATH
20264 shlibpath_overrides_runpath=no
20265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20271 if test -d /usr/nec ;then
20273 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20274 soname_spec='$libname${shared_ext}.$major'
20275 shlibpath_var=LD_LIBRARY_PATH
20279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20280 version_type=freebsd-elf
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 shlibpath_var=LD_LIBRARY_PATH
20286 shlibpath_overrides_runpath=yes
20287 hardcode_into_libs=yes
20288 if test "$with_gnu_ld" = yes; then
20289 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20291 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20298 sys_lib_dlsearch_path_spec='/usr/lib'
20302 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 shlibpath_overrides_runpath=no
20309 hardcode_into_libs=yes
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315 soname_spec='${libname}${release}${shared_ext}$major'
20316 shlibpath_var=LD_LIBRARY_PATH
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20324 $as_echo "$dynamic_linker" >&6; }
20325 test "$dynamic_linker" = no && can_build_shared=no
20327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20328 if test "$GCC" = yes; then
20329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20332 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20333 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20335 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20336 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20377 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20378 hardcode_action_CXX=
20379 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20380 test -n "$runpath_var_CXX" ||
20381 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20383 # We can hardcode non-existent directories.
20384 if test "$hardcode_direct_CXX" != no &&
20385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20386 # have to relink, otherwise we might link with an installed library
20387 # when we should be linking with a yet-to-be-installed one
20388 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20389 test "$hardcode_minus_L_CXX" != no; then
20390 # Linking always hardcodes the temporary library directory.
20391 hardcode_action_CXX=relink
20393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20394 hardcode_action_CXX=immediate
20397 # We cannot hardcode anything, or else we can only hardcode existing
20399 hardcode_action_CXX=unsupported
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20402 $as_echo "$hardcode_action_CXX" >&6; }
20404 if test "$hardcode_action_CXX" = relink ||
20405 test "$inherit_rpath_CXX" = yes; then
20406 # Fast installation is not supported
20407 enable_fast_install=no
20408 elif test "$shlibpath_overrides_runpath" = yes ||
20409 test "$enable_shared" = no; then
20410 # Fast installation is not necessary
20411 enable_fast_install=needless
20420 fi # test -n "$compiler"
20426 with_gnu_ld=$lt_save_with_gnu_ld
20427 lt_cv_path_LDCXX=$lt_cv_path_LD
20428 lt_cv_path_LD=$lt_save_path_LD
20429 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20430 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20431 fi # test "$_lt_caught_CXX_error" != yes
20434 ac_cpp='$CPP $CPPFLAGS'
20435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20454 # Only expand once:
20460 # Identify the assembler which will work hand-in-glove with the newly
20461 # built GCC, so that we can examine its features. This is the assembler
20462 # which will be driven by the driver program.
20464 # If build != host, and we aren't building gas in-tree, we identify a
20465 # build->target assembler and hope that it will have the same features
20466 # as the host->target assembler we'll be using.
20467 gcc_cv_gas_major_version=
20468 gcc_cv_gas_minor_version=
20469 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20471 if test "${gcc_cv_as+set}" = set; then :
20475 if test -x "$DEFAULT_ASSEMBLER"; then
20476 gcc_cv_as="$DEFAULT_ASSEMBLER"
20477 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20478 && test -f ../gas/Makefile \
20479 && test x$build = x$host; then
20480 gcc_cv_as=../gas/as-new$build_exeext
20481 elif test -x as$build_exeext; then
20482 # Build using assembler in the current directory.
20483 gcc_cv_as=./as$build_exeext
20484 elif test -x $AS_FOR_TARGET; then
20485 gcc_cv_as="$AS_FOR_TARGET"
20487 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20488 set dummy $AS_FOR_TARGET; ac_word=$2
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20490 $as_echo_n "checking for $ac_word... " >&6; }
20491 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20492 $as_echo_n "(cached) " >&6
20496 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20500 for as_dir in $PATH
20503 test -z "$as_dir" && as_dir=.
20504 for ac_exec_ext in '' $ac_executable_extensions; do
20505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20506 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20517 gcc_cv_as=$ac_cv_path_gcc_cv_as
20518 if test -n "$gcc_cv_as"; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20520 $as_echo "$gcc_cv_as" >&6; }
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20530 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20532 case "$ORIGINAL_AS_FOR_TARGET" in
20533 ./as | ./as$build_exeext) ;;
20534 *) ac_config_files="$ac_config_files as:exec-tool.in"
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20539 $as_echo_n "checking what assembler to use... " >&6; }
20540 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20541 # Single tree build which includes gas. We want to prefer it
20542 # over whatever linker top-level may have detected, since
20543 # we'll use what we're building after installation anyway.
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20545 $as_echo "newly built gas" >&6; }
20547 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20548 for f in $gcc_cv_as_bfd_srcdir/configure \
20549 $gcc_cv_as_gas_srcdir/configure \
20550 $gcc_cv_as_gas_srcdir/configure.in \
20551 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20552 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20553 if test x$gcc_cv_gas_version != x; then
20557 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20558 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20559 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20560 case $gcc_cv_gas_patch_version in
20561 "") gcc_cv_gas_patch_version="0" ;;
20563 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20564 + $gcc_cv_gas_minor_version \) \* 1000 \
20565 + $gcc_cv_gas_patch_version`
20567 in_tree_gas_is_elf=no
20568 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20569 || (grep 'obj_format = multi' ../gas/Makefile \
20570 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20572 in_tree_gas_is_elf=yes
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20576 $as_echo "$gcc_cv_as" >&6; }
20580 # Identify the linker which will work hand-in-glove with the newly
20581 # built GCC, so that we can examine its features. This is the linker
20582 # which will be driven by the driver program.
20584 # If build != host, and we aren't building gas in-tree, we identify a
20585 # build->target linker and hope that it will have the same features
20586 # as the host->target linker we'll be using.
20587 gcc_cv_gld_major_version=
20588 gcc_cv_gld_minor_version=
20589 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20590 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20592 if test "${gcc_cv_ld+set}" = set; then :
20596 if test -x "$DEFAULT_LINKER"; then
20597 gcc_cv_ld="$DEFAULT_LINKER"
20598 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20599 && test -f ../ld/Makefile \
20600 && test x$build = x$host; then
20601 gcc_cv_ld=../ld/ld-new$build_exeext
20602 elif test -x collect-ld$build_exeext; then
20603 # Build using linker in the current directory.
20604 gcc_cv_ld=./collect-ld$build_exeext
20605 elif test -x $LD_FOR_TARGET; then
20606 gcc_cv_ld="$LD_FOR_TARGET"
20608 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20609 set dummy $LD_FOR_TARGET; ac_word=$2
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20611 $as_echo_n "checking for $ac_word... " >&6; }
20612 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20613 $as_echo_n "(cached) " >&6
20617 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20621 for as_dir in $PATH
20624 test -z "$as_dir" && as_dir=.
20625 for ac_exec_ext in '' $ac_executable_extensions; do
20626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20627 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20638 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20639 if test -n "$gcc_cv_ld"; then
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20641 $as_echo "$gcc_cv_ld" >&6; }
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20644 $as_echo "no" >&6; }
20651 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20652 PLUGIN_LD=`basename $gcc_cv_ld`
20654 # Check whether --with-plugin-ld was given.
20655 if test "${with_plugin_ld+set}" = set; then :
20656 withval=$with_plugin_ld; if test x"$withval" != x; then
20657 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20658 PLUGIN_LD="$withval"
20664 cat >>confdefs.h <<_ACEOF
20665 #define PLUGIN_LD "$PLUGIN_LD"
20669 # Check to see if we are using gold instead of ld
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20671 $as_echo_n "checking whether we are using gold... " >&6; }
20673 if test x$gcc_cv_ld != x; then
20674 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20675 | grep "GNU gold" > /dev/null; then
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20680 $as_echo "$ld_is_gold" >&6; }
20682 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20684 case "$ORIGINAL_LD_FOR_TARGET" in
20685 ./collect-ld | ./collect-ld$build_exeext) ;;
20686 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20691 $as_echo_n "checking what linker to use... " >&6; }
20692 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20693 # Single tree build which includes ld. We want to prefer it
20694 # over whatever linker top-level may have detected, since
20695 # we'll use what we're building after installation anyway.
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20697 $as_echo "newly built ld" >&6; }
20699 in_tree_ld_is_elf=no
20700 if (grep 'EMUL = .*elf' ../ld/Makefile \
20701 || grep 'EMUL = .*linux' ../ld/Makefile \
20702 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20703 in_tree_ld_is_elf=yes
20705 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
20707 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20708 if test x$gcc_cv_gld_version != x; then
20712 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20713 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20716 $as_echo "$gcc_cv_ld" >&6; }
20720 # Figure out what nm we will be using.
20721 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20722 if test "${gcc_cv_nm+set}" = set; then :
20726 if test -f $gcc_cv_binutils_srcdir/configure.in \
20727 && test -f ../binutils/Makefile \
20728 && test x$build = x$host; then
20729 gcc_cv_nm=../binutils/nm-new$build_exeext
20730 elif test -x nm$build_exeext; then
20731 gcc_cv_nm=./nm$build_exeext
20732 elif test -x $NM_FOR_TARGET; then
20733 gcc_cv_nm="$NM_FOR_TARGET"
20735 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20736 set dummy $NM_FOR_TARGET; ac_word=$2
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20738 $as_echo_n "checking for $ac_word... " >&6; }
20739 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20740 $as_echo_n "(cached) " >&6
20744 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748 for as_dir in $PATH
20751 test -z "$as_dir" && as_dir=.
20752 for ac_exec_ext in '' $ac_executable_extensions; do
20753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20754 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20765 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20766 if test -n "$gcc_cv_nm"; then
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20768 $as_echo "$gcc_cv_nm" >&6; }
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771 $as_echo "no" >&6; }
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20779 $as_echo_n "checking what nm to use... " >&6; }
20780 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20781 # Single tree build which includes binutils.
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20783 $as_echo "newly built nm" >&6; }
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20787 $as_echo "$gcc_cv_nm" >&6; }
20791 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20793 case "$ORIGINAL_NM_FOR_TARGET" in
20794 ./nm | ./nm$build_exeext) ;;
20795 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20800 # Figure out what objdump we will be using.
20801 if test "${gcc_cv_objdump+set}" = set; then :
20805 if test -f $gcc_cv_binutils_srcdir/configure.in \
20806 && test -f ../binutils/Makefile \
20807 && test x$build = x$host; then
20808 # Single tree build which includes binutils.
20809 gcc_cv_objdump=../binutils/objdump$build_exeext
20810 elif test -x objdump$build_exeext; then
20811 gcc_cv_objdump=./objdump$build_exeext
20812 elif test -x $OBJDUMP_FOR_TARGET; then
20813 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20815 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20816 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20818 $as_echo_n "checking for $ac_word... " >&6; }
20819 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20822 case $gcc_cv_objdump in
20824 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828 for as_dir in $PATH
20831 test -z "$as_dir" && as_dir=.
20832 for ac_exec_ext in '' $ac_executable_extensions; do
20833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20834 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20845 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20846 if test -n "$gcc_cv_objdump"; then
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20848 $as_echo "$gcc_cv_objdump" >&6; }
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20851 $as_echo "no" >&6; }
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20859 $as_echo_n "checking what objdump to use... " >&6; }
20860 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20861 # Single tree build which includes binutils.
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20863 $as_echo "newly built objdump" >&6; }
20864 elif test x$gcc_cv_objdump = x; then
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20866 $as_echo "not found" >&6; }
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20869 $as_echo "$gcc_cv_objdump" >&6; }
20872 # Figure out what readelf we will be using.
20873 if test "${gcc_cv_readelf+set}" = set; then :
20877 if test -f $gcc_cv_binutils_srcdir/configure.in \
20878 && test -f ../binutils/Makefile \
20879 && test x$build = x$host; then
20880 # Single tree build which includes binutils.
20881 gcc_cv_readelf=../binutils/readelf$build_exeext
20882 elif test -x readelf$build_exeext; then
20883 gcc_cv_readelf=./readelf$build_exeext
20885 # Extract the first word of "readelf", so it can be a program name with args.
20886 set dummy readelf; ac_word=$2
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20888 $as_echo_n "checking for $ac_word... " >&6; }
20889 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20890 $as_echo_n "(cached) " >&6
20892 case $gcc_cv_readelf in
20894 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20898 for as_dir in $PATH
20901 test -z "$as_dir" && as_dir=.
20902 for ac_exec_ext in '' $ac_executable_extensions; do
20903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20904 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20915 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20916 if test -n "$gcc_cv_readelf"; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20918 $as_echo "$gcc_cv_readelf" >&6; }
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20921 $as_echo "no" >&6; }
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20929 $as_echo_n "checking what readelf to use... " >&6; }
20930 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20931 # Single tree build which includes binutils.
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20933 $as_echo "newly built readelf" >&6; }
20934 elif test x$gcc_cv_readelf = x; then
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20936 $as_echo "not found" >&6; }
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20939 $as_echo "$gcc_cv_readelf" >&6; }
20942 # Figure out what assembler alignment features are present.
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20944 $as_echo_n "checking assembler flags... " >&6; }
20945 if test "${gcc_cv_as_flags+set}" = set; then :
20946 $as_echo_n "(cached) " >&6
20949 i[34567]86-*-linux*)
20950 gcc_cv_as_flags="--32"
20953 gcc_cv_as_flags=" "
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20958 $as_echo "$gcc_cv_as_flags" >&6; }
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20961 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20962 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20963 $as_echo_n "(cached) " >&6
20965 gcc_cv_as_balign_and_p2align=no
20966 if test $in_tree_gas = yes; then
20967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20968 then gcc_cv_as_balign_and_p2align=yes
20970 elif test x$gcc_cv_as != x; then
20972 .p2align 2' > conftest.s
20973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20975 (eval $ac_try) 2>&5
20977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20978 test $ac_status = 0; }; }
20980 gcc_cv_as_balign_and_p2align=yes
20982 echo "configure: failed program was" >&5
20985 rm -f conftest.o conftest.s
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20989 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20990 if test $gcc_cv_as_balign_and_p2align = yes; then
20992 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20997 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20998 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21001 gcc_cv_as_max_skip_p2align=no
21002 if test $in_tree_gas = yes; then
21003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21004 then gcc_cv_as_max_skip_p2align=yes
21006 elif test x$gcc_cv_as != x; then
21007 echo '.p2align 4,,7' > conftest.s
21008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21010 (eval $ac_try) 2>&5
21012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21013 test $ac_status = 0; }; }
21015 gcc_cv_as_max_skip_p2align=yes
21017 echo "configure: failed program was" >&5
21020 rm -f conftest.o conftest.s
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21024 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21025 if test $gcc_cv_as_max_skip_p2align = yes; then
21027 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21032 $as_echo_n "checking assembler for .literal16... " >&6; }
21033 if test "${gcc_cv_as_literal16+set}" = set; then :
21034 $as_echo_n "(cached) " >&6
21036 gcc_cv_as_literal16=no
21037 if test $in_tree_gas = yes; then
21038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21039 then gcc_cv_as_literal16=yes
21041 elif test x$gcc_cv_as != x; then
21042 echo '.literal16' > conftest.s
21043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21045 (eval $ac_try) 2>&5
21047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21048 test $ac_status = 0; }; }
21050 gcc_cv_as_literal16=yes
21052 echo "configure: failed program was" >&5
21055 rm -f conftest.o conftest.s
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21059 $as_echo "$gcc_cv_as_literal16" >&6; }
21060 if test $gcc_cv_as_literal16 = yes; then
21062 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21067 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21068 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21069 $as_echo_n "(cached) " >&6
21071 gcc_cv_as_subsection_m1=no
21072 if test $in_tree_gas = yes; then
21073 if test $in_tree_gas_is_elf = yes \
21074 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21075 then gcc_cv_as_subsection_m1=yes
21077 elif test x$gcc_cv_as != x; then
21078 echo 'conftest_label1: .word 0
21080 conftest_label2: .word 0
21081 .previous' > conftest.s
21082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21084 (eval $ac_try) 2>&5
21086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21087 test $ac_status = 0; }; }
21089 if test x$gcc_cv_nm != x; then
21090 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21091 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21092 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21094 else gcc_cv_as_subsection_m1=yes
21096 rm -f conftest.nm1 conftest.nm2
21099 echo "configure: failed program was" >&5
21102 rm -f conftest.o conftest.s
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21106 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21107 if test $gcc_cv_as_subsection_m1 = yes; then
21109 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21114 $as_echo_n "checking assembler for .weak... " >&6; }
21115 if test "${gcc_cv_as_weak+set}" = set; then :
21116 $as_echo_n "(cached) " >&6
21119 if test $in_tree_gas = yes; then
21120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21121 then gcc_cv_as_weak=yes
21123 elif test x$gcc_cv_as != x; then
21124 echo ' .weak foobar' > conftest.s
21125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21127 (eval $ac_try) 2>&5
21129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21130 test $ac_status = 0; }; }
21134 echo "configure: failed program was" >&5
21137 rm -f conftest.o conftest.s
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21141 $as_echo "$gcc_cv_as_weak" >&6; }
21142 if test $gcc_cv_as_weak = yes; then
21144 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21149 $as_echo_n "checking assembler for .weakref... " >&6; }
21150 if test "${gcc_cv_as_weakref+set}" = set; then :
21151 $as_echo_n "(cached) " >&6
21153 gcc_cv_as_weakref=no
21154 if test $in_tree_gas = yes; then
21155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21156 then gcc_cv_as_weakref=yes
21158 elif test x$gcc_cv_as != x; then
21159 echo ' .weakref foobar, barfnot' > conftest.s
21160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21162 (eval $ac_try) 2>&5
21164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21165 test $ac_status = 0; }; }
21167 gcc_cv_as_weakref=yes
21169 echo "configure: failed program was" >&5
21172 rm -f conftest.o conftest.s
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21176 $as_echo "$gcc_cv_as_weakref" >&6; }
21177 if test $gcc_cv_as_weakref = yes; then
21179 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21184 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21185 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21186 $as_echo_n "(cached) " >&6
21188 gcc_cv_as_nsubspa_comdat=no
21189 if test $in_tree_gas = yes; then
21190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21191 then gcc_cv_as_nsubspa_comdat=yes
21193 elif test x$gcc_cv_as != x; then
21194 echo ' .SPACE $TEXT$
21195 .NSUBSPA $CODE$,COMDAT' > conftest.s
21196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21198 (eval $ac_try) 2>&5
21200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21201 test $ac_status = 0; }; }
21203 gcc_cv_as_nsubspa_comdat=yes
21205 echo "configure: failed program was" >&5
21208 rm -f conftest.o conftest.s
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21212 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21213 if test $gcc_cv_as_nsubspa_comdat = yes; then
21215 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21219 # .hidden needs to be supported in both the assembler and the linker,
21220 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21221 # This is irritatingly difficult to feature test for; we have to check the
21222 # date string after the version number. If we've got an in-tree
21223 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21225 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21227 $as_echo_n "checking assembler for .hidden... " >&6; }
21228 if test "${gcc_cv_as_hidden+set}" = set; then :
21229 $as_echo_n "(cached) " >&6
21231 gcc_cv_as_hidden=no
21232 if test $in_tree_gas = yes; then
21233 if test $in_tree_gas_is_elf = yes \
21234 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21235 then gcc_cv_as_hidden=yes
21237 elif test x$gcc_cv_as != x; then
21238 echo ' .hidden foobar
21239 foobar:' > conftest.s
21240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21242 (eval $ac_try) 2>&5
21244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21245 test $ac_status = 0; }; }
21247 gcc_cv_as_hidden=yes
21249 echo "configure: failed program was" >&5
21252 rm -f conftest.o conftest.s
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21256 $as_echo "$gcc_cv_as_hidden" >&6; }
21259 if test $in_tree_ld != yes ; then
21260 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21261 if test x"$ld_is_gold" = xyes; then
21262 gcc_cv_ld_hidden=yes
21263 elif echo "$ld_ver" | grep GNU > /dev/null; then
21264 ld_vers=`echo $ld_ver | sed -n \
21265 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21266 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'`
21267 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21268 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21269 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21271 case "${target}" in
21274 # Solaris 2 ld -V output looks like this for a regular version:
21276 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21278 # but test versions add stuff at the end:
21280 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21282 ld_ver=`$gcc_cv_ld -V 2>&1`
21283 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21284 ld_vers=`echo $ld_ver | sed -n \
21285 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21286 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21287 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21295 $as_echo_n "checking linker for .hidden support... " >&6; }
21296 if test "${gcc_cv_ld_hidden+set}" = set; then :
21297 $as_echo_n "(cached) " >&6
21299 if test $in_tree_ld = yes ; then
21300 gcc_cv_ld_hidden=no
21301 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 \
21302 && test $in_tree_ld_is_elf = yes; then
21303 gcc_cv_ld_hidden=yes
21306 gcc_cv_ld_hidden=yes
21307 if echo "$ld_ver" | grep GNU > /dev/null; then
21308 if test 0"$ld_date" -lt 20020404; then
21309 if test -n "$ld_date"; then
21310 # If there was date string, but was earlier than 2002-04-04, fail
21311 gcc_cv_ld_hidden=no
21312 elif test -z "$ld_vers"; then
21313 # If there was no date string nor ld version number, something is wrong
21314 gcc_cv_ld_hidden=no
21316 test -z "$ld_vers_patch" && ld_vers_patch=0
21317 if test "$ld_vers_major" -lt 2; then
21318 gcc_cv_ld_hidden=no
21319 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21320 gcc_cv_ld_hidden="no"
21321 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21322 gcc_cv_ld_hidden=no
21327 case "${target}" in
21328 hppa64*-*-hpux* | ia64*-*-hpux*)
21329 gcc_cv_ld_hidden=yes
21331 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21332 gcc_cv_ld_hidden=yes
21335 gcc_cv_ld_hidden=no
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21342 $as_echo "$gcc_cv_ld_hidden" >&6; }
21343 libgcc_visibility=no
21346 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21347 libgcc_visibility=yes
21349 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21354 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21355 gcc_cv_ld_ro_rw_mix=unknown
21356 if test $in_tree_ld = yes ; then
21357 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 \
21358 && test $in_tree_ld_is_elf = yes; then
21359 gcc_cv_ld_ro_rw_mix=read-write
21361 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21362 echo '.section myfoosect, "a"' > conftest1.s
21363 echo '.section myfoosect, "aw"' > conftest2.s
21364 echo '.byte 1' >> conftest2.s
21365 echo '.section myfoosect, "a"' > conftest3.s
21366 echo '.byte 0' >> conftest3.s
21367 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21368 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21369 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21370 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21371 conftest2.o conftest3.o > /dev/null 2>&1; then
21372 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21373 | sed -e '/myfoosect/!d' -e N`
21374 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21375 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21376 gcc_cv_ld_ro_rw_mix=read-only
21378 gcc_cv_ld_ro_rw_mix=read-write
21382 rm -f conftest.* conftest[123].*
21384 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21386 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21390 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21392 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21394 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21395 if test "${gcc_cv_as_leb128+set}" = set; then :
21396 $as_echo_n "(cached) " >&6
21398 gcc_cv_as_leb128=no
21399 if test $in_tree_gas = yes; then
21400 if test $in_tree_gas_is_elf = yes \
21401 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21402 then gcc_cv_as_leb128=yes
21404 elif test x$gcc_cv_as != x; then
21411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21413 (eval $ac_try) 2>&5
21415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21416 test $ac_status = 0; }; }
21418 # GAS versions before 2.11 do not support uleb128,
21419 # despite appearing to.
21420 # ??? There exists an elf-specific test that will crash
21421 # the assembler. Perhaps it's better to figure out whether
21422 # arbitrary sections are supported and try the test.
21423 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21424 if echo "$as_ver" | grep GNU > /dev/null; then
21425 as_vers=`echo $as_ver | sed -n \
21426 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21427 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21428 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21429 if test $as_major -eq 2 && test $as_minor -lt 11
21431 else gcc_cv_as_leb128=yes
21435 echo "configure: failed program was" >&5
21438 rm -f conftest.o conftest.s
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21442 $as_echo "$gcc_cv_as_leb128" >&6; }
21443 if test $gcc_cv_as_leb128 = yes; then
21445 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21449 # Check if we have assembler support for unwind directives.
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21451 $as_echo_n "checking assembler for cfi directives... " >&6; }
21452 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21453 $as_echo_n "(cached) " >&6
21455 gcc_cv_as_cfi_directive=no
21456 if test x$gcc_cv_as != x; then
21462 .cfi_escape 1, 2, 3, 4, 5
21463 .cfi_endproc' > conftest.s
21464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21466 (eval $ac_try) 2>&5
21468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21469 test $ac_status = 0; }; }
21473 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21474 # read-only and read-write sections, we need to make sure that the
21475 # assembler used emits read-write .eh_frame sections.
21476 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21477 if test "x$gcc_cv_objdump" != x; then
21478 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21479 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21480 gcc_cv_as_cfi_directive=no
21483 i?86-*-solaris2.1[0-9]*)
21484 # On Solaris/x86, make sure that GCC and gas agree on using
21485 # read-only .eh_frame sections for 64-bit.
21486 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21487 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21488 sed -e /.eh_frame/!d -e N | \
21489 grep READONLY > /dev/null; then
21490 gcc_cv_as_cfi_directive=yes
21492 gcc_cv_as_cfi_directive=no
21496 gcc_cv_as_cfi_directive=yes
21501 # no objdump, err on the side of caution
21502 gcc_cv_as_cfi_directive=no
21505 gcc_cv_as_cfi_directive=yes
21509 gcc_cv_as_cfi_directive=yes
21513 echo "configure: failed program was" >&5
21516 rm -f conftest.o conftest.s
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21520 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21522 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21524 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21525 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21526 $as_echo_n "(cached) " >&6
21528 gcc_cv_as_cfi_advance_working=no
21529 if test x$gcc_cv_as != x; then
21532 .cfi_adjust_cfa_offset 64
21534 .cfi_adjust_cfa_offset 128
21535 .cfi_endproc' > conftest.s
21536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21538 (eval $ac_try) 2>&5
21540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21541 test $ac_status = 0; }; }
21544 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21545 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21546 gcc_cv_as_cfi_advance_working=yes
21550 echo "configure: failed program was" >&5
21553 rm -f conftest.o conftest.s
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21557 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21560 # no readelf, err on the side of caution
21561 gcc_cv_as_cfi_advance_working=no
21564 cat >>confdefs.h <<_ACEOF
21565 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21566 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21571 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21572 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21573 $as_echo_n "(cached) " >&6
21575 gcc_cv_as_cfi_personality_directive=no
21576 if test x$gcc_cv_as != x; then
21579 .cfi_personality 0, symbol
21580 .cfi_endproc' > conftest.s
21581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21583 (eval $ac_try) 2>&5
21585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586 test $ac_status = 0; }; }
21588 gcc_cv_as_cfi_personality_directive=yes
21590 echo "configure: failed program was" >&5
21593 rm -f conftest.o conftest.s
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21597 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21600 cat >>confdefs.h <<_ACEOF
21601 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21602 then echo 1; else echo 0; fi`
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21607 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21608 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21609 $as_echo_n "(cached) " >&6
21611 gcc_cv_as_cfi_sections_directive=no
21612 if test x$gcc_cv_as != x; then
21614 .cfi_sections .debug_frame, .eh_frame
21616 .cfi_endproc' > conftest.s
21617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21619 (eval $ac_try) 2>&5
21621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21622 test $ac_status = 0; }; }
21624 gcc_cv_as_cfi_sections_directive=yes
21626 echo "configure: failed program was" >&5
21629 rm -f conftest.o conftest.s
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21633 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21636 cat >>confdefs.h <<_ACEOF
21637 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21638 then echo 1; else echo 0; fi`
21642 # GAS versions up to and including 2.11.0 may mis-optimize
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21645 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21646 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21649 gcc_cv_as_eh_frame=no
21650 if test $in_tree_gas = yes; then
21651 if test $in_tree_gas_is_elf = yes \
21652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21653 then gcc_cv_as_eh_frame=yes
21655 elif test x$gcc_cv_as != x; then
21662 .section .eh_frame,"aw",@progbits
21664 .4byte .LECIE1-.LSCIE1
21678 .4byte .LEFDE1-.LASFDE1
21680 .4byte .LASFDE1-__FRAME_BEGIN__
21687 .LEFDE1:' > conftest.s
21688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21690 (eval $ac_try) 2>&5
21692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21693 test $ac_status = 0; }; }
21695 cat > conftest.lit <<EOF
21696 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21697 0010 01000000 12000000 18000000 00000000 ................
21698 0020 08000000 04080000 0044 .........D
21700 cat > conftest.big <<EOF
21701 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21702 0010 00000001 00000012 00000018 00000000 ................
21703 0020 00000008 04000000 0844 .........D
21705 # If the assembler didn't choke, and we can objdump,
21706 # and we got the correct data, then succeed.
21707 # The text in the here-document typically retains its unix-style line
21708 # endings, while the output of objdump will use host line endings.
21709 # Therefore, use diff -b for the comparisons.
21710 if test x$gcc_cv_objdump != x \
21711 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21712 | tail -3 > conftest.got \
21713 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21714 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21716 gcc_cv_as_eh_frame=yes
21717 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21719 (eval $ac_try) 2>&5
21721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21722 test $ac_status = 0; }; }; then
21723 gcc_cv_as_eh_frame=buggy
21725 # Uh oh, what do we do now?
21726 gcc_cv_as_eh_frame=no
21729 echo "configure: failed program was" >&5
21732 rm -f conftest.o conftest.s
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21736 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21739 if test $gcc_cv_as_eh_frame = buggy; then
21741 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21746 $as_echo_n "checking assembler for section merging support... " >&6; }
21747 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21748 $as_echo_n "(cached) " >&6
21750 gcc_cv_as_shf_merge=no
21751 if test $in_tree_gas = yes; then
21752 if test $in_tree_gas_is_elf = yes \
21753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21754 then gcc_cv_as_shf_merge=yes
21756 elif test x$gcc_cv_as != x; then
21757 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21760 (eval $ac_try) 2>&5
21762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21763 test $ac_status = 0; }; }
21765 gcc_cv_as_shf_merge=yes
21767 echo "configure: failed program was" >&5
21770 rm -f conftest.o conftest.s
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21774 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21776 if test $gcc_cv_as_shf_merge = no; then
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21778 $as_echo_n "checking assembler for section merging support... " >&6; }
21779 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21782 gcc_cv_as_shf_merge=no
21783 if test $in_tree_gas = yes; then
21784 if test $in_tree_gas_is_elf = yes \
21785 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21786 then gcc_cv_as_shf_merge=yes
21788 elif test x$gcc_cv_as != x; then
21789 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21792 (eval $ac_try) 2>&5
21794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795 test $ac_status = 0; }; }
21797 gcc_cv_as_shf_merge=yes
21799 echo "configure: failed program was" >&5
21802 rm -f conftest.o conftest.s
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21806 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21816 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21817 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21818 $as_echo_n "(cached) " >&6
21820 gcc_cv_as_comdat_group=no
21821 if test $in_tree_gas = yes; then
21822 if test $in_tree_gas_is_elf = yes \
21823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21824 then gcc_cv_as_comdat_group=yes
21826 elif test x$gcc_cv_as != x; then
21827 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21830 (eval $ac_try) 2>&5
21832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21833 test $ac_status = 0; }; }
21835 gcc_cv_as_comdat_group=yes
21837 echo "configure: failed program was" >&5
21840 rm -f conftest.o conftest.s
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21844 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21846 if test $gcc_cv_as_comdat_group = yes; then
21847 gcc_cv_as_comdat_group_percent=no
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21850 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21851 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21852 $as_echo_n "(cached) " >&6
21854 gcc_cv_as_comdat_group_percent=no
21855 if test $in_tree_gas = yes; then
21856 if test $in_tree_gas_is_elf = yes \
21857 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21858 then gcc_cv_as_comdat_group_percent=yes
21860 elif test x$gcc_cv_as != x; then
21861 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21864 (eval $ac_try) 2>&5
21866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21867 test $ac_status = 0; }; }
21869 gcc_cv_as_comdat_group_percent=yes
21871 echo "configure: failed program was" >&5
21874 rm -f conftest.o conftest.s
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21878 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21881 if test x"$ld_is_gold" = xyes; then
21883 elif test $in_tree_ld = yes ; then
21885 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 \
21886 && test $in_tree_ld_is_elf = yes; then
21889 elif echo "$ld_ver" | grep GNU > /dev/null; then
21891 if test 0"$ld_date" -lt 20050308; then
21892 if test -n "$ld_date"; then
21893 # If there was date string, but was earlier than 2005-03-08, fail
21895 elif test "$ld_vers_major" -lt 2; then
21897 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21902 case "${target}" in
21903 *-*-solaris2.1[1-9]*)
21904 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21905 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21908 # FIXME: Maybe need to refine later when COMDAT group support with
21909 # Sun as is implemented.
21910 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21917 # Assume linkers other than GNU ld don't support COMDAT group.
21922 # Allow overriding the automatic COMDAT group tests above.
21923 # Check whether --enable-comdat was given.
21924 if test "${enable_comdat+set}" = set; then :
21925 enableval=$enable_comdat; comdat_group="$enable_comdat"
21928 if test $comdat_group = no; then
21929 gcc_cv_as_comdat_group=no
21930 gcc_cv_as_comdat_group_percent=no
21933 cat >>confdefs.h <<_ACEOF
21934 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21939 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21940 if test "${gcc_cv_as_discriminator+set}" = set; then :
21941 $as_echo_n "(cached) " >&6
21943 gcc_cv_as_discriminator=no
21944 if test $in_tree_gas = yes; then
21945 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21946 then gcc_cv_as_discriminator=yes
21948 elif test x$gcc_cv_as != x; then
21951 .loc 1 1 0 discriminator 1' > conftest.s
21952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21954 (eval $ac_try) 2>&5
21956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21957 test $ac_status = 0; }; }
21959 gcc_cv_as_discriminator=yes
21961 echo "configure: failed program was" >&5
21964 rm -f conftest.o conftest.s
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21968 $as_echo "$gcc_cv_as_discriminator" >&6; }
21969 if test $gcc_cv_as_discriminator = yes; then
21971 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21975 # Thread-local storage - the check is heavily parameterized.
21983 .section ".tdata","awT",@progbits
21986 ldq $27,__tls_get_addr($29) !literal!1
21987 lda $16,foo($29) !tlsgd!1
21988 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21989 ldq $27,__tls_get_addr($29) !literal!2
21990 lda $16,foo($29) !tlsldm!2
21991 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21992 ldq $1,foo($29) !gotdtprel
21993 ldah $2,foo($29) !dtprelhi
21994 lda $3,foo($2) !dtprello
21995 lda $4,foo($29) !dtprel
21996 ldq $1,foo($29) !gottprel
21997 ldah $2,foo($29) !tprelhi
21998 lda $3,foo($2) !tprello
21999 lda $4,foo($29) !tprel'
22002 tls_as_opt=--fatal-warnings
22004 cris-*-*|crisv32-*-*)
22006 .section ".tdata","awT",@progbits
22013 tls_as_opt=--fatal-warnings
22017 .section ".tdata","awT",@progbits
22020 call #gettlsoff(x)'
22029 .section ".tdata","awT",@progbits
22033 addil LT%foo-$tls_gdidx$,gp
22034 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22037 addil LT%foo-$tls_ldidx$,gp
22039 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22040 addil LR%foo-$tls_dtpoff$,%ret0
22041 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22043 addil LT%foo-$tls_ieoff$,gp
22044 ldw RT%foo-$tls_ieoff$(%r1),%t2
22047 addil LR%foo-$tls_leoff$,%t1
22048 ldo RR%foo-$tls_leoff$(%r1),%t2'
22051 tls_as_opt=--fatal-warnings
22055 .section ".tdata","awT",%progbits
22058 .word foo(gottpoff)
22068 i[34567]86-*-solaris2.[89]*)
22069 # TLS was introduced in the Solaris 9 4/04 release but
22070 # we do not enable it by default on Solaris 9 either.
22071 if test "x$enable_tls" = xyes ; then
22077 i[34567]86-*-solaris2.*)
22084 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22086 .section .tdata,"awt",@progbits'
22090 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22094 .section ".tdata","awT",@progbits'
22097 tls_as_opt="--fatal-warnings"
22099 conftest_s="$conftest_s
22103 leal foo@tlsgd(,%ebx,1), %eax
22104 leal foo@tlsldm(%ebx), %eax
22105 leal foo@dtpoff(%eax), %edx
22106 movl foo@gottpoff(%ebx), %eax
22107 subl foo@gottpoff(%ebx), %eax
22108 addl foo@gotntpoff(%ebx), %eax
22109 movl foo@indntpoff, %eax
22110 movl \$foo@tpoff, %eax
22111 subl \$foo@tpoff, %eax
22112 leal foo@ntpoff(%ecx), %eax"
22116 .section ".tdata","awT",@progbits
22120 leaq foo@TLSGD(%rip), %rdi
22121 leaq foo@TLSLD(%rip), %rdi
22122 leaq foo@DTPOFF(%rax), %rdx
22123 movq foo@GOTTPOFF(%rip), %rax
22124 movq $foo@TPOFF, %rax'
22127 tls_as_opt=--fatal-warnings
22131 .section ".tdata","awT",@progbits
22134 addl r16 = @ltoff(@dtpmod(foo#)), gp
22135 addl r17 = @ltoff(@dtprel(foo#)), gp
22136 addl r18 = @ltoff(@tprel(foo#)), gp
22137 addl r19 = @dtprel(foo#), gp
22138 adds r21 = @dtprel(foo#), r13
22139 movl r23 = @dtprel(foo#)
22140 addl r20 = @tprel(foo#), gp
22141 adds r22 = @tprel(foo#), r13
22142 movl r24 = @tprel(foo#)'
22145 tls_as_opt=--fatal-warnings
22149 .section .tdata,"awT",@progbits
22153 addiu $4, $28, %tlsgd(x)
22154 addiu $4, $28, %tlsldm(x)
22155 lui $4, %dtprel_hi(x)
22156 addiu $4, $4, %dtprel_lo(x)
22157 lw $4, %gottprel(x)($28)
22158 lui $4, %tprel_hi(x)
22159 addiu $4, $4, %tprel_lo(x)'
22162 tls_as_opt='-32 --fatal-warnings'
22166 .section .tdata,"awT",@progbits
22171 move.l x@TLSGD(%a5),%a0
22172 move.l x@TLSLDM(%a5),%a0
22173 move.l x@TLSLDO(%a5),%a0
22174 move.l x@TLSIE(%a5),%a0
22175 move.l x@TLSLE(%a5),%a0'
22178 tls_as_opt='--fatal-warnings'
22182 .section ".tdata","awT",@progbits
22190 addi 3,31,ld0@got@tlsgd
22192 addi 3,31,x1@got@tlsld
22195 addis 9,3,x2@dtprel@ha
22196 addi 9,9,x2@dtprel@l
22197 lwz 9,x3@got@tprel(31)
22200 addis 9,2,x2@tprel@ha
22201 addi 9,9,x2@tprel@l'
22204 tls_as_opt="-a32 --fatal-warnings"
22208 .section ".tdata","awT",@progbits
22216 addi 3,2,ld0@got@tlsgd
22222 addi 3,2,x1@got@tlsld
22228 addis 9,3,x2@dtprel@ha
22229 addi 9,9,x2@dtprel@l
22232 ld 9,x3@got@dtprel(2)
22238 tls_as_opt="-a64 --fatal-warnings"
22242 .section ".tdata","awT",@progbits
22249 .long foo@GOTNTPOFF
22250 .long foo@INDNTPOFF
22251 l %r1,foo@GOTNTPOFF(%r12)
22252 l %r1,0(%r1):tls_load:foo
22253 bas %r14,0(%r1,%r13):tls_gdcall:foo
22254 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22257 tls_as_opt="-m31 --fatal-warnings"
22261 .section ".tdata","awT",@progbits
22268 .quad foo@GOTNTPOFF
22269 lg %r1,foo@GOTNTPOFF(%r12)
22270 larl %r1,foo@INDNTPOFF
22271 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22272 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22275 tls_as_opt="-m64 -Aesame --fatal-warnings"
22277 sh-*-* | sh[34]-*-*)
22279 .section ".tdata","awT",@progbits
22289 tls_as_opt=--fatal-warnings
22293 sparc*-sun-solaris2.[89]*)
22294 # TLS was introduced in the Solaris 9 4/04 release but
22295 # we do not enable it by default on Solaris 9 either.
22296 if test "x$enable_tls" = xyes ; then
22302 sparc*-sun-solaris2.*)
22309 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22311 .section ".tdata",#alloc,#write,#tls
22314 sethi %tgd_hi22(foo), %o0
22315 add %o0, %tgd_lo10(foo), %o1
22316 add %l7, %o1, %o0, %tgd_add(foo)
22317 call __tls_get_addr, %tgd_call(foo)
22318 sethi %tldm_hi22(foo), %l1
22319 add %l1, %tldm_lo10(foo), %l2
22320 add %l7, %l2, %o0, %tldm_add(foo)
22321 call __tls_get_addr, %tldm_call(foo)
22322 sethi %tldo_hix22(foo), %l3
22323 xor %l3, %tldo_lox10(foo), %l4
22324 add %o0, %l4, %l5, %tldo_add(foo)
22325 sethi %tie_hi22(foo), %o3
22326 add %o3, %tie_lo10(foo), %o3
22327 ld [%l7 + %o3], %o2, %tie_ld(foo)
22328 add %g7, %o2, %o4, %tie_add(foo)
22329 sethi %tle_hix22(foo), %l1
22330 xor %l1, %tle_lox10(foo), %o5
22331 ld [%g7 + %o5], %o1'
22336 .section ".tdata","awT",@progbits
22339 sethi %tgd_hi22(foo), %o0
22340 add %o0, %tgd_lo10(foo), %o1
22341 add %l7, %o1, %o0, %tgd_add(foo)
22342 call __tls_get_addr, %tgd_call(foo)
22343 sethi %tldm_hi22(foo), %l1
22344 add %l1, %tldm_lo10(foo), %l2
22345 add %l7, %l2, %o0, %tldm_add(foo)
22346 call __tls_get_addr, %tldm_call(foo)
22347 sethi %tldo_hix22(foo), %l3
22348 xor %l3, %tldo_lox10(foo), %l4
22349 add %o0, %l4, %l5, %tldo_add(foo)
22350 sethi %tie_hi22(foo), %o3
22351 add %o3, %tie_lo10(foo), %o3
22352 ld [%l7 + %o3], %o2, %tie_ld(foo)
22353 add %g7, %o2, %o4, %tie_add(foo)
22354 sethi %tle_hix22(foo), %l1
22355 xor %l1, %tle_lox10(foo), %o5
22356 ld [%g7 + %o5], %o1'
22359 tls_as_opt="-32 --fatal-warnings"
22364 .section ".tdata","awT",@progbits
22367 movi a8, foo@TLSFUNC
22368 movi a10, foo@TLSARG
22369 callx8.tls a8, foo@TLSCALL'
22375 if test "x$enable_tls" = xno ; then
22376 : # TLS explicitly disabled.
22377 elif test "x$enable_tls" = xyes ; then
22378 set_have_as_tls=yes # TLS explicitly enabled.
22379 elif test -z "$tls_first_major"; then
22380 : # If we don't have a check, assume no support.
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22383 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22384 if test "${gcc_cv_as_tls+set}" = set; then :
22385 $as_echo_n "(cached) " >&6
22388 if test $in_tree_gas = yes; then
22389 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22390 then gcc_cv_as_tls=yes
22392 elif test x$gcc_cv_as != x; then
22393 echo "$conftest_s" > conftest.s
22394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22396 (eval $ac_try) 2>&5
22398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22399 test $ac_status = 0; }; }
22403 echo "configure: failed program was" >&5
22406 rm -f conftest.o conftest.s
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22410 $as_echo "$gcc_cv_as_tls" >&6; }
22411 if test $gcc_cv_as_tls = yes; then
22412 set_have_as_tls=yes
22415 if test $set_have_as_tls = yes ; then
22417 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22421 # Target-specific assembler checks.
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22424 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22425 gcc_cv_ld_static_dynamic=no
22426 if test $in_tree_ld = yes ; then
22427 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
22428 gcc_cv_ld_static_dynamic=yes
22430 elif test x$gcc_cv_ld != x; then
22431 # Check if linker supports -Bstatic/-Bdynamic option
22432 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22433 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22434 gcc_cv_ld_static_dynamic=yes
22437 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22439 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22443 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22445 if test x"$demangler_in_ld" = xyes; then
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22447 $as_echo_n "checking linker --demangle support... " >&6; }
22448 gcc_cv_ld_demangle=no
22449 if test $in_tree_ld = yes; then
22450 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 \
22451 gcc_cv_ld_demangle=yes
22453 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22454 # Check if the GNU linker supports --demangle option
22455 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22456 gcc_cv_ld_demangle=yes
22459 if test x"$gcc_cv_ld_demangle" = xyes; then
22461 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22465 $as_echo "$gcc_cv_ld_demangle" >&6; }
22469 # All TARGET_ABI_OSF targets.
22470 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22472 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22473 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22476 gcc_cv_as_alpha_explicit_relocs=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22479 then gcc_cv_as_alpha_explicit_relocs=yes
22481 elif test x$gcc_cv_as != x; then
22482 echo ' .set nomacro
22484 extbl $3, $2, $3 !lituse_bytoff!1
22485 ldq $2, a($29) !literal!1
22486 ldq $4, b($29) !literal!2
22487 ldq_u $3, 0($2) !lituse_base!1
22488 ldq $27, f($29) !literal!5
22489 jsr $26, ($27), f !lituse_jsr!5
22490 ldah $29, 0($26) !gpdisp!3
22491 lda $0, c($29) !gprel
22492 ldah $1, d($29) !gprelhigh
22493 lda $1, d($1) !gprellow
22494 lda $29, 0($29) !gpdisp!3' > conftest.s
22495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497 (eval $ac_try) 2>&5
22499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500 test $ac_status = 0; }; }
22502 gcc_cv_as_alpha_explicit_relocs=yes
22504 echo "configure: failed program was" >&5
22507 rm -f conftest.o conftest.s
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22511 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22512 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22514 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22518 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22519 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22520 $as_echo_n "(cached) " >&6
22522 gcc_cv_as_alpha_jsrdirect_relocs=no
22523 if test $in_tree_gas = yes; then
22524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22525 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22527 elif test x$gcc_cv_as != x; then
22528 echo ' .set nomacro
22530 ldq $27, a($29) !literal!1
22531 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22534 (eval $ac_try) 2>&5
22536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22537 test $ac_status = 0; }; }
22539 gcc_cv_as_alpha_jsrdirect_relocs=yes
22541 echo "configure: failed program was" >&5
22544 rm -f conftest.o conftest.s
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22548 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22549 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22551 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22558 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22559 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22560 $as_echo_n "(cached) " >&6
22562 gcc_cv_as_cris_no_mul_bug=no
22563 if test $in_tree_gas = yes; then
22564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22565 then gcc_cv_as_cris_no_mul_bug=yes
22567 elif test x$gcc_cv_as != x; then
22568 echo '.text' > conftest.s
22569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22571 (eval $ac_try) 2>&5
22573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22574 test $ac_status = 0; }; }
22576 gcc_cv_as_cris_no_mul_bug=yes
22578 echo "configure: failed program was" >&5
22581 rm -f conftest.o conftest.s
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22585 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22586 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22588 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22595 $as_echo_n "checking assembler for .register... " >&6; }
22596 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22597 $as_echo_n "(cached) " >&6
22599 gcc_cv_as_sparc_register_op=no
22600 if test x$gcc_cv_as != x; then
22601 echo '.register %g2, #scratch' > conftest.s
22602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22604 (eval $ac_try) 2>&5
22606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607 test $ac_status = 0; }; }
22609 gcc_cv_as_sparc_register_op=yes
22611 echo "configure: failed program was" >&5
22614 rm -f conftest.o conftest.s
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22618 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22619 if test $gcc_cv_as_sparc_register_op = yes; then
22621 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22626 $as_echo_n "checking assembler for -relax option... " >&6; }
22627 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22630 gcc_cv_as_sparc_relax=no
22631 if test x$gcc_cv_as != x; then
22632 echo '.text' > conftest.s
22633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635 (eval $ac_try) 2>&5
22637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638 test $ac_status = 0; }; }
22640 gcc_cv_as_sparc_relax=yes
22642 echo "configure: failed program was" >&5
22645 rm -f conftest.o conftest.s
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22649 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22650 if test $gcc_cv_as_sparc_relax = yes; then
22652 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22657 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22658 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22659 $as_echo_n "(cached) " >&6
22661 gcc_cv_as_sparc_gotdata_op=no
22662 if test x$gcc_cv_as != x; then
22667 sethi %gdop_hix22(foo), %g1
22668 xor %g1, %gdop_lox10(foo), %g1
22669 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22672 (eval $ac_try) 2>&5
22674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22675 test $ac_status = 0; }; }
22677 if test x$gcc_cv_ld != x \
22678 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22679 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22680 if test x$gcc_cv_objdump != x; then
22681 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22682 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22683 gcc_cv_as_sparc_gotdata_op=no
22685 gcc_cv_as_sparc_gotdata_op=yes
22689 gcc_cv_as_sparc_gotdata_op=yes
22694 echo "configure: failed program was" >&5
22697 rm -f conftest.o conftest.s
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22701 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22702 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22704 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22709 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22710 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22711 $as_echo_n "(cached) " >&6
22713 gcc_cv_as_sparc_ua_pcrel=no
22714 if test x$gcc_cv_as != x; then
22721 .uaword %r_disp32(foo)' > conftest.s
22722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22724 (eval $ac_try) 2>&5
22726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22727 test $ac_status = 0; }; }
22729 if test x$gcc_cv_ld != x \
22730 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22731 gcc_cv_as_sparc_ua_pcrel=yes
22735 echo "configure: failed program was" >&5
22738 rm -f conftest.o conftest.s
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22742 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22743 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22745 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22749 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22750 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22751 $as_echo_n "(cached) " >&6
22753 gcc_cv_as_sparc_ua_pcrel_hidden=no
22754 if test x$gcc_cv_as != x; then
22758 .uaword %r_disp32(foo)
22759 .byte 0x32, 0x33, 0x34
22763 .skip 4' > conftest.s
22764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22766 (eval $ac_try) 2>&5
22768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22769 test $ac_status = 0; }; }
22771 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22772 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22773 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22774 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22775 if $gcc_cv_objdump -R conftest 2> /dev/null \
22776 | grep 'DISP32' > /dev/null 2>&1; then
22779 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22784 echo "configure: failed program was" >&5
22787 rm -f conftest.o conftest.s
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22791 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22792 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22794 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22798 fi # unaligned pcrel relocs
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22801 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22802 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22803 $as_echo_n "(cached) " >&6
22805 gcc_cv_as_sparc_offsetable_lo10=no
22806 if test x$gcc_cv_as != x; then
22808 or %g1, %lo(ab) + 12, %g1
22809 or %g1, %lo(ab + 12), %g1' > conftest.s
22810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22812 (eval $ac_try) 2>&5
22814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815 test $ac_status = 0; }; }
22817 if test x$gcc_cv_objdump != x \
22818 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22819 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22820 gcc_cv_as_sparc_offsetable_lo10=yes
22823 echo "configure: failed program was" >&5
22826 rm -f conftest.o conftest.s
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22830 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22831 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22833 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22838 i[34567]86-*-* | x86_64-*-*)
22841 # Full C++ conformance when using a shared libstdc++-v3 requires some
22842 # support from the Cygwin DLL, which in more recent versions exports
22843 # wrappers to aid in interposing and redirecting operators new, delete,
22844 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22845 # are configuring for a version of Cygwin that exports the wrappers.
22846 if test x$host = x$target; then
22847 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22848 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22849 gcc_ac_cygwin_dll_wrappers=yes
22851 gcc_ac_cygwin_dll_wrappers=no
22855 # Can't check presence of libc functions during cross-compile, so
22856 # we just have to assume we're building for an up-to-date target.
22857 gcc_ac_cygwin_dll_wrappers=yes
22860 cat >>confdefs.h <<_ACEOF
22861 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22866 cygwin* | pe | mingw32*)
22867 # Recent binutils allows the three-operand form of ".comm" on PE. This
22868 # definition is used unconditionally to initialise the default state of
22869 # the target option variable that governs usage of the feature.
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22871 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22872 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22873 $as_echo_n "(cached) " >&6
22875 gcc_cv_as_comm_has_align=no
22876 if test $in_tree_gas = yes; then
22877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22878 then gcc_cv_as_comm_has_align=yes
22880 elif test x$gcc_cv_as != x; then
22881 echo '.comm foo,1,32' > conftest.s
22882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_comm_has_align=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_comm_has_align" >&5
22898 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22901 cat >>confdefs.h <<_ACEOF
22902 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22905 # Used for DWARF 2 in PE
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22907 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22908 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22911 gcc_cv_as_ix86_pe_secrel32=no
22912 if test $in_tree_gas = yes; then
22913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22914 then gcc_cv_as_ix86_pe_secrel32=yes
22916 elif test x$gcc_cv_as != x; then
22920 .secrel32 foo' > conftest.s
22921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22928 if test x$gcc_cv_ld != x \
22929 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22930 gcc_cv_as_ix86_pe_secrel32=yes
22934 echo "configure: failed program was" >&5
22937 rm -f conftest.o conftest.s
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22941 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22942 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22944 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22947 # Test if the assembler supports the extended form of the .section
22948 # directive that specifies section alignment. LTO support uses this,
22949 # but normally only after installation, so we warn but don't fail the
22950 # configure if LTO is enabled but the assembler does not support it.
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
22952 $as_echo_n "checking assembler for .section with alignment... " >&6; }
22953 if test "${gcc_cv_as_section_has_align+set}" = set; then :
22954 $as_echo_n "(cached) " >&6
22956 gcc_cv_as_section_has_align=no
22957 if test $in_tree_gas = yes; then
22958 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
22959 then gcc_cv_as_section_has_align=yes
22961 elif test x$gcc_cv_as != x; then
22962 echo '.section lto_test,"dr0"' > conftest.s
22963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
22964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22965 (eval $ac_try) 2>&5
22967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22968 test $ac_status = 0; }; }
22970 gcc_cv_as_section_has_align=yes
22972 echo "configure: failed program was" >&5
22975 rm -f conftest.o conftest.s
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
22979 $as_echo "$gcc_cv_as_section_has_align" >&6; }
22981 if test x$gcc_cv_as_section_has_align != xyes; then
22982 case ",$enable_languages," in
22984 { $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
22985 $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;}
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22993 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22994 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22995 $as_echo_n "(cached) " >&6
22997 gcc_cv_as_ix86_filds=no
22998 if test x$gcc_cv_as != x; then
22999 echo 'filds mem; fists mem' > conftest.s
23000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }
23007 gcc_cv_as_ix86_filds=yes
23009 echo "configure: failed program was" >&5
23012 rm -f conftest.o conftest.s
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23016 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23017 if test $gcc_cv_as_ix86_filds = yes; then
23019 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23024 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23025 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23026 $as_echo_n "(cached) " >&6
23028 gcc_cv_as_ix86_fildq=no
23029 if test x$gcc_cv_as != x; then
23030 echo 'fildq mem; fistpq mem' > conftest.s
23031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23033 (eval $ac_try) 2>&5
23035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23036 test $ac_status = 0; }; }
23038 gcc_cv_as_ix86_fildq=yes
23040 echo "configure: failed program was" >&5
23043 rm -f conftest.o conftest.s
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23047 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23048 if test $gcc_cv_as_ix86_fildq = yes; then
23050 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23055 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23056 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23057 $as_echo_n "(cached) " >&6
23059 gcc_cv_as_ix86_cmov_sun_syntax=no
23060 if test x$gcc_cv_as != x; then
23061 echo 'cmovl.l %edx, %eax' > conftest.s
23062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23064 (eval $ac_try) 2>&5
23066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23067 test $ac_status = 0; }; }
23069 gcc_cv_as_ix86_cmov_sun_syntax=yes
23071 echo "configure: failed program was" >&5
23074 rm -f conftest.o conftest.s
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23078 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23079 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23081 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23086 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23087 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23088 $as_echo_n "(cached) " >&6
23090 gcc_cv_as_ix86_ffreep=no
23091 if test x$gcc_cv_as != x; then
23092 echo 'ffreep %st(1)' > conftest.s
23093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23095 (eval $ac_try) 2>&5
23097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23098 test $ac_status = 0; }; }
23100 gcc_cv_as_ix86_ffreep=yes
23102 echo "configure: failed program was" >&5
23105 rm -f conftest.o conftest.s
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23109 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23110 if test $gcc_cv_as_ix86_ffreep = yes; then
23112 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23117 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23118 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23119 $as_echo_n "(cached) " >&6
23121 gcc_cv_as_ix86_sahf=no
23122 if test x$gcc_cv_as != x; then
23123 echo 'sahf' > conftest.s
23124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23126 (eval $ac_try) 2>&5
23128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23129 test $ac_status = 0; }; }
23131 gcc_cv_as_ix86_sahf=yes
23133 echo "configure: failed program was" >&5
23136 rm -f conftest.o conftest.s
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23140 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23141 if test $gcc_cv_as_ix86_sahf = yes; then
23143 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23148 $as_echo_n "checking assembler for swap suffix... " >&6; }
23149 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23150 $as_echo_n "(cached) " >&6
23152 gcc_cv_as_ix86_swap=no
23153 if test x$gcc_cv_as != x; then
23154 echo 'movl.s %esp, %ebp' > conftest.s
23155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157 (eval $ac_try) 2>&5
23159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160 test $ac_status = 0; }; }
23162 gcc_cv_as_ix86_swap=yes
23164 echo "configure: failed program was" >&5
23167 rm -f conftest.o conftest.s
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23171 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23172 if test $gcc_cv_as_ix86_swap = yes; then
23174 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23179 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23180 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23181 $as_echo_n "(cached) " >&6
23183 gcc_cv_as_ix86_diff_sect_delta=no
23184 if test x$gcc_cv_as != x; then
23185 echo '.section .rodata
23191 .L2: nop' > conftest.s
23192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23194 (eval $ac_try) 2>&5
23196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23197 test $ac_status = 0; }; }
23199 gcc_cv_as_ix86_diff_sect_delta=yes
23201 echo "configure: failed program was" >&5
23204 rm -f conftest.o conftest.s
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23208 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23209 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23211 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23215 # This one is used unconditionally by i386.[ch]; it is to be defined
23216 # to 1 if the feature is present, 0 otherwise.
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23218 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23219 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23220 $as_echo_n "(cached) " >&6
23222 gcc_cv_as_ix86_gotoff_in_data=no
23223 if test $in_tree_gas = yes; then
23224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23225 then gcc_cv_as_ix86_gotoff_in_data=yes
23227 elif test x$gcc_cv_as != x; then
23232 .long .L0@GOTOFF' > conftest.s
23233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23235 (eval $ac_try) 2>&5
23237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23238 test $ac_status = 0; }; }
23240 gcc_cv_as_ix86_gotoff_in_data=yes
23242 echo "configure: failed program was" >&5
23245 rm -f conftest.o conftest.s
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23249 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23260 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23261 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23262 $as_echo_n "(cached) " >&6
23264 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23265 if test $in_tree_gas = yes; then
23266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23267 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23269 elif test x$gcc_cv_as != x; then
23271 addl r15 = @ltoffx(x#), gp
23273 ld8.mov r16 = [r15], x#' > conftest.s
23274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23276 (eval $ac_try) 2>&5
23278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23279 test $ac_status = 0; }; }
23281 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23283 echo "configure: failed program was" >&5
23286 rm -f conftest.o conftest.s
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23290 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23291 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23293 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23301 *-*-aix*) conftest_s=' .machine "pwr5"
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23306 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23307 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23308 $as_echo_n "(cached) " >&6
23310 gcc_cv_as_machine_directive=no
23311 if test x$gcc_cv_as != x; then
23312 echo ' .machine ppc7400' > conftest.s
23313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; }
23320 gcc_cv_as_machine_directive=yes
23322 echo "configure: failed program was" >&5
23325 rm -f conftest.o conftest.s
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23329 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23331 if test x$gcc_cv_as_machine_directive != xyes; then
23332 echo "*** This target requires an assembler supporting \".machine\"" >&2
23333 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23334 test x$build = x$target && exit 1
23338 *) conftest_s=' .machine power4
23343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23344 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23345 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23346 $as_echo_n "(cached) " >&6
23348 gcc_cv_as_powerpc_mfcrf=no
23349 if test $in_tree_gas = yes; then
23350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23351 then gcc_cv_as_powerpc_mfcrf=yes
23353 elif test x$gcc_cv_as != x; then
23354 echo "$conftest_s" > conftest.s
23355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23357 (eval $ac_try) 2>&5
23359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23360 test $ac_status = 0; }; }
23362 gcc_cv_as_powerpc_mfcrf=yes
23364 echo "configure: failed program was" >&5
23367 rm -f conftest.o conftest.s
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23371 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23372 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23374 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23379 *-*-aix*) conftest_s=' .machine "pwr5"
23382 *) conftest_s=' .machine power5
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23388 $as_echo_n "checking assembler for popcntb support... " >&6; }
23389 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23392 gcc_cv_as_powerpc_popcntb=no
23393 if test $in_tree_gas = yes; then
23394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23395 then gcc_cv_as_powerpc_popcntb=yes
23397 elif test x$gcc_cv_as != x; then
23398 echo "$conftest_s" > conftest.s
23399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23401 (eval $ac_try) 2>&5
23403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23404 test $ac_status = 0; }; }
23406 gcc_cv_as_powerpc_popcntb=yes
23408 echo "configure: failed program was" >&5
23411 rm -f conftest.o conftest.s
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23415 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23416 if test $gcc_cv_as_powerpc_popcntb = yes; then
23418 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23423 *-*-aix*) conftest_s=' .machine "pwr5x"
23426 *) conftest_s=' .machine power5
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23432 $as_echo_n "checking assembler for fp round support... " >&6; }
23433 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23434 $as_echo_n "(cached) " >&6
23436 gcc_cv_as_powerpc_fprnd=no
23437 if test $in_tree_gas = yes; then
23438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23439 then gcc_cv_as_powerpc_fprnd=yes
23441 elif test x$gcc_cv_as != x; then
23442 echo "$conftest_s" > conftest.s
23443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445 (eval $ac_try) 2>&5
23447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448 test $ac_status = 0; }; }
23450 gcc_cv_as_powerpc_fprnd=yes
23452 echo "configure: failed program was" >&5
23455 rm -f conftest.o conftest.s
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23459 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23460 if test $gcc_cv_as_powerpc_fprnd = yes; then
23462 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23467 *-*-aix*) conftest_s=' .machine "pwr6"
23470 *) conftest_s=' .machine power6
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23476 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23477 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23478 $as_echo_n "(cached) " >&6
23480 gcc_cv_as_powerpc_mfpgpr=no
23481 if test $in_tree_gas = yes; then
23482 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23483 then gcc_cv_as_powerpc_mfpgpr=yes
23485 elif test x$gcc_cv_as != x; then
23486 echo "$conftest_s" > conftest.s
23487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23489 (eval $ac_try) 2>&5
23491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23492 test $ac_status = 0; }; }
23494 gcc_cv_as_powerpc_mfpgpr=yes
23496 echo "configure: failed program was" >&5
23499 rm -f conftest.o conftest.s
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23503 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23504 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23506 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23511 *-*-aix*) conftest_s=' .csect .text[PR]
23513 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23517 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23518 *) conftest_s=' .text
23520 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23524 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23525 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23526 $as_echo_n "(cached) " >&6
23528 gcc_cv_as_powerpc_rel16=no
23529 if test $in_tree_gas = yes; then
23530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23531 then gcc_cv_as_powerpc_rel16=yes
23533 elif test x$gcc_cv_as != x; then
23534 echo "$conftest_s" > conftest.s
23535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23542 gcc_cv_as_powerpc_rel16=yes
23544 echo "configure: failed program was" >&5
23547 rm -f conftest.o conftest.s
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23551 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23552 if test $gcc_cv_as_powerpc_rel16 = yes; then
23554 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23559 *-*-aix*) conftest_s=' .machine "pwr6"
23562 *) conftest_s=' .machine power6
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23568 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23569 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23570 $as_echo_n "(cached) " >&6
23572 gcc_cv_as_powerpc_cmpb=no
23573 if test $in_tree_gas = yes; then
23574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23575 then gcc_cv_as_powerpc_cmpb=yes
23577 elif test x$gcc_cv_as != x; then
23578 echo "$conftest_s" > conftest.s
23579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23586 gcc_cv_as_powerpc_cmpb=yes
23588 echo "configure: failed program was" >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23595 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23596 if test $gcc_cv_as_powerpc_cmpb = yes; then
23598 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23603 *-*-aix*) conftest_s=' .machine "pwr6"
23606 *) conftest_s=' .machine power6
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23612 $as_echo_n "checking assembler for decimal float support... " >&6; }
23613 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23614 $as_echo_n "(cached) " >&6
23616 gcc_cv_as_powerpc_dfp=no
23617 if test $in_tree_gas = yes; then
23618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23619 then gcc_cv_as_powerpc_dfp=yes
23621 elif test x$gcc_cv_as != x; then
23622 echo "$conftest_s" > conftest.s
23623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23625 (eval $ac_try) 2>&5
23627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23628 test $ac_status = 0; }; }
23630 gcc_cv_as_powerpc_dfp=yes
23632 echo "configure: failed program was" >&5
23635 rm -f conftest.o conftest.s
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23639 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23640 if test $gcc_cv_as_powerpc_dfp = yes; then
23642 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23647 *-*-aix*) conftest_s=' .machine "pwr7"
23650 *) conftest_s=' .machine power7
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23656 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23657 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23660 gcc_cv_as_powerpc_vsx=no
23661 if test $in_tree_gas = yes; then
23662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23663 then gcc_cv_as_powerpc_vsx=yes
23665 elif test x$gcc_cv_as != x; then
23666 echo "$conftest_s" > conftest.s
23667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23669 (eval $ac_try) 2>&5
23671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23672 test $ac_status = 0; }; }
23674 gcc_cv_as_powerpc_vsx=yes
23676 echo "configure: failed program was" >&5
23679 rm -f conftest.o conftest.s
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23683 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23684 if test $gcc_cv_as_powerpc_vsx = yes; then
23686 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23691 *-*-aix*) conftest_s=' .machine "pwr7"
23694 *) conftest_s=' .machine power7
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23700 $as_echo_n "checking assembler for popcntd support... " >&6; }
23701 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23702 $as_echo_n "(cached) " >&6
23704 gcc_cv_as_powerpc_popcntd=no
23705 if test $in_tree_gas = yes; then
23706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23707 then gcc_cv_as_powerpc_popcntd=yes
23709 elif test x$gcc_cv_as != x; then
23710 echo "$conftest_s" > conftest.s
23711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; }
23718 gcc_cv_as_powerpc_popcntd=yes
23720 echo "configure: failed program was" >&5
23723 rm -f conftest.o conftest.s
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23727 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23728 if test $gcc_cv_as_powerpc_popcntd = yes; then
23730 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23735 *-*-aix*) conftest_s=' .csect .text[PR]
23737 *) conftest_s=' .text
23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23742 $as_echo_n "checking assembler for lwsync support... " >&6; }
23743 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23744 $as_echo_n "(cached) " >&6
23746 gcc_cv_as_powerpc_lwsync=no
23747 if test $in_tree_gas = yes; then
23748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23749 then gcc_cv_as_powerpc_lwsync=yes
23751 elif test x$gcc_cv_as != x; then
23752 echo "$conftest_s" > conftest.s
23753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23755 (eval $ac_try) 2>&5
23757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758 test $ac_status = 0; }; }
23760 gcc_cv_as_powerpc_lwsync=yes
23762 echo "configure: failed program was" >&5
23765 rm -f conftest.o conftest.s
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23769 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23770 if test $gcc_cv_as_powerpc_lwsync = yes; then
23772 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23777 *-*-aix*) conftest_s=' .machine "476"
23780 *) conftest_s=' .machine "476"
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23786 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23787 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23788 $as_echo_n "(cached) " >&6
23790 gcc_cv_as_powerpc_dci=no
23791 if test $in_tree_gas = yes; then
23792 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23793 then gcc_cv_as_powerpc_dci=yes
23795 elif test x$gcc_cv_as != x; then
23796 echo "$conftest_s" > conftest.s
23797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23799 (eval $ac_try) 2>&5
23801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802 test $ac_status = 0; }; }
23804 gcc_cv_as_powerpc_dci=yes
23806 echo "configure: failed program was" >&5
23809 rm -f conftest.o conftest.s
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23813 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23814 if test $gcc_cv_as_powerpc_dci = yes; then
23816 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23821 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23822 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23823 $as_echo_n "(cached) " >&6
23825 gcc_cv_as_powerpc_gnu_attribute=no
23826 if test $in_tree_gas = yes; then
23827 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23828 then gcc_cv_as_powerpc_gnu_attribute=yes
23830 elif test x$gcc_cv_as != x; then
23831 echo '.gnu_attribute 4,1' > conftest.s
23832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23834 (eval $ac_try) 2>&5
23836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23837 test $ac_status = 0; }; }
23839 gcc_cv_as_powerpc_gnu_attribute=yes
23841 echo "configure: failed program was" >&5
23844 rm -f conftest.o conftest.s
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23848 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23849 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23851 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23856 $as_echo_n "checking assembler for tls marker support... " >&6; }
23857 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23858 $as_echo_n "(cached) " >&6
23860 gcc_cv_as_powerpc_tls_markers=no
23861 if test $in_tree_gas = yes; then
23862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23863 then gcc_cv_as_powerpc_tls_markers=yes
23865 elif test x$gcc_cv_as != x; then
23866 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23869 (eval $ac_try) 2>&5
23871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23872 test $ac_status = 0; }; }
23874 gcc_cv_as_powerpc_tls_markers=yes
23876 echo "configure: failed program was" >&5
23879 rm -f conftest.o conftest.s
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23883 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23884 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23886 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23893 $as_echo_n "checking assembler for .ref support... " >&6; }
23894 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23895 $as_echo_n "(cached) " >&6
23897 gcc_cv_as_aix_ref=no
23898 if test $in_tree_gas = yes; then
23899 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23902 elif test x$gcc_cv_as != x; then
23903 echo ' .csect stuff[rw]
23909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911 (eval $ac_try) 2>&5
23913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914 test $ac_status = 0; }; }
23916 gcc_cv_as_aix_ref=yes
23918 echo "configure: failed program was" >&5
23921 rm -f conftest.o conftest.s
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
23925 $as_echo "$gcc_cv_as_aix_ref" >&6; }
23926 if test $gcc_cv_as_aix_ref = yes; then
23928 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23937 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23938 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23939 $as_echo_n "(cached) " >&6
23941 gcc_cv_as_mips_explicit_relocs=no
23942 if test $in_tree_gas = yes; then
23943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23944 then gcc_cv_as_mips_explicit_relocs=yes
23946 elif test x$gcc_cv_as != x; then
23947 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950 (eval $ac_try) 2>&5
23952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953 test $ac_status = 0; }; }
23955 gcc_cv_as_mips_explicit_relocs=yes
23957 echo "configure: failed program was" >&5
23960 rm -f conftest.o conftest.s
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23964 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23965 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23966 if test x$target_cpu_default = x
23967 then target_cpu_default=MASK_EXPLICIT_RELOCS
23968 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23972 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23973 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23974 $as_echo_n "(cached) " >&6
23976 gcc_cv_as_mips_no_shared=no
23977 if test $in_tree_gas = yes; then
23978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23979 then gcc_cv_as_mips_no_shared=yes
23981 elif test x$gcc_cv_as != x; then
23982 echo 'nop' > conftest.s
23983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
23984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23985 (eval $ac_try) 2>&5
23987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23988 test $ac_status = 0; }; }
23990 gcc_cv_as_mips_no_shared=yes
23992 echo "configure: failed program was" >&5
23995 rm -f conftest.o conftest.s
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23999 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24000 if test $gcc_cv_as_mips_no_shared = yes; then
24002 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24007 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24008 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24009 $as_echo_n "(cached) " >&6
24011 gcc_cv_as_mips_gnu_attribute=no
24012 if test $in_tree_gas = yes; then
24013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24014 then gcc_cv_as_mips_gnu_attribute=yes
24016 elif test x$gcc_cv_as != x; then
24017 echo '.gnu_attribute 4,1' > conftest.s
24018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24020 (eval $ac_try) 2>&5
24022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023 test $ac_status = 0; }; }
24025 gcc_cv_as_mips_gnu_attribute=yes
24027 echo "configure: failed program was" >&5
24030 rm -f conftest.o conftest.s
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24034 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24035 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24037 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24042 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24043 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24044 $as_echo_n "(cached) " >&6
24046 gcc_cv_as_mips_dtprelword=no
24047 if test $in_tree_gas = yes; then
24048 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24049 then gcc_cv_as_mips_dtprelword=yes
24051 elif test x$gcc_cv_as != x; then
24052 echo '.section .tdata,"awT",@progbits
24056 .dtprelword x+0x8000' > conftest.s
24057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24064 gcc_cv_as_mips_dtprelword=yes
24066 echo "configure: failed program was" >&5
24069 rm -f conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24073 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24074 if test $gcc_cv_as_mips_dtprelword = yes; then
24076 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24081 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24082 gcc_cv_as_ld_jalr_reloc=no
24083 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24084 if test $in_tree_ld = yes ; then
24085 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 \
24086 && test $in_tree_ld_is_elf = yes; then
24087 gcc_cv_as_ld_jalr_reloc=yes
24089 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24090 echo ' .ent x' > conftest.s
24091 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24092 echo ' ld $25,%call16(y)($28)' >> conftest.s
24093 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24094 echo '1: jalr $25' >> conftest.s
24095 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24096 echo '1: jalr $25' >> conftest.s
24097 echo ' .end x' >> conftest.s
24098 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24099 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24100 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
24101 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
24102 gcc_cv_as_ld_jalr_reloc=yes
24108 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24109 if test x$target_cpu_default = x; then
24110 target_cpu_default=MASK_RELAX_PIC_CALLS
24112 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24116 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24119 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24120 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24121 $as_echo_n "(cached) " >&6
24123 gcc_cv_ld_mips_personality_relaxation=no
24124 if test $in_tree_ld = yes ; then
24125 if test "$gcc_cv_gld_major_version" -eq 2 \
24126 -a "$gcc_cv_gld_minor_version" -ge 21 \
24127 -o "$gcc_cv_gld_major_version" -gt 2; then
24128 gcc_cv_ld_mips_personality_relaxation=yes
24130 elif test x$gcc_cv_as != x \
24131 -a x$gcc_cv_ld != x \
24132 -a x$gcc_cv_readelf != x ; then
24133 cat > conftest.s <<EOF
24135 .cfi_personality 0x80,indirect_ptr
24142 .section .data,"aw",@progbits
24146 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24147 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24148 if $gcc_cv_readelf -d conftest 2>&1 \
24149 | grep TEXTREL > /dev/null 2>&1; then
24151 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24152 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24155 gcc_cv_ld_mips_personality_relaxation=yes
24159 rm -f conftest.s conftest.o conftest
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24162 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24163 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24165 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24171 # Mips and HP-UX need the GNU assembler.
24172 # Linux on IA64 might be able to use the Intel assembler.
24175 mips*-*-* | *-*-hpux* )
24176 if test x$gas_flag = xyes \
24177 || test x"$host" != x"$build" \
24178 || test ! -x "$gcc_cv_as" \
24179 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24182 echo "*** This configuration requires the GNU assembler" >&2
24188 # ??? Not all targets support dwarf2 debug_line, even within a version
24189 # of gas. Moreover, we need to emit a valid instruction to trigger any
24190 # info to the output file. So, as supported targets are added to gas 2.11,
24191 # add some instruction here to (also) show we expect this might work.
24192 # ??? Once 2.11 is released, probably need to add first known working
24193 # version to the per-target configury.
24195 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24196 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24197 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24198 | spu-*-* | fido*-*-* | m32c-*-*)
24201 ia64*-*-* | s390*-*-*)
24208 if test x"$insn" != x; then
24210 .file 1 \"conftest.s\"
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24214 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24215 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24216 $as_echo_n "(cached) " >&6
24218 gcc_cv_as_dwarf2_debug_line=no
24219 if test $in_tree_gas = yes; then
24220 if test $in_tree_gas_is_elf = yes \
24221 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24222 then gcc_cv_as_dwarf2_debug_line=yes
24224 elif test x$gcc_cv_as != x; then
24225 echo "$conftest_s" > conftest.s
24226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228 (eval $ac_try) 2>&5
24230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231 test $ac_status = 0; }; }
24233 if test x$gcc_cv_objdump != x \
24234 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24235 | grep debug_line > /dev/null 2>&1; then
24236 gcc_cv_as_dwarf2_debug_line=yes
24239 echo "configure: failed program was" >&5
24242 rm -f conftest.o conftest.s
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24246 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24249 # The .debug_line file table must be in the exact order that
24250 # we specified the files, since these indices are also used
24251 # by DW_AT_decl_file. Approximate this test by testing if
24252 # the assembler bitches if the same index is assigned twice.
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24254 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24255 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24256 $as_echo_n "(cached) " >&6
24258 gcc_cv_as_dwarf2_file_buggy=no
24259 if test x$gcc_cv_as != x; then
24260 echo ' .file 1 "foo.s"
24261 .file 1 "bar.s"' > 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_dwarf2_file_buggy=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_dwarf2_file_buggy" >&5
24278 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24281 if test $gcc_cv_as_dwarf2_debug_line = yes \
24282 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24284 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24289 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24290 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24291 $as_echo_n "(cached) " >&6
24293 gcc_cv_as_gdwarf2_flag=no
24294 if test $in_tree_gas = yes; then
24295 if test $in_tree_gas_is_elf = yes \
24296 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24297 then gcc_cv_as_gdwarf2_flag=yes
24299 elif test x$gcc_cv_as != x; then
24300 echo "$insn" > conftest.s
24301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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 gcc_cv_as_gdwarf2_flag=yes
24310 echo "configure: failed program was" >&5
24313 rm -f conftest.o conftest.s
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24317 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24318 if test $gcc_cv_as_gdwarf2_flag = yes; then
24320 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24325 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24326 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24327 $as_echo_n "(cached) " >&6
24329 gcc_cv_as_gstabs_flag=no
24330 if test $in_tree_gas = yes; then
24331 if test $in_tree_gas_is_elf = yes \
24332 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24333 then gcc_cv_as_gstabs_flag=yes
24335 elif test x$gcc_cv_as != x; then
24336 echo "$insn" > conftest.s
24337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24344 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24345 # and warns about it, but still exits successfully. So check for
24347 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24349 (eval $ac_try) 2>&5
24351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24352 test $ac_status = 0; }; }
24354 else gcc_cv_as_gstabs_flag=yes
24357 echo "configure: failed program was" >&5
24360 rm -f conftest.o conftest.s
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24364 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24365 if test $gcc_cv_as_gstabs_flag = yes; then
24367 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24372 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24373 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24376 gcc_cv_as_debug_prefix_map_flag=no
24377 if test $in_tree_gas = yes; then
24378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24379 then gcc_cv_as_debug_prefix_map_flag=yes
24381 elif test x$gcc_cv_as != x; then
24382 echo "$insn" > conftest.s
24383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24390 gcc_cv_as_debug_prefix_map_flag=yes
24392 echo "configure: failed program was" >&5
24395 rm -f conftest.o conftest.s
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24399 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24400 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24402 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24408 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24409 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24410 $as_echo_n "(cached) " >&6
24412 gcc_cv_as_lcomm_with_alignment=no
24413 if test x$gcc_cv_as != x; then
24414 echo '.lcomm bar,4,16' > conftest.s
24415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24422 gcc_cv_as_lcomm_with_alignment=yes
24424 echo "configure: failed program was" >&5
24427 rm -f conftest.o conftest.s
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24431 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24432 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24434 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24438 # Check whether --enable-gnu-unique-object was given.
24439 if test "${enable_gnu_unique_object+set}" = set; then :
24440 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24442 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24443 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24447 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24448 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24449 $as_echo_n "(cached) " >&6
24451 gcc_cv_as_gnu_unique_object=no
24452 if test $in_tree_gas = yes; then
24453 if test $in_tree_gas_is_elf = yes \
24454 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24455 then gcc_cv_as_gnu_unique_object=yes
24457 elif test x$gcc_cv_as != x; then
24458 echo '.type foo, @gnu_unique_object' > conftest.s
24459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461 (eval $ac_try) 2>&5
24463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464 test $ac_status = 0; }; }
24466 gcc_cv_as_gnu_unique_object=yes
24468 echo "configure: failed program was" >&5
24471 rm -f conftest.o conftest.s
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24475 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24476 if test $gcc_cv_as_gnu_unique_object = yes; then
24477 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24478 if test x$host = x$build -a x$host = x$target &&
24479 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24480 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24481 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24482 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24483 if test "$glibcnum" -ge 2011 ; then
24484 enable_gnu_unique_object=yes
24490 if test x$enable_gnu_unique_object = xyes; then
24492 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24497 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24498 if test "${gcc_cv_as_line_zero+set}" = set; then :
24499 $as_echo_n "(cached) " >&6
24501 gcc_cv_as_line_zero=no
24502 if test $in_tree_gas = yes; then
24503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24504 then gcc_cv_as_line_zero=yes
24506 elif test "x$gcc_cv_as" != x; then
24507 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24508 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; } &&
24514 test "x`cat conftest.out`" = x
24516 gcc_cv_as_line_zero=yes
24518 echo "configure: failed program was" >&5
24520 echo "configure: error output was" >&5
24521 cat conftest.out >&5
24523 rm -f conftest.o conftest.s conftest.out
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24527 $as_echo "$gcc_cv_as_line_zero" >&6; }
24528 if test "x$gcc_cv_as_line_zero" = xyes; then
24530 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24535 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24536 gcc_cv_ld_eh_frame_hdr=no
24537 if test $in_tree_ld = yes ; then
24538 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 \
24539 && test $in_tree_ld_is_elf = yes; then
24540 gcc_cv_ld_eh_frame_hdr=yes
24542 elif test x$gcc_cv_ld != x; then
24543 # Check if linker supports --eh-frame-hdr option
24544 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24545 gcc_cv_ld_eh_frame_hdr=yes
24549 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24551 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24555 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24558 $as_echo_n "checking linker position independent executable support... " >&6; }
24560 if test $in_tree_ld = yes ; then
24561 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 \
24562 && test $in_tree_ld_is_elf = yes; then
24565 elif test x$gcc_cv_ld != x; then
24566 # Check if linker supports -pie option
24567 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24571 if test x"$gcc_cv_ld_pie" = xyes; then
24573 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24577 $as_echo "$gcc_cv_ld_pie" >&6; }
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24580 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24581 gcc_cv_ld_eh_gc_sections=no
24582 if test $in_tree_ld = yes ; then
24583 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 \
24584 && test $in_tree_ld_is_elf = yes; then
24585 gcc_cv_ld_eh_gc_sections=yes
24587 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24588 cat > conftest.s <<EOF
24591 .type _start, @function
24594 .size _start, .-_start
24595 .section .text.foo,"ax",@progbits
24596 .type foo, @function
24600 .section .gcc_except_table.foo,"a",@progbits
24603 .section .eh_frame,"a",@progbits
24606 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24607 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24608 | grep "gc-sections option ignored" > /dev/null; then
24609 gcc_cv_ld_eh_gc_sections=no
24610 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24611 gcc_cv_ld_eh_gc_sections=yes
24612 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24613 if test x$gcc_cv_as_comdat_group != xyes; then
24614 gcc_cv_ld_eh_gc_sections=no
24615 cat > conftest.s <<EOF
24618 .type _start, @function
24621 .size _start, .-_start
24622 .section .gnu.linkonce.t.foo,"ax",@progbits
24623 .type foo, @function
24627 .section .gcc_except_table.foo,"a",@progbits
24630 .section .eh_frame,"a",@progbits
24633 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24634 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24635 | grep "gc-sections option ignored" > /dev/null; then
24636 gcc_cv_ld_eh_gc_sections=no
24637 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24638 gcc_cv_ld_eh_gc_sections=yes
24644 rm -f conftest.s conftest.o conftest
24648 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24649 gcc_cv_ld_eh_gc_sections=no
24652 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24654 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24658 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24665 $as_echo_n "checking linker --as-needed support... " >&6; }
24666 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24667 $as_echo_n "(cached) " >&6
24669 gcc_cv_ld_as_needed=no
24670 if test $in_tree_ld = yes ; then
24671 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 \
24672 && test $in_tree_ld_is_elf = yes; then
24673 gcc_cv_ld_as_needed=yes
24675 elif test x$gcc_cv_ld != x; then
24676 # Check if linker supports --as-needed and --no-as-needed options
24677 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24678 gcc_cv_ld_as_needed=yes
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24684 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24685 if test x"$gcc_cv_ld_as_needed" = xyes; then
24687 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24691 case "$target:$tm_file" in
24692 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24694 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24695 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24696 $as_echo_n "(cached) " >&6
24698 gcc_cv_ld_no_dot_syms=no
24699 if test $in_tree_ld = yes ; then
24700 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
24701 gcc_cv_ld_no_dot_syms=yes
24703 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24704 cat > conftest1.s <<EOF
24708 cat > conftest2.s <<EOF
24709 .section ".opd","aw"
24712 .type foo,@function
24714 .quad .LEfoo,.TOC.@tocbase,0
24720 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24721 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24722 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24723 gcc_cv_ld_no_dot_syms=yes
24725 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24730 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24731 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24733 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24740 $as_echo_n "checking linker --build-id support... " >&6; }
24741 if test "${gcc_cv_ld_buildid+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24744 gcc_cv_ld_buildid=no
24745 if test $in_tree_ld = yes ; then
24746 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24747 "$gcc_cv_gld_minor_version" -ge 18 -o \
24748 "$gcc_cv_gld_major_version" -gt 2 \
24749 && test $in_tree_ld_is_elf = yes; then
24750 gcc_cv_ld_buildid=yes
24752 elif test x$gcc_cv_ld != x; then
24753 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24754 gcc_cv_ld_buildid=yes
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24759 $as_echo "$gcc_cv_ld_buildid" >&6; }
24760 if test x"$gcc_cv_ld_buildid" = xyes; then
24762 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24766 # Check whether --enable-linker-build-id was given.
24767 if test "${enable_linker_build_id+set}" = set; then :
24768 enableval=$enable_linker_build_id;
24770 enable_linker_build_id=no
24774 if test x"$enable_linker_build_id" = xyes; then
24775 if test x"$gcc_cv_ld_buildid" = xyes; then
24777 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24781 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24786 $as_echo_n "checking linker --sysroot support... " >&6; }
24787 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24790 gcc_cv_ld_sysroot=no
24791 if test $in_tree_ld = yes ; then
24792 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
24793 gcc_cv_ld_sysroot=yes
24795 elif test x$gcc_cv_ld != x; then
24796 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24797 gcc_cv_ld_sysroot=yes
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24802 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24803 if test x"$gcc_cv_ld_sysroot" = xyes; then
24805 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24809 if test x$with_sysroot = x && test x$host = x$target \
24810 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24811 && test "$prefix" != "NONE"; then
24813 cat >>confdefs.h <<_ACEOF
24814 #define PREFIX_INCLUDE_DIR "$prefix/include"
24819 # Test for stack protector support in target C library.
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24821 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24822 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24823 $as_echo_n "(cached) " >&6
24825 gcc_cv_libc_provides_ssp=no
24827 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24828 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24829 if test "x$with_headers" != x; then
24830 glibc_header_dir=$with_headers
24831 elif test "x$with_sysroot" = x; then
24832 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24833 elif test "x$with_build_sysroot" != "x"; then
24834 glibc_header_dir="${with_build_sysroot}/usr/include"
24835 elif test "x$with_sysroot" = xyes; then
24836 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24838 glibc_header_dir="${with_sysroot}/usr/include"
24841 glibc_header_dir=/usr/include
24843 # glibc 2.4 and later provides __stack_chk_fail and
24844 # either __stack_chk_guard, or TLS access to stack guard canary.
24845 if test -f $glibc_header_dir/features.h \
24846 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24847 $glibc_header_dir/features.h > /dev/null; then
24848 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24849 $glibc_header_dir/features.h > /dev/null; then
24850 gcc_cv_libc_provides_ssp=yes
24851 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24852 $glibc_header_dir/features.h > /dev/null \
24853 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24854 $glibc_header_dir/features.h > /dev/null; then
24855 gcc_cv_libc_provides_ssp=yes
24856 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24857 $glibc_header_dir/features.h > /dev/null && \
24858 test -f $glibc_header_dir/bits/uClibc_config.h && \
24859 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24860 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24861 gcc_cv_libc_provides_ssp=yes
24866 # Avoid complicated tests (see
24867 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24868 # simply assert that glibc does provide this, which is true for all
24869 # realistically usable GNU/Hurd configurations.
24870 gcc_cv_libc_provides_ssp=yes;;
24871 *-*-darwin* | *-*-freebsd*)
24872 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24873 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24874 gcc_cv_libc_provides_ssp=yes
24876 echo "no __stack_chk_fail on this target"
24880 *) gcc_cv_libc_provides_ssp=no ;;
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24884 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24886 if test x$gcc_cv_libc_provides_ssp = xyes; then
24888 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24892 # Check if TFmode long double should be used by default or not.
24893 # Some glibc targets used DFmode long double, but with glibc 2.4
24894 # and later they can use TFmode.
24896 powerpc*-*-linux* | \
24897 powerpc*-*-gnu* | \
24898 sparc*-*-linux* | \
24902 # Check whether --with-long-double-128 was given.
24903 if test "${with_long_double_128+set}" = set; then :
24904 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24906 gcc_cv_target_ldbl128=no
24907 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24908 if test "x$with_sysroot" = x; then
24909 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24910 elif test "x$with_build_sysroot" != "x"; then
24911 glibc_header_dir="${with_build_sysroot}/usr/include"
24912 elif test "x$with_sysroot" = xyes; then
24913 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24915 glibc_header_dir="${with_sysroot}/usr/include"
24918 glibc_header_dir=/usr/include
24920 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24921 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24922 && gcc_cv_target_ldbl128=yes
24928 if test x$gcc_cv_target_ldbl128 = xyes; then
24930 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24934 # Find out what GC implementation we want, or may, use.
24936 # Check whether --with-gc was given.
24937 if test "${with_gc+set}" = set; then :
24938 withval=$with_gc; case "$withval" in
24945 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24949 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24957 echo "Using $GGC for garbage collection."
24959 # Libraries to use on the host. This will normally be set by the top
24960 # level Makefile. Here we simply capture the value for our Makefile.
24961 if test -z "${HOST_LIBS+set}"; then
24966 # Use the system's zlib library.
24968 zlibinc="-I\$(srcdir)/../zlib"
24970 # Check whether --with-system-zlib was given.
24971 if test "${with_system_zlib+set}" = set; then :
24972 withval=$with_system_zlib; zlibdir=
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24982 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24983 # Check whether --enable-maintainer-mode was given.
24984 if test "${enable_maintainer_mode+set}" = set; then :
24985 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24992 $as_echo "$maintainer_mode" >&6; }
24994 if test "$maintainer_mode" = "yes"; then
25004 # Make empty files to contain the specs and options for each language.
25005 # Then add #include lines to for a compiler that has specs and/or options.
25011 # These (without "all_") are set in each config-lang.in.
25012 # `language' must be a single word so is spelled singularly.
25015 all_outputs='Makefile gccbug'
25016 # List of language makefile fragments.
25017 all_lang_makefrags=
25018 # List of language subdirectory makefiles. Deprecated.
25019 all_lang_makefiles=
25020 # Additional files for gengtype
25021 all_gtfiles="$target_gtfiles"
25023 # These are the languages that are set in --enable-languages,
25024 # and are available in the GCC tree.
25025 all_selected_languages=
25027 # Add the language fragments.
25028 # Languages are added via two mechanisms. Some information must be
25029 # recorded in makefile variables, these are defined in config-lang.in.
25030 # We accumulate them and plug them into the main Makefile.
25031 # The other mechanism is a set of hooks for each of the main targets
25032 # like `clean', `install', etc.
25034 language_hooks="Make-hooks"
25036 for lang in ${srcdir}/*/config-lang.in
25038 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25040 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25041 if test "x$lang_alias" = x
25043 echo "$lang doesn't set \$language." 1>&2
25046 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25047 subdirs="$subdirs $subdir"
25049 # $gcc_subdir is where the gcc integration files are to be found
25050 # for a language, both for internal compiler purposes (compiler
25051 # sources implementing front-end to GCC tree converters), and for
25052 # build infrastructure purposes (Make-lang.in, etc.)
25054 # This will be <subdir> (relative to $srcdir) if a line like
25055 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25056 # is found in <langdir>/config-lang.in, and will remain <langdir>
25059 # Except for the language alias (fetched above), the regular
25060 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25061 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25062 # only this and the language alias.
25064 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25065 if [ "$gcc_subdir" = "" ]; then
25066 gcc_subdir="$subdir"
25069 case ",$enable_languages," in
25071 all_selected_languages="$all_selected_languages $lang_alias"
25072 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25073 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25084 . ${srcdir}/$gcc_subdir/config-lang.in
25085 if test "x$language" = x
25087 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25092 case ",$enable_languages," in
25093 *,$lang_alias,*) ;;
25095 for i in $subdir_requires; do
25096 test -f "${srcdir}/$i/config-lang.in" && continue
25104 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25105 if test -f $srcdir/$gcc_subdir/lang.opt; then
25106 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25108 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25109 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25111 if test -f ${srcdir}/$gcc_subdir/Makefile.in
25112 then all_lang_makefiles="$gcc_subdir/Makefile"
25114 all_languages="$all_languages $language"
25115 all_compilers="$all_compilers $compilers"
25116 all_outputs="$all_outputs $outputs"
25117 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25118 case ",$enable_languages," in
25121 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25125 # LTO needs to speak the platform's object file format, and has a
25126 # number of implementations of the required binary file access APIs.
25127 # ELF is the most common, and default. We only link libelf if ELF
25128 # is indeed the selected format.
25129 LTO_BINARY_READER=${lto_binary_reader}
25130 LTO_USE_LIBELF=-lelf
25131 if test "x$lto_binary_reader" != "xlto-elf" ; then
25141 # Pick up gtfiles for c
25143 . ${srcdir}/c-config-lang.in
25144 all_gtfiles="$all_gtfiles [c] $gtfiles"
25147 for language in $all_selected_languages
25149 check_languages="$check_languages check-$language"
25152 # We link each language in with a set of hooks, reached indirectly via
25153 # lang.${target}. Only do so for selected languages.
25157 target_list="all.cross start.encap rest.encap tags \
25158 install-common install-man install-info install-pdf install-html dvi \
25159 pdf html uninstall info man srcextra srcman srcinfo \
25160 mostlyclean clean distclean maintainer-clean install-plugin"
25162 for t in $target_list
25165 for lang in $all_selected_languages
25169 echo "lang.$t: $x" >> Make-hooks
25178 echo "dir ." > .gdbinit
25179 echo "dir ${srcdir}" >> .gdbinit
25180 if test x$gdb_needs_out_file_path = xyes
25182 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25184 if test "x$subdirs" != x; then
25187 echo "dir ${srcdir}/$s" >> .gdbinit
25190 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25192 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25196 # Find a directory in which to install a shared libgcc.
25198 # Check whether --enable-version-specific-runtime-libs was given.
25199 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25200 enableval=$enable_version_specific_runtime_libs;
25205 # Check whether --with-slibdir was given.
25206 if test "${with_slibdir+set}" = set; then :
25207 withval=$with_slibdir; slibdir="$with_slibdir"
25209 if test "${enable_version_specific_runtime_libs+set}" = set; then
25210 slibdir='$(libsubdir)'
25211 elif test "$host" != "$target"; then
25212 slibdir='$(build_tooldir)/lib'
25214 slibdir='$(libdir)'
25220 # Substitute configuration variables
25283 if test x${build} = x${host} ; then
25284 if test x${host} = x${target} ; then
25285 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25287 echo "Links are now set up to build a cross-compiler" 1>&2
25288 echo " from ${host} to ${target}." 1>&2
25291 if test x${host} = x${target} ; then
25292 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25293 echo " for ${target}." 1>&2
25295 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25296 echo " from ${host} to ${target}." 1>&2
25308 if test "x${CLOOGLIBS}" != "x" ; then
25310 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25316 if test "x${LIBELFLIBS}" != "x" ; then
25318 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25322 # Check for plugin support
25323 # Check whether --enable-plugin was given.
25324 if test "${enable_plugin+set}" = set; then :
25325 enableval=$enable_plugin; enable_plugin=$enableval
25327 enable_plugin=yes; default_plugin=yes
25332 if test x"$enable_plugin" = x"yes"; then
25336 export_sym_check="$gcc_cv_nm -g"
25339 export_sym_check="$gcc_cv_objdump -T"
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25343 $as_echo_n "checking for exported symbols... " >&6; }
25344 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25345 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25346 if $export_sym_check conftest | grep foobar > /dev/null; then
25347 : # No need to use a flag
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25350 $as_echo_n "checking for -rdynamic... " >&6; }
25351 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25352 if $export_sym_check conftest | grep foobar > /dev/null; then
25353 plugin_rdynamic=yes
25354 pluginlibs="-rdynamic"
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25360 $as_echo "$plugin_rdynamic" >&6; }
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25366 $as_echo_n "checking for library containing dlopen... " >&6; }
25367 if test "${ac_cv_search_dlopen+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25370 ac_func_search_save_LIBS=$LIBS
25371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h. */
25374 /* Override any GCC internal prototype to avoid an error.
25375 Use char because int might match the return type of a GCC
25376 builtin and then its argument prototype would still apply. */
25389 for ac_lib in '' dl; do
25390 if test -z "$ac_lib"; then
25391 ac_res="none required"
25394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25396 if ac_fn_c_try_link "$LINENO"; then :
25397 ac_cv_search_dlopen=$ac_res
25399 rm -f core conftest.err conftest.$ac_objext \
25401 if test "${ac_cv_search_dlopen+set}" = set; then :
25405 if test "${ac_cv_search_dlopen+set}" = set; then :
25408 ac_cv_search_dlopen=no
25410 rm conftest.$ac_ext
25411 LIBS=$ac_func_search_save_LIBS
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25414 $as_echo "$ac_cv_search_dlopen" >&6; }
25415 ac_res=$ac_cv_search_dlopen
25416 if test "$ac_res" != no; then :
25417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25421 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25422 pluginlibs="$pluginlibs -ldl"
25426 # Check that we can build shared objects with -fPIC -shared
25427 saved_LDFLAGS="$LDFLAGS"
25430 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25433 LDFLAGS="$LDFLAGS -fPIC -shared"
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25437 $as_echo_n "checking for -fPIC -shared... " >&6; }
25438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439 /* end confdefs.h. */
25449 if ac_fn_c_try_link "$LINENO"; then :
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25451 $as_echo "yes" >&6; }; have_pic_shared=yes
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25454 $as_echo "no" >&6; }; have_pic_shared=no
25456 rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25458 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25462 LDFLAGS="$saved_LDFLAGS"
25464 # If plugin support had been requested but not available, fail.
25465 if test x"$enable_plugin" = x"no" ; then
25466 if test x"$default_plugin" != x"yes"; then
25468 Building GCC with plugin support requires a host that supports
25469 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25476 if test x"$enable_plugin" = x"yes"; then
25478 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25482 # Configure the subdirectories
25483 # AC_CONFIG_SUBDIRS($subdirs)
25485 # Create the Makefile
25486 # and configure language subdirectories
25487 ac_config_files="$ac_config_files $all_outputs"
25490 ac_config_commands="$ac_config_commands default"
25492 cat >confcache <<\_ACEOF
25493 # This file is a shell script that caches the results of configure
25494 # tests run on this system so they can be shared between configure
25495 # scripts and configure runs, see configure's option --config-cache.
25496 # It is not useful on other systems. If it contains results you don't
25497 # want to keep, you may remove or edit it.
25499 # config.status only pays attention to the cache file if you give it
25500 # the --recheck option to rerun configure.
25502 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25503 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25504 # following values.
25508 # The following way of writing the cache mishandles newlines in values,
25509 # but we know of no workaround that is simple, portable, and efficient.
25510 # So, we kill variables containing newlines.
25511 # Ultrix sh set writes to stderr and can't be redirected directly,
25512 # and sets the high bit in the cache file unless we assign to the vars.
25514 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25515 eval ac_val=\$$ac_var
25519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25523 _ | IFS | as_nl) ;; #(
25524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25525 *) { eval $ac_var=; unset $ac_var;} ;;
25531 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25532 *${as_nl}ac_space=\ *)
25533 # `set' does not quote correctly, so add quotes: double-quote
25534 # substitution turns \\\\ into \\, and sed turns \\ into \.
25537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25540 # `set' quotes correctly as required by POSIX, so do not add quotes.
25541 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25550 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25552 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25554 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25555 if test -w "$cache_file"; then
25556 test "x$cache_file" != "x/dev/null" &&
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25558 $as_echo "$as_me: updating cache $cache_file" >&6;}
25559 cat confcache >$cache_file
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25562 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25568 # Let make expand exec_prefix.
25569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25571 DEFS=-DHAVE_CONFIG_H
25575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25576 # 1. Remove the extension, and $U if already installed.
25577 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25578 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25579 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25580 # will be set to the directory where LIBOBJS objects are built.
25581 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25582 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25584 LIBOBJS=$ac_libobjs
25586 LTLIBOBJS=$ac_ltlibobjs
25591 : ${CONFIG_STATUS=./config.status}
25593 ac_clean_files_save=$ac_clean_files
25594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25598 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25600 # Generated by $as_me.
25601 # Run this file to recreate the current configuration.
25602 # Compiler output produced by configure, useful for debugging
25603 # configure, is in config.log if it exists.
25606 ac_cs_recheck=false
25609 SHELL=\${CONFIG_SHELL-$SHELL}
25612 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25613 ## -------------------- ##
25614 ## M4sh Initialization. ##
25615 ## -------------------- ##
25617 # Be more Bourne compatible
25618 DUALCASE=1; export DUALCASE # for MKS sh
25619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25623 # is contrary to our usage. Disable this feature.
25624 alias -g '${1+"$@"}'='"$@"'
25625 setopt NO_GLOB_SUBST
25627 case `(set -o) 2>/dev/null` in #(
25639 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25640 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25641 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25643 # Prefer a ksh shell builtin over an external printf program on Solaris,
25644 # but without wasting forks for bash or zsh.
25645 if test -z "$BASH_VERSION$ZSH_VERSION" \
25646 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25647 as_echo='print -r --'
25648 as_echo_n='print -rn --'
25649 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25650 as_echo='printf %s\n'
25651 as_echo_n='printf %s'
25653 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25654 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25655 as_echo_n='/usr/ucb/echo -n'
25657 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25658 as_echo_n_body='eval
25662 expr "X$arg" : "X\\(.*\\)$as_nl";
25663 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25665 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25667 export as_echo_n_body
25668 as_echo_n='sh -c $as_echo_n_body as_echo'
25670 export as_echo_body
25671 as_echo='sh -c $as_echo_body as_echo'
25674 # The user is always right.
25675 if test "${PATH_SEPARATOR+set}" != set; then
25677 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25678 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25685 # We need space, tab and new line, in precisely that order. Quoting is
25686 # there to prevent editors from complaining about space-tab.
25687 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25688 # splitting by setting IFS to empty value.)
25691 # Find who we are. Look in the path if we contain no directory separator.
25693 *[\\/]* ) as_myself=$0 ;;
25694 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25695 for as_dir in $PATH
25698 test -z "$as_dir" && as_dir=.
25699 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25705 # We did not find ourselves, most probably we were run as `sh COMMAND'
25706 # in which case we are not to be found in the path.
25707 if test "x$as_myself" = x; then
25710 if test ! -f "$as_myself"; then
25711 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25715 # Unset variables that we do not need and which cause bugs (e.g. in
25716 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25717 # suppresses any "Segmentation fault" message there. '((' could
25718 # trigger a bug in pdksh 5.2.14.
25719 for as_var in BASH_ENV ENV MAIL MAILPATH
25720 do eval test x\${$as_var+set} = xset \
25721 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25737 # as_fn_error ERROR [LINENO LOG_FD]
25738 # ---------------------------------
25739 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25740 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25741 # script with status $?, using 1 if that was 0.
25744 as_status=$?; test $as_status -eq 0 && as_status=1
25746 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25747 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25749 $as_echo "$as_me: error: $1" >&2
25750 as_fn_exit $as_status
25754 # as_fn_set_status STATUS
25755 # -----------------------
25756 # Set $? to STATUS, without forking.
25757 as_fn_set_status ()
25760 } # as_fn_set_status
25762 # as_fn_exit STATUS
25763 # -----------------
25764 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25768 as_fn_set_status $1
25774 # Portably unset VAR.
25777 { eval $1=; unset $1;}
25779 as_unset=as_fn_unset
25780 # as_fn_append VAR VALUE
25781 # ----------------------
25782 # Append the text in VALUE to the end of the definition contained in VAR. Take
25783 # advantage of any shell optimizations that allow amortized linear growth over
25784 # repeated appends, instead of the typical quadratic growth present in naive
25786 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25787 eval 'as_fn_append ()
25798 # as_fn_arith ARG...
25799 # ------------------
25800 # Perform arithmetic evaluation on the ARGs, and store the result in the
25801 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25802 # must be portable across $(()) and expr.
25803 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25804 eval 'as_fn_arith ()
25811 as_val=`expr "$@" || test $? -eq 1`
25816 if expr a : '\(a\)' >/dev/null 2>&1 &&
25817 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25823 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25824 as_basename=basename
25829 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25835 as_me=`$as_basename -- "$0" ||
25836 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25837 X"$0" : 'X\(//\)$' \| \
25838 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25840 sed '/^.*\/\([^/][^/]*\)\/*$/{
25854 # Avoid depending upon Character Ranges.
25855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25858 as_cr_digits='0123456789'
25859 as_cr_alnum=$as_cr_Letters$as_cr_digits
25861 ECHO_C= ECHO_N= ECHO_T=
25862 case `echo -n x` in #(((((
25864 case `echo 'xy\c'` in
25865 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25867 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25874 rm -f conf$$ conf$$.exe conf$$.file
25875 if test -d conf$$.dir; then
25876 rm -f conf$$.dir/conf$$.file
25879 mkdir conf$$.dir 2>/dev/null
25881 if (echo >conf$$.file) 2>/dev/null; then
25882 if ln -s conf$$.file conf$$ 2>/dev/null; then
25884 # ... but there are two gotchas:
25885 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25886 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25887 # In both cases, we have to default to `cp -p'.
25888 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25890 elif ln conf$$.file conf$$ 2>/dev/null; then
25898 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25899 rmdir conf$$.dir 2>/dev/null
25904 # Create "$as_dir" as a directory, including parents if necessary.
25909 -*) as_dir=./$as_dir;;
25911 test -d "$as_dir" || eval $as_mkdir_p || {
25915 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25916 *) as_qdir=$as_dir;;
25918 as_dirs="'$as_qdir' $as_dirs"
25919 as_dir=`$as_dirname -- "$as_dir" ||
25920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25921 X"$as_dir" : 'X\(//\)[^/]' \| \
25922 X"$as_dir" : 'X\(//\)$' \| \
25923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25924 $as_echo X"$as_dir" |
25925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25929 /^X\(\/\/\)[^/].*/{
25942 test -d "$as_dir" && break
25944 test -z "$as_dirs" || eval "mkdir $as_dirs"
25945 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25949 if mkdir -p . 2>/dev/null; then
25950 as_mkdir_p='mkdir -p "$as_dir"'
25952 test -d ./-p && rmdir ./-p
25956 if test -x / >/dev/null 2>&1; then
25957 as_test_x='test -x'
25959 if ls -dL / >/dev/null 2>&1; then
25966 if test -d "$1"; then
25972 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25973 ???[sx]*):;;*)false;;esac;fi
25977 as_executable_p=$as_test_x
25979 # Sed expression to map a string onto a valid CPP name.
25980 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25982 # Sed expression to map a string onto a valid variable name.
25983 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25987 ## ----------------------------------- ##
25988 ## Main body of $CONFIG_STATUS script. ##
25989 ## ----------------------------------- ##
25991 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25994 # Save the log message, to keep $0 and so on meaningful, and to
25995 # report actual input values of CONFIG_FILES etc. instead of their
25996 # values after options handling.
25998 This file was extended by $as_me, which was
25999 generated by GNU Autoconf 2.64. Invocation command line was
26001 CONFIG_FILES = $CONFIG_FILES
26002 CONFIG_HEADERS = $CONFIG_HEADERS
26003 CONFIG_LINKS = $CONFIG_LINKS
26004 CONFIG_COMMANDS = $CONFIG_COMMANDS
26007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26012 case $ac_config_files in *"
26013 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26016 case $ac_config_headers in *"
26017 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26022 # Files that config.status was made for.
26023 config_files="$ac_config_files"
26024 config_headers="$ac_config_headers"
26025 config_commands="$ac_config_commands"
26029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26031 \`$as_me' instantiates files and other configuration actions
26032 from templates according to the current configuration. Unless the files
26033 and actions are specified as TAGs, all are instantiated by default.
26035 Usage: $0 [OPTION]... [TAG]...
26037 -h, --help print this help, then exit
26038 -V, --version print version number and configuration settings, then exit
26039 -q, --quiet, --silent
26040 do not print progress messages
26041 -d, --debug don't remove temporary files
26042 --recheck update $as_me by reconfiguring in the same conditions
26043 --file=FILE[:TEMPLATE]
26044 instantiate the configuration file FILE
26045 --header=FILE[:TEMPLATE]
26046 instantiate the configuration header FILE
26048 Configuration files:
26051 Configuration headers:
26054 Configuration commands:
26057 Report bugs to the package provider."
26060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26063 configured by $0, generated by GNU Autoconf 2.64,
26064 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26066 Copyright (C) 2009 Free Software Foundation, Inc.
26067 This config.status script is free software; the Free Software Foundation
26068 gives unlimited permission to copy, distribute and modify it."
26073 test -n "\$AWK" || AWK=awk
26076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26077 # The default lists apply if the user does not specify any file.
26083 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26084 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26095 # Handling of the options.
26096 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26098 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26099 $as_echo "$ac_cs_version"; exit ;;
26100 --debug | --debu | --deb | --de | --d | -d )
26102 --file | --fil | --fi | --f )
26105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26107 as_fn_append CONFIG_FILES " '$ac_optarg'"
26108 ac_need_defaults=false;;
26109 --header | --heade | --head | --hea )
26112 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26114 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26115 ac_need_defaults=false;;
26117 # Conflict between --help and --header
26118 as_fn_error "ambiguous option: \`$1'
26119 Try \`$0 --help' for more information.";;
26120 --help | --hel | -h )
26121 $as_echo "$ac_cs_usage"; exit ;;
26122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26123 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26126 # This is an error.
26127 -*) as_fn_error "unrecognized option: \`$1'
26128 Try \`$0 --help' for more information." ;;
26130 *) as_fn_append ac_config_targets " $1"
26131 ac_need_defaults=false ;;
26137 ac_configure_extra_args=
26139 if $ac_cs_silent; then
26141 ac_configure_extra_args="$ac_configure_extra_args --silent"
26145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26146 if \$ac_cs_recheck; then
26147 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26149 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26150 CONFIG_SHELL='$SHELL'
26151 export CONFIG_SHELL
26156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26160 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26161 ## Running $as_me. ##
26167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26177 # Handling of arguments.
26178 for ac_config_target in $ac_config_targets
26180 case $ac_config_target in
26181 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26182 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26183 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26184 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26185 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26186 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26188 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26193 # If the user did not use the arguments to specify the items to instantiate,
26194 # then the envvar interface is used. Set only those that are not.
26195 # We use the long form for the default assignment because of an extremely
26196 # bizarre bug on SunOS 4.1.3.
26197 if $ac_need_defaults; then
26198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26199 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26200 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26203 # Have a temporary directory for convenience. Make it in the build tree
26204 # simply because there is no reason against having it here, and in addition,
26205 # creating and moving files from /tmp can sometimes cause problems.
26206 # Hook for its removal unless debugging.
26207 # Note that there is a small window in which the directory will not be cleaned:
26208 # after its creation but before its name has been assigned to `$tmp'.
26212 trap 'exit_status=$?
26213 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26215 trap 'as_fn_exit 1' 1 2 13 15
26217 # Create a (secure) tmp directory for tmp files.
26220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26221 test -n "$tmp" && test -d "$tmp"
26224 tmp=./conf$$-$RANDOM
26225 (umask 077 && mkdir "$tmp")
26226 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26228 # Set up the scripts for CONFIG_FILES section.
26229 # No need to generate them if there are no CONFIG_FILES.
26230 # This happens for instance with `./config.status config.h'.
26231 if test -n "$CONFIG_FILES"; then
26233 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26234 ac_cs_awk_getline=:
26235 ac_cs_awk_pipe_init=
26236 ac_cs_awk_read_file='
26237 while ((getline aline < (F[key])) > 0)
26240 ac_cs_awk_pipe_fini=
26242 ac_cs_awk_getline=false
26243 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26244 ac_cs_awk_read_file='
26246 print "cat " F[key] " &&"
26247 '$ac_cs_awk_pipe_init
26248 # The final `:' finishes the AND list.
26249 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26251 ac_cr=`echo X | tr X '\015'`
26252 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26253 # But we know of no other shell where ac_cr would be empty at this
26254 # point, so we can use a bashism as a fallback.
26255 if test "x$ac_cr" = x; then
26256 eval ac_cr=\$\'\\r\'
26258 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26259 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26262 ac_cs_awk_cr=$ac_cr
26265 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26268 # Create commands to substitute file output variables.
26270 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26271 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26272 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26275 } >conf$$files.sh &&
26276 . ./conf$$files.sh ||
26277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26278 rm -f conf$$files.sh
26281 echo "cat >conf$$subs.awk <<_ACEOF" &&
26282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26284 } >conf$$subs.sh ||
26285 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26288 for ac_last_try in false false false false false :; do
26289 . ./conf$$subs.sh ||
26290 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26293 if test $ac_delim_n = $ac_delim_num; then
26295 elif $ac_last_try; then
26296 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26301 rm -f conf$$subs.sh
26303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26304 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26308 s/^/S["/; s/!.*/"]=/
26318 s/\(.\{148\}\).*/\1/
26320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26332 s/\(.\{148\}\).*/\1/
26334 s/["\\]/\\&/g; s/^/"/; s/$/"/
26338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26343 ' <conf$$subs.awk | sed '
26348 ' >>$CONFIG_STATUS || ac_write_fail=1
26349 rm -f conf$$subs.awk
26350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26352 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26353 for (key in S) S_is_set[key] = 1
26355 \$ac_cs_awk_pipe_init
26359 nfields = split(line, field, "@")
26361 len = length(field[1])
26362 for (i = 2; i < nfields; i++) {
26364 keylen = length(key)
26365 if (S_is_set[key]) {
26367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26368 len += length(value) + length(field[++i])
26373 if (nfields == 3 && !substed) {
26375 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26376 \$ac_cs_awk_read_file
26382 \$ac_cs_awk_pipe_fini
26385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26386 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26387 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26390 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26391 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26396 # trailing colons and then remove the whole line if VPATH becomes empty
26397 # (actually we leave an empty line to preserve line numbers).
26398 if test "x$srcdir" = x.; then
26399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26400 s/:*\$(srcdir):*/:/
26401 s/:*\${srcdir}:*/:/
26403 s/^\([^=]*=[ ]*\):*/\1/
26409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26410 fi # test -n "$CONFIG_FILES"
26412 # Set up the scripts for CONFIG_HEADERS section.
26413 # No need to generate them if there are no CONFIG_HEADERS.
26414 # This happens for instance with `./config.status Makefile'.
26415 if test -n "$CONFIG_HEADERS"; then
26416 cat >"$tmp/defines.awk" <<\_ACAWK ||
26420 # Transform confdefs.h into an awk script `defines.awk', embedded as
26421 # here-document in config.status, that substitutes the proper values into
26422 # config.h.in to produce config.h.
26424 # Create a delimiter string that does not exist in confdefs.h, to ease
26425 # handling of long lines.
26427 for ac_last_try in false false :; do
26428 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26429 if test -z "$ac_t"; then
26431 elif $ac_last_try; then
26432 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26438 # For the awk script, D is an array of macro values keyed by name,
26439 # likewise P contains macro parameters if any. Preserve backslash
26440 # newline sequences.
26442 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26444 s/.\{148\}/&'"$ac_delim"'/g
26447 s/^[ ]*#[ ]*define[ ][ ]*/ /
26454 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26456 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26461 D["\1"]=" \3\\\\\\n"\\/p
26463 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26468 s/.\{148\}/&'"$ac_delim"'/g
26473 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26476 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26478 ' <confdefs.h | sed '
26479 s/'"$ac_delim"'/"\\\
26480 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26483 for (key in D) D_is_set[key] = 1
26486 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26488 split(line, arg, " ")
26489 if (arg[1] == "#") {
26493 defundef = substr(arg[1], 2)
26496 split(mac1, mac2, "(") #)
26498 prefix = substr(line, 1, index(line, defundef) - 1)
26499 if (D_is_set[macro]) {
26500 # Preserve the white space surrounding the "#".
26501 print prefix "define", macro P[macro] D[macro]
26504 # Replace #undef with comments. This is necessary, for example,
26505 # in the case of _POSIX_SOURCE, which is predefined and required
26506 # on some systems where configure will not decide to define it.
26507 if (defundef == "undef") {
26508 print "/*", prefix defundef, macro, "*/"
26516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26517 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26518 fi # test -n "$CONFIG_HEADERS"
26521 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26526 :[FHLC]) ac_mode=$ac_tag; continue;;
26528 case $ac_mode$ac_tag in
26530 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26531 :[FH]-) ac_tag=-:-;;
26532 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26549 -) ac_f="$tmp/stdin";;
26550 *) # Look for the file first in the build tree, then in the source tree
26551 # (if the path is not absolute). The absolute path cannot be DOS-style,
26552 # because $ac_f cannot contain `:'.
26556 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26558 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26560 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26561 as_fn_append ac_file_inputs " '$ac_f'"
26564 # Let's still pretend it is `configure' which instantiates (i.e., don't
26565 # use $as_me), people would be surprised to read:
26566 # /* config.h. Generated by config.status. */
26567 configure_input='Generated from '`
26568 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26570 if test x"$ac_file" != x-; then
26571 configure_input="$ac_file. $configure_input"
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26573 $as_echo "$as_me: creating $ac_file" >&6;}
26575 # Neutralize special characters interpreted by sed in replacement strings.
26576 case $configure_input in #(
26577 *\&* | *\|* | *\\* )
26578 ac_sed_conf_input=`$as_echo "$configure_input" |
26579 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26580 *) ac_sed_conf_input=$configure_input;;
26584 *:-:* | *:-) cat >"$tmp/stdin" \
26585 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26590 ac_dir=`$as_dirname -- "$ac_file" ||
26591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26592 X"$ac_file" : 'X\(//\)[^/]' \| \
26593 X"$ac_file" : 'X\(//\)$' \| \
26594 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26595 $as_echo X"$ac_file" |
26596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26600 /^X\(\/\/\)[^/].*/{
26613 as_dir="$ac_dir"; as_fn_mkdir_p
26617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26620 # A ".." for each directory in $ac_dir_suffix.
26621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26622 case $ac_top_builddir_sub in
26623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26627 ac_abs_top_builddir=$ac_pwd
26628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26629 # for backward compatibility:
26630 ac_top_builddir=$ac_top_build_prefix
26633 .) # We are building in place.
26635 ac_top_srcdir=$ac_top_builddir_sub
26636 ac_abs_top_srcdir=$ac_pwd ;;
26637 [\\/]* | ?:[\\/]* ) # Absolute name.
26638 ac_srcdir=$srcdir$ac_dir_suffix;
26639 ac_top_srcdir=$srcdir
26640 ac_abs_top_srcdir=$srcdir ;;
26641 *) # Relative name.
26642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26643 ac_top_srcdir=$ac_top_build_prefix$srcdir
26644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26658 # If the template does not know about datarootdir, expand it.
26659 # FIXME: This hack should be removed a few years after 2.60.
26660 ac_datarootdir_hack=; ac_datarootdir_seen=
26671 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26672 *datarootdir*) ac_datarootdir_seen=yes;;
26673 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26675 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26678 ac_datarootdir_hack='
26679 s&@datadir@&$datadir&g
26680 s&@docdir@&$docdir&g
26681 s&@infodir@&$infodir&g
26682 s&@localedir@&$localedir&g
26683 s&@mandir@&$mandir&g
26684 s&\\\${datarootdir}&$datarootdir&g' ;;
26688 # Neutralize VPATH when `$srcdir' = `.'.
26689 # Shell code in configure.ac might set extrasub.
26690 # FIXME: do we really want to maintain this feature?
26691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26692 ac_sed_extra="$ac_vpsub
26695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26698 s|@configure_input@|$ac_sed_conf_input|;t t
26699 s&@top_builddir@&$ac_top_builddir_sub&;t t
26700 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26701 s&@srcdir@&$ac_srcdir&;t t
26702 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26703 s&@top_srcdir@&$ac_top_srcdir&;t t
26704 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26705 s&@builddir@&$ac_builddir&;t t
26706 s&@abs_builddir@&$ac_abs_builddir&;t t
26707 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26708 $ac_datarootdir_hack
26710 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26711 if $ac_cs_awk_getline; then
26712 $AWK -f "$tmp/subs.awk"
26714 $AWK -f "$tmp/subs.awk" | $SHELL
26716 || as_fn_error "could not create $ac_file" "$LINENO" 5
26718 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26719 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26720 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26722 which seems to be undefined. Please make sure it is defined." >&5
26723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26724 which seems to be undefined. Please make sure it is defined." >&2;}
26728 -) cat "$tmp/out" && rm -f "$tmp/out";;
26729 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26731 || as_fn_error "could not create $ac_file" "$LINENO" 5
26737 if test x"$ac_file" != x-; then
26739 $as_echo "/* $configure_input */" \
26740 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26741 } >"$tmp/config.h" \
26742 || as_fn_error "could not create $ac_file" "$LINENO" 5
26743 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26745 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26748 mv "$tmp/config.h" "$ac_file" \
26749 || as_fn_error "could not create $ac_file" "$LINENO" 5
26752 $as_echo "/* $configure_input */" \
26753 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26754 || as_fn_error "could not create -" "$LINENO" 5
26758 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26759 $as_echo "$as_me: executing $ac_file commands" >&6;}
26764 case $ac_file$ac_mode in
26765 "as":F) chmod +x as ;;
26766 "collect-ld":F) chmod +x collect-ld ;;
26767 "nm":F) chmod +x nm ;;
26769 case ${CONFIG_HEADERS} in
26770 *auto-host.h:config.in*)
26773 # Make sure all the subdirs exist.
26774 for d in $subdirs doc build
26776 test -d $d || mkdir $d
26786 ac_clean_files=$ac_clean_files_save
26788 test $ac_write_fail = 0 ||
26789 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26792 # configure is writing to config.log, and then calls config.status.
26793 # config.status does its own redirection, appending to config.log.
26794 # Unfortunately, on DOS this fails, as config.log is still kept open
26795 # by configure, so config.status won't be able to write to it; its
26796 # output is simply discarded. So we exec the FD to /dev/null,
26797 # effectively closing config.log, so it can be properly (re)opened and
26798 # appended to by config.status. When coming back to configure, we
26799 # need to make the FD available again.
26800 if test "$no_create" != yes; then
26802 ac_config_status_args=
26803 test "$silent" = yes &&
26804 ac_config_status_args="$ac_config_status_args --quiet"
26806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26809 # would make configure fail if this is the last instruction.
26810 $ac_cs_success || as_fn_exit $?
26812 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26814 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}