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
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
767 ENABLE_BUILD_WITH_CXX
770 valgrind_path_defines
842 program_transform_name
853 ac_subst_files='language_hooks'
855 enable_option_checking
860 enable_generated_files_in_srcdir
869 enable_gather_detailed_mem_stats
870 enable_build_with_cxx
890 enable_initfini_array
891 enable_sjlj_exceptions
892 with_system_libunwind
895 enable_win32_registry
901 enable_gnu_unique_object
902 enable_linker_build_id
906 enable_maintainer_mode
907 enable_version_specific_runtime_libs
911 ac_precious_vars='build_alias
934 # Initialize some variables set by options.
936 ac_init_version=false
937 ac_unrecognized_opts=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
948 program_transform_name=s,x,x,
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE}'
973 infodir='${datarootdir}/info'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 # Accept the important Cygnus configure options, so we can diagnose typos.
1000 case $ac_dashdash$ac_option in
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1024 -datadir | --datadir | --datadi | --datad)
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1240 -site=* | --site=* | --sit=*)
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=\$ac_optarg ;;
1282 -without-* | --without-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=no ;;
1299 # Obsolete; use --with-x.
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1316 -*) as_fn_error "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information."
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 case $ac_envvar in #(
1324 '' | [0-9]* | *[!_$as_cr_alnum]* )
1325 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1331 # FIXME: should be removed in autoconf 3.0.
1332 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 as_fn_error "missing argument to $ac_option"
1346 if test -n "$ac_unrecognized_opts"; then
1347 case $enable_option_checking in
1349 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1350 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 # Check all directory arguments for consistency.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1367 # Be sure to have absolute directory names.
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1380 target=$target_alias
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 as_fn_error "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 as_fn_error "pwd does not report name of working directory"
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$as_myself" : 'X\(//\)[^/]' \| \
1414 X"$as_myself" : 'X\(//\)$' \| \
1415 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures this package to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 --target=TARGET configure for building compilers for TARGET [HOST]
1542 if test -n "$ac_init_help"; then
1547 --disable-option-checking ignore unrecognized --enable/--with options
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --enable-generated-files-in-srcdir
1551 put copies of generated files in source dir
1552 intended for creating source tarballs for users
1553 without texinfo bison or flex.
1554 --enable-werror-always enable -Werror despite compiler version
1555 --enable-checking=LIST
1556 enable expensive run-time checks. With LIST,
1557 enable only specific categories of checks.
1558 Categories are: yes,no,all,none,release.
1559 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1560 rtlflag,rtl,runtime,tree,valgrind,types.
1561 --enable-coverage=LEVEL
1562 enable compiler's code coverage collection.
1563 Use to measure compiler performance and locate
1564 unused parts of the compiler. With LEVEL, specify
1565 optimization. Values are opt, noopt,
1567 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1568 --enable-build-with-cxx build with C++ compiler instead of C compiler
1569 --enable-multilib enable library support for multiple ABIs
1570 --enable-__cxa_atexit enable __cxa_atexit for C++
1571 --enable-decimal-float={no,yes,bid,dpd}
1572 enable decimal float extension to C. Selecting 'bid'
1573 or 'dpd' choses which decimal floating point format
1575 --enable-fixed-point enable fixed-point arithmetic extension to C
1576 --enable-threads enable thread usage for target GCC
1577 --enable-threads=LIB use LIB thread package for target GCC
1578 --enable-tls enable or disable generation of tls code
1579 overriding the assembler check for tls support
1580 --enable-objc-gc enable the use of Boehm's garbage collector with
1581 the GNU Objective-C runtime
1582 --disable-shared don't provide a shared libgcc
1583 --enable-intermodule build the compiler in one step
1584 --enable-languages=LIST specify which front-ends to build
1585 --disable-rpath do not hardcode runtime library paths
1586 --enable-initfini-array use .init_array/.fini_array sections
1587 --enable-sjlj-exceptions
1588 arrange to use setjmp/longjmp exception handling
1589 --enable-secureplt enable -msecure-plt by default for PowerPC
1590 --enable-cld enable -mcld by default for 32bit x86
1591 --disable-win32-registry
1592 disable lookup of installation paths in the
1593 Registry on Windows hosts
1594 --enable-win32-registry enable registry lookup (default)
1595 --enable-win32-registry=KEY
1596 use KEY instead of GCC version as the last portion
1598 --enable-shared[=PKGS] build shared libraries [default=yes]
1599 --enable-static[=PKGS] build static libraries [default=yes]
1600 --enable-fast-install[=PKGS]
1601 optimize for fast installation [default=yes]
1602 --disable-libtool-lock avoid locking (might break parallel builds)
1603 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1605 --enable-linker-build-id
1606 compiler will always pass --build-id to linker
1607 --enable-maintainer-mode
1608 enable make rules and dependencies not useful
1609 (and sometimes confusing) to the casual installer
1610 --enable-version-specific-runtime-libs
1611 specify that runtime libraries should be
1612 installed in a compiler-specific directory
1613 --enable-plugin enable plugin support
1616 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1617 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1618 --with-build-libsubdir=DIR Directory where to find libraries for build system
1619 --with-local-prefix=DIR specifies directory to put local include
1620 --with-gxx-include-dir=DIR
1621 specifies directory to put g++ header files
1622 --with-cpp-install-dir=DIR
1623 install the user visible C preprocessor in DIR
1624 (relative to PREFIX) as well as PREFIX/bin
1625 --with-gnu-ld arrange to work with GNU ld.
1626 --with-ld arrange to use the specified ld (full pathname)
1627 --with-demangler-in-ld try to use demangler in GNU ld.
1628 --with-gnu-as arrange to work with GNU as
1629 --with-as arrange to use the specified as (full pathname)
1630 --with-stabs arrange to use stabs instead of host debug format
1631 --with-dwarf2 force the default debug format to be DWARF 2
1632 --with-build-sysroot=sysroot
1633 use sysroot as the system root during the build
1634 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1635 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1636 --with-bugurl=URL Direct users to URL to report a bug
1637 --with-multilib-list Select multilibs (SH only)
1638 --with-gnu-ld assume the C compiler uses GNU ld default=no
1639 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1640 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1641 --with-system-libunwind use installed libunwind
1642 --with-pic try to use only PIC/non-PIC objects [default=use
1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 --with-plugin-ld=[ARG] specify the plugin linker
1646 --with-long-double-128 Use 128-bit long double by default.
1647 --with-gc={page,zone} choose the garbage collection mechanism to use
1649 --with-system-zlib use installed libz
1650 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1652 Some influential environment variables:
1653 CC C compiler command
1654 CFLAGS C compiler flags
1655 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1656 nonstandard directory <lib dir>
1657 LIBS libraries to pass to the linker, e.g. -l<library>
1658 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1659 you have headers in a nonstandard directory <include dir>
1660 CXX C++ compiler command
1661 CXXFLAGS C++ compiler flags
1663 CXXCPP C++ preprocessor
1664 GMPLIBS How to link GMP
1665 GMPINC How to find GMP include files
1666 PPLLIBS How to link PPL
1667 PPLINC How to find PPL include files
1668 CLOOGLIBS How to link CLOOG
1669 CLOOGINC How to find CLOOG include files
1670 LIBELFLIBS How to link libelf
1671 LIBELFINC How to find libelf include files
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1676 Report bugs to the package provider.
1681 if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1706 .) # We are building in place.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1728 $SHELL "$ac_srcdir/configure" --help=recursive
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732 cd "$ac_pwd" || { ac_status=$?; break; }
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1740 generated by GNU Autoconf 2.64
1742 Copyright (C) 2009 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1753 # ac_fn_c_try_compile LINENO
1754 # --------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 } # ac_fn_c_try_compile
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 } # ac_fn_cxx_try_compile
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_cpp conftest.$ac_ext"
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } >/dev/null && {
1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1871 ac_fn_c_check_header_mongrel ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1895 ac_header_compiler=no
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1908 if ac_fn_c_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1911 ac_header_preproc=no
1913 rm -f conftest.err conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1943 eval "$3=\$ac_header_compiler"
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_c_check_header_mongrel
1953 # ac_fn_c_try_run LINENO
1954 # ----------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1956 # that executables *can* be run.
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { { ac_try="$ac_link"
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_link") 2>&5
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1971 { { case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_try") 2>&5
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; }; }; then :
1983 $as_echo "$as_me: program exited with status $ac_status" >&5
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1987 ac_retval=$ac_status
1989 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists and can be compiled using the include files in
1998 # INCLUDES, setting the cache variable VAR accordingly.
1999 ac_fn_c_check_header_compile ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2012 if ac_fn_c_try_compile "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024 } # ac_fn_c_check_header_compile
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 ac_fn_c_compute_int ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 if test "$cross_compiling" = yes; then
2035 # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2049 if ac_fn_c_try_compile "$LINENO"; then :
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_hi=$ac_mid; break
2068 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2069 if test $ac_lo -le $ac_mid; then
2073 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) < 0)];
2091 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=$ac_mid; break
2110 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2111 if test $ac_mid -le $ac_hi; then
2115 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 # Binary search between lo and hi bounds.
2126 while test "x$ac_lo" != "x$ac_hi"; do
2127 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 if ac_fn_c_try_compile "$LINENO"; then :
2144 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2156 static long int longval () { return $2; }
2157 static unsigned long int ulongval () { return $2; }
2164 FILE *f = fopen ("conftest.val", "w");
2169 long int i = longval ();
2172 fprintf (f, "%ld", i);
2176 unsigned long int i = ulongval ();
2179 fprintf (f, "%lu", i);
2181 /* Do not output a trailing newline, as this causes \r\n confusion
2182 on some platforms. */
2183 return ferror (f) || fclose (f) != 0;
2189 if ac_fn_c_try_run "$LINENO"; then :
2190 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2195 conftest.$ac_objext conftest.beam conftest.$ac_ext
2199 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 } # ac_fn_c_compute_int
2204 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2205 # -------------------------------------------
2206 # Tests whether TYPE exists after having included INCLUDES, setting cache
2207 # variable VAR accordingly.
2208 ac_fn_c_check_type ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2214 $as_echo_n "(cached) " >&6
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 } # ac_fn_c_check_type
2258 # ac_fn_c_find_intX_t LINENO BITS VAR
2259 # -----------------------------------
2260 # Finds a signed integer type with width BITS, setting cache variable VAR
2262 ac_fn_c_find_intX_t ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2266 $as_echo_n "checking for int$2_t... " >&6; }
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 $as_echo_n "(cached) " >&6
2271 for ac_type in int$2_t 'int' 'long int' \
2272 'long long int' 'short int' 'signed char'; do
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 $ac_includes_default
2279 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 $ac_includes_default
2293 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2294 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2308 eval "$3=\$ac_type" ;;
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 if test "x$as_val" = x""no; then :
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2327 } # ac_fn_c_find_intX_t
2329 # ac_fn_c_try_link LINENO
2330 # -----------------------
2331 # Try to link conftest.$ac_ext, and return whether this succeeded.
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 rm -f conftest.$ac_objext conftest$ac_exeext
2336 if { { ac_try="$ac_link"
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342 $as_echo "$ac_try_echo"; } >&5
2343 (eval "$ac_link") 2>conftest.err
2345 if test -s conftest.err; then
2346 grep -v '^ *+' conftest.err >conftest.er1
2347 cat conftest.er1 >&5
2348 mv -f conftest.er1 conftest.err
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; } && {
2352 test -z "$ac_c_werror_flag" ||
2353 test ! -s conftest.err
2354 } && test -s conftest$ac_exeext && {
2355 test "$cross_compiling" = yes ||
2356 $as_test_x conftest$ac_exeext
2360 $as_echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2365 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2366 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2367 # interfere with the next link command; also delete a directory that is
2368 # left behind by Apple's compiler. We do this before executing the actions.
2369 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 } # ac_fn_c_try_link
2375 # ac_fn_c_find_uintX_t LINENO BITS VAR
2376 # ------------------------------------
2377 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2379 ac_fn_c_find_uintX_t ()
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2383 $as_echo_n "checking for uint$2_t... " >&6; }
2384 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2385 $as_echo_n "(cached) " >&6
2388 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2389 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2392 $ac_includes_default
2396 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2403 if ac_fn_c_try_compile "$LINENO"; then :
2408 eval "$3=\$ac_type" ;;
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 if test "x$as_val" = x""no; then :
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425 } # ac_fn_c_find_uintX_t
2427 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2428 # ----------------------------------------------
2429 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2430 ac_fn_c_check_header_preproc ()
2432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2436 $as_echo_n "(cached) " >&6
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2442 if ac_fn_c_try_cpp "$LINENO"; then :
2447 rm -f conftest.err conftest.$ac_ext
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_check_header_preproc
2456 # ac_fn_c_check_func LINENO FUNC VAR
2457 # ----------------------------------
2458 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2459 ac_fn_c_check_func ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2471 #define $2 innocuous_$2
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char $2 (); below.
2475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476 <limits.h> exists even on freestanding compilers. */
2479 # include <limits.h>
2481 # include <assert.h>
2486 /* Override any GCC internal prototype to avoid an error.
2487 Use char because int might match the return type of a GCC
2488 builtin and then its argument prototype would still apply. */
2493 /* The GNU C library defines this for functions which it implements
2494 to always fail with ENOSYS. Some functions are actually named
2495 something starting with __ and the normal name is an alias. */
2496 #if defined __stub_$2 || defined __stub___$2
2508 if ac_fn_c_try_link "$LINENO"; then :
2513 rm -f core conftest.err conftest.$ac_objext \
2514 conftest$ac_exeext conftest.$ac_ext
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2521 } # ac_fn_c_check_func
2523 # ac_fn_cxx_try_cpp LINENO
2524 # ------------------------
2525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_cpp ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 if { { ac_try="$ac_cpp conftest.$ac_ext"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2538 if test -s conftest.err; then
2539 grep -v '^ *+' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 mv -f conftest.er1 conftest.err
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; } >/dev/null && {
2545 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2546 test ! -s conftest.err
2550 $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558 } # ac_fn_cxx_try_cpp
2560 # ac_fn_cxx_try_link LINENO
2561 # -------------------------
2562 # Try to link conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_cxx_try_link ()
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 rm -f conftest.$ac_objext conftest$ac_exeext
2567 if { { ac_try="$ac_link"
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_link") 2>conftest.err
2576 if test -s conftest.err; then
2577 grep -v '^ *+' conftest.err >conftest.er1
2578 cat conftest.er1 >&5
2579 mv -f conftest.er1 conftest.err
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && {
2583 test -z "$ac_cxx_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest$ac_exeext && {
2586 test "$cross_compiling" = yes ||
2587 $as_test_x conftest$ac_exeext
2591 $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2598 # interfere with the next link command; also delete a directory that is
2599 # left behind by Apple's compiler. We do this before executing the actions.
2600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2601 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2604 } # ac_fn_cxx_try_link
2605 cat >config.log <<_ACEOF
2606 This file contains any messages produced by compilers while
2607 running configure, to aid debugging if configure makes a mistake.
2609 It was created by $as_me, which was
2610 generated by GNU Autoconf 2.64. Invocation command line was
2622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2629 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2631 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2632 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2634 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2635 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2636 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2637 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 $as_echo "PATH: $as_dir"
2662 # Keep a trace of the command line.
2663 # Strip out --no-create and --no-recursion so they do not pile up.
2664 # Strip out --silent because we don't want to record it for future runs.
2665 # Also quote any args containing shell meta-characters.
2666 # Make two passes to allow for proper duplicate-argument suppression.
2670 ac_must_keep_next=false
2676 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2678 | -silent | --silent | --silen | --sile | --sil)
2681 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2684 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2686 as_fn_append ac_configure_args1 " '$ac_arg'"
2687 if test $ac_must_keep_next = true; then
2688 ac_must_keep_next=false # Got value, back to normal.
2691 *=* | --config-cache | -C | -disable-* | --disable-* \
2692 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2693 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2694 | -with-* | --with-* | -without-* | --without-* | --x)
2695 case "$ac_configure_args0 " in
2696 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2699 -* ) ac_must_keep_next=true ;;
2702 as_fn_append ac_configure_args " '$ac_arg'"
2707 { ac_configure_args0=; unset ac_configure_args0;}
2708 { ac_configure_args1=; unset ac_configure_args1;}
2710 # When interrupted or exit'd, cleanup temporary files, and complete
2711 # config.log. We remove comments because anyway the quotes in there
2712 # would cause problems or look ugly.
2713 # WARNING: Use '\'' to represent an apostrophe within the trap.
2714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2715 trap 'exit_status=$?
2716 # Save into config.log some information that might help in debugging.
2721 ## ---------------- ##
2722 ## Cache variables. ##
2723 ## ---------------- ##
2726 # The following way of writing the cache mishandles newlines in values,
2728 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2729 eval ac_val=\$$ac_var
2733 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2734 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2737 _ | IFS | as_nl) ;; #(
2738 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2739 *) { eval $ac_var=; unset $ac_var;} ;;
2744 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2745 *${as_nl}ac_space=\ *)
2747 "s/'\''/'\''\\\\'\'''\''/g;
2748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2759 ## ----------------- ##
2760 ## Output variables. ##
2761 ## ----------------- ##
2764 for ac_var in $ac_subst_vars
2766 eval ac_val=\$$ac_var
2768 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2770 $as_echo "$ac_var='\''$ac_val'\''"
2774 if test -n "$ac_subst_files"; then
2776 ## ------------------- ##
2777 ## File substitutions. ##
2778 ## ------------------- ##
2781 for ac_var in $ac_subst_files
2783 eval ac_val=\$$ac_var
2785 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2787 $as_echo "$ac_var='\''$ac_val'\''"
2792 if test -s confdefs.h; then
2802 test "$ac_signal" != 0 &&
2803 $as_echo "$as_me: caught signal $ac_signal"
2804 $as_echo "$as_me: exit $exit_status"
2806 rm -f core *.core core.conftest.* &&
2807 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2810 for ac_signal in 1 2 13 15; do
2811 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2816 rm -f -r conftest* confdefs.h
2818 $as_echo "/* confdefs.h */" > confdefs.h
2820 # Predefined preprocessor variables.
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_NAME "$PACKAGE_NAME"
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_STRING "$PACKAGE_STRING"
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_URL "$PACKAGE_URL"
2847 # Let the site file select an alternate cache file if it wants to.
2848 # Prefer an explicitly selected file to automatically selected ones.
2851 if test -n "$CONFIG_SITE"; then
2852 ac_site_file1=$CONFIG_SITE
2853 elif test "x$prefix" != xNONE; then
2854 ac_site_file1=$prefix/share/config.site
2855 ac_site_file2=$prefix/etc/config.site
2857 ac_site_file1=$ac_default_prefix/share/config.site
2858 ac_site_file2=$ac_default_prefix/etc/config.site
2860 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2862 test "x$ac_site_file" = xNONE && continue
2863 if test -r "$ac_site_file"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2865 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2866 sed 's/^/| /' "$ac_site_file" >&5
2871 if test -r "$cache_file"; then
2872 # Some versions of bash will fail to source /dev/null (special
2873 # files actually), so we avoid doing that.
2874 if test -f "$cache_file"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2876 $as_echo "$as_me: loading cache $cache_file" >&6;}
2878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2879 *) . "./$cache_file";;
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2884 $as_echo "$as_me: creating cache $cache_file" >&6;}
2888 # Check that the precious variables saved in the cache have kept the same
2890 ac_cache_corrupted=false
2891 for ac_var in $ac_precious_vars; do
2892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2893 eval ac_new_set=\$ac_env_${ac_var}_set
2894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2895 eval ac_new_val=\$ac_env_${ac_var}_value
2896 case $ac_old_set,$ac_new_set in
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2900 ac_cache_corrupted=: ;;
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2903 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2904 ac_cache_corrupted=: ;;
2907 if test "x$ac_old_val" != "x$ac_new_val"; then
2908 # differences in whitespace do not lead to failure.
2909 ac_old_val_w=`echo x $ac_old_val`
2910 ac_new_val_w=`echo x $ac_new_val`
2911 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2913 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2914 ac_cache_corrupted=:
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2917 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2918 eval $ac_var=\$ac_old_val
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2921 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2923 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2926 # Pass precious variables to config.status.
2927 if test "$ac_new_set" = set; then
2929 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2930 *) ac_arg=$ac_var=$ac_new_val ;;
2932 case " $ac_configure_args " in
2933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2934 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2938 if $ac_cache_corrupted; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2942 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2943 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2945 ## -------------------- ##
2946 ## Main body of script. ##
2947 ## -------------------- ##
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2963 gcc_version=`cat $srcdir/BASE-VER`
2965 # Determine the host, build, and target systems
2967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2968 for ac_t in install-sh install.sh shtool; do
2969 if test -f "$ac_dir/$ac_t"; then
2971 ac_install_sh="$ac_aux_dir/$ac_t -c"
2976 if test -z "$ac_aux_dir"; then
2977 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2980 # These three variables are undocumented and unsupported,
2981 # and are intended to be withdrawn in a future Autoconf release.
2982 # They can cause serious problems if a builder's source tree is in a directory
2983 # whose full name contains unusual characters.
2984 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2985 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2986 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2989 # Make sure we can run config.sub.
2990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2991 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2994 $as_echo_n "checking build system type... " >&6; }
2995 if test "${ac_cv_build+set}" = set; then :
2996 $as_echo_n "(cached) " >&6
2998 ac_build_alias=$build_alias
2999 test "x$ac_build_alias" = x &&
3000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3001 test "x$ac_build_alias" = x &&
3002 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3004 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3008 $as_echo "$ac_cv_build" >&6; }
3009 case $ac_cv_build in
3011 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3014 ac_save_IFS=$IFS; IFS='-'
3020 # Remember, the first character of IFS is used to create $*,
3021 # except with old shells:
3024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3028 $as_echo_n "checking host system type... " >&6; }
3029 if test "${ac_cv_host+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
3032 if test "x$host_alias" = x; then
3033 ac_cv_host=$ac_cv_build
3035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3036 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3041 $as_echo "$ac_cv_host" >&6; }
3044 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3047 ac_save_IFS=$IFS; IFS='-'
3053 # Remember, the first character of IFS is used to create $*,
3054 # except with old shells:
3057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3061 $as_echo_n "checking target system type... " >&6; }
3062 if test "${ac_cv_target+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3065 if test "x$target_alias" = x; then
3066 ac_cv_target=$ac_cv_host
3068 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3069 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3074 $as_echo "$ac_cv_target" >&6; }
3075 case $ac_cv_target in
3077 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3079 target=$ac_cv_target
3080 ac_save_IFS=$IFS; IFS='-'
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3090 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3093 # The aliases save the names the user supplied, while $host etc.
3094 # will get canonicalized.
3095 test -n "$target_alias" &&
3096 test "$program_prefix$program_suffix$program_transform_name" = \
3098 program_prefix=${target_alias}-
3100 # Determine the noncanonical target name, for directory use.
3101 case ${build_alias} in
3102 "") build_noncanonical=${build} ;;
3103 *) build_noncanonical=${build_alias} ;;
3106 case ${host_alias} in
3107 "") host_noncanonical=${build_noncanonical} ;;
3108 *) host_noncanonical=${host_alias} ;;
3111 case ${target_alias} in
3112 "") target_noncanonical=${host_noncanonical} ;;
3113 *) target_noncanonical=${target_alias} ;;
3119 # Determine the target- and build-specific subdirectories
3121 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3122 # have matching libraries, they should use host libraries: Makefile.tpl
3123 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3124 # However, they still use the build modules, because the corresponding
3125 # host modules (e.g. bison) are only built for the host when bootstrap
3127 # - build_subdir is where we find build modules, and never changes.
3128 # - build_libsubdir is where we find build libraries, and can be overridden.
3130 # Prefix 'build-' so this never conflicts with target_subdir.
3131 build_subdir="build-${build_noncanonical}"
3133 # Check whether --with-build-libsubdir was given.
3134 if test "${with_build_libsubdir+set}" = set; then :
3135 withval=$with_build_libsubdir; build_libsubdir="$withval"
3137 build_libsubdir="$build_subdir"
3140 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3141 if ( test $srcdir = . && test -d gcc ) \
3142 || test -d $srcdir/../host-${host_noncanonical}; then
3143 host_subdir="host-${host_noncanonical}"
3148 target_subdir=${target_noncanonical}
3151 # Set program_transform_name
3152 test "$program_prefix" != NONE &&
3153 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3157 # Double any \ or $.
3158 # By default was `s,x,x', remove it if useless.
3159 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3160 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3163 # Check for bogus environment variables.
3164 # Test if LIBRARY_PATH contains the notation for the current directory
3165 # since this would lead to problems installing/building glibc.
3166 # LIBRARY_PATH contains the current directory if one of the following
3168 # - one of the terminals (":" and ";") is the first or last sign
3169 # - two terminals occur directly after each other
3170 # - the path contains an element with a dot in it
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3172 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3173 case ${LIBRARY_PATH} in
3174 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3175 library_path_setting="contains current directory"
3178 library_path_setting="ok"
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3182 $as_echo "$library_path_setting" >&6; }
3183 if test "$library_path_setting" != "ok"; then
3185 *** LIBRARY_PATH shouldn't contain the current directory when
3186 *** building gcc. Please change the environment variable
3187 *** and run configure again." "$LINENO" 5
3190 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3191 # since this would lead to problems installing/building glibc.
3192 # GCC_EXEC_PREFIX contains the current directory if one of the following
3194 # - one of the terminals (":" and ";") is the first or last sign
3195 # - two terminals occur directly after each other
3196 # - the path contains an element with a dot in it
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3198 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3199 case ${GCC_EXEC_PREFIX} in
3200 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3201 gcc_exec_prefix_setting="contains current directory"
3204 gcc_exec_prefix_setting="ok"
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3208 $as_echo "$gcc_exec_prefix_setting" >&6; }
3209 if test "$gcc_exec_prefix_setting" != "ok"; then
3211 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3212 *** building gcc. Please change the environment variable
3213 *** and run configure again." "$LINENO" 5
3220 # Specify the local prefix
3223 # Check whether --with-local-prefix was given.
3224 if test "${with_local_prefix+set}" = set; then :
3225 withval=$with_local_prefix; case "${withval}" in
3226 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3228 *) local_prefix=$with_local_prefix ;;
3233 # Default local prefix if it is empty
3234 if test x$local_prefix = x; then
3235 local_prefix=/usr/local
3238 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3239 # passed in by the toplevel make and thus we'd get different behavior
3240 # depending on where we built the sources.
3241 gcc_gxx_include_dir=
3242 # Specify the g++ header file directory
3244 # Check whether --with-gxx-include-dir was given.
3245 if test "${with_gxx_include_dir+set}" = set; then :
3246 withval=$with_gxx_include_dir; case "${withval}" in
3247 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3249 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3254 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3255 if test x${gcc_gxx_include_dir} = x; then
3256 if test x${enable_version_specific_runtime_libs} = xyes; then
3257 gcc_gxx_include_dir='${libsubdir}/include/c++'
3259 libstdcxx_incdir='include/c++/$(version)'
3260 if test x$host != x$target; then
3261 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3263 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3268 # Check whether --with-cpp_install_dir was given.
3269 if test "${with_cpp_install_dir+set}" = set; then :
3270 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3271 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3272 elif test x$withval != xno; then
3273 cpp_install_dir=$withval
3278 # We would like to our source tree to be readonly. However when releases or
3279 # pre-releases are generated, the flex/bison generated files as well as the
3280 # various formats of manuals need to be included along with the rest of the
3281 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3285 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3286 # Check whether --enable-generated-files-in-srcdir was given.
3287 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3288 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3290 generated_files_in_srcdir=no
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3295 $as_echo "$generated_files_in_srcdir" >&6; }
3297 if test "$generated_files_in_srcdir" = "yes"; then
3304 # -------------------
3305 # Find default linker
3306 # -------------------
3310 # Check whether --with-gnu-ld was given.
3311 if test "${with_gnu_ld+set}" = set; then :
3312 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3318 # With pre-defined ld
3320 # Check whether --with-ld was given.
3321 if test "${with_ld+set}" = set; then :
3322 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3325 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3326 if test ! -x "$DEFAULT_LINKER"; then
3327 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3328 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3332 cat >>confdefs.h <<_ACEOF
3333 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3338 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3340 cat >>confdefs.h <<_ACEOF
3341 #define HAVE_GNU_LD $gnu_ld
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3346 $as_echo_n "checking whether a default linker was specified... " >&6; }
3347 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3348 if test x"$gnu_ld_flag" = x"no"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3350 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3353 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3360 # With demangler in GNU ld
3362 # Check whether --with-demangler-in-ld was given.
3363 if test "${with_demangler_in_ld+set}" = set; then :
3364 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3370 # ----------------------
3371 # Find default assembler
3372 # ----------------------
3376 # Check whether --with-gnu-as was given.
3377 if test "${with_gnu_as+set}" = set; then :
3378 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3385 # Check whether --with-as was given.
3386 if test "${with_as+set}" = set; then :
3387 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3390 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3391 if test ! -x "$DEFAULT_ASSEMBLER"; then
3392 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3393 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3397 cat >>confdefs.h <<_ACEOF
3398 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3403 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3405 cat >>confdefs.h <<_ACEOF
3406 #define HAVE_GNU_AS $gnu_as
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3411 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3412 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3413 if test x"$gas_flag" = x"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3415 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3418 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3429 # If a non-executable a.out is present (e.g. created by GNU as above even if
3430 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3431 # file, even when creating an executable, so an execution test fails.
3432 # Remove possible default executable files to avoid this.
3434 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3435 # Autoconf includes it.
3436 rm -f a.out a.exe b.out
3438 # Find the native compiler
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 if test -n "$ac_tool_prefix"; then
3445 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3446 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3452 if test -n "$CC"; then
3453 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 if test -n "$CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3483 if test -z "$ac_cv_prog_CC"; then
3485 # Extract the first word of "gcc", so it can be a program name with args.
3486 set dummy gcc; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3492 if test -n "$ac_ct_CC"; then
3493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3502 ac_cv_prog_ac_ct_CC="gcc"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3513 if test -n "$ac_ct_CC"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3515 $as_echo "$ac_ct_CC" >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3521 if test "x$ac_ct_CC" = x; then
3524 case $cross_compiling:$ac_tool_warned in
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528 ac_tool_warned=yes ;;
3536 if test -z "$CC"; then
3537 if test -n "$ac_tool_prefix"; then
3538 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3539 set dummy ${ac_tool_prefix}cc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_CC="${ac_tool_prefix}cc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3577 if test -z "$CC"; then
3578 # Extract the first word of "cc", so it can be a program name with args.
3579 set dummy cc; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_CC+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3585 if test -n "$CC"; then
3586 ac_cv_prog_CC="$CC" # Let the user override the test.
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3597 ac_prog_rejected=yes
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 if test $ac_prog_rejected = yes; then
3609 # We found a bogon in the path, so make sure we never use it.
3610 set dummy $ac_cv_prog_CC
3612 if test $# != 0; then
3613 # We chose a different compiler from the bogus one.
3614 # However, it has the same basename, so the bogon will be chosen
3615 # first if we set CC to just the basename; use the full file name.
3617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3623 if test -n "$CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3633 if test -z "$CC"; then
3634 if test -n "$ac_tool_prefix"; then
3635 for ac_prog in cl.exe
3637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if test "${ac_cv_prog_CC+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3644 if test -n "$CC"; then
3645 ac_cv_prog_CC="$CC" # Let the user override the test.
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 if test -n "$CC"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3674 test -n "$CC" && break
3677 if test -z "$CC"; then
3679 for ac_prog in cl.exe
3681 # Extract the first word of "$ac_prog", so it can be a program name with args.
3682 set dummy $ac_prog; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$ac_ct_CC"; then
3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_ac_ct_CC="$ac_prog"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3711 $as_echo "$ac_ct_CC" >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3718 test -n "$ac_ct_CC" && break
3721 if test "x$ac_ct_CC" = x; then
3724 case $cross_compiling:$ac_tool_warned in
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3728 ac_tool_warned=yes ;;
3737 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 as_fn_error "no acceptable C compiler found in \$PATH
3740 See \`config.log' for more details." "$LINENO" 5; }
3742 # Provide some information about the compiler.
3743 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3746 for ac_option in --version -v -V -qversion; do
3747 { { ac_try="$ac_compiler $ac_option >&5"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3756 if test -s conftest.err; then
3758 ... rest of stderr output deleted ...
3759 10q' conftest.err >conftest.er1
3760 cat conftest.er1 >&5
3761 rm -f conftest.er1 conftest.err
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 ac_clean_files_save=$ac_clean_files
3779 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3780 # Try to create an executable without -o first, disregard a.out.
3781 # It will help us diagnose broken compilers, and finding out an intuition
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3784 $as_echo_n "checking for C compiler default output file name... " >&6; }
3785 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3787 # The possible output files:
3788 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3791 for ac_file in $ac_files
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3795 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3800 if { { ac_try="$ac_link_default"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_link_default") 2>&5
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3812 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3813 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3814 # so that the user can short-circuit this test for compilers unknown to
3816 for ac_file in $ac_files ''
3818 test -f "$ac_file" || continue
3820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3823 # We found the default executable, but exeext='' is most
3827 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3829 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3831 # We set ac_cv_exeext here because the later test for it is not
3832 # safe: cross compilers may not add the suffix if given an `-o'
3833 # argument, so we may need to know it at that point already.
3834 # Even if this section looks crufty: it has the advantage of
3841 test "$ac_cv_exeext" = no && ac_cv_exeext=
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3847 $as_echo "$ac_file" >&6; }
3848 if test -z "$ac_file"; then :
3849 $as_echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 { as_fn_set_status 77
3855 as_fn_error "C compiler cannot create executables
3856 See \`config.log' for more details." "$LINENO" 5; }; }
3858 ac_exeext=$ac_cv_exeext
3860 # Check that the compiler produces executables we can run. If not, either
3861 # the compiler is broken, or we cross compile.
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3863 $as_echo_n "checking whether the C compiler works... " >&6; }
3864 # If not cross compiling, check that we can run a simple program.
3865 if test "$cross_compiling" != yes; then
3866 if { ac_try='./$ac_file'
3867 { { case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_try") 2>&5
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; }; then
3879 if test "$cross_compiling" = maybe; then
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error "cannot run C compiled programs.
3885 If you meant to cross compile, use \`--host'.
3886 See \`config.log' for more details." "$LINENO" 5; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891 $as_echo "yes" >&6; }
3893 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3894 ac_clean_files=$ac_clean_files_save
3895 # Check that the compiler produces executables we can run. If not, either
3896 # the compiler is broken, or we cross compile.
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3898 $as_echo_n "checking whether we are cross compiling... " >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3900 $as_echo "$cross_compiling" >&6; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3903 $as_echo_n "checking for suffix of executables... " >&6; }
3904 if { { ac_try="$ac_link"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_link") 2>&5
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; then :
3915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3917 # work properly (i.e., refer to `conftest.exe'), while it won't with
3919 for ac_file in conftest.exe conftest conftest.*; do
3920 test -f "$ac_file" || continue
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error "cannot compute suffix of executables: cannot compile and link
3932 See \`config.log' for more details." "$LINENO" 5; }
3934 rm -f conftest$ac_cv_exeext
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3936 $as_echo "$ac_cv_exeext" >&6; }
3938 rm -f conftest.$ac_ext
3939 EXEEXT=$ac_cv_exeext
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 $as_echo_n "checking for suffix of object files... " >&6; }
3943 if test "${ac_cv_objext+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3957 rm -f conftest.o conftest.obj
3958 if { { ac_try="$ac_compile"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compile") 2>&5
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 for ac_file in conftest.o conftest.obj conftest.*; do
3970 test -f "$ac_file" || continue;
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "cannot compute suffix of object files: cannot compile
3984 See \`config.log' for more details." "$LINENO" 5; }
3986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3989 $as_echo "$ac_cv_objext" >&6; }
3990 OBJEXT=$ac_cv_objext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3994 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4011 if ac_fn_c_try_compile "$LINENO"; then :
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4027 ac_test_CFLAGS=${CFLAGS+set}
4028 ac_save_CFLAGS=$CFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4031 if test "${ac_cv_prog_cc_g+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4034 ac_save_c_werror_flag=$ac_c_werror_flag
4035 ac_c_werror_flag=yes
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4091 $as_echo "$ac_cv_prog_cc_g" >&6; }
4092 if test "$ac_test_CFLAGS" = set; then
4093 CFLAGS=$ac_save_CFLAGS
4094 elif test $ac_cv_prog_cc_g = yes; then
4095 if test "$GCC" = yes; then
4101 if test "$GCC" = yes; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4109 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4112 ac_cv_prog_cc_c89=no
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 #include <sys/stat.h>
4120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4121 struct buf { int x; };
4122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4123 static char *e (p, i)
4129 static char *f (char * (*g) (char **, int), char **p, ...)
4134 s = g (p, va_arg (v,int));
4139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4140 function prototypes and stuff, but not '\xHH' hex character constants.
4141 These don't provoke an error unfortunately, instead are silently treated
4142 as 'x'. The following induces an error, until -std is added to get
4143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4144 array size at least. It's necessary to write '\x00'==0 to get something
4145 that's true only with -std. */
4146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4149 inside strings and character constants. */
4151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4153 int test (int i, double x);
4154 struct s1 {int (*f) (int a);};
4155 struct s2 {int (*f) (double a);};
4156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4170 CC="$ac_save_CC $ac_arg"
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_c89=$ac_arg
4174 rm -f core conftest.err conftest.$ac_objext
4175 test "x$ac_cv_prog_cc_c89" != "xno" && break
4177 rm -f conftest.$ac_ext
4182 case "x$ac_cv_prog_cc_c89" in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4190 CC="$CC $ac_cv_prog_cc_c89"
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4194 if test "x$ac_cv_prog_cc_c89" != xno; then :
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204 if test "x$CC" != xcc; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4206 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4209 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4211 set dummy $CC; ac_cc=`$as_echo "$2" |
4212 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4213 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4214 $as_echo_n "(cached) " >&6
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4227 # Make sure it works both with $CC and with simple cc.
4228 # We do the test twice because some compilers refuse to overwrite an
4229 # existing .o file with -o, though they will create one.
4230 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4232 if { { case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4237 $as_echo "$ac_try_echo"; } >&5
4238 (eval "$ac_try") 2>&5
4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241 test $ac_status = 0; } &&
4242 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247 $as_echo "$ac_try_echo"; } >&5
4248 (eval "$ac_try") 2>&5
4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; };
4253 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4254 if test "x$CC" != xcc; then
4255 # Test first that cc exists at all.
4256 if { ac_try='cc -c conftest.$ac_ext >&5'
4257 { { case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_try") 2>&5
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }; }; then
4267 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4269 if { { case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_try") 2>&5
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; } &&
4279 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_try") 2>&5
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; };
4293 # cc exists but doesn't like -o.
4294 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4299 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4301 rm -f core conftest*
4304 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4306 $as_echo "yes" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4311 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4315 # expand $ac_aux_dir to an absolute path
4316 am_aux_dir=`cd $ac_aux_dir && pwd`
4318 # FIXME: we rely on the cache variable name because
4319 # there is no other way.
4321 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4322 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4323 if test "$am_t" != yes; then
4324 # Losing compiler, so override with the script.
4325 # FIXME: It is wrong to rewrite CC.
4326 # But if we don't then we get into trouble of one sort or another.
4327 # A longer-term fix would be to have automake use am__CC in this case,
4328 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4329 CC="$am_aux_dir/compile $CC"
4334 ac_cpp='$CXXCPP $CPPFLAGS'
4335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4338 if test -z "$CXX"; then
4339 if test -n "$CCC"; then
4342 if test -n "$ac_tool_prefix"; then
4343 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_CXX+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4352 if test -n "$CXX"; then
4353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 if test -n "$CXX"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4375 $as_echo "$CXX" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4382 test -n "$CXX" && break
4385 if test -z "$CXX"; then
4387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4389 # Extract the first word of "$ac_prog", so it can be a program name with args.
4390 set dummy $ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4396 if test -n "$ac_ct_CXX"; then
4397 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_ac_ct_CXX="$ac_prog"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4417 if test -n "$ac_ct_CXX"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4419 $as_echo "$ac_ct_CXX" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4426 test -n "$ac_ct_CXX" && break
4429 if test "x$ac_ct_CXX" = x; then
4432 case $cross_compiling:$ac_tool_warned in
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436 ac_tool_warned=yes ;;
4444 # Provide some information about the compiler.
4445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4448 for ac_option in --version -v -V -qversion; do
4449 { { ac_try="$ac_compiler $ac_option >&5"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4458 if test -s conftest.err; then
4460 ... rest of stderr output deleted ...
4461 10q' conftest.err >conftest.er1
4462 cat conftest.er1 >&5
4463 rm -f conftest.er1 conftest.err
4465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4466 test $ac_status = 0; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4470 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4498 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4499 if test $ac_compiler_gnu = yes; then
4504 ac_test_CXXFLAGS=${CXXFLAGS+set}
4505 ac_save_CXXFLAGS=$CXXFLAGS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4507 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4508 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4511 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4512 ac_cxx_werror_flag=yes
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527 ac_cv_prog_cxx_g=yes
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4558 ac_cv_prog_cxx_g=yes
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4568 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4569 if test "$ac_test_CXXFLAGS" = set; then
4570 CXXFLAGS=$ac_save_CXXFLAGS
4571 elif test $ac_cv_prog_cxx_g = yes; then
4572 if test "$GXX" = yes; then
4578 if test "$GXX" = yes; then
4585 ac_cpp='$CPP $CPPFLAGS'
4586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4601 if test -n "$GNATBIND"; then
4602 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 GNATBIND=$ac_cv_prog_GNATBIND
4622 if test -n "$GNATBIND"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4624 $as_echo "$GNATBIND" >&6; }
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4632 if test -z "$ac_cv_prog_GNATBIND"; then
4633 ac_ct_GNATBIND=$GNATBIND
4634 # Extract the first word of "gnatbind", so it can be a program name with args.
4635 set dummy gnatbind; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$ac_ct_GNATBIND"; then
4642 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4662 if test -n "$ac_ct_GNATBIND"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4664 $as_echo "$ac_ct_GNATBIND" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4670 if test "x$ac_ct_GNATBIND" = x; then
4673 case $cross_compiling:$ac_tool_warned in
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4679 GNATBIND=$ac_ct_GNATBIND
4682 GNATBIND="$ac_cv_prog_GNATBIND"
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$GNATMAKE"; then
4694 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 GNATMAKE=$ac_cv_prog_GNATMAKE
4714 if test -n "$GNATMAKE"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4716 $as_echo "$GNATMAKE" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4724 if test -z "$ac_cv_prog_GNATMAKE"; then
4725 ac_ct_GNATMAKE=$GNATMAKE
4726 # Extract the first word of "gnatmake", so it can be a program name with args.
4727 set dummy gnatmake; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4733 if test -n "$ac_ct_GNATMAKE"; then
4734 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4754 if test -n "$ac_ct_GNATMAKE"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4756 $as_echo "$ac_ct_GNATMAKE" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4762 if test "x$ac_ct_GNATMAKE" = x; then
4765 case $cross_compiling:$ac_tool_warned in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4771 GNATMAKE=$ac_ct_GNATMAKE
4774 GNATMAKE="$ac_cv_prog_GNATMAKE"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4778 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4779 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 cat >conftest.adb <<EOF
4783 procedure conftest is begin null; end conftest;
4785 acx_cv_cc_gcc_supports_ada=no
4786 # There is a bug in old released versions of GCC which causes the
4787 # driver to exit successfully when the appropriate language module
4788 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4789 # Therefore we must check for the error message as well as an
4790 # unsuccessful exit.
4791 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4792 # given a .adb file, but produce no object file. So we must check
4793 # if an object file was really produced to guard against this.
4794 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4795 if test x"$errors" = x && test -f conftest.$ac_objext; then
4796 acx_cv_cc_gcc_supports_ada=yes
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4801 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4803 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4810 # autoconf is lame and doesn't give us any substitution variable for this.
4811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4812 NO_MINUS_C_MINUS_O=yes
4814 OUTPUT_OPTION='-o $@'
4819 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4820 # optimizations to be activated explicitly by the toplevel.
4822 */prev-gcc/xgcc*) ;;
4823 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4827 # -------------------------
4828 # Check C compiler features
4829 # -------------------------
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4838 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4839 # On Suns, sometimes $CPP names a directory.
4840 if test -n "$CPP" && test -d "$CPP"; then
4843 if test -z "$CPP"; then
4844 if test "${ac_cv_prog_CPP+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4847 # Double quotes because CPP needs to be expanded
4848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4851 for ac_c_preproc_warn_flag in '' yes
4853 # Use a header file that comes with gcc, so configuring glibc
4854 # with a fresh cross-compiler works.
4855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856 # <limits.h> exists even on freestanding compilers.
4857 # On the NeXT, cc -E runs the code through the compiler's parser,
4858 # not just through cpp. "Syntax error" is here to catch this case.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4862 # include <limits.h>
4864 # include <assert.h>
4868 if ac_fn_c_try_cpp "$LINENO"; then :
4871 # Broken: fails on valid input.
4874 rm -f conftest.err conftest.$ac_ext
4876 # OK, works on sane cases. Now check whether nonexistent headers
4877 # can be detected and how.
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4883 # Broken: success on invalid input.
4886 # Passes both tests.
4890 rm -f conftest.err conftest.$ac_ext
4893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4894 rm -f conftest.err conftest.$ac_ext
4895 if $ac_preproc_ok; then :
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4908 $as_echo "$CPP" >&6; }
4910 for ac_c_preproc_warn_flag in '' yes
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
4914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
4916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4921 # include <limits.h>
4923 # include <assert.h>
4927 if ac_fn_c_try_cpp "$LINENO"; then :
4930 # Broken: fails on valid input.
4933 rm -f conftest.err conftest.$ac_ext
4935 # OK, works on sane cases. Now check whether nonexistent headers
4936 # can be detected and how.
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 #include <ac_nonexistent.h>
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4942 # Broken: success on invalid input.
4945 # Passes both tests.
4949 rm -f conftest.err conftest.$ac_ext
4952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953 rm -f conftest.err conftest.$ac_ext
4954 if $ac_preproc_ok; then :
4957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4959 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4960 See \`config.log' for more details." "$LINENO" 5; }
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4971 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4972 if test "${ac_cv_path_GREP+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 if test -z "$GREP"; then
4976 ac_path_GREP_found=false
4977 # Loop through the user's path and test for each of PROGNAME-LIST
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4982 test -z "$as_dir" && as_dir=.
4983 for ac_prog in grep ggrep; do
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4986 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4987 # Check for GNU ac_path_GREP and select it if it is found.
4988 # Check for GNU $ac_path_GREP
4989 case `"$ac_path_GREP" --version 2>&1` in
4991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4994 $as_echo_n 0123456789 >"conftest.in"
4997 cat "conftest.in" "conftest.in" >"conftest.tmp"
4998 mv "conftest.tmp" "conftest.in"
4999 cp "conftest.in" "conftest.nl"
5000 $as_echo 'GREP' >> "conftest.nl"
5001 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003 as_fn_arith $ac_count + 1 && ac_count=$as_val
5004 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5005 # Best one so far, save it but keep looking for a better one
5006 ac_cv_path_GREP="$ac_path_GREP"
5007 ac_path_GREP_max=$ac_count
5009 # 10*(2^10) chars as input seems more than enough
5010 test $ac_count -gt 10 && break
5012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5015 $ac_path_GREP_found && break 3
5020 if test -z "$ac_cv_path_GREP"; then
5021 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5024 ac_cv_path_GREP=$GREP
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5029 $as_echo "$ac_cv_path_GREP" >&6; }
5030 GREP="$ac_cv_path_GREP"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5034 $as_echo_n "checking for egrep... " >&6; }
5035 if test "${ac_cv_path_EGREP+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5038 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5039 then ac_cv_path_EGREP="$GREP -E"
5041 if test -z "$EGREP"; then
5042 ac_path_EGREP_found=false
5043 # Loop through the user's path and test for each of PROGNAME-LIST
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5048 test -z "$as_dir" && as_dir=.
5049 for ac_prog in egrep; do
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5052 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5053 # Check for GNU ac_path_EGREP and select it if it is found.
5054 # Check for GNU $ac_path_EGREP
5055 case `"$ac_path_EGREP" --version 2>&1` in
5057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5060 $as_echo_n 0123456789 >"conftest.in"
5063 cat "conftest.in" "conftest.in" >"conftest.tmp"
5064 mv "conftest.tmp" "conftest.in"
5065 cp "conftest.in" "conftest.nl"
5066 $as_echo 'EGREP' >> "conftest.nl"
5067 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069 as_fn_arith $ac_count + 1 && ac_count=$as_val
5070 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5071 # Best one so far, save it but keep looking for a better one
5072 ac_cv_path_EGREP="$ac_path_EGREP"
5073 ac_path_EGREP_max=$ac_count
5075 # 10*(2^10) chars as input seems more than enough
5076 test $ac_count -gt 10 && break
5078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081 $ac_path_EGREP_found && break 3
5086 if test -z "$ac_cv_path_EGREP"; then
5087 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5090 ac_cv_path_EGREP=$EGREP
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5096 $as_echo "$ac_cv_path_EGREP" >&6; }
5097 EGREP="$ac_cv_path_EGREP"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5101 $as_echo_n "checking for ANSI C header files... " >&6; }
5102 if test "${ac_cv_header_stdc+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5120 if ac_fn_c_try_compile "$LINENO"; then :
5121 ac_cv_header_stdc=yes
5123 ac_cv_header_stdc=no
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127 if test $ac_cv_header_stdc = yes; then
5128 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5135 $EGREP "memchr" >/dev/null 2>&1; then :
5138 ac_cv_header_stdc=no
5144 if test $ac_cv_header_stdc = yes; then
5145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152 $EGREP "free" >/dev/null 2>&1; then :
5155 ac_cv_header_stdc=no
5161 if test $ac_cv_header_stdc = yes; then
5162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5163 if test "$cross_compiling" = yes; then :
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5170 #if ((' ' & 0x0FF) == 0x020)
5171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5174 # define ISLOWER(c) \
5175 (('a' <= (c) && (c) <= 'i') \
5176 || ('j' <= (c) && (c) <= 'r') \
5177 || ('s' <= (c) && (c) <= 'z'))
5178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5186 for (i = 0; i < 256; i++)
5187 if (XOR (islower (i), ISLOWER (i))
5188 || toupper (i) != TOUPPER (i))
5193 if ac_fn_c_try_run "$LINENO"; then :
5196 ac_cv_header_stdc=no
5198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5199 conftest.$ac_objext conftest.beam conftest.$ac_ext
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5205 $as_echo "$ac_cv_header_stdc" >&6; }
5206 if test $ac_cv_header_stdc = yes; then
5208 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5213 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5214 inttypes.h stdint.h unistd.h
5216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5217 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5219 eval as_val=\$$as_ac_Header
5220 if test "x$as_val" = x""yes; then :
5221 cat >>confdefs.h <<_ACEOF
5222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5231 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5232 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5239 if test "$MINIX" = yes; then
5241 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5244 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5247 $as_echo "#define _MINIX 1" >>confdefs.h
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5253 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5254 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5260 # define __EXTENSIONS__ 1
5261 $ac_includes_default
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_safe_to_define___extensions__=yes
5273 ac_cv_safe_to_define___extensions__=no
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5278 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5279 test $ac_cv_safe_to_define___extensions__ = yes &&
5280 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5282 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5284 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5286 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5288 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5292 ac_cpp='$CPP $CPPFLAGS'
5293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5297 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5298 # On Suns, sometimes $CPP names a directory.
5299 if test -n "$CPP" && test -d "$CPP"; then
5302 if test -z "$CPP"; then
5303 if test "${ac_cv_prog_CPP+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5306 # Double quotes because CPP needs to be expanded
5307 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5310 for ac_c_preproc_warn_flag in '' yes
5312 # Use a header file that comes with gcc, so configuring glibc
5313 # with a fresh cross-compiler works.
5314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5315 # <limits.h> exists even on freestanding compilers.
5316 # On the NeXT, cc -E runs the code through the compiler's parser,
5317 # not just through cpp. "Syntax error" is here to catch this case.
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5321 # include <limits.h>
5323 # include <assert.h>
5327 if ac_fn_c_try_cpp "$LINENO"; then :
5330 # Broken: fails on valid input.
5333 rm -f conftest.err conftest.$ac_ext
5335 # OK, works on sane cases. Now check whether nonexistent headers
5336 # can be detected and how.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 #include <ac_nonexistent.h>
5341 if ac_fn_c_try_cpp "$LINENO"; then :
5342 # Broken: success on invalid input.
5345 # Passes both tests.
5349 rm -f conftest.err conftest.$ac_ext
5352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5353 rm -f conftest.err conftest.$ac_ext
5354 if $ac_preproc_ok; then :
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5367 $as_echo "$CPP" >&6; }
5369 for ac_c_preproc_warn_flag in '' yes
5371 # Use a header file that comes with gcc, so configuring glibc
5372 # with a fresh cross-compiler works.
5373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5374 # <limits.h> exists even on freestanding compilers.
5375 # On the NeXT, cc -E runs the code through the compiler's parser,
5376 # not just through cpp. "Syntax error" is here to catch this case.
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5380 # include <limits.h>
5382 # include <assert.h>
5386 if ac_fn_c_try_cpp "$LINENO"; then :
5389 # Broken: fails on valid input.
5392 rm -f conftest.err conftest.$ac_ext
5394 # OK, works on sane cases. Now check whether nonexistent headers
5395 # can be detected and how.
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <ac_nonexistent.h>
5400 if ac_fn_c_try_cpp "$LINENO"; then :
5401 # Broken: success on invalid input.
5404 # Passes both tests.
5408 rm -f conftest.err conftest.$ac_ext
5411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5412 rm -f conftest.err conftest.$ac_ext
5413 if $ac_preproc_ok; then :
5416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5418 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5419 See \`config.log' for more details." "$LINENO" 5; }
5423 ac_cpp='$CPP $CPPFLAGS'
5424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5429 $as_echo_n "checking for inline... " >&6; }
5430 if test "${ac_cv_c_inline+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5434 for ac_kw in inline __inline__ __inline; do
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5439 static $ac_kw foo_t static_foo () {return 0; }
5440 $ac_kw foo_t foo () {return 0; }
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445 ac_cv_c_inline=$ac_kw
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 test "$ac_cv_c_inline" != no && break
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5453 $as_echo "$ac_cv_c_inline" >&6; }
5455 case $ac_cv_c_inline in
5458 case $ac_cv_c_inline in
5460 *) ac_val=$ac_cv_c_inline;;
5462 cat >>confdefs.h <<_ACEOF
5464 #define inline $ac_val
5471 # sizeof(char) is 1 by definition.
5472 # The cast to long int works around a bug in the HP C Compiler
5473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5475 # This bug is HP SR number 8606223364.
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5477 $as_echo_n "checking size of void *... " >&6; }
5478 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5481 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5484 if test "$ac_cv_type_void_p" = yes; then
5485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5487 { as_fn_set_status 77
5488 as_fn_error "cannot compute sizeof (void *)
5489 See \`config.log' for more details." "$LINENO" 5; }; }
5491 ac_cv_sizeof_void_p=0
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5497 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5501 cat >>confdefs.h <<_ACEOF
5502 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5506 # The cast to long int works around a bug in the HP C Compiler
5507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5509 # This bug is HP SR number 8606223364.
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5511 $as_echo_n "checking size of short... " >&6; }
5512 if test "${ac_cv_sizeof_short+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5518 if test "$ac_cv_type_short" = yes; then
5519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5521 { as_fn_set_status 77
5522 as_fn_error "cannot compute sizeof (short)
5523 See \`config.log' for more details." "$LINENO" 5; }; }
5525 ac_cv_sizeof_short=0
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5531 $as_echo "$ac_cv_sizeof_short" >&6; }
5535 cat >>confdefs.h <<_ACEOF
5536 #define SIZEOF_SHORT $ac_cv_sizeof_short
5540 # The cast to long int works around a bug in the HP C Compiler
5541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5543 # This bug is HP SR number 8606223364.
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5545 $as_echo_n "checking size of int... " >&6; }
5546 if test "${ac_cv_sizeof_int+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5549 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5552 if test "$ac_cv_type_int" = yes; then
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 { as_fn_set_status 77
5556 as_fn_error "cannot compute sizeof (int)
5557 See \`config.log' for more details." "$LINENO" 5; }; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5565 $as_echo "$ac_cv_sizeof_int" >&6; }
5569 cat >>confdefs.h <<_ACEOF
5570 #define SIZEOF_INT $ac_cv_sizeof_int
5574 # The cast to long int works around a bug in the HP C Compiler
5575 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5576 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5577 # This bug is HP SR number 8606223364.
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5579 $as_echo_n "checking size of long... " >&6; }
5580 if test "${ac_cv_sizeof_long+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5583 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5586 if test "$ac_cv_type_long" = yes; then
5587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5589 { as_fn_set_status 77
5590 as_fn_error "cannot compute sizeof (long)
5591 See \`config.log' for more details." "$LINENO" 5; }; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5599 $as_echo "$ac_cv_sizeof_long" >&6; }
5603 cat >>confdefs.h <<_ACEOF
5604 #define SIZEOF_LONG $ac_cv_sizeof_long
5608 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5609 if test "x$ac_cv_type_long_long" = x""yes; then :
5611 cat >>confdefs.h <<_ACEOF
5612 #define HAVE_LONG_LONG 1
5615 # The cast to long int works around a bug in the HP C Compiler
5616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5618 # This bug is HP SR number 8606223364.
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5620 $as_echo_n "checking size of long long... " >&6; }
5621 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5624 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5627 if test "$ac_cv_type_long_long" = yes; then
5628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5630 { as_fn_set_status 77
5631 as_fn_error "cannot compute sizeof (long long)
5632 See \`config.log' for more details." "$LINENO" 5; }; }
5634 ac_cv_sizeof_long_long=0
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5640 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5644 cat >>confdefs.h <<_ACEOF
5645 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5651 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5652 if test "x$ac_cv_type___int64" = x""yes; then :
5654 cat >>confdefs.h <<_ACEOF
5655 #define HAVE___INT64 1
5658 # The cast to long int works around a bug in the HP C Compiler
5659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5661 # This bug is HP SR number 8606223364.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5663 $as_echo_n "checking size of __int64... " >&6; }
5664 if test "${ac_cv_sizeof___int64+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5670 if test "$ac_cv_type___int64" = yes; then
5671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 { as_fn_set_status 77
5674 as_fn_error "cannot compute sizeof (__int64)
5675 See \`config.log' for more details." "$LINENO" 5; }; }
5677 ac_cv_sizeof___int64=0
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5683 $as_echo "$ac_cv_sizeof___int64" >&6; }
5687 cat >>confdefs.h <<_ACEOF
5688 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5694 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5695 case $ac_cv_c_int8_t in #(
5699 cat >>confdefs.h <<_ACEOF
5700 #define int8_t $ac_cv_c_int8_t
5705 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5706 case $ac_cv_c_int16_t in #(
5710 cat >>confdefs.h <<_ACEOF
5711 #define int16_t $ac_cv_c_int16_t
5716 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5717 case $ac_cv_c_int32_t in #(
5721 cat >>confdefs.h <<_ACEOF
5722 #define int32_t $ac_cv_c_int32_t
5727 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5728 case $ac_cv_c_int64_t in #(
5732 cat >>confdefs.h <<_ACEOF
5733 #define int64_t $ac_cv_c_int64_t
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5740 $as_echo_n "checking for long long int... " >&6; }
5741 if test "${ac_cv_type_long_long_int+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5747 /* For now, do not test the preprocessor; as of 2007 there are too many
5748 implementations with broken preprocessors. Perhaps this can
5749 be revisited in 2012. In the meantime, code should not expect
5750 #if to work with literals wider than 32 bits. */
5751 /* Test literals. */
5752 long long int ll = 9223372036854775807ll;
5753 long long int nll = -9223372036854775807LL;
5754 unsigned long long int ull = 18446744073709551615ULL;
5755 /* Test constant expressions. */
5756 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5758 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5764 /* Test availability of runtime routines for shift and division. */
5765 long long int llmax = 9223372036854775807ll;
5766 unsigned long long int ullmax = 18446744073709551615ull;
5767 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5768 | (llmax / ll) | (llmax % ll)
5769 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5770 | (ullmax / ull) | (ullmax % ull));
5776 if ac_fn_c_try_link "$LINENO"; then :
5777 if test "$cross_compiling" = yes; then :
5778 ac_cv_type_long_long_int=yes
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5785 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5786 # define LLONG_MAX (HALF - 1 + HALF)
5791 long long int n = 1;
5795 long long int m = n << i;
5798 if (LLONG_MAX / 2 < m)
5806 if ac_fn_c_try_run "$LINENO"; then :
5807 ac_cv_type_long_long_int=yes
5809 ac_cv_type_long_long_int=no
5811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5812 conftest.$ac_objext conftest.beam conftest.$ac_ext
5816 ac_cv_type_long_long_int=no
5818 rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5822 $as_echo "$ac_cv_type_long_long_int" >&6; }
5823 if test $ac_cv_type_long_long_int = yes; then
5825 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5831 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5832 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5834 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5837 test $ac_cv_type_long_long_int = yes \
5838 && ac_type='long long int' \
5839 || ac_type='long int'
5841 cat >>confdefs.h <<_ACEOF
5842 #define intmax_t $ac_type
5849 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5850 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5852 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5855 for ac_type in 'int' 'long int' 'long long int'; do
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5858 $ac_includes_default
5862 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5869 if ac_fn_c_try_compile "$LINENO"; then :
5871 cat >>confdefs.h <<_ACEOF
5872 #define intptr_t $ac_type
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 test -z "$ac_type" && break
5883 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5884 case $ac_cv_c_uint8_t in #(
5888 $as_echo "#define _UINT8_T 1" >>confdefs.h
5891 cat >>confdefs.h <<_ACEOF
5892 #define uint8_t $ac_cv_c_uint8_t
5897 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5898 case $ac_cv_c_uint16_t in #(
5903 cat >>confdefs.h <<_ACEOF
5904 #define uint16_t $ac_cv_c_uint16_t
5909 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5910 case $ac_cv_c_uint32_t in #(
5914 $as_echo "#define _UINT32_T 1" >>confdefs.h
5917 cat >>confdefs.h <<_ACEOF
5918 #define uint32_t $ac_cv_c_uint32_t
5923 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5924 case $ac_cv_c_uint64_t in #(
5928 $as_echo "#define _UINT64_T 1" >>confdefs.h
5931 cat >>confdefs.h <<_ACEOF
5932 #define uint64_t $ac_cv_c_uint64_t
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5939 $as_echo_n "checking for unsigned long long int... " >&6; }
5940 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5946 /* For now, do not test the preprocessor; as of 2007 there are too many
5947 implementations with broken preprocessors. Perhaps this can
5948 be revisited in 2012. In the meantime, code should not expect
5949 #if to work with literals wider than 32 bits. */
5950 /* Test literals. */
5951 long long int ll = 9223372036854775807ll;
5952 long long int nll = -9223372036854775807LL;
5953 unsigned long long int ull = 18446744073709551615ULL;
5954 /* Test constant expressions. */
5955 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5957 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5963 /* Test availability of runtime routines for shift and division. */
5964 long long int llmax = 9223372036854775807ll;
5965 unsigned long long int ullmax = 18446744073709551615ull;
5966 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5967 | (llmax / ll) | (llmax % ll)
5968 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5969 | (ullmax / ull) | (ullmax % ull));
5975 if ac_fn_c_try_link "$LINENO"; then :
5976 ac_cv_type_unsigned_long_long_int=yes
5978 ac_cv_type_unsigned_long_long_int=no
5980 rm -f core conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5984 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5985 if test $ac_cv_type_unsigned_long_long_int = yes; then
5987 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5993 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5994 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
5996 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5999 test $ac_cv_type_unsigned_long_long_int = yes \
6000 && ac_type='unsigned long long int' \
6001 || ac_type='unsigned long int'
6003 cat >>confdefs.h <<_ACEOF
6004 #define uintmax_t $ac_type
6011 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6012 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6014 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6017 for ac_type in 'unsigned int' 'unsigned long int' \
6018 'unsigned long long int'; do
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 $ac_includes_default
6025 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6032 if ac_fn_c_try_compile "$LINENO"; then :
6034 cat >>confdefs.h <<_ACEOF
6035 #define uintptr_t $ac_type
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 test -z "$ac_type" && break
6059 # ---------------------
6060 # Warnings and checking
6061 # ---------------------
6063 # Check $CC warning features (if it's GCC).
6064 # We want to use -pedantic, but we don't want warnings about
6067 # * overlong strings
6068 # So, we only use -pedantic if we can disable those warnings.
6071 save_CFLAGS="$CFLAGS"
6072 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6073 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6076 $as_echo_n "checking whether $CC supports $option... " >&6; }
6077 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6078 $as_echo_n "(cached) " >&6
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 eval "$as_acx_Woption=yes"
6095 eval "$as_acx_Woption=no"
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 eval ac_res=\$$as_acx_Woption
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6102 $as_echo "$ac_res" >&6; }
6103 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6104 loose_warn="$loose_warn${loose_warn:+ }$option"
6107 CFLAGS="$save_CFLAGS"
6110 save_CFLAGS="$CFLAGS"
6111 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6112 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6115 $as_echo_n "checking whether $CC supports $option... " >&6; }
6116 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6117 $as_echo_n "(cached) " >&6
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132 eval "$as_acx_Woption=yes"
6134 eval "$as_acx_Woption=no"
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 eval ac_res=\$$as_acx_Woption
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6141 $as_echo "$ac_res" >&6; }
6142 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6143 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6146 CFLAGS="$save_CFLAGS"
6149 save_CFLAGS="$CFLAGS"
6150 for option in -Wmissing-format-attribute; do
6151 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6154 $as_echo_n "checking whether $CC supports $option... " >&6; }
6155 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6156 $as_echo_n "(cached) " >&6
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171 eval "$as_acx_Woption=yes"
6173 eval "$as_acx_Woption=no"
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 eval ac_res=\$$as_acx_Woption
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6180 $as_echo "$ac_res" >&6; }
6181 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6182 strict_warn="$strict_warn${strict_warn:+ }$option"
6185 CFLAGS="$save_CFLAGS"
6188 save_CFLAGS="$CFLAGS"
6189 for option in -Wold-style-definition -Wc++-compat; do
6190 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6193 $as_echo_n "checking whether $CC supports $option... " >&6; }
6194 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6195 $as_echo_n "(cached) " >&6
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 eval "$as_acx_Woption=yes"
6212 eval "$as_acx_Woption=no"
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 eval ac_res=\$$as_acx_Woption
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6219 $as_echo "$ac_res" >&6; }
6220 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6221 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6224 CFLAGS="$save_CFLAGS"
6226 if test "$GCC" = yes; then :
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6228 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6229 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6232 save_CFLAGS="$CFLAGS"
6233 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6248 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251 CFLAGS="$save_CFLAGS"
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6254 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6255 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6256 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6261 # Check whether --enable-werror-always was given.
6262 if test "${enable_werror_always+set}" = set; then :
6263 enableval=$enable_werror_always;
6265 enable_werror_always=no
6268 if test $enable_werror_always = yes; then :
6269 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6274 # The above macros do nothing if the compiler is not GCC. However, the
6275 # Makefile has more goo to add other flags, so these variables are used
6276 # to enable warnings only for GCC.
6279 if test "x$GCC" = "xyes"; then
6280 warn_cflags='$(GCC_WARN_CFLAGS)'
6281 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6286 # Enable expensive internal checks
6288 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6292 # Check whether --enable-checking was given.
6293 if test "${enable_checking+set}" = set; then :
6294 enableval=$enable_checking; ac_checking_flags="${enableval}"
6297 # Determine the default checks.
6298 if test x$is_release = x ; then
6299 ac_checking_flags=yes
6301 ac_checking_flags=release
6305 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6306 for check in release $ac_checking_flags
6309 # these set all the flags to specific states
6310 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6311 ac_fold_checking= ; ac_gc_checking=1 ;
6312 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6313 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6314 ac_tree_checking=1 ; ac_valgrind_checking= ;
6315 ac_types_checking=1 ;;
6316 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6317 ac_fold_checking= ; ac_gc_checking= ;
6318 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6319 ac_rtlflag_checking= ; ac_runtime_checking= ;
6320 ac_tree_checking= ; ac_valgrind_checking= ;
6321 ac_types_checking= ;;
6322 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6323 ac_fold_checking=1 ; ac_gc_checking=1 ;
6324 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6325 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6326 ac_tree_checking=1 ; ac_valgrind_checking= ;
6327 ac_types_checking=1 ;;
6328 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6329 ac_fold_checking= ; ac_gc_checking= ;
6330 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6331 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6332 ac_tree_checking= ; ac_valgrind_checking= ;
6333 ac_types_checking= ;;
6334 # these enable particular checks
6335 assert) ac_assert_checking=1 ;;
6336 df) ac_df_checking=1 ;;
6337 fold) ac_fold_checking=1 ;;
6338 gc) ac_gc_checking=1 ;;
6339 gcac) ac_gc_always_collect=1 ;;
6340 gimple) ac_gimple_checking=1 ;;
6341 misc) ac_checking=1 ;;
6342 rtl) ac_rtl_checking=1 ;;
6343 rtlflag) ac_rtlflag_checking=1 ;;
6344 runtime) ac_runtime_checking=1 ;;
6345 tree) ac_tree_checking=1 ;;
6346 types) ac_types_checking=1 ;;
6347 valgrind) ac_valgrind_checking=1 ;;
6348 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6354 if test x$ac_checking != x ; then
6356 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6358 nocommon_flag=-fno-common
6361 if test x$ac_df_checking != x ; then
6363 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6366 if test x$ac_assert_checking != x ; then
6368 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6371 if test x$ac_gimple_checking != x ; then
6373 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6377 if test x$ac_runtime_checking != x ; then
6379 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6382 if test x$ac_tree_checking != x ; then
6384 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6386 TREEBROWSER=tree-browser.o
6388 if test x$ac_types_checking != x ; then
6390 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6394 if test x$ac_rtl_checking != x ; then
6396 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6399 if test x$ac_rtlflag_checking != x ; then
6401 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6404 if test x$ac_gc_checking != x ; then
6406 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6409 if test x$ac_gc_always_collect != x ; then
6411 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6414 if test x$ac_fold_checking != x ; then
6416 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6419 valgrind_path_defines=
6422 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6431 if test x$ac_valgrind_checking != x ; then
6432 # It is certainly possible that there's valgrind but no valgrind.h.
6433 # GCC relies on making annotations so we must have both.
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6435 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 #include <valgrind/memcheck.h>
6439 #ifndef VALGRIND_DISCARD
6440 #error VALGRIND_DISCARD not defined
6443 if ac_fn_c_try_cpp "$LINENO"; then :
6444 gcc_cv_header_valgrind_memcheck_h=yes
6446 gcc_cv_header_valgrind_memcheck_h=no
6448 rm -f conftest.err conftest.$ac_ext
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6450 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6452 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 #include <memcheck.h>
6456 #ifndef VALGRIND_DISCARD
6457 #error VALGRIND_DISCARD not defined
6460 if ac_fn_c_try_cpp "$LINENO"; then :
6461 gcc_cv_header_memcheck_h=yes
6463 gcc_cv_header_memcheck_h=no
6465 rm -f conftest.err conftest.$ac_ext
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6467 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6469 # Prepare PATH_SEPARATOR.
6470 # The user is always right.
6471 if test "${PATH_SEPARATOR+set}" != set; then
6472 echo "#! /bin/sh" >conf$$.sh
6473 echo "exit 0" >>conf$$.sh
6475 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6483 # Find out how to test for executable files. Don't use a zero-byte file,
6484 # as systems may use methods other than mode bits to determine executability.
6485 cat >conf$$.file <<_ASEOF
6489 chmod +x conf$$.file
6490 if test -x conf$$.file >/dev/null 2>&1; then
6491 ac_executable_p="test -x"
6493 ac_executable_p="test -f"
6497 # Extract the first word of "valgrind", so it can be a program name with args.
6498 set dummy valgrind; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6504 case "$valgrind_path" in
6506 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6509 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6510 for ac_dir in $PATH; do
6512 test -z "$ac_dir" && ac_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6515 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6516 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6526 valgrind_path="$ac_cv_path_valgrind_path"
6527 if test -n "$valgrind_path"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6529 $as_echo "$valgrind_path" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$valgrind_path" = "x" \
6536 || (test $have_valgrind_h = no \
6537 && test $gcc_cv_header_memcheck_h = no \
6538 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6539 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6541 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6542 valgrind_command="$valgrind_path -q"
6544 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6546 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6548 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6551 if test $gcc_cv_header_memcheck_h = yes; then
6553 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6560 # Enable code coverage collection
6561 # Check whether --enable-coverage was given.
6562 if test "${enable_coverage+set}" = set; then :
6563 enableval=$enable_coverage; case "${enableval}" in
6565 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6568 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6571 # a.k.a. --disable-coverage
6575 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6584 # Check whether --enable-gather-detailed-mem-stats was given.
6585 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6586 enableval=$enable_gather_detailed_mem_stats;
6588 enable_gather_detailed_mem_stats=no
6591 if test x$enable_gather_detailed_mem_stats = xyes ; then
6593 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6597 # -------------------------------
6598 # Miscenalleous configure options
6599 # -------------------------------
6601 # See if we are building gcc with C++.
6602 # Check whether --enable-build-with-cxx was given.
6603 if test "${enable_build_with_cxx+set}" = set; then :
6604 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6606 ENABLE_BUILD_WITH_CXX=no
6613 # Check whether --with-stabs was given.
6614 if test "${with_stabs+set}" = set; then :
6615 withval=$with_stabs; stabs="$with_stabs"
6621 # Determine whether or not multilibs are enabled.
6622 # Check whether --enable-multilib was given.
6623 if test "${enable_multilib+set}" = set; then :
6624 enableval=$enable_multilib;
6631 # Enable __cxa_atexit for C++.
6632 # Check whether --enable-__cxa_atexit was given.
6633 if test "${enable___cxa_atexit+set}" = set; then :
6634 enableval=$enable___cxa_atexit;
6638 # Enable C extension for decimal float if target supports it.
6639 # Check whether --enable-decimal-float was given.
6640 if test "${enable_decimal_float+set}" = set; then :
6641 enableval=$enable_decimal_float;
6642 case $enable_decimal_float in
6643 yes | no | bid | dpd) ;;
6644 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6645 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6651 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6652 enable_decimal_float=yes
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6656 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6657 enable_decimal_float=no
6664 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6666 cat >>confdefs.h <<_ACEOF
6667 #define ENABLE_DECIMAL_FLOAT $dfp
6671 # x86's use BID format instead of DPD
6672 case x$enable_decimal_float in
6675 i?86*-*-linux* | x86_64*-*-linux*)
6676 enable_decimal_float=bid
6679 enable_decimal_float=dpd
6684 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6685 # dependency on libdecnumber.
6686 enable_decimal_float=dpd
6691 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6693 cat >>confdefs.h <<_ACEOF
6694 #define ENABLE_DECIMAL_BID_FORMAT $bid
6698 # Enable C extension for fixed-point arithmetic.
6699 # Check whether --enable-fixed-point was given.
6700 if test "${enable_fixed_point+set}" = set; then :
6701 enableval=$enable_fixed_point;
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6710 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6711 enable_fixed_point=no
6714 enable_fixed_point=yes
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6720 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6721 enable_fixed_point=no
6729 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6731 cat >>confdefs.h <<_ACEOF
6732 #define ENABLE_FIXED_POINT $fixedpoint
6737 # Pass with no value to take the default
6738 # Pass with a value to specify a thread package
6739 # Check whether --enable-threads was given.
6740 if test "${enable_threads+set}" = set; then :
6741 enableval=$enable_threads;
6747 # Check whether --enable-tls was given.
6748 if test "${enable_tls+set}" = set; then :
6749 enableval=$enable_tls;
6752 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6753 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6761 # Check whether --enable-objc-gc was given.
6762 if test "${enable_objc_gc+set}" = set; then :
6763 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6774 # Check whether --with-dwarf2 was given.
6775 if test "${with_dwarf2+set}" = set; then :
6776 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6782 # Check whether --enable-shared was given.
6783 if test "${enable_shared+set}" = set; then :
6784 enableval=$enable_shared;
6785 case $enable_shared in
6789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6790 for pkg in $enableval; do
6791 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6806 # Check whether --with-build-sysroot was given.
6807 if test "${with_build_sysroot+set}" = set; then :
6808 withval=$with_build_sysroot;
6813 # Check whether --with-sysroot was given.
6814 if test "${with_sysroot+set}" = set; then :
6815 withval=$with_sysroot;
6816 case ${with_sysroot} in
6817 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6818 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6821 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6822 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6824 if test "x$prefix" = xNONE; then
6825 test_prefix=/usr/local
6829 if test "x$exec_prefix" = xNONE; then
6830 test_exec_prefix=$test_prefix
6832 test_exec_prefix=$exec_prefix
6834 case ${TARGET_SYSTEM_ROOT} in
6835 "${test_prefix}"|"${test_prefix}/"*|\
6836 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6837 '${prefix}'|'${prefix}/'*|\
6838 '${exec_prefix}'|'${exec_prefix}/'*)
6839 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6840 TARGET_SYSTEM_ROOT_DEFINE="$t"
6847 TARGET_SYSTEM_ROOT_DEFINE=
6848 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6856 # Build with intermodule optimisations
6857 # Check whether --enable-intermodule was given.
6858 if test "${enable_intermodule+set}" = set; then :
6859 enableval=$enable_intermodule; case ${enable_intermodule} in
6860 yes) onestep="-onestep";;
6871 # Check whether --with-pkgversion was given.
6872 if test "${with_pkgversion+set}" = set; then :
6873 withval=$with_pkgversion; case "$withval" in
6874 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6876 *) PKGVERSION="($withval) " ;;
6887 # Check whether --with-bugurl was given.
6888 if test "${with_bugurl+set}" = set; then :
6889 withval=$with_bugurl; case "$withval" in
6890 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6893 *) BUGURL="$withval"
6897 BUGURL="http://gcc.gnu.org/bugs.html"
6907 REPORT_BUGS_TO="<$BUGURL>"
6908 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6915 # Sanity check enable_languages in case someone does not run the toplevel
6916 # configure # script.
6917 # Check whether --enable-languages was given.
6918 if test "${enable_languages+set}" = set; then :
6919 enableval=$enable_languages; case ,${enable_languages}, in
6921 # go safe -- we cannot be much sure without the toplevel
6923 # analysis of which target libs are present and usable
6927 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6932 enable_languages=c,${enable_languages}
6941 # Check whether --with-multilib-list was given.
6942 if test "${with_multilib_list+set}" = set; then :
6943 withval=$with_multilib_list; :
6945 with_multilib_list=default
6949 # -------------------------
6950 # Checks for other programs
6951 # -------------------------
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6954 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6956 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6957 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6958 $as_echo_n "(cached) " >&6
6960 cat >conftest.make <<\_ACEOF
6963 @echo '@@@%%%=$(MAKE)=@@@%%%'
6965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6968 eval ac_cv_prog_make_${ac_make}_set=yes;;
6970 eval ac_cv_prog_make_${ac_make}_set=no;;
6974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6976 $as_echo "yes" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 SET_MAKE="MAKE=${MAKE-make}"
6985 # Find some useful tools
6986 for ac_prog in gawk mawk nawk awk
6988 # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_prog_AWK+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6995 if test -n "$AWK"; then
6996 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_AWK="$ac_prog"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 if test -n "$AWK"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7018 $as_echo "$AWK" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7025 test -n "$AWK" && break
7028 # We need awk to create options.c and options.h.
7029 # Bail out if it's missing.
7031 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7035 $as_echo_n "checking whether ln -s works... " >&6; }
7036 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7039 rm -f conftestdata_t
7040 echo >conftestdata_f
7041 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7043 gcc_cv_prog_LN_S="ln -s"
7045 if ln conftestdata_f conftestdata_t 2>/dev/null
7049 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7051 gcc_cv_prog_LN_S="cp -p"
7057 rm -f conftestdata_f conftestdata_t
7060 LN_S="$gcc_cv_prog_LN_S"
7061 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7063 $as_echo "yes" >&6; }
7065 if test "$gcc_cv_prog_LN_S" = "ln"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7067 $as_echo "no, using ln" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7070 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7075 $as_echo_n "checking whether ln works... " >&6; }
7076 if test "${acx_cv_prog_LN+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7079 rm -f conftestdata_t
7080 echo >conftestdata_f
7081 if ln conftestdata_f conftestdata_t 2>/dev/null
7087 rm -f conftestdata_f conftestdata_t
7090 if test $acx_cv_prog_LN = no; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7093 $as_echo "no, using $LN" >&6; }
7095 LN="$acx_cv_prog_LN"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7097 $as_echo "yes" >&6; }
7100 if test -n "$ac_tool_prefix"; then
7101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7108 if test -n "$RANLIB"; then
7109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 RANLIB=$ac_cv_prog_RANLIB
7129 if test -n "$RANLIB"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7131 $as_echo "$RANLIB" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7139 if test -z "$ac_cv_prog_RANLIB"; then
7140 ac_ct_RANLIB=$RANLIB
7141 # Extract the first word of "ranlib", so it can be a program name with args.
7142 set dummy ranlib; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7148 if test -n "$ac_ct_RANLIB"; then
7149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_prog_ac_ct_RANLIB="ranlib"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7169 if test -n "$ac_ct_RANLIB"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7171 $as_echo "$ac_ct_RANLIB" >&6; }
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7177 if test "x$ac_ct_RANLIB" = x; then
7180 case $cross_compiling:$ac_tool_warned in
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184 ac_tool_warned=yes ;;
7186 RANLIB=$ac_ct_RANLIB
7189 RANLIB="$ac_cv_prog_RANLIB"
7194 # By default, the Darwin ranlib will not treat common symbols as
7195 # definitions when building the archive table of contents. Other
7196 # ranlibs do that; pass an option to the Darwin ranlib that makes
7197 # it behave similarly.
7205 # Find a good install program. We prefer a C program (faster),
7206 # so one script is as good as another. But avoid the broken or
7207 # incompatible versions:
7208 # SysV /etc/install, /usr/sbin/install
7209 # SunOS /usr/etc/install
7210 # IRIX /sbin/install
7212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7214 # ./install, which can be erroneously created by make from ./install.sh.
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7216 $as_echo_n "checking for a BSD compatible install... " >&6; }
7217 if test -z "$INSTALL"; then
7218 if test "${ac_cv_path_install+set}" = set; then :
7219 $as_echo_n "(cached) " >&6
7221 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7222 for ac_dir in $PATH; do
7223 # Account for people who put trailing slashes in PATH elements.
7225 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7227 # OSF1 and SCO ODT 3.0 have their own names for install.
7228 for ac_prog in ginstall scoinst install; do
7229 if test -f $ac_dir/$ac_prog; then
7230 if test $ac_prog = install &&
7231 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7232 # AIX install. It has an incompatible calling convention.
7233 # OSF/1 installbsd also uses dspmsg, but is usable.
7236 ac_cv_path_install="$ac_dir/$ac_prog -c"
7247 if test "${ac_cv_path_install+set}" = set; then
7248 INSTALL="$ac_cv_path_install"
7250 # As a last resort, use the slow shell script. We don't cache a
7251 # path for INSTALL within a source directory, because that will
7252 # break other packages using the cache if that directory is
7253 # removed, or if the path is relative.
7254 INSTALL="$ac_install_sh"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7258 $as_echo "$INSTALL" >&6; }
7260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7261 # It thinks the first close brace ends the variable substitution.
7262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7264 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7267 # See if cmp has --ignore-initial.
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7269 $as_echo_n "checking for cmp's capabilities... " >&6; }
7270 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7275 gcc_cv_prog_cmp_skip=slowcompare
7276 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7277 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7280 gcc_cv_prog_cmp_skip=gnucompare
7283 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7284 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7285 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7288 gcc_cv_prog_cmp_skip=fastcompare
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7296 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7297 make_compare_target=$gcc_cv_prog_cmp_skip
7301 # See if we have the mktemp command.
7302 # Extract the first word of "mktemp", so it can be a program name with args.
7303 set dummy mktemp; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$have_mktemp_command"; then
7310 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_have_mktemp_command="yes"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7330 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7331 if test -n "$have_mktemp_command"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7333 $as_echo "$have_mktemp_command" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7341 # See if makeinfo has been installed and is modern enough
7342 # that we can use it.
7344 # Extract the first word of "makeinfo", so it can be a program name with args.
7345 set dummy makeinfo; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7351 if test -n "$MAKEINFO"; then
7352 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_MAKEINFO="makeinfo"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 MAKEINFO=$ac_cv_prog_MAKEINFO
7372 if test -n "$MAKEINFO"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7374 $as_echo "$MAKEINFO" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7381 if test -n "$MAKEINFO"; then
7382 # Found it, now check the version.
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7384 $as_echo_n "checking for modern makeinfo... " >&6; }
7385 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7388 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7389 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7391 case $ac_prog_version in
7392 '') gcc_cv_prog_makeinfo_modern=no;;
7393 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7394 *) gcc_cv_prog_makeinfo_modern=no;;
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7399 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7401 gcc_cv_prog_makeinfo_modern=no
7403 if test $gcc_cv_prog_makeinfo_modern = no; then
7404 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7407 if test $gcc_cv_prog_makeinfo_modern = no; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7409 *** Makeinfo is missing or too old.
7410 *** Info documentation will not be built." >&5
7411 $as_echo "$as_me: WARNING:
7412 *** Makeinfo is missing or too old.
7413 *** Info documentation will not be built." >&2;}
7420 # Is pod2man recent enough to regenerate manpages?
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7422 $as_echo_n "checking for recent Pod::Man... " >&6; }
7423 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7425 $as_echo "yes" >&6; }
7426 GENERATED_MANPAGES=generated-manpages
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7434 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7439 # Extract the first word of "$ac_prog", so it can be a program name with args.
7440 set dummy $ac_prog; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_FLEX+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$FLEX"; then
7447 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_FLEX="$ac_prog"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 FLEX=$ac_cv_prog_FLEX
7467 if test -n "$FLEX"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7469 $as_echo "$FLEX" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7476 test -n "$FLEX" && break
7478 test -n "$FLEX" || FLEX="$MISSING flex"
7482 for ac_prog in bison
7484 # Extract the first word of "$ac_prog", so it can be a program name with args.
7485 set dummy $ac_prog; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_BISON+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -n "$BISON"; then
7492 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_prog_BISON="$ac_prog"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 BISON=$ac_cv_prog_BISON
7512 if test -n "$BISON"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7514 $as_echo "$BISON" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7521 test -n "$BISON" && break
7523 test -n "$BISON" || BISON="$MISSING bison"
7526 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7527 # check for build == host before using them.
7530 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7531 && test -d ../binutils ; then
7532 NM='$(objdir)/../binutils/nm-new'
7534 # Extract the first word of "nm", so it can be a program name with args.
7535 set dummy nm; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_NM+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$NM"; then
7542 ac_cv_prog_NM="$NM" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7563 if test -n "$NM"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7565 $as_echo "$NM" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7575 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7576 && test -d ../binutils ; then
7577 AR='$(objdir)/../binutils/ar'
7579 # Extract the first word of "ar", so it can be a program name with args.
7580 set dummy ar; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_AR+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7586 if test -n "$AR"; then
7587 ac_cv_prog_AR="$AR" # Let the user override the test.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7608 if test -n "$AR"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7610 $as_echo "$AR" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7620 # --------------------
7621 # Checks for C headers
7622 # --------------------
7624 # Need to reject headers which give warnings, so that the -Werror bootstrap
7625 # works later. *sigh* This needs to come before all header checks.
7627 ac_c_preproc_warn_flag=yes
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7630 $as_echo_n "checking for ANSI C header files... " >&6; }
7631 if test "${ac_cv_header_stdc+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7649 if ac_fn_c_try_compile "$LINENO"; then :
7650 ac_cv_header_stdc=yes
7652 ac_cv_header_stdc=no
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 if test $ac_cv_header_stdc = yes; then
7657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7664 $EGREP "memchr" >/dev/null 2>&1; then :
7667 ac_cv_header_stdc=no
7673 if test $ac_cv_header_stdc = yes; then
7674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7681 $EGREP "free" >/dev/null 2>&1; then :
7684 ac_cv_header_stdc=no
7690 if test $ac_cv_header_stdc = yes; then
7691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7692 if test "$cross_compiling" = yes; then :
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7699 #if ((' ' & 0x0FF) == 0x020)
7700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7703 # define ISLOWER(c) \
7704 (('a' <= (c) && (c) <= 'i') \
7705 || ('j' <= (c) && (c) <= 'r') \
7706 || ('s' <= (c) && (c) <= 'z'))
7707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7715 for (i = 0; i < 256; i++)
7716 if (XOR (islower (i), ISLOWER (i))
7717 || toupper (i) != TOUPPER (i))
7722 if ac_fn_c_try_run "$LINENO"; then :
7725 ac_cv_header_stdc=no
7727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7728 conftest.$ac_objext conftest.beam conftest.$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7734 $as_echo "$ac_cv_header_stdc" >&6; }
7735 if test $ac_cv_header_stdc = yes; then
7737 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7742 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7743 if test "${ac_cv_header_time+set}" = set; then :
7744 $as_echo_n "(cached) " >&6
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <sys/types.h>
7749 #include <sys/time.h>
7755 if ((struct tm *) 0)
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762 ac_cv_header_time=yes
7764 ac_cv_header_time=no
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7769 $as_echo "$ac_cv_header_time" >&6; }
7770 if test $ac_cv_header_time = yes; then
7772 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7777 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7778 if test "${gcc_cv_header_string+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7784 #include <strings.h>
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 gcc_cv_header_string=yes
7796 gcc_cv_header_string=no
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7801 $as_echo "$gcc_cv_header_string" >&6; }
7802 if test $gcc_cv_header_string = yes; then
7804 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7809 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7810 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #include <sys/types.h>
7816 #include <sys/wait.h>
7818 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7821 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7829 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7834 if ac_fn_c_try_compile "$LINENO"; then :
7835 ac_cv_header_sys_wait_h=yes
7837 ac_cv_header_sys_wait_h=no
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7842 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7843 if test $ac_cv_header_sys_wait_h = yes; then
7845 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7849 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7850 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7851 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7852 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7855 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7856 eval as_val=\$$as_ac_Header
7857 if test "x$as_val" = x""yes; then :
7858 cat >>confdefs.h <<_ACEOF
7859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866 # Check for thread headers.
7867 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7868 if test "x$ac_cv_header_thread_h" = x""yes; then :
7874 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7875 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7882 # These tests can't be done till we know if we have limits.h.
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7884 $as_echo_n "checking for CHAR_BIT... " >&6; }
7885 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #ifdef HAVE_LIMITS_H
7897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7898 $EGREP "found" >/dev/null 2>&1; then :
7899 gcc_cv_decl_char_bit=yes
7901 gcc_cv_decl_char_bit=no
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7908 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7909 if test $gcc_cv_decl_char_bit = no; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7911 $as_echo_n "checking number of bits in a byte... " >&6; }
7912 if test "${gcc_cv_c_nbby+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7917 while test $i -lt 65; do
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7925 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7926 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7932 if ac_fn_c_try_compile "$LINENO"; then :
7933 gcc_cv_c_nbby=$i; break
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7942 $as_echo "$gcc_cv_c_nbby" >&6; }
7943 if test $gcc_cv_c_nbby = failed; then
7944 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7947 cat >>confdefs.h <<_ACEOF
7948 #define CHAR_BIT $gcc_cv_c_nbby
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7954 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7955 if test "${ac_cv_c_bigendian+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7958 ac_cv_c_bigendian=unknown
7959 # See if we're dealing with a universal compiler.
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 #ifndef __APPLE_CC__
7963 not a universal capable compiler
7968 if ac_fn_c_try_compile "$LINENO"; then :
7970 # Check for potential -arch flags. It is not universal unless
7971 # there are at least two -arch flags with different values.
7974 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7975 if test -n "$ac_prev"; then
7977 i?86 | x86_64 | ppc | ppc64)
7978 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7981 ac_cv_c_bigendian=universal
7987 elif test "x$ac_word" = "x-arch"; then
7992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 if test $ac_cv_c_bigendian = unknown; then
7994 # See if sys/param.h defines the BYTE_ORDER macro.
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 #include <sys/types.h>
7998 #include <sys/param.h>
8003 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8004 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8013 if ac_fn_c_try_compile "$LINENO"; then :
8014 # It does; now see whether it defined to BIG_ENDIAN or not.
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 #include <sys/types.h>
8018 #include <sys/param.h>
8023 #if BYTE_ORDER != BIG_ENDIAN
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032 ac_cv_c_bigendian=yes
8034 ac_cv_c_bigendian=no
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 if test $ac_cv_c_bigendian = unknown; then
8041 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8049 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 # It does; now see whether it defined to _BIG_ENDIAN or not.
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 ac_cv_c_bigendian=yes
8077 ac_cv_c_bigendian=no
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 if test $ac_cv_c_bigendian = unknown; then
8084 # Compile a test program.
8085 if test "$cross_compiling" = yes; then :
8086 # Try to guess by grepping values from an object file.
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 short int ascii_mm[] =
8090 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8091 short int ascii_ii[] =
8092 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8093 int use_ascii (int i) {
8094 return ascii_mm[i] + ascii_ii[i];
8096 short int ebcdic_ii[] =
8097 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8098 short int ebcdic_mm[] =
8099 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8100 int use_ebcdic (int i) {
8101 return ebcdic_mm[i] + ebcdic_ii[i];
8108 return use_ascii (foo) == use_ebcdic (foo);
8113 if ac_fn_c_try_compile "$LINENO"; then :
8114 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8115 ac_cv_c_bigendian=yes
8117 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8118 if test "$ac_cv_c_bigendian" = unknown; then
8119 ac_cv_c_bigendian=no
8121 # finding both strings is unlikely to happen, but who knows?
8122 ac_cv_c_bigendian=unknown
8126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 $ac_includes_default
8135 /* Are we little or big endian? From Harbison&Steele. */
8139 char c[sizeof (long int)];
8142 return u.c[sizeof (long int) - 1] == 1;
8148 if ac_fn_c_try_run "$LINENO"; then :
8149 ac_cv_c_bigendian=no
8151 ac_cv_c_bigendian=yes
8153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8154 conftest.$ac_objext conftest.beam conftest.$ac_ext
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8160 $as_echo "$ac_cv_c_bigendian" >&6; }
8161 case $ac_cv_c_bigendian in #(
8163 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8169 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8173 as_fn_error "unknown endianness
8174 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8183 # These libraries may be used by collect2.
8184 # We may need a special search path to get them linked.
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8186 $as_echo_n "checking for collect2 libraries... " >&6; }
8187 if test "${gcc_cv_collect2_libs+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8191 for libs in '' -lld -lmld \
8192 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8193 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8199 /* Override any GCC internal prototype to avoid an error.
8200 Use char because int might match the return type of a GCC
8201 builtin and then its argument prototype would still apply. */
8214 if ac_fn_c_try_link "$LINENO"; then :
8215 gcc_cv_collect2_libs="$libs"; break
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8221 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8224 $as_echo "$gcc_cv_collect2_libs" >&6; }
8225 case $gcc_cv_collect2_libs in
8227 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8231 # When building Ada code on Alpha, we need exc_resume which is usually in
8232 # -lexc. So test for it.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8236 $as_echo_n "checking for library containing exc_resume... " >&6; }
8237 if test "${ac_cv_search_exc_resume+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8240 ac_func_search_save_LIBS=$LIBS
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8244 /* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8254 return exc_resume ();
8259 for ac_lib in '' exc; do
8260 if test -z "$ac_lib"; then
8261 ac_res="none required"
8264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8266 if ac_fn_c_try_link "$LINENO"; then :
8267 ac_cv_search_exc_resume=$ac_res
8269 rm -f core conftest.err conftest.$ac_objext \
8271 if test "${ac_cv_search_exc_resume+set}" = set; then :
8275 if test "${ac_cv_search_exc_resume+set}" = set; then :
8278 ac_cv_search_exc_resume=no
8281 LIBS=$ac_func_search_save_LIBS
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8284 $as_echo "$ac_cv_search_exc_resume" >&6; }
8285 ac_res=$ac_cv_search_exc_resume
8286 if test "$ac_res" != no; then :
8287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8295 # Some systems put ldexp and frexp in libm instead of libc; assume
8296 # they're both in the same place. jcf-dump needs them.
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8300 $as_echo_n "checking for library containing ldexp... " >&6; }
8301 if test "${ac_cv_search_ldexp+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8304 ac_func_search_save_LIBS=$LIBS
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8308 /* Override any GCC internal prototype to avoid an error.
8309 Use char because int might match the return type of a GCC
8310 builtin and then its argument prototype would still apply. */
8323 for ac_lib in '' m; do
8324 if test -z "$ac_lib"; then
8325 ac_res="none required"
8328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8330 if ac_fn_c_try_link "$LINENO"; then :
8331 ac_cv_search_ldexp=$ac_res
8333 rm -f core conftest.err conftest.$ac_objext \
8335 if test "${ac_cv_search_ldexp+set}" = set; then :
8339 if test "${ac_cv_search_ldexp+set}" = set; then :
8342 ac_cv_search_ldexp=no
8345 LIBS=$ac_func_search_save_LIBS
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8348 $as_echo "$ac_cv_search_ldexp" >&6; }
8349 ac_res=$ac_cv_search_ldexp
8350 if test "$ac_res" != no; then :
8351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8359 # Use <inttypes.h> only if it exists,
8360 # doesn't clash with <sys/types.h>, and declares intmax_t.
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8362 $as_echo_n "checking for inttypes.h... " >&6; }
8363 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 #include <sys/types.h>
8369 #include <inttypes.h>
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379 gcc_cv_header_inttypes_h=yes
8381 gcc_cv_header_inttypes_h=no
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8387 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8388 if test $gcc_cv_header_inttypes_h = yes; then
8390 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8396 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8397 sysconf strsignal getrusage nl_langinfo \
8398 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8399 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
8401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8402 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8403 eval as_val=\$$as_ac_var
8404 if test "x$as_val" = x""yes; then :
8405 cat >>confdefs.h <<_ACEOF
8406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8413 if test x$ac_cv_func_mbstowcs = xyes; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8415 $as_echo_n "checking whether mbstowcs works... " >&6; }
8416 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8419 if test "$cross_compiling" = yes; then :
8420 gcc_cv_func_mbstowcs_works=yes
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8431 if ac_fn_c_try_run "$LINENO"; then :
8432 gcc_cv_func_mbstowcs_works=yes
8434 gcc_cv_func_mbstowcs_works=no
8436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8437 conftest.$ac_objext conftest.beam conftest.$ac_ext
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8442 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8443 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8445 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8450 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8451 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8455 cat >>confdefs.h <<_ACEOF
8461 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8462 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8466 cat >>confdefs.h <<_ACEOF
8467 #define caddr_t char *
8474 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8475 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8476 gcc_header_sys_mman_h=yes
8478 gcc_header_sys_mman_h=no
8481 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8482 if test "x$ac_cv_func_mmap" = x""yes; then :
8488 if test "$gcc_header_sys_mman_h" != yes \
8489 || test "$gcc_func_mmap" != yes; then
8490 gcc_cv_func_mmap_file=no
8491 gcc_cv_func_mmap_dev_zero=no
8492 gcc_cv_func_mmap_anon=no
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8495 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8496 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8499 # Add a system to this blacklist if
8500 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8501 # memory area containing the same data that you'd get if you applied
8502 # read() to the same fd. The only system known to have a problem here
8503 # is VMS, where text files have record structure.
8506 gcc_cv_func_mmap_file=no ;;
8508 gcc_cv_func_mmap_file=yes;;
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8512 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8514 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8515 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8518 # Add a system to this blacklist if it has mmap() but /dev/zero
8519 # does not exist, or if mmapping /dev/zero does not give anonymous
8520 # zeroed pages with both the following properties:
8521 # 1. If you map N consecutive pages in with one call, and then
8522 # unmap any subset of those pages, the pages that were not
8523 # explicitly unmapped remain accessible.
8524 # 2. If you map two adjacent blocks of memory and then unmap them
8525 # both at once, they must both go away.
8526 # Systems known to be in this category are Windows (all variants),
8529 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8530 gcc_cv_func_mmap_dev_zero=no ;;
8532 gcc_cv_func_mmap_dev_zero=yes;;
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8536 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8538 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8540 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8541 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 #include <sys/types.h>
8547 #include <sys/mman.h>
8550 #ifndef MAP_ANONYMOUS
8551 #define MAP_ANONYMOUS MAP_ANON
8557 int n = MAP_ANONYMOUS;
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 gcc_cv_decl_map_anon=yes
8565 gcc_cv_decl_map_anon=no
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8570 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8572 if test $gcc_cv_decl_map_anon = no; then
8573 gcc_cv_func_mmap_anon=no
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8576 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8577 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8580 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8581 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8582 # doesn't give anonymous zeroed pages with the same properties listed
8583 # above for use of /dev/zero.
8584 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8586 vms* | cygwin* | pe | mingw* | sco* | udk* )
8587 gcc_cv_func_mmap_anon=no ;;
8589 gcc_cv_func_mmap_anon=yes;;
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8593 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8597 if test $gcc_cv_func_mmap_file = yes; then
8599 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8602 if test $gcc_cv_func_mmap_dev_zero = yes; then
8604 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8607 if test $gcc_cv_func_mmap_anon = yes; then
8609 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8616 # Under VMS, vfork works very differently than on Unix. The standard test
8617 # won't work, and it isn't easily adaptable. It makes more sense to
8619 ac_cv_func_vfork_works=yes
8622 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8623 if test "x$ac_cv_type_pid_t" = x""yes; then :
8627 cat >>confdefs.h <<_ACEOF
8633 for ac_header in vfork.h
8635 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8636 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8637 cat >>confdefs.h <<_ACEOF
8638 #define HAVE_VFORK_H 1
8644 for ac_func in fork vfork
8646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8648 eval as_val=\$$as_ac_var
8649 if test "x$as_val" = x""yes; then :
8650 cat >>confdefs.h <<_ACEOF
8651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8657 if test "x$ac_cv_func_fork" = xyes; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8659 $as_echo_n "checking for working fork... " >&6; }
8660 if test "${ac_cv_func_fork_works+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8663 if test "$cross_compiling" = yes; then :
8664 ac_cv_func_fork_works=cross
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 $ac_includes_default
8673 /* By Ruediger Kuhlmann. */
8680 if ac_fn_c_try_run "$LINENO"; then :
8681 ac_cv_func_fork_works=yes
8683 ac_cv_func_fork_works=no
8685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8686 conftest.$ac_objext conftest.beam conftest.$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8691 $as_echo "$ac_cv_func_fork_works" >&6; }
8694 ac_cv_func_fork_works=$ac_cv_func_fork
8696 if test "x$ac_cv_func_fork_works" = xcross; then
8698 *-*-amigaos* | *-*-msdosdjgpp*)
8699 # Override, as these systems have only a dummy fork() stub
8700 ac_cv_func_fork_works=no
8703 ac_cv_func_fork_works=yes
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8707 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8709 ac_cv_func_vfork_works=$ac_cv_func_vfork
8710 if test "x$ac_cv_func_vfork" = xyes; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8712 $as_echo_n "checking for working vfork... " >&6; }
8713 if test "${ac_cv_func_vfork_works+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8716 if test "$cross_compiling" = yes; then :
8717 ac_cv_func_vfork_works=cross
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 /* Thanks to Paul Eggert for this test. */
8722 $ac_includes_default
8723 #include <sys/wait.h>
8727 /* On some sparc systems, changes by the child to local and incoming
8728 argument registers are propagated back to the parent. The compiler
8729 is told about this with #include <vfork.h>, but some compilers
8730 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8731 static variable whose address is put into a register that is
8732 clobbered by the vfork. */
8735 sparc_address_test (int arg)
8737 sparc_address_test (arg) int arg;
8758 pid_t parent = getpid ();
8761 sparc_address_test (0);
8766 /* Here is another test for sparc vfork register problems. This
8767 test uses lots of local variables, at least as many local
8768 variables as main has allocated so far including compiler
8769 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8770 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8771 reuse the register of parent for one of the local variables,
8772 since it will think that parent can't possibly be used any more
8773 in this routine. Assigning to the local variable will thus
8774 munge parent in the parent process. */
8776 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8777 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8778 /* Convince the compiler that p..p7 are live; otherwise, it might
8779 use the same hardware register for all 8 local variables. */
8780 if (p != p1 || p != p2 || p != p3 || p != p4
8781 || p != p5 || p != p6 || p != p7)
8784 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8785 from child file descriptors. If the child closes a descriptor
8786 before it execs or exits, this munges the parent's descriptor
8787 as well. Test for this by closing stdout in the child. */
8788 _exit(close(fileno(stdout)) != 0);
8793 while (wait(&status) != child)
8796 /* Was there some problem with vforking? */
8799 /* Did the child fail? (This shouldn't happen.) */
8802 /* Did the vfork/compiler bug occur? */
8803 || parent != getpid()
8805 /* Did the file descriptor bug occur? */
8806 || fstat(fileno(stdout), &st) != 0
8811 if ac_fn_c_try_run "$LINENO"; then :
8812 ac_cv_func_vfork_works=yes
8814 ac_cv_func_vfork_works=no
8816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8817 conftest.$ac_objext conftest.beam conftest.$ac_ext
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8822 $as_echo "$ac_cv_func_vfork_works" >&6; }
8825 if test "x$ac_cv_func_fork_works" = xcross; then
8826 ac_cv_func_vfork_works=$ac_cv_func_vfork
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8828 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8831 if test "x$ac_cv_func_vfork_works" = xyes; then
8833 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8837 $as_echo "#define vfork fork" >>confdefs.h
8840 if test "x$ac_cv_func_fork_works" = xyes; then
8842 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8848 if test "X$prefix" = "XNONE"; then
8849 acl_final_prefix="$ac_default_prefix"
8851 acl_final_prefix="$prefix"
8853 if test "X$exec_prefix" = "XNONE"; then
8854 acl_final_exec_prefix='${prefix}'
8856 acl_final_exec_prefix="$exec_prefix"
8858 acl_save_prefix="$prefix"
8859 prefix="$acl_final_prefix"
8860 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8861 prefix="$acl_save_prefix"
8864 # Check whether --with-gnu-ld was given.
8865 if test "${with_gnu_ld+set}" = set; then :
8866 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8871 # Prepare PATH_SEPARATOR.
8872 # The user is always right.
8873 if test "${PATH_SEPARATOR+set}" != set; then
8874 echo "#! /bin/sh" >conf$$.sh
8875 echo "exit 0" >>conf$$.sh
8877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8885 if test "$GCC" = yes; then
8886 # Check if gcc -print-prog-name=ld gives a path.
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8888 $as_echo_n "checking for ld used by GCC... " >&6; }
8891 # gcc leaves a trailing carriage return which upsets mingw
8892 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8894 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8897 # Accept absolute paths.
8898 [\\/]* | [A-Za-z]:[\\/]*)
8899 re_direlt='/[^/][^/]*/\.\./'
8900 # Canonicalize the path of ld
8901 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8902 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8903 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8905 test -z "$LD" && LD="$ac_prog"
8908 # If it fails, then pretend we aren't using GCC.
8912 # If it is relative, then search for the first ld in PATH.
8916 elif test "$with_gnu_ld" = yes; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8918 $as_echo_n "checking for GNU ld... " >&6; }
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8921 $as_echo_n "checking for non-GNU ld... " >&6; }
8923 if test "${acl_cv_path_LD+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8926 if test -z "$LD"; then
8927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8928 for ac_dir in $PATH; do
8929 test -z "$ac_dir" && ac_dir=.
8930 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8931 acl_cv_path_LD="$ac_dir/$ac_prog"
8932 # Check to see if the program is GNU ld. I'd rather use --version,
8933 # but apparently some GNU ld's only accept -v.
8934 # Break only if it was the GNU/non-GNU ld that we prefer.
8935 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8936 test "$with_gnu_ld" != no && break
8938 test "$with_gnu_ld" != yes && break
8944 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8948 LD="$acl_cv_path_LD"
8949 if test -n "$LD"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8951 $as_echo "$LD" >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8956 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8958 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8959 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8962 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8963 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8964 acl_cv_prog_gnu_ld=yes
8966 acl_cv_prog_gnu_ld=no
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8970 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8971 with_gnu_ld=$acl_cv_prog_gnu_ld
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8976 $as_echo_n "checking for shared library run path origin... " >&6; }
8977 if test "${acl_cv_rpath+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8981 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8982 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8989 $as_echo "$acl_cv_rpath" >&6; }
8991 libext="$acl_cv_libext"
8992 shlibext="$acl_cv_shlibext"
8993 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8994 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8995 hardcode_direct="$acl_cv_hardcode_direct"
8996 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8997 # Check whether --enable-rpath was given.
8998 if test "${enable_rpath+set}" = set; then :
8999 enableval=$enable_rpath; :
9013 acl_save_prefix="$prefix"
9014 prefix="$acl_final_prefix"
9015 acl_save_exec_prefix="$exec_prefix"
9016 exec_prefix="$acl_final_exec_prefix"
9018 eval additional_includedir=\"$includedir\"
9019 eval additional_libdir=\"$libdir\"
9021 exec_prefix="$acl_save_exec_prefix"
9022 prefix="$acl_save_prefix"
9025 # Check whether --with-libiconv-prefix was given.
9026 if test "${with_libiconv_prefix+set}" = set; then :
9027 withval=$with_libiconv_prefix;
9028 if test "X$withval" = "Xno"; then
9031 if test "X$withval" = "X"; then
9033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9038 eval additional_includedir=\"$includedir\"
9039 eval additional_libdir=\"$libdir\"
9041 exec_prefix="$acl_save_exec_prefix"
9042 prefix="$acl_save_prefix"
9045 additional_includedir="$withval/include"
9046 additional_libdir="$withval/lib"
9057 names_already_handled=
9058 names_next_round='iconv '
9059 while test -n "$names_next_round"; do
9060 names_this_round="$names_next_round"
9062 for name in $names_this_round; do
9064 for n in $names_already_handled; do
9065 if test "$n" = "$name"; then
9070 if test -z "$already_handled"; then
9071 names_already_handled="$names_already_handled $name"
9072 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9073 eval value=\"\$HAVE_LIB$uppername\"
9074 if test -n "$value"; then
9075 if test "$value" = yes; then
9076 eval value=\"\$LIB$uppername\"
9077 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9078 eval value=\"\$LTLIB$uppername\"
9079 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9088 if test $use_additional = yes; then
9089 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9090 found_dir="$additional_libdir"
9091 found_so="$additional_libdir/lib$name.$shlibext"
9092 if test -f "$additional_libdir/lib$name.la"; then
9093 found_la="$additional_libdir/lib$name.la"
9096 if test -f "$additional_libdir/lib$name.$libext"; then
9097 found_dir="$additional_libdir"
9098 found_a="$additional_libdir/lib$name.$libext"
9099 if test -f "$additional_libdir/lib$name.la"; then
9100 found_la="$additional_libdir/lib$name.la"
9105 if test "X$found_dir" = "X"; then
9106 for x in $LDFLAGS $LTLIBICONV; do
9108 acl_save_prefix="$prefix"
9109 prefix="$acl_final_prefix"
9110 acl_save_exec_prefix="$exec_prefix"
9111 exec_prefix="$acl_final_exec_prefix"
9113 exec_prefix="$acl_save_exec_prefix"
9114 prefix="$acl_save_prefix"
9118 dir=`echo "X$x" | sed -e 's/^X-L//'`
9119 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9121 found_so="$dir/lib$name.$shlibext"
9122 if test -f "$dir/lib$name.la"; then
9123 found_la="$dir/lib$name.la"
9126 if test -f "$dir/lib$name.$libext"; then
9128 found_a="$dir/lib$name.$libext"
9129 if test -f "$dir/lib$name.la"; then
9130 found_la="$dir/lib$name.la"
9136 if test "X$found_dir" != "X"; then
9141 if test "X$found_dir" != "X"; then
9142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9143 if test "X$found_so" != "X"; then
9144 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9145 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9148 for x in $ltrpathdirs; do
9149 if test "X$x" = "X$found_dir"; then
9154 if test -z "$haveit"; then
9155 ltrpathdirs="$ltrpathdirs $found_dir"
9157 if test "$hardcode_direct" = yes; then
9158 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9160 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9163 for x in $rpathdirs; do
9164 if test "X$x" = "X$found_dir"; then
9169 if test -z "$haveit"; then
9170 rpathdirs="$rpathdirs $found_dir"
9174 for x in $LDFLAGS $LIBICONV; do
9176 acl_save_prefix="$prefix"
9177 prefix="$acl_final_prefix"
9178 acl_save_exec_prefix="$exec_prefix"
9179 exec_prefix="$acl_final_exec_prefix"
9181 exec_prefix="$acl_save_exec_prefix"
9182 prefix="$acl_save_prefix"
9184 if test "X$x" = "X-L$found_dir"; then
9189 if test -z "$haveit"; then
9190 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9192 if test "$hardcode_minus_L" != no; then
9193 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9195 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9201 if test "X$found_a" != "X"; then
9202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9204 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9207 additional_includedir=
9208 case "$found_dir" in
9210 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9211 additional_includedir="$basedir/include"
9214 if test "X$additional_includedir" != "X"; then
9215 if test "X$additional_includedir" != "X/usr/include"; then
9217 if test "X$additional_includedir" = "X/usr/local/include"; then
9218 if test -n "$GCC"; then
9220 linux*) haveit=yes;;
9224 if test -z "$haveit"; then
9225 for x in $CPPFLAGS $INCICONV; do
9227 acl_save_prefix="$prefix"
9228 prefix="$acl_final_prefix"
9229 acl_save_exec_prefix="$exec_prefix"
9230 exec_prefix="$acl_final_exec_prefix"
9232 exec_prefix="$acl_save_exec_prefix"
9233 prefix="$acl_save_prefix"
9235 if test "X$x" = "X-I$additional_includedir"; then
9240 if test -z "$haveit"; then
9241 if test -d "$additional_includedir"; then
9242 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9248 if test -n "$found_la"; then
9249 save_libdir="$libdir"
9251 */* | *\\*) . "$found_la" ;;
9252 *) . "./$found_la" ;;
9254 libdir="$save_libdir"
9255 for dep in $dependency_libs; do
9258 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9259 if test "X$additional_libdir" != "X/usr/lib"; then
9261 if test "X$additional_libdir" = "X/usr/local/lib"; then
9262 if test -n "$GCC"; then
9264 linux*) haveit=yes;;
9268 if test -z "$haveit"; then
9270 for x in $LDFLAGS $LIBICONV; do
9272 acl_save_prefix="$prefix"
9273 prefix="$acl_final_prefix"
9274 acl_save_exec_prefix="$exec_prefix"
9275 exec_prefix="$acl_final_exec_prefix"
9277 exec_prefix="$acl_save_exec_prefix"
9278 prefix="$acl_save_prefix"
9280 if test "X$x" = "X-L$additional_libdir"; then
9285 if test -z "$haveit"; then
9286 if test -d "$additional_libdir"; then
9287 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9291 for x in $LDFLAGS $LTLIBICONV; do
9293 acl_save_prefix="$prefix"
9294 prefix="$acl_final_prefix"
9295 acl_save_exec_prefix="$exec_prefix"
9296 exec_prefix="$acl_final_exec_prefix"
9298 exec_prefix="$acl_save_exec_prefix"
9299 prefix="$acl_save_prefix"
9301 if test "X$x" = "X-L$additional_libdir"; then
9306 if test -z "$haveit"; then
9307 if test -d "$additional_libdir"; then
9308 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9315 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9316 if test "$enable_rpath" != no; then
9318 for x in $rpathdirs; do
9319 if test "X$x" = "X$dir"; then
9324 if test -z "$haveit"; then
9325 rpathdirs="$rpathdirs $dir"
9328 for x in $ltrpathdirs; do
9329 if test "X$x" = "X$dir"; then
9334 if test -z "$haveit"; then
9335 ltrpathdirs="$ltrpathdirs $dir"
9340 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9343 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9346 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9347 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9353 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9354 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9360 if test "X$rpathdirs" != "X"; then
9361 if test -n "$hardcode_libdir_separator"; then
9363 for found_dir in $rpathdirs; do
9364 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9366 acl_save_libdir="$libdir"
9368 eval flag=\"$hardcode_libdir_flag_spec\"
9369 libdir="$acl_save_libdir"
9370 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9372 for found_dir in $rpathdirs; do
9373 acl_save_libdir="$libdir"
9375 eval flag=\"$hardcode_libdir_flag_spec\"
9376 libdir="$acl_save_libdir"
9377 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9381 if test "X$ltrpathdirs" != "X"; then
9382 for found_dir in $ltrpathdirs; do
9383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9393 am_save_CPPFLAGS="$CPPFLAGS"
9395 for element in $INCICONV; do
9397 for x in $CPPFLAGS; do
9399 acl_save_prefix="$prefix"
9400 prefix="$acl_final_prefix"
9401 acl_save_exec_prefix="$exec_prefix"
9402 exec_prefix="$acl_final_exec_prefix"
9404 exec_prefix="$acl_save_exec_prefix"
9405 prefix="$acl_save_prefix"
9407 if test "X$x" = "X$element"; then
9412 if test -z "$haveit"; then
9413 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9419 $as_echo_n "checking for iconv... " >&6; }
9420 if test "${am_cv_func_iconv+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9424 am_cv_func_iconv="no, consider installing GNU libiconv"
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9433 iconv_t cd = iconv_open("","");
9434 iconv(cd,NULL,NULL,NULL,NULL);
9440 if ac_fn_c_try_link "$LINENO"; then :
9441 am_cv_func_iconv=yes
9443 rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 if test "$am_cv_func_iconv" != yes; then
9446 am_save_LIBS="$LIBS"
9447 LIBS="$LIBS $LIBICONV"
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9455 iconv_t cd = iconv_open("","");
9456 iconv(cd,NULL,NULL,NULL,NULL);
9462 if ac_fn_c_try_link "$LINENO"; then :
9464 am_cv_func_iconv=yes
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 LIBS="$am_save_LIBS"
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9473 $as_echo "$am_cv_func_iconv" >&6; }
9474 if test "$am_cv_func_iconv" = yes; then
9476 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9479 if test "$am_cv_lib_iconv" = yes; then
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9481 $as_echo_n "checking how to link with libiconv... " >&6; }
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9483 $as_echo "$LIBICONV" >&6; }
9485 CPPFLAGS="$am_save_CPPFLAGS"
9492 if test "$am_cv_func_iconv" = yes; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9494 $as_echo_n "checking for iconv declaration... " >&6; }
9495 if test "${am_cv_proto_iconv+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9508 #if defined(__STDC__) || defined(__cplusplus)
9509 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9522 if ac_fn_c_try_compile "$LINENO"; then :
9523 am_cv_proto_iconv_arg1=""
9525 am_cv_proto_iconv_arg1="const"
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 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);"
9531 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9533 }$am_cv_proto_iconv" >&5
9535 }$am_cv_proto_iconv" >&6; }
9537 cat >>confdefs.h <<_ACEOF
9538 #define ICONV_CONST $am_cv_proto_iconv_arg1
9543 # Until we have in-tree GNU iconv:
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9549 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9550 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9564 if ac_fn_c_try_link "$LINENO"; then :
9565 am_cv_val_LC_MESSAGES=yes
9567 am_cv_val_LC_MESSAGES=no
9569 rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9573 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9574 if test $am_cv_val_LC_MESSAGES = yes; then
9576 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9583 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9584 if test "${am_cv_langinfo_codeset+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 #include <langinfo.h>
9593 char* cs = nl_langinfo(CODESET);
9598 if ac_fn_c_try_link "$LINENO"; then :
9599 am_cv_langinfo_codeset=yes
9601 am_cv_langinfo_codeset=no
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9608 $as_echo "$am_cv_langinfo_codeset" >&6; }
9609 if test $am_cv_langinfo_codeset = yes; then
9611 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9616 # We will need to find libiberty.h and ansidecl.h
9617 saved_CFLAGS="$CFLAGS"
9618 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9619 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9620 strsignal strstr strverscmp \
9621 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9622 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
9624 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9626 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9627 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9628 $as_echo_n "(cached) " >&6
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9633 #define $ac_tr_decl 1
9635 #include "ansidecl.h"
9642 char *(*pfn) = (char *(*)) $ac_func ;
9648 if ac_fn_c_try_compile "$LINENO"; then :
9649 eval "gcc_cv_have_decl_$ac_func=yes"
9651 eval "gcc_cv_have_decl_$ac_func=no"
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9658 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9659 #define $ac_tr_decl 1
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9665 #define $ac_tr_decl 0
9673 for ac_func in getrlimit setrlimit getrusage
9675 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9677 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9678 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9679 $as_echo_n "(cached) " >&6
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9684 #define $ac_tr_decl 1
9686 #include "ansidecl.h"
9688 #ifdef HAVE_SYS_RESOURCE_H
9689 #include <sys/resource.h>
9697 char *(*pfn) = (char *(*)) $ac_func ;
9703 if ac_fn_c_try_compile "$LINENO"; then :
9704 eval "gcc_cv_have_decl_$ac_func=yes"
9706 eval "gcc_cv_have_decl_$ac_func=no"
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9713 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9714 #define $ac_tr_decl 1
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9720 #define $ac_tr_decl 0
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 #include "ansidecl.h"
9733 #ifdef HAVE_SYS_RESOURCE_H
9734 #include <sys/resource.h>
9745 if ac_fn_c_try_compile "$LINENO"; then :
9749 $as_echo "#define rlim_t long" >>confdefs.h
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9754 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9755 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9756 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9757 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9758 for ac_func in ldgetname
9760 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9762 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9763 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9764 $as_echo_n "(cached) " >&6
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9769 #define $ac_tr_decl 1
9771 #include "ansidecl.h"
9784 char *(*pfn) = (char *(*)) $ac_func ;
9790 if ac_fn_c_try_compile "$LINENO"; then :
9791 eval "gcc_cv_have_decl_$ac_func=yes"
9793 eval "gcc_cv_have_decl_$ac_func=no"
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9800 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9801 #define $ac_tr_decl 1
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9807 #define $ac_tr_decl 0
9815 for ac_func in times
9817 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9819 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9820 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9821 $as_echo_n "(cached) " >&6
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9826 #define $ac_tr_decl 1
9828 #include "ansidecl.h"
9830 #ifdef HAVE_SYS_TIMES_H
9831 #include <sys/times.h>
9839 char *(*pfn) = (char *(*)) $ac_func ;
9845 if ac_fn_c_try_compile "$LINENO"; then :
9846 eval "gcc_cv_have_decl_$ac_func=yes"
9848 eval "gcc_cv_have_decl_$ac_func=no"
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9855 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9856 #define $ac_tr_decl 1
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9861 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9862 #define $ac_tr_decl 0
9870 for ac_func in sigaltstack
9872 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9874 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9875 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9876 $as_echo_n "(cached) " >&6
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9881 #define $ac_tr_decl 1
9883 #include "ansidecl.h"
9892 char *(*pfn) = (char *(*)) $ac_func ;
9898 if ac_fn_c_try_compile "$LINENO"; then :
9899 eval "gcc_cv_have_decl_$ac_func=yes"
9901 eval "gcc_cv_have_decl_$ac_func=no"
9903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9908 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9909 #define $ac_tr_decl 1
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9915 #define $ac_tr_decl 0
9923 # More time-related stuff.
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9925 $as_echo_n "checking for struct tms... " >&6; }
9926 if test "${ac_cv_struct_tms+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9933 #include "ansidecl.h"
9935 #ifdef HAVE_SYS_TIMES_H
9936 #include <sys/times.h>
9947 if ac_fn_c_try_compile "$LINENO"; then :
9948 ac_cv_struct_tms=yes
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9955 $as_echo "$ac_cv_struct_tms" >&6; }
9956 if test $ac_cv_struct_tms = yes; then
9958 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9962 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9963 # revisit after autoconf 2.50.
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9965 $as_echo_n "checking for clock_t... " >&6; }
9966 if test "${gcc_cv_type_clock_t+set}" = set; then :
9967 $as_echo_n "(cached) " >&6
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9973 #include "ansidecl.h"
9984 if ac_fn_c_try_compile "$LINENO"; then :
9985 gcc_cv_type_clock_t=yes
9987 gcc_cv_type_clock_t=no
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
9992 $as_echo "$gcc_cv_type_clock_t" >&6; }
9993 if test $gcc_cv_type_clock_t = yes; then
9995 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
9999 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10000 CFLAGS="$saved_CFLAGS"
10002 # Check whether --enable-initfini-array was given.
10003 if test "${enable_initfini_array+set}" = set; then :
10004 enableval=$enable_initfini_array;
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10008 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10009 if test "${gcc_cv_initfini_array+set}" = set; then :
10010 $as_echo_n "(cached) " >&6
10012 if test "$cross_compiling" = yes; then :
10013 gcc_cv_initfini_array=no
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10019 int main (void) { return x; }
10020 int foo (void) { x = 0; }
10021 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10023 if ac_fn_c_try_run "$LINENO"; then :
10024 gcc_cv_initfini_array=yes
10026 gcc_cv_initfini_array=no
10028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10029 conftest.$ac_objext conftest.beam conftest.$ac_ext
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10034 $as_echo "$gcc_cv_initfini_array" >&6; }
10035 enable_initfini_array=$gcc_cv_initfini_array
10039 if test $enable_initfini_array = yes; then
10041 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10045 # mkdir takes a single argument on some systems.
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10047 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10048 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10054 #include <sys/types.h>
10055 #ifdef HAVE_SYS_STAT_H
10056 # include <sys/stat.h>
10058 #ifdef HAVE_UNISTD_H
10059 # include <unistd.h>
10061 #ifdef HAVE_DIRECT_H
10062 # include <direct.h>
10072 if ac_fn_c_try_compile "$LINENO"; then :
10073 gcc_cv_mkdir_takes_one_arg=no
10075 gcc_cv_mkdir_takes_one_arg=yes
10077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10080 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10081 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10083 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10094 # With Setjmp/Longjmp based exception handling.
10095 # Check whether --enable-sjlj-exceptions was given.
10096 if test "${enable_sjlj_exceptions+set}" = set; then :
10097 enableval=$enable_sjlj_exceptions; case $target in
10099 if test $enableval != yes; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10101 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10106 force_sjlj_exceptions=yes
10110 force_sjlj_exceptions=yes
10114 force_sjlj_exceptions=no
10119 if test $force_sjlj_exceptions = yes; then
10120 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10122 cat >>confdefs.h <<_ACEOF
10123 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10128 # For platforms with the unwind ABI which includes an unwind library,
10129 # libunwind, we can choose to use the system libunwind.
10130 # config.gcc also contains tests of with_system_libunwind.
10133 # Check whether --with-system-libunwind was given.
10134 if test "${with_system_libunwind+set}" = set; then :
10135 withval=$with_system_libunwind;
10138 # If system-libunwind was not specifically set, pick a default setting.
10139 if test x$with_system_libunwind = x; then
10141 ia64-*-hpux*) with_system_libunwind=yes ;;
10142 *) with_system_libunwind=no ;;
10145 # Based on system-libunwind and target, do we have ipinfo?
10146 if test x$with_system_libunwind = xyes; then
10148 ia64-*-*) have_unwind_getipinfo=no ;;
10149 *) have_unwind_getipinfo=yes ;;
10152 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10155 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10156 *) have_unwind_getipinfo=yes ;;
10161 if test x$have_unwind_getipinfo = xyes; then
10163 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10168 # --------------------------------------------------------
10169 # Build, host, and target specific configuration fragments
10170 # --------------------------------------------------------
10172 # Collect build-machine-specific information.
10173 . ${srcdir}/config.build
10175 # Collect host-machine-specific information.
10176 . ${srcdir}/config.host
10180 # Collect target-machine-specific information.
10181 . ${srcdir}/config.gcc
10183 extra_objs="${host_extra_objs} ${extra_objs}"
10184 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10186 # Default the target-machine variables that were not explicitly set.
10187 if test x"$tm_file" = x
10188 then tm_file=$cpu_type/$cpu_type.h; fi
10190 if test x"$extra_headers" = x
10191 then extra_headers=; fi
10193 if test x$md_file = x
10194 then md_file=$cpu_type/$cpu_type.md; fi
10196 if test x$out_file = x
10197 then out_file=$cpu_type/$cpu_type.c; fi
10199 if test x"$tmake_file" = x
10200 then tmake_file=$cpu_type/t-$cpu_type
10203 if test x"$dwarf2" = xyes
10204 then tm_file="$tm_file tm-dwarf2.h"
10207 # Say what files are being used for the output code and MD file.
10208 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10209 echo "Using \`$srcdir/config/$md_file' as machine description file."
10211 # If any of the xm_file variables contain nonexistent files, warn
10212 # about them and drop them.
10215 for x in $build_xm_file; do
10216 if test -f $srcdir/config/$x
10218 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10219 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10222 build_xm_file="$bx"
10225 for x in $host_xm_file; do
10226 if test -f $srcdir/config/$x
10228 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10229 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10235 for x in $xm_file; do
10236 if test -f $srcdir/config/$x
10238 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10239 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10245 for f in $tm_file; do
10248 if test $count = ax; then
10249 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10251 echo "Using the following target machine macro files:"
10252 for f in $tm_file; do
10253 echo " $srcdir/config/$f"
10257 if test x$need_64bit_hwint = xyes; then
10259 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10263 if test x$use_long_long_for_widest_fast_int = xyes; then
10265 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10270 for f in $host_xm_file; do
10273 if test $count = a; then
10275 elif test $count = ax; then
10276 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10278 echo "Using the following host machine macro files:"
10279 for f in $host_xm_file; do
10280 echo " $srcdir/config/$f"
10283 echo "Using ${out_host_hook_obj} for host machine hooks."
10285 if test "$host_xm_file" != "$build_xm_file"; then
10287 for f in $build_xm_file; do
10290 if test $count = a; then
10292 elif test $count = ax; then
10293 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10295 echo "Using the following build machine macro files:"
10296 for f in $build_xm_file; do
10297 echo " $srcdir/config/$f"
10303 powerpc*-*-darwin*)
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10305 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10306 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10312 #include <sys/cdefs.h>
10313 #include <sys/signal.h>
10314 #include <ucontext.h>
10315 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10318 if ac_fn_c_try_compile "$LINENO"; then :
10319 gcc_cv_mcontext_underscores=no
10321 gcc_cv_mcontext_underscores=yes
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10326 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10327 if test $gcc_cv_mcontext_underscores = yes; then
10329 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10339 # Check if a valid thread package
10340 case ${enable_threads} in
10343 target_thread_file='single'
10347 target_thread_file='single'
10349 aix | dce | gnat | irix | posix | posix95 | rtems | \
10350 single | solaris | vxworks | win32 | mipssde)
10351 target_thread_file=${enable_threads}
10354 echo "${enable_threads} is an unknown thread package" 1>&2
10359 if test x${thread_file} = x; then
10360 # No thread file set by target-specific clauses in config.gcc,
10361 # so use file chosen by default logic above
10362 thread_file=${target_thread_file}
10365 # Make gthr-default.h if we have a thread file.
10367 if test $thread_file != single; then
10368 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10369 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10370 rm -f gthr-default.h-t
10372 mv -f gthr-default.h-t gthr-default.h
10374 gthread_flags=-DHAVE_GTHR_DEFAULT
10383 if test x$enable___cxa_atexit = xyes || \
10384 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10385 if test x$host = x$target; then
10387 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10388 # keyed to flag_use_cxa_atexit
10393 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10394 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10397 echo "__cxa_atexit can't be enabled on this target"
10403 # We can't check for __cxa_atexit when building a cross, so assume
10407 if test x$use_cxa_atexit = xyes; then
10409 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10414 # Look for a file containing extra machine modes.
10415 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10416 extra_modes_file='$(srcdir)'/config/${extra_modes}
10419 cat >>confdefs.h <<_ACEOF
10420 #define EXTRA_MODES_FILE "config/$extra_modes"
10425 # Convert extra_options into a form suitable for Makefile use.
10427 for f in $extra_options; do
10428 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10432 # auto-host.h is the file containing items generated by autoconf and is
10433 # the first file included by config.h.
10434 # If host=build, it is correct to have bconfig include auto-host.h
10435 # as well. If host!=build, we are in error and need to do more
10436 # work to find out the build config parameters.
10437 if test x$host = x$build
10439 build_auto=auto-host.h
10441 # We create a subdir, then run autoconf in the subdir.
10442 # To prevent recursion we set host and build for the new
10443 # invocation of configure to the build for this invocation
10450 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10451 *) realsrcdir=../${srcdir};;
10453 saved_CFLAGS="${CFLAGS}"
10454 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10455 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10456 ${realsrcdir}/configure \
10457 --enable-languages=${enable_languages-all} \
10458 --target=$target_alias --host=$build_alias --build=$build_alias
10459 CFLAGS="${saved_CFLAGS}"
10461 # We just finished tests for the build machine, so rename
10462 # the file auto-build.h in the gcc directory.
10463 mv auto-host.h ../auto-build.h
10466 build_auto=auto-build.h
10470 tm_file="${tm_file} defaults.h"
10471 tm_p_file="${tm_p_file} tm-preds.h"
10472 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10473 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10474 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10475 # put this back in temporarily.
10476 xm_file="auto-host.h ansidecl.h ${xm_file}"
10482 # Compile in configure arguments.
10483 if test -f configargs.h ; then
10484 # Being re-configured.
10485 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10486 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10488 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10491 # Double all backslashes and backslash all quotes to turn
10492 # gcc_config_arguments into a C string.
10493 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10494 $gcc_config_arguments
10496 gcc_config_arguments_str=`cat conftest.out`
10499 cat > configargs.h <<EOF
10500 /* Generated automatically. */
10501 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10502 static const char thread_model[] = "$thread_file";
10504 static const struct {
10505 const char *name, *value;
10506 } configure_default_options[] = $configure_default_options;
10509 gcc_BASEVER=`cat $srcdir/BASE-VER`
10510 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10511 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10512 if test -f $srcdir/REVISION ; then
10513 gcc_REVISION=`cat $srcdir/REVISION`
10517 cat > plugin-version.h <<EOF
10518 #include "configargs.h"
10520 static char basever[] = "$gcc_BASEVER";
10521 static char datestamp[] = "$gcc_DATESTAMP";
10522 static char devphase[] = "$gcc_DEVPHASE";
10523 static char revision[] = "$gcc_REVISION";
10525 /* FIXME plugins: We should make the version information more precise.
10526 One way to do is to add a checksum. */
10528 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10529 devphase, revision,
10530 configuration_arguments};
10533 # Internationalization
10534 # If we haven't got the data from the intl directory,
10535 # assume NLS is disabled.
10544 if test -f ../intl/config.intl; then
10545 . ../intl/config.intl
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10548 $as_echo_n "checking whether NLS is requested... " >&6; }
10549 if test x"$USE_NLS" != xyes; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10554 $as_echo "yes" >&6; }
10556 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10560 $as_echo_n "checking for catalogs to be installed... " >&6; }
10561 # Look for .po and .gmo files in the source directory.
10564 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10565 # If there aren't any .gmo files the shell will give us the
10566 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10568 case "$cat" in *\**)
10571 # The quadruple backslash is collapsed to a double backslash
10572 # by the backticks, then collapsed again by the double quotes,
10573 # leaving us with one backslash in the sed expression (right
10574 # before the dot that mustn't act as a wildcard).
10575 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10576 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10577 # The user is allowed to set LINGUAS to a list of languages to
10578 # install catalogs for. If it's empty that means "all of them."
10579 if test "x$LINGUAS" = x; then
10580 CATALOGS="$CATALOGS $cat"
10581 XLINGUAS="$XLINGUAS $lang"
10583 case "$LINGUAS" in *$lang*)
10584 CATALOGS="$CATALOGS $cat"
10585 XLINGUAS="$XLINGUAS $lang"
10590 LINGUAS="$XLINGUAS"
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10592 $as_echo "$LINGUAS" >&6; }
10605 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10606 # -liconv on the link line twice.
10607 case "$LIBINTL" in *$LIBICONV*)
10611 # Check whether --enable-secureplt was given.
10612 if test "${enable_secureplt+set}" = set; then :
10613 enableval=$enable_secureplt;
10617 # Check whether --enable-cld was given.
10618 if test "${enable_cld+set}" = set; then :
10619 enableval=$enable_cld;
10625 # Windows32 Registry support for specifying GCC installation paths.
10626 # Check whether --enable-win32-registry was given.
10627 if test "${enable_win32_registry+set}" = set; then :
10628 enableval=$enable_win32_registry;
10633 win32 | pe | cygwin* | mingw32* | uwin*)
10634 if test "x$enable_win32_registry" != xno; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10636 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10637 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10640 ac_func_search_save_LIBS=$LIBS
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10650 char RegOpenKeyExA ();
10654 return RegOpenKeyExA ();
10659 for ac_lib in '' advapi32; do
10660 if test -z "$ac_lib"; then
10661 ac_res="none required"
10664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10666 if ac_fn_c_try_link "$LINENO"; then :
10667 ac_cv_search_RegOpenKeyExA=$ac_res
10669 rm -f core conftest.err conftest.$ac_objext \
10671 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10675 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10678 ac_cv_search_RegOpenKeyExA=no
10680 rm conftest.$ac_ext
10681 LIBS=$ac_func_search_save_LIBS
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10684 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10685 ac_res=$ac_cv_search_RegOpenKeyExA
10686 if test "$ac_res" != no; then :
10687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10690 enable_win32_registry=no
10695 if test "x$enable_win32_registry" != xno; then
10697 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10700 if test "x$enable_win32_registry" != xyes \
10701 && test "x$enable_win32_registry" != x; then
10703 cat >>confdefs.h <<_ACEOF
10704 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10712 # Get an absolute path to the GCC top-level source directory
10713 holddir=`${PWDCMD-pwd}`
10715 topdir=`${PWDCMD-pwd}`
10718 # Conditionalize the makefile for this host machine.
10720 for f in ${host_xmake_file}
10722 if test -f ${srcdir}/config/$f
10724 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10728 # Conditionalize the makefile for this target machine.
10730 for f in ${tmake_file}
10732 if test -f ${srcdir}/config/$f
10734 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10737 tmake_file="${tmake_file_}"
10739 out_object_file=`basename $out_file .c`.o
10741 tm_file_list="options.h"
10742 tm_include_list="options.h"
10743 for f in $tm_file; do
10746 f=`echo $f | sed 's/^..//'`
10747 tm_file_list="${tm_file_list} $f"
10748 tm_include_list="${tm_include_list} $f"
10751 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10752 tm_include_list="${tm_include_list} $f"
10755 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10756 tm_include_list="${tm_include_list} config/$f"
10763 for f in $tm_p_file; do
10766 tm_p_file_list="${tm_p_file_list} $f"
10767 tm_p_include_list="${tm_p_include_list} $f"
10770 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10771 tm_p_include_list="${tm_p_include_list} config/$f"
10777 for f in $xm_file; do
10780 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10781 xm_include_list="${xm_include_list} $f"
10784 xm_file_list="${xm_file_list} $f"
10785 xm_include_list="${xm_include_list} $f"
10788 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10789 xm_include_list="${xm_include_list} config/$f"
10795 host_xm_include_list=
10796 for f in $host_xm_file; do
10799 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10800 host_xm_include_list="${host_xm_include_list} $f"
10803 host_xm_file_list="${host_xm_file_list} $f"
10804 host_xm_include_list="${host_xm_include_list} $f"
10807 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10808 host_xm_include_list="${host_xm_include_list} config/$f"
10813 build_xm_file_list=
10814 for f in $build_xm_file; do
10817 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10818 build_xm_include_list="${build_xm_include_list} $f"
10820 auto-build.h | auto-host.h )
10821 build_xm_file_list="${build_xm_file_list} $f"
10822 build_xm_include_list="${build_xm_include_list} $f"
10825 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10826 build_xm_include_list="${build_xm_include_list} config/$f"
10831 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10832 # cross-compiler which does not use the native headers and libraries.
10833 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10836 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10838 if test "x$with_build_sysroot" != x; then
10839 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10841 # This value is used, even on a native system, because
10842 # CROSS_SYSTEM_HEADER_DIR is just
10843 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10844 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10847 if test x$host != x$target
10849 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10851 SYSTEM_HEADER_DIR=$build_system_header_dir
10852 case "$host","$target" in
10853 # Darwin crosses can use the host system's libraries and headers,
10854 # because of the fat library support. Of course, it must be the
10855 # same version of Darwin on both sides. Allow the user to
10856 # just say --target=foo-darwin without a version number to mean
10857 # "the version on this system".
10858 *-*-darwin*,*-*-darwin*)
10859 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10860 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10861 if test $hostos = $targetos -o $targetos = darwin ; then
10863 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10868 i?86-*-*,x86_64-*-* \
10869 | powerpc*-*-*,powerpc64*-*-*)
10870 CROSS="$CROSS -DNATIVE_CROSS" ;;
10872 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10873 SYSTEM_HEADER_DIR=$build_system_header_dir
10876 # If this is a cross-compiler that does not
10877 # have its own set of headers then define
10880 # If this is using newlib, without having the headers available now,
10881 # then define inhibit_libc in LIBGCC2_CFLAGS.
10882 # This prevents libgcc2 from containing any code which requires libc
10884 : ${inhibit_libc=false}
10885 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10886 test x$with_newlib = xyes ; } &&
10887 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10892 # When building gcc with a cross-compiler, we need to adjust things so
10893 # that the generator programs are still built with the native compiler.
10894 # Also, we cannot run fixincludes.
10896 # These are the normal (build=host) settings:
10897 CC_FOR_BUILD='$(CC)'
10898 BUILD_CFLAGS='$(ALL_CFLAGS)'
10899 BUILD_LDFLAGS='$(LDFLAGS)'
10900 STMP_FIXINC=stmp-fixinc
10902 # And these apply if build != host, or we are generating coverage data
10903 if test x$build != x$host || test "x$coverage_flags" != x
10905 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10906 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10909 # Expand extra_headers to include complete path.
10910 # This substitutes for lots of t-* files.
10911 extra_headers_list=
10912 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10913 for file in ${extra_headers} ; do
10914 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10917 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10918 if test x"$use_gcc_tgmath" = xyes
10919 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10922 # Define collect2 in Makefile.
10923 case $host_can_use_collect2 in
10925 *) collect2='collect2$(exeext)' ;;
10929 # Add a definition of USE_COLLECT2 if system wants one.
10930 case $use_collect2 in
10931 no) use_collect2= ;;
10934 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10935 xm_defines="${xm_defines} USE_COLLECT2"
10936 case $host_can_use_collect2 in
10938 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10944 # ---------------------------
10945 # Assembler & linker features
10946 # ---------------------------
10948 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10949 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10950 # However when ld-new is first executed from the build tree, libtool will
10951 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10952 # to the build tree. While doing this we need to use the previous-stage
10953 # linker, or we have an infinite loop. The presence of a shell script as
10954 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10955 # the gcc/collect-ld script. So we need to know how libtool works, or
10956 # exec-tool will fail.
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10962 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10967 macro_version='2.2.7a'
10968 macro_revision='1.3134'
10982 ltmain="$ac_aux_dir/ltmain.sh"
10984 # Backslashify metacharacters that are still active within
10985 # double-quoted strings.
10986 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10988 # Same as above, but do not quote variable references.
10989 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10991 # Sed substitution to delay expansion of an escaped shell variable in a
10992 # double_quote_subst'ed string.
10993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10995 # Sed substitution to delay expansion of an escaped single quote.
10996 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10998 # Sed substitution to avoid accidental globbing in evaled expressions
10999 no_glob_subst='s/\*/\\\*/g'
11001 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11003 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11006 $as_echo_n "checking how to print strings... " >&6; }
11007 # Test print first, because it will be a builtin if present.
11008 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11009 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11011 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11014 # Use this function as a fallback that always works.
11015 func_fallback_echo ()
11017 eval 'cat <<_LTECHO_EOF
11021 ECHO='func_fallback_echo'
11024 # func_echo_all arg...
11025 # Invoke $ECHO with all args, space-separated.
11032 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11033 $as_echo "printf" >&6; } ;;
11034 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11035 $as_echo "print -r" >&6; } ;;
11036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11037 $as_echo "cat" >&6; } ;;
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11054 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11055 if test "${ac_cv_path_SED+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11058 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11059 for ac_i in 1 2 3 4 5 6 7; do
11060 ac_script="$ac_script$as_nl$ac_script"
11062 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11063 { ac_script=; unset ac_script;}
11064 if test -z "$SED"; then
11065 ac_path_SED_found=false
11066 # Loop through the user's path and test for each of PROGNAME-LIST
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11071 test -z "$as_dir" && as_dir=.
11072 for ac_prog in sed gsed; do
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11075 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11076 # Check for GNU ac_path_SED and select it if it is found.
11077 # Check for GNU $ac_path_SED
11078 case `"$ac_path_SED" --version 2>&1` in
11080 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11083 $as_echo_n 0123456789 >"conftest.in"
11086 cat "conftest.in" "conftest.in" >"conftest.tmp"
11087 mv "conftest.tmp" "conftest.in"
11088 cp "conftest.in" "conftest.nl"
11089 $as_echo '' >> "conftest.nl"
11090 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11092 as_fn_arith $ac_count + 1 && ac_count=$as_val
11093 if test $ac_count -gt ${ac_path_SED_max-0}; then
11094 # Best one so far, save it but keep looking for a better one
11095 ac_cv_path_SED="$ac_path_SED"
11096 ac_path_SED_max=$ac_count
11098 # 10*(2^10) chars as input seems more than enough
11099 test $ac_count -gt 10 && break
11101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11104 $ac_path_SED_found && break 3
11109 if test -z "$ac_cv_path_SED"; then
11110 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11113 ac_cv_path_SED=$SED
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11118 $as_echo "$ac_cv_path_SED" >&6; }
11119 SED="$ac_cv_path_SED"
11122 test -z "$SED" && SED=sed
11123 Xsed="$SED -e 1s/^X//"
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11136 $as_echo_n "checking for fgrep... " >&6; }
11137 if test "${ac_cv_path_FGREP+set}" = set; then :
11138 $as_echo_n "(cached) " >&6
11140 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11141 then ac_cv_path_FGREP="$GREP -F"
11143 if test -z "$FGREP"; then
11144 ac_path_FGREP_found=false
11145 # Loop through the user's path and test for each of PROGNAME-LIST
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11150 test -z "$as_dir" && as_dir=.
11151 for ac_prog in fgrep; do
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11154 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11155 # Check for GNU ac_path_FGREP and select it if it is found.
11156 # Check for GNU $ac_path_FGREP
11157 case `"$ac_path_FGREP" --version 2>&1` in
11159 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11162 $as_echo_n 0123456789 >"conftest.in"
11165 cat "conftest.in" "conftest.in" >"conftest.tmp"
11166 mv "conftest.tmp" "conftest.in"
11167 cp "conftest.in" "conftest.nl"
11168 $as_echo 'FGREP' >> "conftest.nl"
11169 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11171 as_fn_arith $ac_count + 1 && ac_count=$as_val
11172 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11173 # Best one so far, save it but keep looking for a better one
11174 ac_cv_path_FGREP="$ac_path_FGREP"
11175 ac_path_FGREP_max=$ac_count
11177 # 10*(2^10) chars as input seems more than enough
11178 test $ac_count -gt 10 && break
11180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11183 $ac_path_FGREP_found && break 3
11188 if test -z "$ac_cv_path_FGREP"; then
11189 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11192 ac_cv_path_FGREP=$FGREP
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11198 $as_echo "$ac_cv_path_FGREP" >&6; }
11199 FGREP="$ac_cv_path_FGREP"
11202 test -z "$GREP" && GREP=grep
11222 # Check whether --with-gnu-ld was given.
11223 if test "${with_gnu_ld+set}" = set; then :
11224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11230 if test "$GCC" = yes; then
11231 # Check if gcc -print-prog-name=ld gives a path.
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11233 $as_echo_n "checking for ld used by $CC... " >&6; }
11236 # gcc leaves a trailing carriage return which upsets mingw
11237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11242 # Accept absolute paths.
11244 re_direlt='/[^/][^/]*/\.\./'
11245 # Canonicalize the pathname of ld
11246 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11247 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11248 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11250 test -z "$LD" && LD="$ac_prog"
11253 # If it fails, then pretend we aren't using GCC.
11257 # If it is relative, then search for the first ld in PATH.
11258 with_gnu_ld=unknown
11261 elif test "$with_gnu_ld" = yes; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11263 $as_echo_n "checking for GNU ld... " >&6; }
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11266 $as_echo_n "checking for non-GNU ld... " >&6; }
11268 if test "${lt_cv_path_LD+set}" = set; then :
11269 $as_echo_n "(cached) " >&6
11271 if test -z "$LD"; then
11272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11273 for ac_dir in $PATH; do
11275 test -z "$ac_dir" && ac_dir=.
11276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11277 lt_cv_path_LD="$ac_dir/$ac_prog"
11278 # Check to see if the program is GNU ld. I'd rather use --version,
11279 # but apparently some variants of GNU ld only accept -v.
11280 # Break only if it was the GNU/non-GNU ld that we prefer.
11281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11282 *GNU* | *'with BFD'*)
11283 test "$with_gnu_ld" != no && break
11286 test "$with_gnu_ld" != yes && break
11293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11297 LD="$lt_cv_path_LD"
11298 if test -n "$LD"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11300 $as_echo "$LD" >&6; }
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11305 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11307 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11308 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
11311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11312 case `$LD -v 2>&1 </dev/null` in
11313 *GNU* | *'with BFD'*)
11314 lt_cv_prog_gnu_ld=yes
11317 lt_cv_prog_gnu_ld=no
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11322 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11323 with_gnu_ld=$lt_cv_prog_gnu_ld
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11334 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11335 if test "${lt_cv_path_NM+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11338 if test -n "$NM"; then
11339 # Let the user override the test.
11340 lt_cv_path_NM="$NM"
11342 lt_nm_to_check="${ac_tool_prefix}nm"
11343 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11344 lt_nm_to_check="$lt_nm_to_check nm"
11346 for lt_tmp_nm in $lt_nm_to_check; do
11347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11348 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11350 test -z "$ac_dir" && ac_dir=.
11351 tmp_nm="$ac_dir/$lt_tmp_nm"
11352 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11353 # Check to see if the nm accepts a BSD-compat flag.
11354 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11355 # nm: unknown option "B" ignored
11356 # Tru64's nm complains that /dev/null is an invalid object file
11357 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11358 */dev/null* | *'Invalid file or object type'*)
11359 lt_cv_path_NM="$tmp_nm -B"
11363 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11365 lt_cv_path_NM="$tmp_nm -p"
11369 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11370 continue # so that we can try to find one that supports BSD flags
11379 : ${lt_cv_path_NM=no}
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11383 $as_echo "$lt_cv_path_NM" >&6; }
11384 if test "$lt_cv_path_NM" != "no"; then
11385 NM="$lt_cv_path_NM"
11387 # Didn't find any BSD compatible name lister, look for dumpbin.
11388 if test -n "$DUMPBIN"; then :
11389 # Let the user override the test.
11391 if test -n "$ac_tool_prefix"; then
11392 for ac_prog in dumpbin "link -dump"
11394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11401 if test -n "$DUMPBIN"; then
11402 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 DUMPBIN=$ac_cv_prog_DUMPBIN
11422 if test -n "$DUMPBIN"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11424 $as_echo "$DUMPBIN" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11431 test -n "$DUMPBIN" && break
11434 if test -z "$DUMPBIN"; then
11435 ac_ct_DUMPBIN=$DUMPBIN
11436 for ac_prog in dumpbin "link -dump"
11438 # Extract the first word of "$ac_prog", so it can be a program name with args.
11439 set dummy $ac_prog; ac_word=$2
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11441 $as_echo_n "checking for $ac_word... " >&6; }
11442 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11443 $as_echo_n "(cached) " >&6
11445 if test -n "$ac_ct_DUMPBIN"; then
11446 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11465 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11466 if test -n "$ac_ct_DUMPBIN"; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11468 $as_echo "$ac_ct_DUMPBIN" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11475 test -n "$ac_ct_DUMPBIN" && break
11478 if test "x$ac_ct_DUMPBIN" = x; then
11481 case $cross_compiling:$ac_tool_warned in
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11485 ac_tool_warned=yes ;;
11487 DUMPBIN=$ac_ct_DUMPBIN
11491 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11493 DUMPBIN="$DUMPBIN -symbols"
11501 if test "$DUMPBIN" != ":"; then
11505 test -z "$NM" && NM=nm
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11513 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11514 if test "${lt_cv_nm_interface+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 lt_cv_nm_interface="BSD nm"
11518 echo "int some_variable = 0;" > conftest.$ac_ext
11519 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11520 (eval "$ac_compile" 2>conftest.err)
11521 cat conftest.err >&5
11522 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11523 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11524 cat conftest.err >&5
11525 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11526 cat conftest.out >&5
11527 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11528 lt_cv_nm_interface="MS dumpbin"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11533 $as_echo "$lt_cv_nm_interface" >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11536 $as_echo_n "checking whether ln -s works... " >&6; }
11538 if test "$LN_S" = "ln -s"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11540 $as_echo "yes" >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11543 $as_echo "no, using $LN_S" >&6; }
11546 # find the maximum length of command line arguments
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11548 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11549 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11557 # On DJGPP, this test can blow up pretty badly due to problems in libc
11558 # (any single argument exceeding 2000 bytes causes a buffer overrun
11559 # during glob expansion). Even if it were fixed, the result of this
11560 # check would be larger than it should be.
11561 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11565 # Under GNU Hurd, this test is not required because there is
11566 # no limit to the length of command line arguments.
11567 # Libtool will interpret -1 as no limit whatsoever
11568 lt_cv_sys_max_cmd_len=-1;
11571 cygwin* | mingw* | cegcc*)
11572 # On Win9x/ME, this test blows up -- it succeeds, but takes
11573 # about 5 minutes as the teststring grows exponentially.
11574 # Worse, since 9x/ME are not pre-emptively multitasking,
11575 # you end up with a "frozen" computer, even though with patience
11576 # the test eventually succeeds (with a max line length of 256k).
11577 # Instead, let's just punt: use the minimum linelength reported by
11578 # all of the supported platforms: 8192 (on NT/2K/XP).
11579 lt_cv_sys_max_cmd_len=8192;
11583 # On MiNT this can take a long time and run out of memory.
11584 lt_cv_sys_max_cmd_len=8192;
11588 # On AmigaOS with pdksh, this test takes hours, literally.
11589 # So we just punt and use a minimum line length of 8192.
11590 lt_cv_sys_max_cmd_len=8192;
11593 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11594 # This has been around since 386BSD, at least. Likely further.
11595 if test -x /sbin/sysctl; then
11596 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11597 elif test -x /usr/sbin/sysctl; then
11598 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11600 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11602 # And add a safety zone
11603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11608 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11609 lt_cv_sys_max_cmd_len=196608
11613 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11614 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11615 # nice to cause kernel panics so lets avoid the loop below.
11616 # First set a reasonable default.
11617 lt_cv_sys_max_cmd_len=16384
11619 if test -x /sbin/sysconfig; then
11620 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11621 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11626 lt_cv_sys_max_cmd_len=102400
11628 sysv5* | sco5v6* | sysv4.2uw2*)
11629 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11630 if test -n "$kargmax"; then
11631 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11633 lt_cv_sys_max_cmd_len=32768
11637 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11638 if test -n "$lt_cv_sys_max_cmd_len"; then
11639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11642 # Make teststring a little bigger before we do anything with it.
11643 # a 1K string should be a reasonable start.
11644 for i in 1 2 3 4 5 6 7 8 ; do
11645 teststring=$teststring$teststring
11647 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11648 # If test is not a shell built-in, we'll probably end up computing a
11649 # maximum length that is only half of the actual maximum length, but
11651 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11652 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11653 test $i != 17 # 1/2 MB should be enough
11656 teststring=$teststring$teststring
11658 # Only check the string length outside the loop.
11659 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11661 # Add a significant safety factor because C++ compilers can tack on
11662 # massive amounts of additional arguments before passing them to the
11663 # linker. It appears as though 1/2 is a usable value.
11664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11671 if test -n $lt_cv_sys_max_cmd_len ; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11673 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11676 $as_echo "none" >&6; }
11678 max_cmd_len=$lt_cv_sys_max_cmd_len
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11690 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11691 # Try some XSI features
11693 ( _lt_dummy="a/b/c"
11694 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11696 && eval 'test $(( 1 + 1 )) -eq 2 \
11697 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11700 $as_echo "$xsi_shell" >&6; }
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11704 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11706 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11708 && lt_shell_append=yes
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11710 $as_echo "$lt_shell_append" >&6; }
11713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11723 # test EBCDIC or ASCII
11724 case `echo X|tr X '\101'` in
11725 A) # ASCII based system
11726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11727 lt_SP2NL='tr \040 \012'
11728 lt_NL2SP='tr \015\012 \040\040'
11730 *) # EBCDIC based system
11731 lt_SP2NL='tr \100 \n'
11732 lt_NL2SP='tr \r\n \100\100'
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11745 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11746 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11749 lt_cv_ld_reload_flag='-r'
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11752 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11753 reload_flag=$lt_cv_ld_reload_flag
11754 case $reload_flag in
11756 *) reload_flag=" $reload_flag" ;;
11758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11761 if test "$GCC" = yes; then
11762 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11777 if test -n "$ac_tool_prefix"; then
11778 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11779 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11785 if test -n "$OBJDUMP"; then
11786 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 OBJDUMP=$ac_cv_prog_OBJDUMP
11806 if test -n "$OBJDUMP"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11808 $as_echo "$OBJDUMP" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11816 if test -z "$ac_cv_prog_OBJDUMP"; then
11817 ac_ct_OBJDUMP=$OBJDUMP
11818 # Extract the first word of "objdump", so it can be a program name with args.
11819 set dummy objdump; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11825 if test -n "$ac_ct_OBJDUMP"; then
11826 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11846 if test -n "$ac_ct_OBJDUMP"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11848 $as_echo "$ac_ct_OBJDUMP" >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11854 if test "x$ac_ct_OBJDUMP" = x; then
11857 case $cross_compiling:$ac_tool_warned in
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11861 ac_tool_warned=yes ;;
11863 OBJDUMP=$ac_ct_OBJDUMP
11866 OBJDUMP="$ac_cv_prog_OBJDUMP"
11869 test -z "$OBJDUMP" && OBJDUMP=objdump
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11880 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11881 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11884 lt_cv_file_magic_cmd='$MAGIC_CMD'
11885 lt_cv_file_magic_test_file=
11886 lt_cv_deplibs_check_method='unknown'
11887 # Need to set the preceding variable on all platforms that support
11888 # interlibrary dependencies.
11889 # 'none' -- dependencies not supported.
11890 # `unknown' -- same as none, but documents that we really don't know.
11891 # 'pass_all' -- all dependencies passed with no checks.
11892 # 'test_compile' -- check by making test program.
11893 # 'file_magic [[regex]]' -- check by looking for files in library path
11894 # which responds to the $file_magic_cmd with a given extended regex.
11895 # If you have `file' or equivalent on your system and you're not sure
11896 # whether `pass_all' will *always* work, you probably want this one.
11900 lt_cv_deplibs_check_method=pass_all
11904 lt_cv_deplibs_check_method=pass_all
11908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11909 lt_cv_file_magic_cmd='/usr/bin/file -L'
11910 lt_cv_file_magic_test_file=/shlib/libc.so
11914 # func_win32_libid is a shell function defined in ltmain.sh
11915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11916 lt_cv_file_magic_cmd='func_win32_libid'
11920 # Base MSYS/MinGW do not provide the 'file' command needed by
11921 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11922 # unless we find 'file', for example because we are cross-compiling.
11923 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11924 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11925 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11926 lt_cv_file_magic_cmd='func_win32_libid'
11928 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11929 lt_cv_file_magic_cmd='$OBJDUMP -f'
11934 # use the weaker test based on 'objdump'. See mingw*.
11935 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11936 lt_cv_file_magic_cmd='$OBJDUMP -f'
11939 darwin* | rhapsody*)
11940 lt_cv_deplibs_check_method=pass_all
11943 freebsd* | dragonfly*)
11944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11947 # Not sure whether the presence of OpenBSD here was a mistake.
11948 # Let's accept both of them until this is cleared up.
11949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11950 lt_cv_file_magic_cmd=/usr/bin/file
11951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11955 lt_cv_deplibs_check_method=pass_all
11960 lt_cv_deplibs_check_method=pass_all
11964 lt_cv_deplibs_check_method=pass_all
11967 hpux10.20* | hpux11*)
11968 lt_cv_file_magic_cmd=/usr/bin/file
11971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11975 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]'
11976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11980 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11990 irix5* | irix6* | nonstopux*)
11992 *-32|*"-32 ") libmagic=32-bit;;
11993 *-n32|*"-n32 ") libmagic=N32;;
11994 *-64|*"-64 ") libmagic=64-bit;;
11995 *) libmagic=never-match;;
11997 lt_cv_deplibs_check_method=pass_all
12000 # This must be Linux ELF.
12001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12002 lt_cv_deplibs_check_method=pass_all
12006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12015 lt_cv_file_magic_cmd=/usr/bin/file
12016 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12020 lt_cv_deplibs_check_method=pass_all
12024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12031 osf3* | osf4* | osf5*)
12032 lt_cv_deplibs_check_method=pass_all
12036 lt_cv_deplibs_check_method=pass_all
12040 lt_cv_deplibs_check_method=pass_all
12043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12044 lt_cv_deplibs_check_method=pass_all
12048 case $host_vendor in
12050 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]'
12051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12054 lt_cv_deplibs_check_method=pass_all
12057 lt_cv_file_magic_cmd='/bin/file'
12058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12061 lt_cv_file_magic_cmd='/bin/file'
12062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12063 lt_cv_file_magic_test_file=/lib/libc.so
12066 lt_cv_deplibs_check_method=pass_all
12069 lt_cv_deplibs_check_method=pass_all
12075 lt_cv_deplibs_check_method=pass_all
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12082 file_magic_cmd=$lt_cv_file_magic_cmd
12083 deplibs_check_method=$lt_cv_deplibs_check_method
12084 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12097 if test -n "$ac_tool_prefix"; then
12098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12099 set dummy ${ac_tool_prefix}ar; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if test "${ac_cv_prog_AR+set}" = set; then :
12103 $as_echo_n "(cached) " >&6
12105 if test -n "$AR"; then
12106 ac_cv_prog_AR="$AR" # Let the user override the test.
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115 ac_cv_prog_AR="${ac_tool_prefix}ar"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 if test -n "$AR"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12128 $as_echo "$AR" >&6; }
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12136 if test -z "$ac_cv_prog_AR"; then
12138 # Extract the first word of "ar", so it can be a program name with args.
12139 set dummy ar; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12145 if test -n "$ac_ct_AR"; then
12146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12155 ac_cv_prog_ac_ct_AR="ar"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12166 if test -n "$ac_ct_AR"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12168 $as_echo "$ac_ct_AR" >&6; }
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12174 if test "x$ac_ct_AR" = x; then
12177 case $cross_compiling:$ac_tool_warned in
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12181 ac_tool_warned=yes ;;
12186 AR="$ac_cv_prog_AR"
12189 test -z "$AR" && AR=ar
12190 test -z "$AR_FLAGS" && AR_FLAGS=cru
12202 if test -n "$ac_tool_prefix"; then
12203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12204 set dummy ${ac_tool_prefix}strip; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_prog_STRIP+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 if test -n "$STRIP"; then
12211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12220 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 STRIP=$ac_cv_prog_STRIP
12231 if test -n "$STRIP"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12233 $as_echo "$STRIP" >&6; }
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12241 if test -z "$ac_cv_prog_STRIP"; then
12243 # Extract the first word of "strip", so it can be a program name with args.
12244 set dummy strip; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12248 $as_echo_n "(cached) " >&6
12250 if test -n "$ac_ct_STRIP"; then
12251 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12257 test -z "$as_dir" && as_dir=.
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260 ac_cv_prog_ac_ct_STRIP="strip"
12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12271 if test -n "$ac_ct_STRIP"; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12273 $as_echo "$ac_ct_STRIP" >&6; }
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12279 if test "x$ac_ct_STRIP" = x; then
12282 case $cross_compiling:$ac_tool_warned in
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12286 ac_tool_warned=yes ;;
12291 STRIP="$ac_cv_prog_STRIP"
12294 test -z "$STRIP" && STRIP=:
12301 if test -n "$ac_tool_prefix"; then
12302 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12303 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12309 if test -n "$RANLIB"; then
12310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 RANLIB=$ac_cv_prog_RANLIB
12330 if test -n "$RANLIB"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12332 $as_echo "$RANLIB" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12340 if test -z "$ac_cv_prog_RANLIB"; then
12341 ac_ct_RANLIB=$RANLIB
12342 # Extract the first word of "ranlib", so it can be a program name with args.
12343 set dummy ranlib; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12349 if test -n "$ac_ct_RANLIB"; then
12350 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12359 ac_cv_prog_ac_ct_RANLIB="ranlib"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12370 if test -n "$ac_ct_RANLIB"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12372 $as_echo "$ac_ct_RANLIB" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12378 if test "x$ac_ct_RANLIB" = x; then
12381 case $cross_compiling:$ac_tool_warned in
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12385 ac_tool_warned=yes ;;
12387 RANLIB=$ac_ct_RANLIB
12390 RANLIB="$ac_cv_prog_RANLIB"
12393 test -z "$RANLIB" && RANLIB=:
12400 # Determine commands to create old-style static archives.
12401 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12402 old_postinstall_cmds='chmod 644 $oldlib'
12403 old_postuninstall_cmds=
12405 if test -n "$RANLIB"; then
12408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12414 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12419 lock_old_archive_extraction=yes ;;
12421 lock_old_archive_extraction=no ;;
12462 # If no C compiler was specified, use CC.
12465 # If no C compiler flags were specified, use CFLAGS.
12466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12468 # Allow CC to be a program name with arguments.
12472 # Check for command to grab the raw symbol name followed by C symbol from nm.
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12474 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12475 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12479 # These are sane defaults that work on at least a few old systems.
12480 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12482 # Character class describing NM global symbol codes.
12483 symcode='[BCDEGRST]'
12485 # Regexp to match symbols that can be accessed directly from C.
12486 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12488 # Define system-specific variables.
12493 cygwin* | mingw* | pw32* | cegcc*)
12494 symcode='[ABCDGISTW]'
12497 if test "$host_cpu" = ia64; then
12498 symcode='[ABCDEGRST]'
12501 irix* | nonstopux*)
12502 symcode='[BCDEGRST]'
12505 symcode='[BCDEGQRST]'
12516 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12524 # If we're using GNU nm, then use its standard symbol codes.
12525 case `$NM -V 2>&1` in
12526 *GNU* | *'with BFD'*)
12527 symcode='[ABCDGIRSTW]' ;;
12530 # Transform an extracted symbol line into a proper C declaration.
12531 # Some systems (esp. on ia64) link data and code symbols differently,
12532 # so use this general approach.
12533 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12535 # Transform an extracted symbol line into symbol name and symbol address
12536 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12537 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'"
12539 # Handle CRLF in mingw tool chain
12543 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12547 # Try without a prefix underscore, then with it.
12548 for ac_symprfx in "" "_"; do
12550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12551 symxfrm="\\1 $ac_symprfx\\2 \\2"
12553 # Write the raw and C identifiers.
12554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12555 # Fake it for dumpbin and say T for any non-static function
12556 # and D for any global variable.
12557 # Also find C++ and __fastcall symbols from MSVC++,
12558 # which start with @ or ?.
12559 lt_cv_sys_global_symbol_pipe="$AWK '"\
12560 " {last_section=section; section=\$ 3};"\
12561 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12562 " \$ 0!~/External *\|/{next};"\
12563 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12564 " {if(hide[section]) next};"\
12565 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12566 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12567 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12568 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12569 " ' prfx=^$ac_symprfx"
12571 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12574 # Check to see that the pipe works correctly.
12578 cat > conftest.$ac_ext <<_LT_EOF
12583 void nm_test_func(void);
12584 void nm_test_func(void){}
12588 int main(){nm_test_var='a';nm_test_func();return(0);}
12591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12592 (eval $ac_compile) 2>&5
12594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12595 test $ac_status = 0; }; then
12596 # Now try to grab the symbols.
12598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12599 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12602 test $ac_status = 0; } && test -s "$nlist"; then
12603 # Try sorting and uniquifying the output.
12604 if sort "$nlist" | uniq > "$nlist"T; then
12605 mv -f "$nlist"T "$nlist"
12610 # Make sure that we snagged all the symbols we need.
12611 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12612 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12613 cat <<_LT_EOF > conftest.$ac_ext
12619 # Now generate the symbol file.
12620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12622 cat <<_LT_EOF >> conftest.$ac_ext
12624 /* The mapping between symbol names and symbols. */
12629 lt__PROGRAM__LTX_preloaded_symbols[] =
12631 { "@PROGRAM@", (void *) 0 },
12633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12634 cat <<\_LT_EOF >> conftest.$ac_ext
12638 /* This works around a problem in FreeBSD linker */
12639 #ifdef FREEBSD_WORKAROUND
12640 static const void *lt_preloaded_setup() {
12641 return lt__PROGRAM__LTX_preloaded_symbols;
12649 # Now try linking the two files.
12650 mv conftest.$ac_objext conftstm.$ac_objext
12651 lt_save_LIBS="$LIBS"
12652 lt_save_CFLAGS="$CFLAGS"
12653 LIBS="conftstm.$ac_objext"
12654 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12656 (eval $ac_link) 2>&5
12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12662 LIBS="$lt_save_LIBS"
12663 CFLAGS="$lt_save_CFLAGS"
12665 echo "cannot find nm_test_func in $nlist" >&5
12668 echo "cannot find nm_test_var in $nlist" >&5
12671 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12674 echo "$progname: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12677 rm -rf conftest* conftst*
12679 # Do not use the global_symbol_pipe unless it works.
12680 if test "$pipe_works" = yes; then
12683 lt_cv_sys_global_symbol_pipe=
12689 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12690 lt_cv_sys_global_symbol_to_cdecl=
12692 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12694 $as_echo "failed" >&6; }
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12697 $as_echo "ok" >&6; }
12721 # Check whether --enable-libtool-lock was given.
12722 if test "${enable_libtool_lock+set}" = set; then :
12723 enableval=$enable_libtool_lock;
12726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12728 # Some flags need to be propagated to the compiler or linker for good
12732 # Find out which ABI we are using.
12733 echo 'int i;' > conftest.$ac_ext
12734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12735 (eval $ac_compile) 2>&5
12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738 test $ac_status = 0; }; then
12739 case `/usr/bin/file conftest.$ac_objext` in
12741 HPUX_IA64_MODE="32"
12744 HPUX_IA64_MODE="64"
12751 # Find out which ABI we are using.
12752 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12754 (eval $ac_compile) 2>&5
12756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12757 test $ac_status = 0; }; then
12758 if test "$lt_cv_prog_gnu_ld" = yes; then
12759 case `/usr/bin/file conftest.$ac_objext` in
12761 LD="${LD-ld} -melf32bsmip"
12764 LD="${LD-ld} -melf32bmipn32"
12767 LD="${LD-ld} -melf64bmip"
12771 case `/usr/bin/file conftest.$ac_objext` in
12787 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12788 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12789 # Find out which ABI we are using.
12790 echo 'int i;' > conftest.$ac_ext
12791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12792 (eval $ac_compile) 2>&5
12794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795 test $ac_status = 0; }; then
12796 case `/usr/bin/file conftest.o` in
12799 x86_64-*kfreebsd*-gnu)
12800 LD="${LD-ld} -m elf_i386_fbsd"
12803 LD="${LD-ld} -m elf_i386"
12805 ppc64-*linux*|powerpc64-*linux*)
12806 LD="${LD-ld} -m elf32ppclinux"
12809 LD="${LD-ld} -m elf_s390"
12812 LD="${LD-ld} -m elf32_sparc"
12818 x86_64-*kfreebsd*-gnu)
12819 LD="${LD-ld} -m elf_x86_64_fbsd"
12822 LD="${LD-ld} -m elf_x86_64"
12824 ppc*-*linux*|powerpc*-*linux*)
12825 LD="${LD-ld} -m elf64ppc"
12827 s390*-*linux*|s390*-*tpf*)
12828 LD="${LD-ld} -m elf64_s390"
12831 LD="${LD-ld} -m elf64_sparc"
12841 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12842 SAVE_CFLAGS="$CFLAGS"
12843 CFLAGS="$CFLAGS -belf"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12845 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12846 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12850 ac_cpp='$CPP $CPPFLAGS'
12851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12866 if ac_fn_c_try_link "$LINENO"; then :
12867 lt_cv_cc_needs_belf=yes
12869 lt_cv_cc_needs_belf=no
12871 rm -f core conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext conftest.$ac_ext
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12881 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12882 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12883 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12884 CFLAGS="$SAVE_CFLAGS"
12888 # Find out which ABI we are using.
12889 echo 'int i;' > conftest.$ac_ext
12890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12891 (eval $ac_compile) 2>&5
12893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894 test $ac_status = 0; }; then
12895 case `/usr/bin/file conftest.o` in
12897 case $lt_cv_prog_gnu_ld in
12898 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12900 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12912 need_locks="$enable_libtool_lock"
12916 rhapsody* | darwin*)
12917 if test -n "$ac_tool_prefix"; then
12918 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12925 if test -n "$DSYMUTIL"; then
12926 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12946 if test -n "$DSYMUTIL"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12948 $as_echo "$DSYMUTIL" >&6; }
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12956 if test -z "$ac_cv_prog_DSYMUTIL"; then
12957 ac_ct_DSYMUTIL=$DSYMUTIL
12958 # Extract the first word of "dsymutil", so it can be a program name with args.
12959 set dummy dsymutil; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12965 if test -n "$ac_ct_DSYMUTIL"; then
12966 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969 for as_dir in $PATH
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12975 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12986 if test -n "$ac_ct_DSYMUTIL"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12988 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12994 if test "x$ac_ct_DSYMUTIL" = x; then
12997 case $cross_compiling:$ac_tool_warned in
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13001 ac_tool_warned=yes ;;
13003 DSYMUTIL=$ac_ct_DSYMUTIL
13006 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13009 if test -n "$ac_tool_prefix"; then
13010 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13011 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13017 if test -n "$NMEDIT"; then
13018 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037 NMEDIT=$ac_cv_prog_NMEDIT
13038 if test -n "$NMEDIT"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13040 $as_echo "$NMEDIT" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13048 if test -z "$ac_cv_prog_NMEDIT"; then
13049 ac_ct_NMEDIT=$NMEDIT
13050 # Extract the first word of "nmedit", so it can be a program name with args.
13051 set dummy nmedit; ac_word=$2
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053 $as_echo_n "checking for $ac_word... " >&6; }
13054 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
13057 if test -n "$ac_ct_NMEDIT"; then
13058 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13064 test -z "$as_dir" && as_dir=.
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13067 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13078 if test -n "$ac_ct_NMEDIT"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13080 $as_echo "$ac_ct_NMEDIT" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13086 if test "x$ac_ct_NMEDIT" = x; then
13089 case $cross_compiling:$ac_tool_warned in
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13093 ac_tool_warned=yes ;;
13095 NMEDIT=$ac_ct_NMEDIT
13098 NMEDIT="$ac_cv_prog_NMEDIT"
13101 if test -n "$ac_tool_prefix"; then
13102 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13103 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if test "${ac_cv_prog_LIPO+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13109 if test -n "$LIPO"; then
13110 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13119 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 LIPO=$ac_cv_prog_LIPO
13130 if test -n "$LIPO"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13132 $as_echo "$LIPO" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13140 if test -z "$ac_cv_prog_LIPO"; then
13142 # Extract the first word of "lipo", so it can be a program name with args.
13143 set dummy lipo; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13149 if test -n "$ac_ct_LIPO"; then
13150 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_ac_ct_LIPO="lipo"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13170 if test -n "$ac_ct_LIPO"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13172 $as_echo "$ac_ct_LIPO" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13178 if test "x$ac_ct_LIPO" = x; then
13181 case $cross_compiling:$ac_tool_warned in
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13185 ac_tool_warned=yes ;;
13190 LIPO="$ac_cv_prog_LIPO"
13193 if test -n "$ac_tool_prefix"; then
13194 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13195 set dummy ${ac_tool_prefix}otool; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13201 if test -n "$OTOOL"; then
13202 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 OTOOL=$ac_cv_prog_OTOOL
13222 if test -n "$OTOOL"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13224 $as_echo "$OTOOL" >&6; }
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13232 if test -z "$ac_cv_prog_OTOOL"; then
13234 # Extract the first word of "otool", so it can be a program name with args.
13235 set dummy otool; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13241 if test -n "$ac_ct_OTOOL"; then
13242 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_ac_ct_OTOOL="otool"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13262 if test -n "$ac_ct_OTOOL"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13264 $as_echo "$ac_ct_OTOOL" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13270 if test "x$ac_ct_OTOOL" = x; then
13273 case $cross_compiling:$ac_tool_warned in
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13277 ac_tool_warned=yes ;;
13282 OTOOL="$ac_cv_prog_OTOOL"
13285 if test -n "$ac_tool_prefix"; then
13286 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13287 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13291 $as_echo_n "(cached) " >&6
13293 if test -n "$OTOOL64"; then
13294 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13303 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 OTOOL64=$ac_cv_prog_OTOOL64
13314 if test -n "$OTOOL64"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13316 $as_echo "$OTOOL64" >&6; }
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13324 if test -z "$ac_cv_prog_OTOOL64"; then
13325 ac_ct_OTOOL64=$OTOOL64
13326 # Extract the first word of "otool64", so it can be a program name with args.
13327 set dummy otool64; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
13333 if test -n "$ac_ct_OTOOL64"; then
13334 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_prog_ac_ct_OTOOL64="otool64"
13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13354 if test -n "$ac_ct_OTOOL64"; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13356 $as_echo "$ac_ct_OTOOL64" >&6; }
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13362 if test "x$ac_ct_OTOOL64" = x; then
13365 case $cross_compiling:$ac_tool_warned in
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13369 ac_tool_warned=yes ;;
13371 OTOOL64=$ac_ct_OTOOL64
13374 OTOOL64="$ac_cv_prog_OTOOL64"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13404 $as_echo_n "checking for -single_module linker flag... " >&6; }
13405 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13406 $as_echo_n "(cached) " >&6
13408 lt_cv_apple_cc_single_mod=no
13409 if test -z "${LT_MULTI_MODULE}"; then
13410 # By default we will add the -single_module flag. You can override
13411 # by either setting the environment variable LT_MULTI_MODULE
13412 # non-empty at configure time, or by adding -multi_module to the
13414 rm -rf libconftest.dylib*
13415 echo "int foo(void){return 1;}" > conftest.c
13416 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13417 -dynamiclib -Wl,-single_module conftest.c" >&5
13418 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13419 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13421 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13422 lt_cv_apple_cc_single_mod=yes
13424 cat conftest.err >&5
13426 rm -rf libconftest.dylib*
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13431 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13433 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13434 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13435 $as_echo_n "(cached) " >&6
13437 lt_cv_ld_exported_symbols_list=no
13438 save_LDFLAGS=$LDFLAGS
13439 echo "_main" > conftest.sym
13440 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13452 if ac_fn_c_try_link "$LINENO"; then :
13453 lt_cv_ld_exported_symbols_list=yes
13455 lt_cv_ld_exported_symbols_list=no
13457 rm -f core conftest.err conftest.$ac_objext \
13458 conftest$ac_exeext conftest.$ac_ext
13459 LDFLAGS="$save_LDFLAGS"
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13463 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13465 $as_echo_n "checking for -force_load linker flag... " >&6; }
13466 if test "${lt_cv_ld_force_load+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13469 lt_cv_ld_force_load=no
13470 cat > conftest.c << _LT_EOF
13471 int forced_loaded() { return 2;}
13473 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13474 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13475 echo "$AR cru libconftest.a conftest.o" >&5
13476 $AR cru libconftest.a conftest.o 2>&5
13477 cat > conftest.c << _LT_EOF
13478 int main() { return 0;}
13480 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13481 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13483 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13484 lt_cv_ld_force_load=yes
13486 cat conftest.err >&5
13488 rm -f conftest.err libconftest.a conftest conftest.c
13489 rm -rf conftest.dSYM
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13493 $as_echo "$lt_cv_ld_force_load" >&6; }
13495 rhapsody* | darwin1.[012])
13496 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13499 darwin*) # darwin 5.x on
13500 # if running on 10.5 or later, the deployment target defaults
13501 # to the OS version, if on x86, and 10.4, the deployment
13502 # target defaults to 10.4. Don't you love it?
13503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13504 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13513 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13514 _lt_dar_single_mod='$single_module'
13516 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13517 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13519 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13521 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13522 _lt_dsymutil='~$DSYMUTIL $lib || :'
13529 for ac_header in dlfcn.h
13531 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13532 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13533 cat >>confdefs.h <<_ACEOF
13534 #define HAVE_DLFCN_H 1
13552 enable_win32_dll=no
13555 # Check whether --enable-shared was given.
13556 if test "${enable_shared+set}" = set; then :
13557 enableval=$enable_shared; p=${PACKAGE-default}
13559 yes) enable_shared=yes ;;
13560 no) enable_shared=no ;;
13563 # Look at the argument we got. We use all the common list separators.
13564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13565 for pkg in $enableval; do
13567 if test "X$pkg" = "X$p"; then
13586 # Check whether --enable-static was given.
13587 if test "${enable_static+set}" = set; then :
13588 enableval=$enable_static; p=${PACKAGE-default}
13590 yes) enable_static=yes ;;
13591 no) enable_static=no ;;
13594 # Look at the argument we got. We use all the common list separators.
13595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13596 for pkg in $enableval; do
13598 if test "X$pkg" = "X$p"; then
13618 # Check whether --with-pic was given.
13619 if test "${with_pic+set}" = set; then :
13620 withval=$with_pic; pic_mode="$withval"
13626 test -z "$pic_mode" && pic_mode=default
13634 # Check whether --enable-fast-install was given.
13635 if test "${enable_fast_install+set}" = set; then :
13636 enableval=$enable_fast_install; p=${PACKAGE-default}
13638 yes) enable_fast_install=yes ;;
13639 no) enable_fast_install=no ;;
13641 enable_fast_install=no
13642 # Look at the argument we got. We use all the common list separators.
13643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13644 for pkg in $enableval; do
13646 if test "X$pkg" = "X$p"; then
13647 enable_fast_install=yes
13654 enable_fast_install=yes
13667 # This can be used to rebuild libtool when needed
13668 LIBTOOL_DEPS="$ltmain"
13670 # Always use our own libtool.
13671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13698 test -z "$LN_S" && LN_S="ln -s"
13713 if test -n "${ZSH_VERSION+set}" ; then
13714 setopt NO_GLOB_SUBST
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13718 $as_echo_n "checking for objdir... " >&6; }
13719 if test "${lt_cv_objdir+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13722 rm -f .libs 2>/dev/null
13723 mkdir .libs 2>/dev/null
13724 if test -d .libs; then
13727 # MS-DOS does not allow filenames that begin with a dot.
13730 rmdir .libs 2>/dev/null
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13733 $as_echo "$lt_cv_objdir" >&6; }
13734 objdir=$lt_cv_objdir
13740 cat >>confdefs.h <<_ACEOF
13741 #define LT_OBJDIR "$lt_cv_objdir/"
13749 # AIX sometimes has problems with the GCC collect2 program. For some
13750 # reason, if we set the COLLECT_NAMES environment variable, the problems
13751 # vanish in a puff of smoke.
13752 if test "X${COLLECT_NAMES+set}" != Xset; then
13754 export COLLECT_NAMES
13759 # Global variables:
13761 can_build_shared=yes
13763 # All known linkers require a `.a' archive for static linking (except MSVC,
13764 # which needs '.lib').
13767 with_gnu_ld="$lt_cv_prog_gnu_ld"
13770 old_CFLAGS="$CFLAGS"
13772 # Set sane defaults for various variables
13773 test -z "$CC" && CC=cc
13774 test -z "$LTCC" && LTCC=$CC
13775 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13776 test -z "$LD" && LD=ld
13777 test -z "$ac_objext" && ac_objext=o
13779 for cc_temp in $compiler""; do
13781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13790 # Only perform the check for file, if the check method requires it
13791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13792 case $deplibs_check_method in
13794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13796 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13797 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13798 $as_echo_n "(cached) " >&6
13802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13805 lt_save_MAGIC_CMD="$MAGIC_CMD"
13806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13808 for ac_dir in $ac_dummy; do
13810 test -z "$ac_dir" && ac_dir=.
13811 if test -f $ac_dir/${ac_tool_prefix}file; then
13812 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13813 if test -n "$file_magic_test_file"; then
13814 case $deplibs_check_method in
13816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13819 $EGREP "$file_magic_regex" > /dev/null; then
13824 *** Warning: the command libtool uses to detect shared libraries,
13825 *** $file_magic_cmd, produces output that libtool cannot recognize.
13826 *** The result is that libtool may fail to recognize shared libraries
13827 *** as such. This will affect the creation of libtool libraries that
13828 *** depend on shared libraries, but programs linked with such libtool
13829 *** libraries will work regardless of this problem. Nevertheless, you
13830 *** may want to report the problem to your system manager and/or to
13831 *** bug-libtool@gnu.org
13841 MAGIC_CMD="$lt_save_MAGIC_CMD"
13846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13847 if test -n "$MAGIC_CMD"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13849 $as_echo "$MAGIC_CMD" >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13859 if test -z "$lt_cv_path_MAGIC_CMD"; then
13860 if test -n "$ac_tool_prefix"; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13862 $as_echo_n "checking for file... " >&6; }
13863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13871 lt_save_MAGIC_CMD="$MAGIC_CMD"
13872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13874 for ac_dir in $ac_dummy; do
13876 test -z "$ac_dir" && ac_dir=.
13877 if test -f $ac_dir/file; then
13878 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13879 if test -n "$file_magic_test_file"; then
13880 case $deplibs_check_method in
13882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13885 $EGREP "$file_magic_regex" > /dev/null; then
13890 *** Warning: the command libtool uses to detect shared libraries,
13891 *** $file_magic_cmd, produces output that libtool cannot recognize.
13892 *** The result is that libtool may fail to recognize shared libraries
13893 *** as such. This will affect the creation of libtool libraries that
13894 *** depend on shared libraries, but programs linked with such libtool
13895 *** libraries will work regardless of this problem. Nevertheless, you
13896 *** may want to report the problem to your system manager and/or to
13897 *** bug-libtool@gnu.org
13907 MAGIC_CMD="$lt_save_MAGIC_CMD"
13912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13913 if test -n "$MAGIC_CMD"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13915 $as_echo "$MAGIC_CMD" >&6; }
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13931 # Use C for the default configuration in the libtool script
13935 ac_cpp='$CPP $CPPFLAGS'
13936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13941 # Source file extension for C test sources.
13944 # Object file extension for compiled C test sources.
13948 # Code to be used in simple compile tests
13949 lt_simple_compile_test_code="int some_variable = 0;"
13951 # Code to be used in simple link tests
13952 lt_simple_link_test_code='int main(){return(0);}'
13960 # If no C compiler was specified, use CC.
13963 # If no C compiler flags were specified, use CFLAGS.
13964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13966 # Allow CC to be a program name with arguments.
13969 # Save the default compiler, since it gets overwritten when the other
13970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13971 compiler_DEFAULT=$CC
13973 # save warnings/boilerplate of simple test code
13974 ac_outfile=conftest.$ac_objext
13975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13977 _lt_compiler_boilerplate=`cat conftest.err`
13980 ac_outfile=conftest.$ac_objext
13981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13983 _lt_linker_boilerplate=`cat conftest.err`
13988 ## There is no encapsulation within the following macros, do not change
13989 ## the running order or otherwise move them around unless you know exactly
13990 ## what you are doing...
13991 if test -n "$compiler"; then
13993 lt_prog_compiler_no_builtin_flag=
13995 if test "$GCC" = yes; then
13996 case $cc_basename in
13998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14004 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14005 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14008 lt_cv_prog_compiler_rtti_exceptions=no
14009 ac_outfile=conftest.$ac_objext
14010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14011 lt_compiler_flag="-fno-rtti -fno-exceptions"
14012 # Insert the option either (1) after the last *FLAGS variable, or
14013 # (2) before a word containing "conftest.", or (3) at the end.
14014 # Note that $ac_compile itself does not contain backslashes and begins
14015 # with a dollar sign (not a hyphen), so the echo should work correctly.
14016 # The option is referenced via a variable to avoid confusing sed.
14017 lt_compile=`echo "$ac_compile" | $SED \
14018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14020 -e 's:$: $lt_compiler_flag:'`
14021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14022 (eval "$lt_compile" 2>conftest.err)
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 if (exit $ac_status) && test -s "$ac_outfile"; then
14027 # The compiler can only warn and ignore the option if not recognized
14028 # So say no if there are warnings other than the usual output.
14029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14032 lt_cv_prog_compiler_rtti_exceptions=yes
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14039 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14054 lt_prog_compiler_wl=
14055 lt_prog_compiler_pic=
14056 lt_prog_compiler_static=
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14059 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14061 if test "$GCC" = yes; then
14062 lt_prog_compiler_wl='-Wl,'
14063 lt_prog_compiler_static='-static'
14067 # All AIX code is PIC.
14068 if test "$host_cpu" = ia64; then
14069 # AIX 5 now supports IA64 processor
14070 lt_prog_compiler_static='-Bstatic'
14077 # see comment about AmigaOS4 .so support
14078 lt_prog_compiler_pic='-fPIC'
14081 # FIXME: we need at least 68020 code to build shared libraries, but
14082 # adding the `-m68020' flag to GCC prevents building anything better,
14084 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14089 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14090 # PIC is the default for these OSes.
14093 mingw* | cygwin* | pw32* | os2* | cegcc*)
14094 # This hack is so that the source file can tell whether it is being
14095 # built for inclusion in a dll (and should export symbols for example).
14096 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14097 # (--disable-auto-import) libraries
14098 lt_prog_compiler_pic='-DDLL_EXPORT'
14101 darwin* | rhapsody*)
14102 # PIC is the default on this platform
14103 # Common symbols not allowed in MH_DYLIB files
14104 lt_prog_compiler_pic='-fno-common'
14108 # PIC is the default for Haiku.
14109 # The "-static" flag exists, but is broken.
14110 lt_prog_compiler_static=
14114 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14115 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14116 # sets the default TLS model and affects inlining.
14122 lt_prog_compiler_pic='-fPIC'
14128 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14129 # Instead, we relocate shared libraries at runtime.
14133 # Just because we use GCC doesn't mean we suddenly get shared libraries
14134 # on systems that don't support them.
14135 lt_prog_compiler_can_build_shared=no
14140 # QNX uses GNU C++, but need to define -shared option too, otherwise
14141 # it will coredump.
14142 lt_prog_compiler_pic='-fPIC -shared'
14146 if test -d /usr/nec; then
14147 lt_prog_compiler_pic=-Kconform_pic
14152 lt_prog_compiler_pic='-fPIC'
14156 case $cc_basename in
14157 nvcc*) # Cuda Compiler Driver 2.2
14158 lt_prog_compiler_wl='-Xlinker '
14159 lt_prog_compiler_pic='-Xcompiler -fPIC'
14163 # PORTME Check for flag to pass linker flags through the system compiler.
14166 lt_prog_compiler_wl='-Wl,'
14167 if test "$host_cpu" = ia64; then
14168 # AIX 5 now supports IA64 processor
14169 lt_prog_compiler_static='-Bstatic'
14171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14175 mingw* | cygwin* | pw32* | os2* | cegcc*)
14176 # This hack is so that the source file can tell whether it is being
14177 # built for inclusion in a dll (and should export symbols for example).
14178 lt_prog_compiler_pic='-DDLL_EXPORT'
14181 hpux9* | hpux10* | hpux11*)
14182 lt_prog_compiler_wl='-Wl,'
14183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14184 # not for PA HP-UX.
14190 lt_prog_compiler_pic='+Z'
14193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14194 lt_prog_compiler_static='${wl}-a ${wl}archive'
14197 irix5* | irix6* | nonstopux*)
14198 lt_prog_compiler_wl='-Wl,'
14199 # PIC (with -KPIC) is the default.
14200 lt_prog_compiler_static='-non_shared'
14203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14204 case $cc_basename in
14205 # old Intel for x86_64 which still supported -KPIC.
14207 lt_prog_compiler_wl='-Wl,'
14208 lt_prog_compiler_pic='-KPIC'
14209 lt_prog_compiler_static='-static'
14211 # icc used to be incompatible with GCC.
14212 # ICC 10 doesn't accept -KPIC any more.
14214 lt_prog_compiler_wl='-Wl,'
14215 lt_prog_compiler_pic='-fPIC'
14216 lt_prog_compiler_static='-static'
14218 # Lahey Fortran 8.1.
14220 lt_prog_compiler_wl='-Wl,'
14221 lt_prog_compiler_pic='--shared'
14222 lt_prog_compiler_static='--static'
14224 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14225 # Portland Group compilers (*not* the Pentium gcc compiler,
14226 # which looks to be a dead project)
14227 lt_prog_compiler_wl='-Wl,'
14228 lt_prog_compiler_pic='-fpic'
14229 lt_prog_compiler_static='-Bstatic'
14232 lt_prog_compiler_wl='-Wl,'
14233 # All Alpha code is PIC.
14234 lt_prog_compiler_static='-non_shared'
14236 xl* | bgxl* | bgf* | mpixl*)
14237 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14238 lt_prog_compiler_wl='-Wl,'
14239 lt_prog_compiler_pic='-qpic'
14240 lt_prog_compiler_static='-qstaticlink'
14243 case `$CC -V 2>&1 | sed 5q` in
14244 *Sun\ F* | *Sun*Fortran*)
14245 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14246 lt_prog_compiler_pic='-KPIC'
14247 lt_prog_compiler_static='-Bstatic'
14248 lt_prog_compiler_wl=''
14252 lt_prog_compiler_pic='-KPIC'
14253 lt_prog_compiler_static='-Bstatic'
14254 lt_prog_compiler_wl='-Wl,'
14262 lt_prog_compiler_pic='-KPIC'
14263 lt_prog_compiler_static='-Bstatic'
14267 # QNX uses GNU C++, but need to define -shared option too, otherwise
14268 # it will coredump.
14269 lt_prog_compiler_pic='-fPIC -shared'
14272 osf3* | osf4* | osf5*)
14273 lt_prog_compiler_wl='-Wl,'
14274 # All OSF/1 code is PIC.
14275 lt_prog_compiler_static='-non_shared'
14279 lt_prog_compiler_static='-non_shared'
14283 lt_prog_compiler_pic='-KPIC'
14284 lt_prog_compiler_static='-Bstatic'
14285 case $cc_basename in
14286 f77* | f90* | f95*)
14287 lt_prog_compiler_wl='-Qoption ld ';;
14289 lt_prog_compiler_wl='-Wl,';;
14294 lt_prog_compiler_wl='-Qoption ld '
14295 lt_prog_compiler_pic='-PIC'
14296 lt_prog_compiler_static='-Bstatic'
14299 sysv4 | sysv4.2uw2* | sysv4.3*)
14300 lt_prog_compiler_wl='-Wl,'
14301 lt_prog_compiler_pic='-KPIC'
14302 lt_prog_compiler_static='-Bstatic'
14306 if test -d /usr/nec ;then
14307 lt_prog_compiler_pic='-Kconform_pic'
14308 lt_prog_compiler_static='-Bstatic'
14312 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14313 lt_prog_compiler_wl='-Wl,'
14314 lt_prog_compiler_pic='-KPIC'
14315 lt_prog_compiler_static='-Bstatic'
14319 lt_prog_compiler_wl='-Wl,'
14320 lt_prog_compiler_can_build_shared=no
14324 lt_prog_compiler_pic='-pic'
14325 lt_prog_compiler_static='-Bstatic'
14329 lt_prog_compiler_can_build_shared=no
14335 # For platforms which do not support PIC, -DPIC is meaningless:
14337 lt_prog_compiler_pic=
14340 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14344 $as_echo "$lt_prog_compiler_pic" >&6; }
14352 # Check to make sure the PIC flag actually works.
14354 if test -n "$lt_prog_compiler_pic"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14356 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14357 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14360 lt_cv_prog_compiler_pic_works=no
14361 ac_outfile=conftest.$ac_objext
14362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14363 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14364 # Insert the option either (1) after the last *FLAGS variable, or
14365 # (2) before a word containing "conftest.", or (3) at the end.
14366 # Note that $ac_compile itself does not contain backslashes and begins
14367 # with a dollar sign (not a hyphen), so the echo should work correctly.
14368 # The option is referenced via a variable to avoid confusing sed.
14369 lt_compile=`echo "$ac_compile" | $SED \
14370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14372 -e 's:$: $lt_compiler_flag:'`
14373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14374 (eval "$lt_compile" 2>conftest.err)
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 if (exit $ac_status) && test -s "$ac_outfile"; then
14379 # The compiler can only warn and ignore the option if not recognized
14380 # So say no if there are warnings other than the usual output.
14381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14383 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14384 lt_cv_prog_compiler_pic_works=yes
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14391 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14393 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14394 case $lt_prog_compiler_pic in
14396 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14399 lt_prog_compiler_pic=
14400 lt_prog_compiler_can_build_shared=no
14411 # Check to make sure the static flag actually works.
14413 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14416 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14417 $as_echo_n "(cached) " >&6
14419 lt_cv_prog_compiler_static_works=no
14420 save_LDFLAGS="$LDFLAGS"
14421 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14422 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14424 # The linker can only warn and ignore the option if not recognized
14425 # So say no if there are warnings
14426 if test -s conftest.err; then
14427 # Append any errors to the config.log.
14428 cat conftest.err 1>&5
14429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431 if diff conftest.exp conftest.er2 >/dev/null; then
14432 lt_cv_prog_compiler_static_works=yes
14435 lt_cv_prog_compiler_static_works=yes
14439 LDFLAGS="$save_LDFLAGS"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14443 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14445 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14448 lt_prog_compiler_static=
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14459 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14460 $as_echo_n "(cached) " >&6
14462 lt_cv_prog_compiler_c_o=no
14463 $RM -r conftest 2>/dev/null
14467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14469 lt_compiler_flag="-o out/conftest2.$ac_objext"
14470 # Insert the option either (1) after the last *FLAGS variable, or
14471 # (2) before a word containing "conftest.", or (3) at the end.
14472 # Note that $ac_compile itself does not contain backslashes and begins
14473 # with a dollar sign (not a hyphen), so the echo should work correctly.
14474 lt_compile=`echo "$ac_compile" | $SED \
14475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14477 -e 's:$: $lt_compiler_flag:'`
14478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14479 (eval "$lt_compile" 2>out/conftest.err)
14481 cat out/conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14485 # The compiler can only warn and ignore the option if not recognized
14486 # So say no if there are warnings
14487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14490 lt_cv_prog_compiler_c_o=yes
14495 # SGI C++ compiler will create directory out/ii_files/ for
14496 # template instantiation
14497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14498 $RM out/* && rmdir out
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14505 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14514 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
14517 lt_cv_prog_compiler_c_o=no
14518 $RM -r conftest 2>/dev/null
14522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524 lt_compiler_flag="-o out/conftest2.$ac_objext"
14525 # Insert the option either (1) after the last *FLAGS variable, or
14526 # (2) before a word containing "conftest.", or (3) at the end.
14527 # Note that $ac_compile itself does not contain backslashes and begins
14528 # with a dollar sign (not a hyphen), so the echo should work correctly.
14529 lt_compile=`echo "$ac_compile" | $SED \
14530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532 -e 's:$: $lt_compiler_flag:'`
14533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14534 (eval "$lt_compile" 2>out/conftest.err)
14536 cat out/conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14540 # The compiler can only warn and ignore the option if not recognized
14541 # So say no if there are warnings
14542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14545 lt_cv_prog_compiler_c_o=yes
14550 # SGI C++ compiler will create directory out/ii_files/ for
14551 # template instantiation
14552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14553 $RM out/* && rmdir out
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14560 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14565 hard_links="nottested"
14566 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14567 # do not overwrite the value of need_locks provided by the user
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14569 $as_echo_n "checking if we can lock with hard links... " >&6; }
14572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14574 ln conftest.a conftest.b 2>&5 || hard_links=no
14575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14577 $as_echo "$hard_links" >&6; }
14578 if test "$hard_links" = no; then
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14580 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14596 allow_undefined_flag=
14597 always_export_symbols=no
14599 archive_expsym_cmds=
14600 compiler_needs_object=no
14601 enable_shared_with_static_runtimes=no
14602 export_dynamic_flag_spec=
14603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14604 hardcode_automatic=no
14606 hardcode_direct_absolute=no
14607 hardcode_libdir_flag_spec=
14608 hardcode_libdir_flag_spec_ld=
14609 hardcode_libdir_separator=
14610 hardcode_minus_L=no
14611 hardcode_shlibpath_var=unsupported
14613 link_all_deplibs=unknown
14615 module_expsym_cmds=
14616 old_archive_from_new_cmds=
14617 old_archive_from_expsyms_cmds=
14618 thread_safe_flag_spec=
14619 whole_archive_flag_spec=
14620 # include_expsyms should be a list of space-separated symbols to be *always*
14621 # included in the symbol list
14623 # exclude_expsyms can be an extended regexp of symbols to exclude
14624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14626 # as well as any symbol that contains `d'.
14627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14629 # platforms (ab)use it in PIC code, but their linkers get confused if
14630 # the symbol is explicitly referenced. Since portable code cannot
14631 # rely on this symbol name, it's probably fine to never include it in
14632 # preloaded symbol tables.
14633 # Exclude shared library initialization/finalization symbols.
14634 extract_expsyms_cmds=
14637 cygwin* | mingw* | pw32* | cegcc*)
14638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14639 # When not using gcc, we currently assume that we are using
14640 # Microsoft Visual C++.
14641 if test "$GCC" != yes; then
14646 # we just hope/assume this is gcc and not c89 (= MSVC++)
14656 # On some targets, GNU ld is compatible enough with the native linker
14657 # that we're better off using the native interface for both.
14658 lt_use_gnu_ld_interface=no
14659 if test "$with_gnu_ld" = yes; then
14662 # The AIX port of GNU ld has always aspired to compatibility
14663 # with the native linker. However, as the warning in the GNU ld
14664 # block says, versions before 2.19.5* couldn't really create working
14665 # shared libraries, regardless of the interface used.
14666 case `$LD -v 2>&1` in
14667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14668 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14669 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14671 lt_use_gnu_ld_interface=yes
14676 lt_use_gnu_ld_interface=yes
14681 if test "$lt_use_gnu_ld_interface" = yes; then
14682 # If archive_cmds runs LD, not CC, wlarc should be empty
14685 # Set some defaults for GNU ld with shared library support. These
14686 # are reset later if shared libraries are not supported. Putting them
14687 # here allows them to be overridden if necessary.
14688 runpath_var=LD_RUN_PATH
14689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14690 export_dynamic_flag_spec='${wl}--export-dynamic'
14691 # ancient GNU ld didn't support --whole-archive et. al.
14692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14693 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14695 whole_archive_flag_spec=
14697 supports_anon_versioning=no
14698 case `$LD -v 2>&1` in
14699 *GNU\ gold*) supports_anon_versioning=yes ;;
14700 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14703 *\ 2.11.*) ;; # other 2.11 versions
14704 *) supports_anon_versioning=yes ;;
14707 # See if GNU ld supports shared libraries.
14710 # On AIX/PPC, the GNU linker is very broken
14711 if test "$host_cpu" != ia64; then
14715 *** Warning: the GNU linker, at least up to release 2.19, is reported
14716 *** to be unable to reliably create shared libraries on AIX.
14717 *** Therefore, libtool is disabling shared libraries support. If you
14718 *** really care for shared libraries, you may want to install binutils
14719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14720 *** You will then need to restart the configuration process.
14729 # see comment about AmigaOS4 .so support
14730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14731 archive_expsym_cmds=''
14734 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)'
14735 hardcode_libdir_flag_spec='-L$libdir'
14736 hardcode_minus_L=yes
14742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14743 allow_undefined_flag=unsupported
14744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745 # support --undefined. This deserves some investigation. FIXME
14746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14752 cygwin* | mingw* | pw32* | cegcc*)
14753 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754 # as there is no search path for DLLs.
14755 hardcode_libdir_flag_spec='-L$libdir'
14756 export_dynamic_flag_spec='${wl}--export-all-symbols'
14757 allow_undefined_flag=unsupported
14758 always_export_symbols=no
14759 enable_shared_with_static_runtimes=yes
14760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14762 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14764 # If the export-symbols file already is a .def file (1st line
14765 # is EXPORTS), use it as is; otherwise, prepend...
14766 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14767 cp $export_symbols $output_objdir/$soname.def;
14769 echo EXPORTS > $output_objdir/$soname.def;
14770 cat $export_symbols >> $output_objdir/$soname.def;
14772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14780 link_all_deplibs=yes
14785 hardcode_shlibpath_var=no
14786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14787 export_dynamic_flag_spec='${wl}-E'
14788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14789 # Instead, shared libraries are loaded at an image base (0x10000000 by
14790 # default) and relocated if they conflict, which is a slow very memory
14791 # consuming and fragmenting process. To avoid this, we pick a random,
14792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14793 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14795 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'
14798 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14800 if test "$host_os" = linux-dietlibc; then
14801 case $cc_basename in
14802 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14805 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14806 && test "$tmp_diet" = no
14809 tmp_sharedflag='-shared'
14810 case $cc_basename,$host_cpu in
14811 pgcc*) # Portland Group C compiler
14812 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'
14813 tmp_addflag=' $pic_flag'
14815 pgf77* | pgf90* | pgf95* | pgfortran*)
14816 # Portland Group f77 and f90 compilers
14817 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'
14818 tmp_addflag=' $pic_flag -Mnomain' ;;
14819 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14820 tmp_addflag=' -i_dynamic' ;;
14821 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14822 tmp_addflag=' -i_dynamic -nofor_main' ;;
14823 ifc* | ifort*) # Intel Fortran compiler
14824 tmp_addflag=' -nofor_main' ;;
14825 lf95*) # Lahey Fortran 8.1
14826 whole_archive_flag_spec=
14827 tmp_sharedflag='--shared' ;;
14828 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14829 tmp_sharedflag='-qmkshrobj'
14831 nvcc*) # Cuda Compiler Driver 2.2
14832 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'
14833 compiler_needs_object=yes
14836 case `$CC -V 2>&1 | sed 5q` in
14837 *Sun\ C*) # Sun C 5.9
14838 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'
14839 compiler_needs_object=yes
14840 tmp_sharedflag='-G' ;;
14841 *Sun\ F*) # Sun Fortran 8.3
14842 tmp_sharedflag='-G' ;;
14844 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846 if test "x$supports_anon_versioning" = xyes; then
14847 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14849 echo "local: *; };" >> $output_objdir/$libname.ver~
14850 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14853 case $cc_basename in
14854 xlf* | bgf* | bgxlf* | mpixlf*)
14855 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14856 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14857 hardcode_libdir_flag_spec=
14858 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14859 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14860 if test "x$supports_anon_versioning" = xyes; then
14861 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863 echo "local: *; };" >> $output_objdir/$libname.ver~
14864 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14875 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14884 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14889 *** create shared libraries on Solaris systems. Therefore, libtool
14890 *** is disabling shared libraries support. We urge you to upgrade GNU
14891 *** binutils to release 2.9.1 or newer. Another option is to modify
14892 *** your PATH or compiler configuration so that the native linker is
14893 *** used, and then restart.
14896 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14905 case `$LD -v 2>&1` in
14906 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14911 *** reliably create shared libraries on SCO systems. Therefore, libtool
14912 *** is disabling shared libraries support. We urge you to upgrade GNU
14913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14914 *** your PATH or compiler configuration so that the native linker is
14915 *** used, and then restart.
14920 # For security reasons, it is highly recommended that you always
14921 # use absolute paths for naming shared libraries, and exclude the
14922 # DT_RUNPATH tag from executables and libraries. But doing so
14923 # requires that you compile everything twice, which is a pain.
14924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14936 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14938 hardcode_direct=yes
14939 hardcode_shlibpath_var=no
14943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14952 if test "$ld_shlibs" = no; then
14954 hardcode_libdir_flag_spec=
14955 export_dynamic_flag_spec=
14956 whole_archive_flag_spec=
14959 # PORTME fill in a description of your system's linker (not GNU ld)
14962 allow_undefined_flag=unsupported
14963 always_export_symbols=yes
14964 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'
14965 # Note: this linker hardcodes the directories in LIBPATH if there
14966 # are no directories specified by -L.
14967 hardcode_minus_L=yes
14968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14969 # Neither direct hardcoding nor static linking is supported with a
14971 hardcode_direct=unsupported
14976 if test "$host_cpu" = ia64; then
14977 # On IA64, the linker does run time linking by default, so we don't
14978 # have to do anything special.
14979 aix_use_runtimelinking=no
14980 exp_sym_flag='-Bexport'
14983 # If we're using GNU nm, then we don't want the "-C" option.
14984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14985 # Also, AIX nm treats weak defined symbols like other global
14986 # defined symbols, whereas GNU nm marks them as "W".
14987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14988 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'
14990 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'
14992 aix_use_runtimelinking=no
14994 # Test if we are trying to use run time linking or normal
14995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14996 # need to do runtime linking.
14997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14998 for ld_flag in $LDFLAGS; do
14999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15000 aix_use_runtimelinking=yes
15007 exp_sym_flag='-bexport'
15008 no_entry_flag='-bnoentry'
15011 # When large executables or shared objects are built, AIX ld can
15012 # have problems creating the table of contents. If linking a library
15013 # or program results in "error TOC overflow" add -mminimal-toc to
15014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15018 hardcode_direct=yes
15019 hardcode_direct_absolute=yes
15020 hardcode_libdir_separator=':'
15021 link_all_deplibs=yes
15022 file_list_spec='${wl}-f,'
15024 if test "$GCC" = yes; then
15025 case $host_os in aix4.[012]|aix4.[012].*)
15026 # We only want to do this on AIX 4.2 and lower, the check
15027 # below for broken collect2 doesn't work under 4.3+
15028 collect2name=`${CC} -print-prog-name=collect2`
15029 if test -f "$collect2name" &&
15030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15032 # We have reworked collect2
15035 # We have old collect2
15036 hardcode_direct=unsupported
15037 # It fails to find uninstalled libraries when the uninstalled
15038 # path is not listed in the libpath. Setting hardcode_minus_L
15039 # to unsupported forces relinking
15040 hardcode_minus_L=yes
15041 hardcode_libdir_flag_spec='-L$libdir'
15042 hardcode_libdir_separator=
15046 shared_flag='-shared'
15047 if test "$aix_use_runtimelinking" = yes; then
15048 shared_flag="$shared_flag "'${wl}-G'
15052 if test "$host_cpu" = ia64; then
15053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15054 # chokes on -Wl,-G. The following line is correct:
15057 if test "$aix_use_runtimelinking" = yes; then
15058 shared_flag='${wl}-G'
15060 shared_flag='${wl}-bM:SRE'
15065 export_dynamic_flag_spec='${wl}-bexpall'
15066 # It seems that -bexpall does not export symbols beginning with
15067 # underscore (_), so it is better to generate a list of symbols to export.
15068 always_export_symbols=yes
15069 if test "$aix_use_runtimelinking" = yes; then
15070 # Warning - without using the other runtime loading flags (-brtl),
15071 # -berok will link without error, but may produce a broken library.
15072 allow_undefined_flag='-berok'
15073 # Determine the default libpath from the value encoded in an
15074 # empty executable.
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15086 if ac_fn_c_try_link "$LINENO"; then :
15088 lt_aix_libpath_sed='
15089 /Import File Strings/,/^$/ {
15095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15096 # Check for a 64-bit object if we didn't find anything.
15097 if test -z "$aix_libpath"; then
15098 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15101 rm -f core conftest.err conftest.$ac_objext \
15102 conftest$ac_exeext conftest.$ac_ext
15103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15105 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15106 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"
15108 if test "$host_cpu" = ia64; then
15109 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15110 allow_undefined_flag="-z nodefs"
15111 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"
15113 # Determine the default libpath from the value encoded in an
15114 # empty executable.
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15126 if ac_fn_c_try_link "$LINENO"; then :
15128 lt_aix_libpath_sed='
15129 /Import File Strings/,/^$/ {
15135 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15136 # Check for a 64-bit object if we didn't find anything.
15137 if test -z "$aix_libpath"; then
15138 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15141 rm -f core conftest.err conftest.$ac_objext \
15142 conftest$ac_exeext conftest.$ac_ext
15143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15145 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15146 # Warning - without using the other run time loading flags,
15147 # -berok will link without error, but may produce a broken library.
15148 no_undefined_flag=' ${wl}-bernotok'
15149 allow_undefined_flag=' ${wl}-berok'
15150 if test "$with_gnu_ld" = yes; then
15151 # We only use this code for GNU lds that support --whole-archive.
15152 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15154 # Exported symbols can be pulled into shared objects from archives
15155 whole_archive_flag_spec='$convenience'
15157 archive_cmds_need_lc=yes
15158 # This is similar to how AIX traditionally builds its shared libraries.
15159 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'
15167 # see comment about AmigaOS4 .so support
15168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169 archive_expsym_cmds=''
15172 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)'
15173 hardcode_libdir_flag_spec='-L$libdir'
15174 hardcode_minus_L=yes
15180 export_dynamic_flag_spec=-rdynamic
15183 cygwin* | mingw* | pw32* | cegcc*)
15184 # When not using gcc, we currently assume that we are using
15185 # Microsoft Visual C++.
15186 # hardcode_libdir_flag_spec is actually meaningless, as there is
15187 # no search path for DLLs.
15188 hardcode_libdir_flag_spec=' '
15189 allow_undefined_flag=unsupported
15190 # Tell ltmain to make .lib files, not .a files.
15192 # Tell ltmain to make .dll files, not .so files.
15194 # FIXME: Setting linknames here is a bad hack.
15195 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15196 # The linker will automatically build a .lib file if we build a DLL.
15197 old_archive_from_new_cmds='true'
15198 # FIXME: Should let the user specify the lib program.
15199 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15200 fix_srcfile_path='`cygpath -w "$srcfile"`'
15201 enable_shared_with_static_runtimes=yes
15204 darwin* | rhapsody*)
15207 archive_cmds_need_lc=no
15209 hardcode_automatic=yes
15210 hardcode_shlibpath_var=unsupported
15211 if test "$lt_cv_ld_force_load" = "yes"; then
15212 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\"`'
15214 whole_archive_flag_spec=''
15216 link_all_deplibs=yes
15217 allow_undefined_flag="$_lt_dar_allow_undefined"
15218 case $cc_basename in
15219 ifort*) _lt_dar_can_shared=yes ;;
15220 *) _lt_dar_can_shared=$GCC ;;
15222 if test "$_lt_dar_can_shared" = "yes"; then
15223 output_verbose_link_cmd=func_echo_all
15224 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15225 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15226 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}"
15227 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}"
15236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15237 hardcode_libdir_flag_spec='-L$libdir'
15238 hardcode_shlibpath_var=no
15245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15246 # support. Future versions do this automatically, but an explicit c++rt0.o
15247 # does not break anything, and helps significantly (at the cost of a little
15250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15251 hardcode_libdir_flag_spec='-R$libdir'
15252 hardcode_direct=yes
15253 hardcode_shlibpath_var=no
15256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15259 hardcode_direct=yes
15260 hardcode_minus_L=yes
15261 hardcode_shlibpath_var=no
15264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15265 freebsd* | dragonfly*)
15266 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15267 hardcode_libdir_flag_spec='-R$libdir'
15268 hardcode_direct=yes
15269 hardcode_shlibpath_var=no
15273 if test "$GCC" = yes; then
15274 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'
15276 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'
15278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15279 hardcode_libdir_separator=:
15280 hardcode_direct=yes
15282 # hardcode_minus_L: Not really in the search PATH,
15283 # but as the default location of the library.
15284 hardcode_minus_L=yes
15285 export_dynamic_flag_spec='${wl}-E'
15289 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15290 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15292 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15294 if test "$with_gnu_ld" = no; then
15295 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15296 hardcode_libdir_flag_spec_ld='+b $libdir'
15297 hardcode_libdir_separator=:
15298 hardcode_direct=yes
15299 hardcode_direct_absolute=yes
15300 export_dynamic_flag_spec='${wl}-E'
15301 # hardcode_minus_L: Not really in the search PATH,
15302 # but as the default location of the library.
15303 hardcode_minus_L=yes
15308 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15311 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15314 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15317 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15326 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15330 # Older versions of the 11.00 compiler do not understand -b yet
15331 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15333 $as_echo_n "checking if $CC understands -b... " >&6; }
15334 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15335 $as_echo_n "(cached) " >&6
15337 lt_cv_prog_compiler__b=no
15338 save_LDFLAGS="$LDFLAGS"
15339 LDFLAGS="$LDFLAGS -b"
15340 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15342 # The linker can only warn and ignore the option if not recognized
15343 # So say no if there are warnings
15344 if test -s conftest.err; then
15345 # Append any errors to the config.log.
15346 cat conftest.err 1>&5
15347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15349 if diff conftest.exp conftest.er2 >/dev/null; then
15350 lt_cv_prog_compiler__b=yes
15353 lt_cv_prog_compiler__b=yes
15357 LDFLAGS="$save_LDFLAGS"
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15361 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15363 if test x"$lt_cv_prog_compiler__b" = xyes; then
15364 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15372 if test "$with_gnu_ld" = no; then
15373 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15374 hardcode_libdir_separator=:
15379 hardcode_shlibpath_var=no
15382 hardcode_direct=yes
15383 hardcode_direct_absolute=yes
15384 export_dynamic_flag_spec='${wl}-E'
15386 # hardcode_minus_L: Not really in the search PATH,
15387 # but as the default location of the library.
15388 hardcode_minus_L=yes
15394 irix5* | irix6* | nonstopux*)
15395 if test "$GCC" = yes; then
15396 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'
15397 # Try to use the -exported_symbol ld option, if it does not
15398 # work, assume that -exports_file does not work either and
15399 # implicitly export all symbols.
15400 save_LDFLAGS="$LDFLAGS"
15401 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15406 if ac_fn_c_try_link "$LINENO"; then :
15407 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'
15410 rm -f core conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LDFLAGS="$save_LDFLAGS"
15414 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'
15415 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'
15417 archive_cmds_need_lc='no'
15418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15419 hardcode_libdir_separator=:
15421 link_all_deplibs=yes
15425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15426 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15428 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15430 hardcode_libdir_flag_spec='-R$libdir'
15431 hardcode_direct=yes
15432 hardcode_shlibpath_var=no
15436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437 hardcode_direct=yes
15438 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15439 hardcode_libdir_separator=:
15440 hardcode_shlibpath_var=no
15447 if test -f /usr/libexec/ld.so; then
15448 hardcode_direct=yes
15449 hardcode_shlibpath_var=no
15450 hardcode_direct_absolute=yes
15451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15453 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15455 export_dynamic_flag_spec='${wl}-E'
15458 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_libdir_flag_spec='-R$libdir'
15463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15474 hardcode_libdir_flag_spec='-L$libdir'
15475 hardcode_minus_L=yes
15476 allow_undefined_flag=unsupported
15477 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'
15478 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15482 if test "$GCC" = yes; then
15483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15484 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'
15486 allow_undefined_flag=' -expect_unresolved \*'
15487 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'
15489 archive_cmds_need_lc='no'
15490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491 hardcode_libdir_separator=:
15494 osf4* | osf5*) # as osf3* with the addition of -msym flag
15495 if test "$GCC" = yes; then
15496 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15497 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'
15498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15500 allow_undefined_flag=' -expect_unresolved \*'
15501 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'
15502 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~
15503 $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'
15505 # Both c and cxx compiler support -rpath directly
15506 hardcode_libdir_flag_spec='-rpath $libdir'
15508 archive_cmds_need_lc='no'
15509 hardcode_libdir_separator=:
15513 no_undefined_flag=' -z defs'
15514 if test "$GCC" = yes; then
15516 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15518 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15520 case `$CC -V 2>&1` in
15523 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15525 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15529 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15531 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15535 hardcode_libdir_flag_spec='-R$libdir'
15536 hardcode_shlibpath_var=no
15538 solaris2.[0-5] | solaris2.[0-5].*) ;;
15540 # The compiler driver will combine and reorder linker options,
15541 # but understands `-z linker_flag'. GCC discards it without `$wl',
15542 # but is careful enough not to reorder.
15543 # Supported since Solaris 2.6 (maybe 2.5.1?)
15544 if test "$GCC" = yes; then
15545 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15547 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15551 link_all_deplibs=yes
15555 if test "x$host_vendor" = xsequent; then
15556 # Use $CC to link under sequent, because it throws in some extra .o
15557 # files that make .init and .fini sections work.
15558 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15560 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15562 hardcode_libdir_flag_spec='-L$libdir'
15563 hardcode_direct=yes
15564 hardcode_minus_L=yes
15565 hardcode_shlibpath_var=no
15569 case $host_vendor in
15571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_direct=yes # is this really true???
15575 ## LD is ld it makes a PLAMLIB
15576 ## CC just makes a GrossModule.
15577 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15578 reload_cmds='$CC -r -o $output$reload_objs'
15582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15586 runpath_var='LD_RUN_PATH'
15587 hardcode_shlibpath_var=no
15591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_shlibpath_var=no
15593 export_dynamic_flag_spec='-Bexport'
15597 if test -d /usr/nec; then
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_shlibpath_var=no
15600 runpath_var=LD_RUN_PATH
15601 hardcode_runpath_var=yes
15606 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15607 no_undefined_flag='${wl}-z,text'
15608 archive_cmds_need_lc=no
15609 hardcode_shlibpath_var=no
15610 runpath_var='LD_RUN_PATH'
15612 if test "$GCC" = yes; then
15613 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15621 sysv5* | sco3.2v5* | sco5v6*)
15622 # Note: We can NOT use -z defs as we might desire, because we do not
15623 # link with -lc, and that would cause any symbols used from libc to
15624 # always be unresolved, which means just about no library would
15625 # ever link correctly. If we're not using GNU ld we use -z text
15626 # though, which does catch some bad symbols but isn't as heavy-handed
15628 no_undefined_flag='${wl}-z,text'
15629 allow_undefined_flag='${wl}-z,nodefs'
15630 archive_cmds_need_lc=no
15631 hardcode_shlibpath_var=no
15632 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15633 hardcode_libdir_separator=':'
15634 link_all_deplibs=yes
15635 export_dynamic_flag_spec='${wl}-Bexport'
15636 runpath_var='LD_RUN_PATH'
15638 if test "$GCC" = yes; then
15639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_libdir_flag_spec='-L$libdir'
15650 hardcode_shlibpath_var=no
15658 if test x$host_vendor = xsni; then
15660 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15661 export_dynamic_flag_spec='${wl}-Blargedynsym'
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15668 $as_echo "$ld_shlibs" >&6; }
15669 test "$ld_shlibs" = no && can_build_shared=no
15671 with_gnu_ld=$with_gnu_ld
15688 # Do we need to explicitly link libc?
15690 case "x$archive_cmds_need_lc" in
15692 # Assume -lc should be added
15693 archive_cmds_need_lc=yes
15695 if test "$enable_shared" = yes && test "$GCC" = yes; then
15696 case $archive_cmds in
15698 # FIXME: we may have to deal with multi-command sequences.
15701 # Test whether the compiler implicitly links with -lc since on some
15702 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15703 # to ld, don't add -lc before -lgcc.
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15705 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15706 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15707 $as_echo_n "(cached) " >&6
15710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15713 (eval $ac_compile) 2>&5
15715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15716 test $ac_status = 0; } 2>conftest.err; then
15719 libobjs=conftest.$ac_objext
15721 wl=$lt_prog_compiler_wl
15722 pic_flag=$lt_prog_compiler_pic
15728 lt_save_allow_undefined_flag=$allow_undefined_flag
15729 allow_undefined_flag=
15730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15731 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15734 test $ac_status = 0; }
15736 lt_cv_archive_cmds_need_lc=no
15738 lt_cv_archive_cmds_need_lc=yes
15740 allow_undefined_flag=$lt_save_allow_undefined_flag
15742 cat conftest.err 1>&5
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15748 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15749 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15913 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15915 if test "$GCC" = yes; then
15917 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15918 *) lt_awk_arg="/^libraries:/" ;;
15921 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15922 *) lt_sed_strip_eq="s,=/,/,g" ;;
15924 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15925 case $lt_search_path_spec in
15927 # if the path contains ";" then we assume it to be the separator
15928 # otherwise default to the standard path separator (i.e. ":") - it is
15929 # assumed that no part of a normal pathname contains ";" but that should
15930 # okay in the real world where ";" in dirpaths is itself problematic.
15931 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15934 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15937 # Ok, now we have the path, separated by spaces, we can step through it
15938 # and add multilib dir if necessary.
15939 lt_tmp_lt_search_path_spec=
15940 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15941 for lt_sys_path in $lt_search_path_spec; do
15942 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15943 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15945 test -d "$lt_sys_path" && \
15946 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15949 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15950 BEGIN {RS=" "; FS="/|\n";} {
15953 for (lt_i = NF; lt_i > 0; lt_i--) {
15954 if ($lt_i != "" && $lt_i != ".") {
15955 if ($lt_i == "..") {
15958 if (lt_count == 0) {
15959 lt_foo="/" $lt_i lt_foo;
15966 if (lt_foo != "") { lt_freq[lt_foo]++; }
15967 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15969 # AWK program above erroneously prepends '/' to C:/dos/paths
15972 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15973 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15975 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15979 library_names_spec=
15980 libname_spec='lib$name'
15984 postuninstall_cmds=
15988 shlibpath_overrides_runpath=unknown
15990 dynamic_linker="$host_os ld.so"
15991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15992 need_lib_prefix=unknown
15993 hardcode_into_libs=no
15995 # when you set need_version to no, make sure it does not cause -set_version
15996 # flags to be left without arguments
15997 need_version=unknown
16002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16003 shlibpath_var=LIBPATH
16005 # AIX 3 has no versioning support, so we append a major version to the name.
16006 soname_spec='${libname}${release}${shared_ext}$major'
16013 hardcode_into_libs=yes
16014 if test "$host_cpu" = ia64; then
16015 # AIX 5 supports IA64
16016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16017 shlibpath_var=LD_LIBRARY_PATH
16019 # With GCC up to 2.95.x, collect2 would create an import file
16020 # for dependence libraries. The import file would start with
16021 # the line `#! .'. This would cause the generated library to
16022 # depend on `.', always an invalid library. This was fixed in
16023 # development snapshots of GCC prior to 3.0.
16025 aix4 | aix4.[01] | aix4.[01].*)
16026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16028 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16031 can_build_shared=no
16035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16036 # soname into executable. Probably we can add versioning support to
16037 # collect2, so additional links can be useful in future.
16038 if test "$aix_use_runtimelinking" = yes; then
16039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16040 # instead of lib<name>.a to let people know that these are not
16041 # typical AIX shared libraries.
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16044 # We preserve .a as extension for shared libraries through AIX4.2
16045 # and later when we are not doing run time linking.
16046 library_names_spec='${libname}${release}.a $libname.a'
16047 soname_spec='${libname}${release}${shared_ext}$major'
16049 shlibpath_var=LIBPATH
16056 # Since July 2007 AmigaOS4 officially supports .so libraries.
16057 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 library_names_spec='$libname.ixlibrary $libname.a'
16062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16063 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'
16069 library_names_spec='${libname}${shared_ext}'
16070 dynamic_linker="$host_os ld.so"
16071 shlibpath_var=LIBRARY_PATH
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 soname_spec='${libname}${release}${shared_ext}$major'
16079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16083 # the default ld.so.conf also contains /usr/contrib/lib and
16084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16085 # libtool to hard-code these into programs
16088 cygwin* | mingw* | pw32* | cegcc*)
16089 version_type=windows
16094 case $GCC,$host_os in
16095 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16096 library_names_spec='$libname.dll.a'
16097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16098 postinstall_cmds='base_file=`basename \${file}`~
16099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16100 dldir=$destdir/`dirname \$dlpath`~
16101 test -d \$dldir || mkdir -p \$dldir~
16102 $install_prog $dir/$dlname \$dldir/$dlname~
16103 chmod a+x \$dldir/$dlname~
16104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16108 dlpath=$dir/\$dldll~
16110 shlibpath_overrides_runpath=yes
16114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16117 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16120 # MinGW DLLs use traditional 'lib' prefix
16121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 # pw32 DLLs use 'pw' prefix rather than 'lib'
16125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16134 dynamic_linker='Win32 ld.exe'
16135 # FIXME: first we should search . and the directory the executable is in
16139 darwin* | rhapsody*)
16140 dynamic_linker="$host_os dyld"
16141 version_type=darwin
16144 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16145 soname_spec='${libname}${release}${major}$shared_ext'
16146 shlibpath_overrides_runpath=yes
16147 shlibpath_var=DYLD_LIBRARY_PATH
16148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16159 soname_spec='${libname}${release}${shared_ext}$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16167 freebsd* | dragonfly*)
16168 # DragonFly does not have aout. When/if they implement a new
16169 # versioning mechanism, adjust this.
16170 if test -x /usr/bin/objformat; then
16171 objformat=`/usr/bin/objformat`
16174 freebsd[123]*) objformat=aout ;;
16175 *) objformat=elf ;;
16178 version_type=freebsd-$objformat
16179 case $version_type in
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16190 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16195 freebsd3.[01]* | freebsdelf3.[01]*)
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16201 shlibpath_overrides_runpath=no
16202 hardcode_into_libs=yes
16204 *) # from 4.6 on, and DragonFly
16205 shlibpath_overrides_runpath=yes
16206 hardcode_into_libs=yes
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
16218 hardcode_into_libs=yes
16225 dynamic_linker="$host_os runtime_loader"
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16227 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes
16230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16231 hardcode_into_libs=yes
16234 hpux9* | hpux10* | hpux11*)
16235 # Give a soname corresponding to the major version so that dld.sl refuses to
16236 # link against other versions.
16243 hardcode_into_libs=yes
16244 dynamic_linker="$host_os dld.so"
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 if test "X$HPUX_IA64_MODE" = X32; then
16250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16252 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16258 hardcode_into_libs=yes
16259 dynamic_linker="$host_os dld.sl"
16260 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269 dynamic_linker="$host_os dld.sl"
16270 shlibpath_var=SHLIB_PATH
16271 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16276 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16277 postinstall_cmds='chmod 555 $lib'
16278 # or fails outright, so override atomically:
16279 install_override_mode=555
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=no
16291 hardcode_into_libs=yes
16294 irix5* | irix6* | nonstopux*)
16296 nonstopux*) version_type=nonstopux ;;
16298 if test "$lt_cv_prog_gnu_ld" = yes; then
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16309 irix5* | nonstopux*)
16310 libsuff= shlibsuff=
16313 case $LD in # libtool.m4 will add one of these switches to LD
16314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16315 libsuff= shlibsuff= libmagic=32-bit;;
16316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16317 libsuff=32 shlibsuff=N32 libmagic=N32;;
16318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16320 *) libsuff= shlibsuff= libmagic=never-match;;
16324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16325 shlibpath_overrides_runpath=no
16326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16328 hardcode_into_libs=yes
16331 # No shared lib support for Linux oldld, aout, or coff.
16332 linux*oldld* | linux*aout* | linux*coff*)
16336 # This must be Linux ELF.
16337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=no
16347 # Some binutils ld are patched to set DT_RUNPATH
16348 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16349 $as_echo_n "(cached) " >&6
16351 lt_cv_shlibpath_overrides_runpath=no
16352 save_LDFLAGS=$LDFLAGS
16353 save_libdir=$libdir
16354 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16355 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16367 if ac_fn_c_try_link "$LINENO"; then :
16368 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16369 lt_cv_shlibpath_overrides_runpath=yes
16372 rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
16374 LDFLAGS=$save_LDFLAGS
16375 libdir=$save_libdir
16379 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16381 # This implies no fast_install, which is unacceptable.
16382 # Some rework will be needed to allow for fast_install
16383 # before this can be enabled.
16384 hardcode_into_libs=yes
16386 # Append ld.so.conf contents to the search path
16387 if test -f /etc/ld.so.conf; then
16388 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' ' '`
16389 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16392 # We used to test for /lib/ld.so.1 and disable shared libraries on
16393 # powerpc, because MkLinux only supported shared libraries with the
16394 # GNU dynamic linker. Since this was broken with cross compilers,
16395 # most powerpc-linux boxes support dynamic linking these days and
16396 # people can always --disable-shared, the test was removed, and we
16397 # assume the GNU/Linux dynamic linker is in use.
16398 dynamic_linker='GNU/Linux ld.so'
16405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16408 dynamic_linker='NetBSD (a.out) ld.so'
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 dynamic_linker='NetBSD ld.elf_so'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 hardcode_into_libs=yes
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=yes
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=no
16434 hardcode_into_libs=yes
16435 dynamic_linker='ldqnx.so'
16440 sys_lib_dlsearch_path_spec="/usr/lib"
16442 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16444 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16445 *) need_version=no ;;
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16452 openbsd2.[89] | openbsd2.[89].*)
16453 shlibpath_overrides_runpath=no
16456 shlibpath_overrides_runpath=yes
16460 shlibpath_overrides_runpath=yes
16465 libname_spec='$name'
16468 library_names_spec='$libname${shared_ext} $libname.a'
16469 dynamic_linker='OS/2 ld.exe'
16470 shlibpath_var=LIBPATH
16473 osf3* | osf4* | osf5*)
16477 soname_spec='${libname}${release}${shared_ext}$major'
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16481 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 hardcode_into_libs=yes
16497 # ldd complains unless libraries are executable
16498 postinstall_cmds='chmod +x $lib'
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16505 shlibpath_var=LD_LIBRARY_PATH
16506 shlibpath_overrides_runpath=yes
16507 if test "$with_gnu_ld" = yes; then
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 case $host_vendor in
16520 shlibpath_overrides_runpath=no
16522 runpath_var=LD_RUN_PATH
16530 shlibpath_overrides_runpath=no
16531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16537 if test -d /usr/nec ;then
16539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16540 soname_spec='$libname${shared_ext}.$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16546 version_type=freebsd-elf
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553 hardcode_into_libs=yes
16554 if test "$with_gnu_ld" = yes; then
16555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16560 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16564 sys_lib_dlsearch_path_spec='/usr/lib'
16568 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 shlibpath_overrides_runpath=no
16575 hardcode_into_libs=yes
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 shlibpath_var=LD_LIBRARY_PATH
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16590 $as_echo "$dynamic_linker" >&6; }
16591 test "$dynamic_linker" = no && can_build_shared=no
16593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16594 if test "$GCC" = yes; then
16595 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16598 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16599 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16601 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16602 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16697 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16699 if test -n "$hardcode_libdir_flag_spec" ||
16700 test -n "$runpath_var" ||
16701 test "X$hardcode_automatic" = "Xyes" ; then
16703 # We can hardcode non-existent directories.
16704 if test "$hardcode_direct" != no &&
16705 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16706 # have to relink, otherwise we might link with an installed library
16707 # when we should be linking with a yet-to-be-installed one
16708 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16709 test "$hardcode_minus_L" != no; then
16710 # Linking always hardcodes the temporary library directory.
16711 hardcode_action=relink
16713 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16714 hardcode_action=immediate
16717 # We cannot hardcode anything, or else we can only hardcode existing
16719 hardcode_action=unsupported
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16722 $as_echo "$hardcode_action" >&6; }
16724 if test "$hardcode_action" = relink ||
16725 test "$inherit_rpath" = yes; then
16726 # Fast installation is not supported
16727 enable_fast_install=no
16728 elif test "$shlibpath_overrides_runpath" = yes ||
16729 test "$enable_shared" = no; then
16730 # Fast installation is not necessary
16731 enable_fast_install=needless
16739 if test "x$enable_dlopen" != xyes; then
16740 enable_dlopen=unknown
16741 enable_dlopen_self=unknown
16742 enable_dlopen_self_static=unknown
16749 lt_cv_dlopen="load_add_on"
16751 lt_cv_dlopen_self=yes
16754 mingw* | pw32* | cegcc*)
16755 lt_cv_dlopen="LoadLibrary"
16760 lt_cv_dlopen="dlopen"
16765 # if libdl is installed we need to link against it
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16767 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16769 $as_echo_n "(cached) " >&6
16771 ac_check_lib_save_LIBS=$LIBS
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16776 /* Override any GCC internal prototype to avoid an error.
16777 Use char because int might match the return type of a GCC
16778 builtin and then its argument prototype would still apply. */
16791 if ac_fn_c_try_link "$LINENO"; then :
16792 ac_cv_lib_dl_dlopen=yes
16794 ac_cv_lib_dl_dlopen=no
16796 rm -f core conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext conftest.$ac_ext
16798 LIBS=$ac_check_lib_save_LIBS
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16801 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16802 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16806 lt_cv_dlopen="dyld"
16808 lt_cv_dlopen_self=yes
16815 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16816 if test "x$ac_cv_func_shl_load" = x""yes; then :
16817 lt_cv_dlopen="shl_load"
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16820 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16821 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16822 $as_echo_n "(cached) " >&6
16824 ac_check_lib_save_LIBS=$LIBS
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16829 /* Override any GCC internal prototype to avoid an error.
16830 Use char because int might match the return type of a GCC
16831 builtin and then its argument prototype would still apply. */
16839 return shl_load ();
16844 if ac_fn_c_try_link "$LINENO"; then :
16845 ac_cv_lib_dld_shl_load=yes
16847 ac_cv_lib_dld_shl_load=no
16849 rm -f core conftest.err conftest.$ac_objext \
16850 conftest$ac_exeext conftest.$ac_ext
16851 LIBS=$ac_check_lib_save_LIBS
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16854 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16855 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16856 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16858 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16859 if test "x$ac_cv_func_dlopen" = x""yes; then :
16860 lt_cv_dlopen="dlopen"
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16863 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16865 $as_echo_n "(cached) " >&6
16867 ac_check_lib_save_LIBS=$LIBS
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16872 /* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
16887 if ac_fn_c_try_link "$LINENO"; then :
16888 ac_cv_lib_dl_dlopen=yes
16890 ac_cv_lib_dl_dlopen=no
16892 rm -f core conftest.err conftest.$ac_objext \
16893 conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16897 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16898 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16899 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16902 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16903 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16904 $as_echo_n "(cached) " >&6
16906 ac_check_lib_save_LIBS=$LIBS
16907 LIBS="-lsvld $LIBS"
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16911 /* Override any GCC internal prototype to avoid an error.
16912 Use char because int might match the return type of a GCC
16913 builtin and then its argument prototype would still apply. */
16926 if ac_fn_c_try_link "$LINENO"; then :
16927 ac_cv_lib_svld_dlopen=yes
16929 ac_cv_lib_svld_dlopen=no
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16936 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16937 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16942 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16943 $as_echo_n "(cached) " >&6
16945 ac_check_lib_save_LIBS=$LIBS
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16960 return dld_link ();
16965 if ac_fn_c_try_link "$LINENO"; then :
16966 ac_cv_lib_dld_dld_link=yes
16968 ac_cv_lib_dld_dld_link=no
16970 rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16972 LIBS=$ac_check_lib_save_LIBS
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16975 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16976 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16977 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16998 if test "x$lt_cv_dlopen" != xno; then
17004 case $lt_cv_dlopen in
17006 save_CPPFLAGS="$CPPFLAGS"
17007 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17009 save_LDFLAGS="$LDFLAGS"
17010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17013 LIBS="$lt_cv_dlopen_libs $LIBS"
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17016 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17017 if test "${lt_cv_dlopen_self+set}" = set; then :
17018 $as_echo_n "(cached) " >&6
17020 if test "$cross_compiling" = yes; then :
17021 lt_cv_dlopen_self=cross
17023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17024 lt_status=$lt_dlunknown
17025 cat > conftest.$ac_ext <<_LT_EOF
17026 #line 17026 "configure"
17027 #include "confdefs.h"
17036 # define LT_DLGLOBAL RTLD_GLOBAL
17039 # define LT_DLGLOBAL DL_GLOBAL
17041 # define LT_DLGLOBAL 0
17045 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17046 find out it does not work in some platform. */
17047 #ifndef LT_DLLAZY_OR_NOW
17049 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17052 # define LT_DLLAZY_OR_NOW DL_LAZY
17055 # define LT_DLLAZY_OR_NOW RTLD_NOW
17058 # define LT_DLLAZY_OR_NOW DL_NOW
17060 # define LT_DLLAZY_OR_NOW 0
17067 /* When -fvisbility=hidden is used, assume the code has been annotated
17068 correspondingly for the symbols needed. */
17069 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17070 void fnord () __attribute__((visibility("default")));
17073 void fnord () { int i=42; }
17076 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17077 int status = $lt_dlunknown;
17081 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17084 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17085 else puts (dlerror ());
17087 /* dlclose (self); */
17095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17096 (eval $ac_link) 2>&5
17098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17099 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17100 (./conftest; exit; ) >&5 2>/dev/null
17102 case x$lt_status in
17103 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17104 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17105 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17108 # compilation failed
17109 lt_cv_dlopen_self=no
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17117 $as_echo "$lt_cv_dlopen_self" >&6; }
17119 if test "x$lt_cv_dlopen_self" = xyes; then
17120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17122 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17123 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17124 $as_echo_n "(cached) " >&6
17126 if test "$cross_compiling" = yes; then :
17127 lt_cv_dlopen_self_static=cross
17129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17130 lt_status=$lt_dlunknown
17131 cat > conftest.$ac_ext <<_LT_EOF
17132 #line 17132 "configure"
17133 #include "confdefs.h"
17142 # define LT_DLGLOBAL RTLD_GLOBAL
17145 # define LT_DLGLOBAL DL_GLOBAL
17147 # define LT_DLGLOBAL 0
17151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17152 find out it does not work in some platform. */
17153 #ifndef LT_DLLAZY_OR_NOW
17155 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17158 # define LT_DLLAZY_OR_NOW DL_LAZY
17161 # define LT_DLLAZY_OR_NOW RTLD_NOW
17164 # define LT_DLLAZY_OR_NOW DL_NOW
17166 # define LT_DLLAZY_OR_NOW 0
17173 /* When -fvisbility=hidden is used, assume the code has been annotated
17174 correspondingly for the symbols needed. */
17175 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17176 void fnord () __attribute__((visibility("default")));
17179 void fnord () { int i=42; }
17182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17183 int status = $lt_dlunknown;
17187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17190 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17191 else puts (dlerror ());
17193 /* dlclose (self); */
17201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17202 (eval $ac_link) 2>&5
17204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17205 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17206 (./conftest; exit; ) >&5 2>/dev/null
17208 case x$lt_status in
17209 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17210 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17211 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17214 # compilation failed
17215 lt_cv_dlopen_self_static=no
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17223 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17226 CPPFLAGS="$save_CPPFLAGS"
17227 LDFLAGS="$save_LDFLAGS"
17232 case $lt_cv_dlopen_self in
17233 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17234 *) enable_dlopen_self=unknown ;;
17237 case $lt_cv_dlopen_self_static in
17238 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17239 *) enable_dlopen_self_static=unknown ;;
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17262 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17263 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17264 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17265 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17267 $as_echo "yes" >&6; }
17269 # FIXME - insert some real tests, host_os isn't really good enough
17272 if test -n "$STRIP" ; then
17273 striplib="$STRIP -x"
17274 old_striplib="$STRIP -S"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17276 $as_echo "yes" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 $as_echo "no" >&6; }
17300 # Report which library types will actually be built
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17302 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17304 $as_echo "$can_build_shared" >&6; }
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17307 $as_echo_n "checking whether to build shared libraries... " >&6; }
17308 test "$can_build_shared" = "no" && enable_shared=no
17310 # On AIX, shared libraries and static libraries use the same namespace, and
17311 # are all built from PIC.
17314 test "$enable_shared" = yes && enable_static=no
17315 if test -n "$RANLIB"; then
17316 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17317 postinstall_cmds='$RANLIB $lib'
17322 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17323 test "$enable_shared" = yes && enable_static=no
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17328 $as_echo "$enable_shared" >&6; }
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17331 $as_echo_n "checking whether to build static libraries... " >&6; }
17332 # Make sure either enable_shared or enable_static is yes.
17333 test "$enable_shared" = yes || enable_static=yes
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17335 $as_echo "$enable_static" >&6; }
17342 ac_cpp='$CPP $CPPFLAGS'
17343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17349 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17350 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17351 (test "X$CXX" != "Xg++"))) ; then
17353 ac_cpp='$CXXCPP $CPPFLAGS'
17354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17358 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17359 if test -z "$CXXCPP"; then
17360 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17361 $as_echo_n "(cached) " >&6
17363 # Double quotes because CXXCPP needs to be expanded
17364 for CXXCPP in "$CXX -E" "/lib/cpp"
17366 ac_preproc_ok=false
17367 for ac_cxx_preproc_warn_flag in '' yes
17369 # Use a header file that comes with gcc, so configuring glibc
17370 # with a fresh cross-compiler works.
17371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 # <limits.h> exists even on freestanding compilers.
17373 # On the NeXT, cc -E runs the code through the compiler's parser,
17374 # not just through cpp. "Syntax error" is here to catch this case.
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17378 # include <limits.h>
17380 # include <assert.h>
17384 if ac_fn_cxx_try_cpp "$LINENO"; then :
17387 # Broken: fails on valid input.
17390 rm -f conftest.err conftest.$ac_ext
17392 # OK, works on sane cases. Now check whether nonexistent headers
17393 # can be detected and how.
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h. */
17396 #include <ac_nonexistent.h>
17398 if ac_fn_cxx_try_cpp "$LINENO"; then :
17399 # Broken: success on invalid input.
17402 # Passes both tests.
17406 rm -f conftest.err conftest.$ac_ext
17409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17410 rm -f conftest.err conftest.$ac_ext
17411 if $ac_preproc_ok; then :
17416 ac_cv_prog_CXXCPP=$CXXCPP
17419 CXXCPP=$ac_cv_prog_CXXCPP
17421 ac_cv_prog_CXXCPP=$CXXCPP
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17424 $as_echo "$CXXCPP" >&6; }
17425 ac_preproc_ok=false
17426 for ac_cxx_preproc_warn_flag in '' yes
17428 # Use a header file that comes with gcc, so configuring glibc
17429 # with a fresh cross-compiler works.
17430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431 # <limits.h> exists even on freestanding compilers.
17432 # On the NeXT, cc -E runs the code through the compiler's parser,
17433 # not just through cpp. "Syntax error" is here to catch this case.
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17437 # include <limits.h>
17439 # include <assert.h>
17443 if ac_fn_cxx_try_cpp "$LINENO"; then :
17446 # Broken: fails on valid input.
17449 rm -f conftest.err conftest.$ac_ext
17451 # OK, works on sane cases. Now check whether nonexistent headers
17452 # can be detected and how.
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h. */
17455 #include <ac_nonexistent.h>
17457 if ac_fn_cxx_try_cpp "$LINENO"; then :
17458 # Broken: success on invalid input.
17461 # Passes both tests.
17465 rm -f conftest.err conftest.$ac_ext
17468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17469 rm -f conftest.err conftest.$ac_ext
17470 if $ac_preproc_ok; then :
17473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17475 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17476 See \`config.log' for more details." "$LINENO" 5; }
17480 ac_cpp='$CPP $CPPFLAGS'
17481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17486 _lt_caught_CXX_error=yes
17490 ac_cpp='$CXXCPP $CPPFLAGS'
17491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17495 archive_cmds_need_lc_CXX=no
17496 allow_undefined_flag_CXX=
17497 always_export_symbols_CXX=no
17498 archive_expsym_cmds_CXX=
17499 compiler_needs_object_CXX=no
17500 export_dynamic_flag_spec_CXX=
17501 hardcode_direct_CXX=no
17502 hardcode_direct_absolute_CXX=no
17503 hardcode_libdir_flag_spec_CXX=
17504 hardcode_libdir_flag_spec_ld_CXX=
17505 hardcode_libdir_separator_CXX=
17506 hardcode_minus_L_CXX=no
17507 hardcode_shlibpath_var_CXX=unsupported
17508 hardcode_automatic_CXX=no
17509 inherit_rpath_CXX=no
17511 module_expsym_cmds_CXX=
17512 link_all_deplibs_CXX=unknown
17513 old_archive_cmds_CXX=$old_archive_cmds
17514 reload_flag_CXX=$reload_flag
17515 reload_cmds_CXX=$reload_cmds
17516 no_undefined_flag_CXX=
17517 whole_archive_flag_spec_CXX=
17518 enable_shared_with_static_runtimes_CXX=no
17520 # Source file extension for C++ test sources.
17523 # Object file extension for compiled C++ test sources.
17527 # No sense in running all these tests if we already determined that
17528 # the CXX compiler isn't working. Some variables (like enable_shared)
17529 # are currently assumed to apply to all compilers on this platform,
17530 # and will be corrupted by setting them based on a non-working compiler.
17531 if test "$_lt_caught_CXX_error" != yes; then
17532 # Code to be used in simple compile tests
17533 lt_simple_compile_test_code="int some_variable = 0;"
17535 # Code to be used in simple link tests
17536 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17538 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17545 # If no C compiler was specified, use CC.
17548 # If no C compiler flags were specified, use CFLAGS.
17549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17551 # Allow CC to be a program name with arguments.
17555 # save warnings/boilerplate of simple test code
17556 ac_outfile=conftest.$ac_objext
17557 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17559 _lt_compiler_boilerplate=`cat conftest.err`
17562 ac_outfile=conftest.$ac_objext
17563 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17565 _lt_linker_boilerplate=`cat conftest.err`
17569 # Allow CC to be a program name with arguments.
17574 lt_save_with_gnu_ld=$with_gnu_ld
17575 lt_save_path_LD=$lt_cv_path_LD
17576 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17577 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17579 $as_unset lt_cv_prog_gnu_ld
17581 if test -n "${lt_cv_path_LDCXX+set}"; then
17582 lt_cv_path_LD=$lt_cv_path_LDCXX
17584 $as_unset lt_cv_path_LD
17586 test -z "${LDCXX+set}" || LD=$LDCXX
17590 for cc_temp in $compiler""; do
17592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17598 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17601 if test -n "$compiler"; then
17602 # We don't want -fno-exception when compiling C++ code, so set the
17603 # no_builtin_flag separately
17604 if test "$GXX" = yes; then
17605 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17607 lt_prog_compiler_no_builtin_flag_CXX=
17610 if test "$GXX" = yes; then
17611 # Set up default GNU C++ configuration
17615 # Check whether --with-gnu-ld was given.
17616 if test "${with_gnu_ld+set}" = set; then :
17617 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17623 if test "$GCC" = yes; then
17624 # Check if gcc -print-prog-name=ld gives a path.
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17626 $as_echo_n "checking for ld used by $CC... " >&6; }
17629 # gcc leaves a trailing carriage return which upsets mingw
17630 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17632 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17635 # Accept absolute paths.
17637 re_direlt='/[^/][^/]*/\.\./'
17638 # Canonicalize the pathname of ld
17639 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17640 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17641 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17643 test -z "$LD" && LD="$ac_prog"
17646 # If it fails, then pretend we aren't using GCC.
17650 # If it is relative, then search for the first ld in PATH.
17651 with_gnu_ld=unknown
17654 elif test "$with_gnu_ld" = yes; then
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17656 $as_echo_n "checking for GNU ld... " >&6; }
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17659 $as_echo_n "checking for non-GNU ld... " >&6; }
17661 if test "${lt_cv_path_LD+set}" = set; then :
17662 $as_echo_n "(cached) " >&6
17664 if test -z "$LD"; then
17665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17666 for ac_dir in $PATH; do
17668 test -z "$ac_dir" && ac_dir=.
17669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17670 lt_cv_path_LD="$ac_dir/$ac_prog"
17671 # Check to see if the program is GNU ld. I'd rather use --version,
17672 # but apparently some variants of GNU ld only accept -v.
17673 # Break only if it was the GNU/non-GNU ld that we prefer.
17674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17675 *GNU* | *'with BFD'*)
17676 test "$with_gnu_ld" != no && break
17679 test "$with_gnu_ld" != yes && break
17686 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17690 LD="$lt_cv_path_LD"
17691 if test -n "$LD"; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17693 $as_echo "$LD" >&6; }
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696 $as_echo "no" >&6; }
17698 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17700 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17701 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17702 $as_echo_n "(cached) " >&6
17704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17705 case `$LD -v 2>&1 </dev/null` in
17706 *GNU* | *'with BFD'*)
17707 lt_cv_prog_gnu_ld=yes
17710 lt_cv_prog_gnu_ld=no
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17715 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17716 with_gnu_ld=$lt_cv_prog_gnu_ld
17724 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17725 # archiving commands below assume that GNU ld is being used.
17726 if test "$with_gnu_ld" = yes; then
17727 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17728 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'
17730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17731 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17733 # If archive_cmds runs LD, not CC, wlarc should be empty
17734 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17735 # investigate it a little bit more. (MM)
17738 # ancient GNU ld didn't support --whole-archive et. al.
17739 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17740 $GREP 'no-whole-archive' > /dev/null; then
17741 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17743 whole_archive_flag_spec_CXX=
17749 # A generic and very simple default shared library creation
17750 # command for GNU C++ for the case where it uses the native
17751 # linker, instead of GNU ld. If possible, this setting should
17752 # overridden to take advantage of the native linker features on
17753 # the platform it is being used on.
17754 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17757 # Commands to make compiler produce verbose output that lists
17758 # what "hidden" libraries, object files and flags are used when
17759 # linking a shared library.
17760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17768 # PORTME: fill in a description of your system's C++ link characteristics
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17770 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17774 # FIXME: insert proper C++ library support
17778 if test "$host_cpu" = ia64; then
17779 # On IA64, the linker does run time linking by default, so we don't
17780 # have to do anything special.
17781 aix_use_runtimelinking=no
17782 exp_sym_flag='-Bexport'
17785 aix_use_runtimelinking=no
17787 # Test if we are trying to use run time linking or normal
17788 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17789 # need to do runtime linking.
17790 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17791 for ld_flag in $LDFLAGS; do
17794 aix_use_runtimelinking=yes
17802 exp_sym_flag='-bexport'
17803 no_entry_flag='-bnoentry'
17806 # When large executables or shared objects are built, AIX ld can
17807 # have problems creating the table of contents. If linking a library
17808 # or program results in "error TOC overflow" add -mminimal-toc to
17809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17812 archive_cmds_CXX=''
17813 hardcode_direct_CXX=yes
17814 hardcode_direct_absolute_CXX=yes
17815 hardcode_libdir_separator_CXX=':'
17816 link_all_deplibs_CXX=yes
17817 file_list_spec_CXX='${wl}-f,'
17819 if test "$GXX" = yes; then
17820 case $host_os in aix4.[012]|aix4.[012].*)
17821 # We only want to do this on AIX 4.2 and lower, the check
17822 # below for broken collect2 doesn't work under 4.3+
17823 collect2name=`${CC} -print-prog-name=collect2`
17824 if test -f "$collect2name" &&
17825 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17827 # We have reworked collect2
17830 # We have old collect2
17831 hardcode_direct_CXX=unsupported
17832 # It fails to find uninstalled libraries when the uninstalled
17833 # path is not listed in the libpath. Setting hardcode_minus_L
17834 # to unsupported forces relinking
17835 hardcode_minus_L_CXX=yes
17836 hardcode_libdir_flag_spec_CXX='-L$libdir'
17837 hardcode_libdir_separator_CXX=
17840 shared_flag='-shared'
17841 if test "$aix_use_runtimelinking" = yes; then
17842 shared_flag="$shared_flag "'${wl}-G'
17846 if test "$host_cpu" = ia64; then
17847 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17848 # chokes on -Wl,-G. The following line is correct:
17851 if test "$aix_use_runtimelinking" = yes; then
17852 shared_flag='${wl}-G'
17854 shared_flag='${wl}-bM:SRE'
17859 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17860 # It seems that -bexpall does not export symbols beginning with
17861 # underscore (_), so it is better to generate a list of symbols to
17863 always_export_symbols_CXX=yes
17864 if test "$aix_use_runtimelinking" = yes; then
17865 # Warning - without using the other runtime loading flags (-brtl),
17866 # -berok will link without error, but may produce a broken library.
17867 allow_undefined_flag_CXX='-berok'
17868 # Determine the default libpath from the value encoded in an empty
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17881 if ac_fn_cxx_try_link "$LINENO"; then :
17883 lt_aix_libpath_sed='
17884 /Import File Strings/,/^$/ {
17890 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17891 # Check for a 64-bit object if we didn't find anything.
17892 if test -z "$aix_libpath"; then
17893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17896 rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17900 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17902 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"
17904 if test "$host_cpu" = ia64; then
17905 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17906 allow_undefined_flag_CXX="-z nodefs"
17907 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"
17909 # Determine the default libpath from the value encoded in an
17910 # empty executable.
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17922 if ac_fn_cxx_try_link "$LINENO"; then :
17924 lt_aix_libpath_sed='
17925 /Import File Strings/,/^$/ {
17931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17932 # Check for a 64-bit object if we didn't find anything.
17933 if test -z "$aix_libpath"; then
17934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17941 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17942 # Warning - without using the other run time loading flags,
17943 # -berok will link without error, but may produce a broken library.
17944 no_undefined_flag_CXX=' ${wl}-bernotok'
17945 allow_undefined_flag_CXX=' ${wl}-berok'
17946 if test "$with_gnu_ld" = yes; then
17947 # We only use this code for GNU lds that support --whole-archive.
17948 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17950 # Exported symbols can be pulled into shared objects from archives
17951 whole_archive_flag_spec_CXX='$convenience'
17953 archive_cmds_need_lc_CXX=yes
17954 # This is similar to how AIX traditionally builds its shared
17956 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'
17962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17963 allow_undefined_flag_CXX=unsupported
17964 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17965 # support --undefined. This deserves some investigation. FIXME
17966 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17973 case $cc_basename in
17975 # FIXME: insert proper C++ library support
17981 cygwin* | mingw* | pw32* | cegcc*)
17982 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17983 # as there is no search path for DLLs.
17984 hardcode_libdir_flag_spec_CXX='-L$libdir'
17985 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17986 allow_undefined_flag_CXX=unsupported
17987 always_export_symbols_CXX=no
17988 enable_shared_with_static_runtimes_CXX=yes
17990 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17991 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'
17992 # If the export-symbols file already is a .def file (1st line
17993 # is EXPORTS), use it as is; otherwise, prepend...
17994 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17995 cp $export_symbols $output_objdir/$soname.def;
17997 echo EXPORTS > $output_objdir/$soname.def;
17998 cat $export_symbols >> $output_objdir/$soname.def;
18000 $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'
18005 darwin* | rhapsody*)
18008 archive_cmds_need_lc_CXX=no
18009 hardcode_direct_CXX=no
18010 hardcode_automatic_CXX=yes
18011 hardcode_shlibpath_var_CXX=unsupported
18012 if test "$lt_cv_ld_force_load" = "yes"; then
18013 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\"`'
18015 whole_archive_flag_spec_CXX=''
18017 link_all_deplibs_CXX=yes
18018 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18019 case $cc_basename in
18020 ifort*) _lt_dar_can_shared=yes ;;
18021 *) _lt_dar_can_shared=$GCC ;;
18023 if test "$_lt_dar_can_shared" = "yes"; then
18024 output_verbose_link_cmd=func_echo_all
18025 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}"
18026 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18027 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}"
18028 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}"
18029 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18030 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}"
18031 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}"
18041 case $cc_basename in
18043 # FIXME: insert proper C++ library support
18047 # Green Hills C++ Compiler
18048 # FIXME: insert proper C++ library support
18052 # FIXME: insert proper C++ library support
18059 # C++ shared libraries reported to be fairly broken before
18065 archive_cmds_need_lc_CXX=no
18068 freebsd* | dragonfly*)
18069 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18078 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18079 link_all_deplibs_CXX=yes
18083 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18084 hardcode_libdir_separator_CXX=:
18085 export_dynamic_flag_spec_CXX='${wl}-E'
18086 hardcode_direct_CXX=yes
18087 hardcode_minus_L_CXX=yes # Not in the search PATH,
18088 # but as the default
18089 # location of the library.
18091 case $cc_basename in
18093 # FIXME: insert proper C++ library support
18097 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'
18098 # Commands to make compiler produce verbose output that lists
18099 # what "hidden" libraries, object files and flags are used when
18100 # linking a shared library.
18102 # There doesn't appear to be a way to prevent this compiler from
18103 # explicitly linking system object files so we need to strip them
18104 # from the output so that they don't get included in the library
18106 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"'
18109 if test "$GXX" = yes; then
18110 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'
18112 # FIXME: insert proper C++ library support
18120 if test $with_gnu_ld = no; then
18121 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18122 hardcode_libdir_separator_CXX=:
18128 export_dynamic_flag_spec_CXX='${wl}-E'
18134 hardcode_direct_CXX=no
18135 hardcode_shlibpath_var_CXX=no
18138 hardcode_direct_CXX=yes
18139 hardcode_direct_absolute_CXX=yes
18140 hardcode_minus_L_CXX=yes # Not in the search PATH,
18141 # but as the default
18142 # location of the library.
18146 case $cc_basename in
18148 # FIXME: insert proper C++ library support
18154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18163 # Commands to make compiler produce verbose output that lists
18164 # what "hidden" libraries, object files and flags are used when
18165 # linking a shared library.
18167 # There doesn't appear to be a way to prevent this compiler from
18168 # explicitly linking system object files so we need to strip them
18169 # from the output so that they don't get included in the library
18171 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"'
18174 if test "$GXX" = yes; then
18175 if test $with_gnu_ld = no; then
18178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18181 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18184 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'
18189 # FIXME: insert proper C++ library support
18197 hardcode_direct_CXX=no
18198 hardcode_shlibpath_var_CXX=no
18199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18200 export_dynamic_flag_spec_CXX='${wl}-E'
18201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18202 # Instead, shared libraries are loaded at an image base (0x10000000 by
18203 # default) and relocated if they conflict, which is a slow very memory
18204 # consuming and fragmenting process. To avoid this, we pick a random,
18205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18206 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18207 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'
18208 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'
18211 case $cc_basename in
18214 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'
18216 # Archives containing C++ object files must be created using
18217 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18218 # necessary to make sure instantiated templates are included
18220 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18223 if test "$GXX" = yes; then
18224 if test "$with_gnu_ld" = no; then
18225 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'
18227 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'
18230 link_all_deplibs_CXX=yes
18233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18234 hardcode_libdir_separator_CXX=:
18235 inherit_rpath_CXX=yes
18238 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18239 case $cc_basename in
18241 # Kuck and Associates, Inc. (KAI) C++ Compiler
18243 # KCC will only create a shared library if the output file
18244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18245 # to its proper name (with version) after linking.
18246 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'
18247 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'
18248 # Commands to make compiler produce verbose output that lists
18249 # what "hidden" libraries, object files and flags are used when
18250 # linking a shared library.
18252 # There doesn't appear to be a way to prevent this compiler from
18253 # explicitly linking system object files so we need to strip them
18254 # from the output so that they don't get included in the library
18256 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"'
18258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18261 # Archives containing C++ object files must be created using
18262 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18263 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18268 # version 8.0 and above of icpc choke on multiply defined symbols
18269 # if we add $predep_objects and $postdep_objects, however 7.1 and
18270 # earlier do not add the objects themselves.
18271 case `$CC -V 2>&1` in
18273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18274 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'
18276 *) # Version 8.0 or newer
18279 ia64*) tmp_idyn=' -i_dynamic';;
18281 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18282 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'
18285 archive_cmds_need_lc_CXX=no
18286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18288 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18291 # Portland Group C++ compiler
18293 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18294 prelink_cmds_CXX='tpldir=Template.dir~
18296 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18297 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18298 old_archive_cmds_CXX='tpldir=Template.dir~
18300 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18301 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18303 archive_cmds_CXX='tpldir=Template.dir~
18305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18306 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18307 archive_expsym_cmds_CXX='tpldir=Template.dir~
18309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18310 $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'
18312 *) # Version 6 and above use weak symbols
18313 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18314 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'
18318 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18320 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'
18324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18325 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'
18327 runpath_var=LD_RUN_PATH
18328 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18329 hardcode_libdir_separator_CXX=:
18331 # Commands to make compiler produce verbose output that lists
18332 # what "hidden" libraries, object files and flags are used when
18333 # linking a shared library.
18335 # There doesn't appear to be a way to prevent this compiler from
18336 # explicitly linking system object files so we need to strip them
18337 # from the output so that they don't get included in the library
18339 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'
18341 xl* | mpixl* | bgxl*)
18342 # IBM XL 8.0 on PPC, with GNU ld
18343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18345 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18346 if test "x$supports_anon_versioning" = xyes; then
18347 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18349 echo "local: *; };" >> $output_objdir/$libname.ver~
18350 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18354 case `$CC -V 2>&1 | sed 5q` in
18357 no_undefined_flag_CXX=' -zdefs'
18358 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18359 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'
18360 hardcode_libdir_flag_spec_CXX='-R$libdir'
18361 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'
18362 compiler_needs_object_CXX=yes
18364 # Not sure whether something based on
18365 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18367 output_verbose_link_cmd='func_echo_all'
18369 # Archives containing C++ object files must be created using
18370 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18371 # necessary to make sure instantiated templates are included
18373 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18381 # FIXME: insert proper C++ library support
18386 # FIXME: insert proper C++ library support
18391 case $cc_basename in
18393 # FIXME: insert proper C++ library support
18397 # FIXME: insert proper C++ library support
18404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18407 hardcode_libdir_flag_spec_CXX='-R$libdir'
18408 hardcode_direct_CXX=yes
18409 hardcode_shlibpath_var_CXX=no
18411 # Workaround some broken pre-1.5 toolchains
18412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18420 # C++ shared libraries are fairly broken
18425 if test -f /usr/libexec/ld.so; then
18426 hardcode_direct_CXX=yes
18427 hardcode_shlibpath_var_CXX=no
18428 hardcode_direct_absolute_CXX=yes
18429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18432 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18433 export_dynamic_flag_spec_CXX='${wl}-E'
18434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18436 output_verbose_link_cmd=func_echo_all
18442 osf3* | osf4* | osf5*)
18443 case $cc_basename in
18445 # Kuck and Associates, Inc. (KAI) C++ Compiler
18447 # KCC will only create a shared library if the output file
18448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18449 # to its proper name (with version) after linking.
18450 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'
18452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18453 hardcode_libdir_separator_CXX=:
18455 # Archives containing C++ object files must be created using
18456 # the KAI C++ compiler.
18458 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18459 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18463 # Rational C++ 2.4.1
18464 # FIXME: insert proper C++ library support
18470 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18471 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'
18472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18475 allow_undefined_flag_CXX=' -expect_unresolved \*'
18476 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'
18477 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18478 echo "-hidden">> $lib.exp~
18479 $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~
18481 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18485 hardcode_libdir_separator_CXX=:
18487 # Commands to make compiler produce verbose output that lists
18488 # what "hidden" libraries, object files and flags are used when
18489 # linking a shared library.
18491 # There doesn't appear to be a way to prevent this compiler from
18492 # explicitly linking system object files so we need to strip them
18493 # from the output so that they don't get included in the library
18495 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"'
18498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18502 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'
18505 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'
18509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18510 hardcode_libdir_separator_CXX=:
18512 # Commands to make compiler produce verbose output that lists
18513 # what "hidden" libraries, object files and flags are used when
18514 # linking a shared library.
18515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18518 # FIXME: insert proper C++ library support
18526 # FIXME: insert proper C++ library support
18531 case $cc_basename in
18534 # FIXME: insert proper C++ library support
18539 # FIXME: insert proper C++ library support
18543 # FIXME: insert proper C++ library support
18550 case $cc_basename in
18552 # Sun C++ 4.2, 5.x and Centerline C++
18553 archive_cmds_need_lc_CXX=yes
18554 no_undefined_flag_CXX=' -zdefs'
18555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18557 $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'
18559 hardcode_libdir_flag_spec_CXX='-R$libdir'
18560 hardcode_shlibpath_var_CXX=no
18562 solaris2.[0-5] | solaris2.[0-5].*) ;;
18564 # The compiler driver will combine and reorder linker options,
18565 # but understands `-z linker_flag'.
18566 # Supported since Solaris 2.6 (maybe 2.5.1?)
18567 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18570 link_all_deplibs_CXX=yes
18572 output_verbose_link_cmd='func_echo_all'
18574 # Archives containing C++ object files must be created using
18575 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18576 # necessary to make sure instantiated templates are included
18578 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18581 # Green Hills C++ Compiler
18582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18584 # The C++ compiler must be used to create the archive.
18585 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18588 # GNU C++ compiler with Solaris linker
18589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18590 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18591 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18592 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18593 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18594 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18596 # Commands to make compiler produce verbose output that lists
18597 # what "hidden" libraries, object files and flags are used when
18598 # linking a shared library.
18599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18601 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18603 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18604 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18605 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18607 # Commands to make compiler produce verbose output that lists
18608 # what "hidden" libraries, object files and flags are used when
18609 # linking a shared library.
18610 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18613 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18615 solaris2.[0-5] | solaris2.[0-5].*) ;;
18617 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18625 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18626 no_undefined_flag_CXX='${wl}-z,text'
18627 archive_cmds_need_lc_CXX=no
18628 hardcode_shlibpath_var_CXX=no
18629 runpath_var='LD_RUN_PATH'
18631 case $cc_basename in
18633 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18637 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18638 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18643 sysv5* | sco3.2v5* | sco5v6*)
18644 # Note: We can NOT use -z defs as we might desire, because we do not
18645 # link with -lc, and that would cause any symbols used from libc to
18646 # always be unresolved, which means just about no library would
18647 # ever link correctly. If we're not using GNU ld we use -z text
18648 # though, which does catch some bad symbols but isn't as heavy-handed
18650 no_undefined_flag_CXX='${wl}-z,text'
18651 allow_undefined_flag_CXX='${wl}-z,nodefs'
18652 archive_cmds_need_lc_CXX=no
18653 hardcode_shlibpath_var_CXX=no
18654 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18655 hardcode_libdir_separator_CXX=':'
18656 link_all_deplibs_CXX=yes
18657 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18658 runpath_var='LD_RUN_PATH'
18660 case $cc_basename in
18662 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18663 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18664 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18665 '"$old_archive_cmds_CXX"
18666 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18667 '"$reload_cmds_CXX"
18670 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18671 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18677 case $cc_basename in
18679 # NonStop-UX NCC 3.20
18680 # FIXME: insert proper C++ library support
18684 # FIXME: insert proper C++ library support
18691 # FIXME: insert proper C++ library support
18696 # FIXME: insert proper C++ library support
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18702 $as_echo "$ld_shlibs_CXX" >&6; }
18703 test "$ld_shlibs_CXX" = no && can_build_shared=no
18709 ## There is no encapsulation within the following macros, do not change
18710 ## the running order or otherwise move them around unless you know exactly
18711 ## what you are doing...
18712 # Dependencies to place before and after the object being linked:
18713 predep_objects_CXX=
18714 postdep_objects_CXX=
18717 compiler_lib_search_path_CXX=
18719 cat > conftest.$ac_ext <<_LT_EOF
18723 Foo (void) { a = 0; }
18729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18730 (eval $ac_compile) 2>&5
18732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18733 test $ac_status = 0; }; then
18734 # Parse the compiler output and extract the necessary
18735 # objects, libraries and library flags.
18737 # Sentinel used to keep track of whether or not we are before
18738 # the conftest object file.
18739 pre_test_object_deps_done=no
18741 for p in `eval "$output_verbose_link_cmd"`; do
18745 # Some compilers place space between "-{L,R}" and the path.
18746 # Remove the space.
18747 if test $p = "-L" ||
18748 test $p = "-R"; then
18755 if test "$pre_test_object_deps_done" = no; then
18758 # Internal compiler library paths should come after those
18759 # provided the user. The postdeps already come after the
18760 # user supplied libs so there is no need to process them.
18761 if test -z "$compiler_lib_search_path_CXX"; then
18762 compiler_lib_search_path_CXX="${prev}${p}"
18764 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18767 # The "-l" case would never come before the object being
18768 # linked, so don't bother handling this case.
18771 if test -z "$postdeps_CXX"; then
18772 postdeps_CXX="${prev}${p}"
18774 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18780 # This assumes that the test object file only shows up
18781 # once in the compiler output.
18782 if test "$p" = "conftest.$objext"; then
18783 pre_test_object_deps_done=yes
18787 if test "$pre_test_object_deps_done" = no; then
18788 if test -z "$predep_objects_CXX"; then
18789 predep_objects_CXX="$p"
18791 predep_objects_CXX="$predep_objects_CXX $p"
18794 if test -z "$postdep_objects_CXX"; then
18795 postdep_objects_CXX="$p"
18797 postdep_objects_CXX="$postdep_objects_CXX $p"
18802 *) ;; # Ignore the rest.
18810 echo "libtool.m4: error: problem compiling CXX test program"
18813 $RM -f confest.$objext
18815 # PORTME: override above test on systems where it is broken
18818 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18819 # hack all around it, let's just trust "g++" to DTRT.
18820 predep_objects_CXX=
18821 postdep_objects_CXX=
18826 case `$CC -V 2>&1 | sed 5q` in
18830 # The more standards-conforming stlport4 library is
18831 # incompatible with the Cstd library. Avoid specifying
18832 # it if it's in CXXFLAGS. Ignore libCrun as
18833 # -library=stlport4 depends on it.
18834 case " $CXX $CXXFLAGS " in
18835 *" -library=stlport4 "*)
18836 solaris_use_stlport4=yes
18840 if test "$solaris_use_stlport4" != yes; then
18841 postdeps_CXX='-library=Cstd -library=Crun'
18848 case $cc_basename in
18850 # The more standards-conforming stlport4 library is
18851 # incompatible with the Cstd library. Avoid specifying
18852 # it if it's in CXXFLAGS. Ignore libCrun as
18853 # -library=stlport4 depends on it.
18854 case " $CXX $CXXFLAGS " in
18855 *" -library=stlport4 "*)
18856 solaris_use_stlport4=yes
18860 # Adding this requires a known-good setup of shared libraries for
18861 # Sun compiler versions before 5.6, else PIC objects from an old
18862 # archive will be linked into the output, leading to subtle bugs.
18863 if test "$solaris_use_stlport4" != yes; then
18864 postdeps_CXX='-library=Cstd -library=Crun'
18872 case " $postdeps_CXX " in
18873 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18875 compiler_lib_search_dirs_CXX=
18876 if test -n "${compiler_lib_search_path_CXX}"; then
18877 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18910 lt_prog_compiler_wl_CXX=
18911 lt_prog_compiler_pic_CXX=
18912 lt_prog_compiler_static_CXX=
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18917 # C++ specific cases for pic, static, wl, etc.
18918 if test "$GXX" = yes; then
18919 lt_prog_compiler_wl_CXX='-Wl,'
18920 lt_prog_compiler_static_CXX='-static'
18924 # All AIX code is PIC.
18925 if test "$host_cpu" = ia64; then
18926 # AIX 5 now supports IA64 processor
18927 lt_prog_compiler_static_CXX='-Bstatic'
18934 # see comment about AmigaOS4 .so support
18935 lt_prog_compiler_pic_CXX='-fPIC'
18938 # FIXME: we need at least 68020 code to build shared libraries, but
18939 # adding the `-m68020' flag to GCC prevents building anything better,
18941 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18946 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18947 # PIC is the default for these OSes.
18949 mingw* | cygwin* | os2* | pw32* | cegcc*)
18950 # This hack is so that the source file can tell whether it is being
18951 # built for inclusion in a dll (and should export symbols for example).
18952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18953 # (--disable-auto-import) libraries
18954 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18956 darwin* | rhapsody*)
18957 # PIC is the default on this platform
18958 # Common symbols not allowed in MH_DYLIB files
18959 lt_prog_compiler_pic_CXX='-fno-common'
18962 # DJGPP does not support shared libraries at all
18963 lt_prog_compiler_pic_CXX=
18966 # PIC is the default for Haiku.
18967 # The "-static" flag exists, but is broken.
18968 lt_prog_compiler_static_CXX=
18971 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18972 # Instead, we relocate shared libraries at runtime.
18975 if test -d /usr/nec; then
18976 lt_prog_compiler_pic_CXX=-Kconform_pic
18980 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18981 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18982 # sets the default TLS model and affects inlining.
18987 lt_prog_compiler_pic_CXX='-fPIC'
18992 # QNX uses GNU C++, but need to define -shared option too, otherwise
18993 # it will coredump.
18994 lt_prog_compiler_pic_CXX='-fPIC -shared'
18997 lt_prog_compiler_pic_CXX='-fPIC'
19003 # All AIX code is PIC.
19004 if test "$host_cpu" = ia64; then
19005 # AIX 5 now supports IA64 processor
19006 lt_prog_compiler_static_CXX='-Bstatic'
19008 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19012 case $cc_basename in
19014 # Green Hills C++ Compiler
19015 # _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"
19020 case $cc_basename in
19022 lt_prog_compiler_pic_CXX='-KPIC'
19025 # Green Hills C++ Compiler
19026 lt_prog_compiler_pic_CXX='-pic'
19032 freebsd* | dragonfly*)
19033 # FreeBSD uses GNU C++
19035 hpux9* | hpux10* | hpux11*)
19036 case $cc_basename in
19038 lt_prog_compiler_wl_CXX='-Wl,'
19039 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19040 if test "$host_cpu" != ia64; then
19041 lt_prog_compiler_pic_CXX='+Z'
19045 lt_prog_compiler_wl_CXX='-Wl,'
19046 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19052 lt_prog_compiler_pic_CXX='+Z'
19061 # This is c89, which is MS Visual C++ (no shared libs)
19062 # Anyone wants to do a port?
19064 irix5* | irix6* | nonstopux*)
19065 case $cc_basename in
19067 lt_prog_compiler_wl_CXX='-Wl,'
19068 lt_prog_compiler_static_CXX='-non_shared'
19069 # CC pic flag -KPIC is the default.
19075 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19076 case $cc_basename in
19079 lt_prog_compiler_wl_CXX='--backend -Wl,'
19080 lt_prog_compiler_pic_CXX='-fPIC'
19083 # old Intel C++ for x86_64 which still supported -KPIC.
19084 lt_prog_compiler_wl_CXX='-Wl,'
19085 lt_prog_compiler_pic_CXX='-KPIC'
19086 lt_prog_compiler_static_CXX='-static'
19089 # Intel C++, used to be incompatible with GCC.
19090 # ICC 10 doesn't accept -KPIC any more.
19091 lt_prog_compiler_wl_CXX='-Wl,'
19092 lt_prog_compiler_pic_CXX='-fPIC'
19093 lt_prog_compiler_static_CXX='-static'
19096 # Portland Group C++ compiler
19097 lt_prog_compiler_wl_CXX='-Wl,'
19098 lt_prog_compiler_pic_CXX='-fpic'
19099 lt_prog_compiler_static_CXX='-Bstatic'
19103 # Make sure the PIC flag is empty. It appears that all Alpha
19104 # Linux and Compaq Tru64 Unix objects are PIC.
19105 lt_prog_compiler_pic_CXX=
19106 lt_prog_compiler_static_CXX='-non_shared'
19108 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19109 # IBM XL 8.0, 9.0 on PPC and BlueGene
19110 lt_prog_compiler_wl_CXX='-Wl,'
19111 lt_prog_compiler_pic_CXX='-qpic'
19112 lt_prog_compiler_static_CXX='-qstaticlink'
19115 case `$CC -V 2>&1 | sed 5q` in
19118 lt_prog_compiler_pic_CXX='-KPIC'
19119 lt_prog_compiler_static_CXX='-Bstatic'
19120 lt_prog_compiler_wl_CXX='-Qoption ld '
19131 case $cc_basename in
19133 lt_prog_compiler_pic_CXX='-W c,exportall'
19142 # QNX uses GNU C++, but need to define -shared option too, otherwise
19143 # it will coredump.
19144 lt_prog_compiler_pic_CXX='-fPIC -shared'
19146 osf3* | osf4* | osf5*)
19147 case $cc_basename in
19149 lt_prog_compiler_wl_CXX='--backend -Wl,'
19152 # Rational C++ 2.4.1
19153 lt_prog_compiler_pic_CXX='-pic'
19156 # Digital/Compaq C++
19157 lt_prog_compiler_wl_CXX='-Wl,'
19158 # Make sure the PIC flag is empty. It appears that all Alpha
19159 # Linux and Compaq Tru64 Unix objects are PIC.
19160 lt_prog_compiler_pic_CXX=
19161 lt_prog_compiler_static_CXX='-non_shared'
19170 case $cc_basename in
19172 # Sun C++ 4.2, 5.x and Centerline C++
19173 lt_prog_compiler_pic_CXX='-KPIC'
19174 lt_prog_compiler_static_CXX='-Bstatic'
19175 lt_prog_compiler_wl_CXX='-Qoption ld '
19178 # Green Hills C++ Compiler
19179 lt_prog_compiler_pic_CXX='-PIC'
19186 case $cc_basename in
19189 lt_prog_compiler_pic_CXX='-pic'
19190 lt_prog_compiler_static_CXX='-Bstatic'
19194 lt_prog_compiler_pic_CXX='-pic'
19200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19201 case $cc_basename in
19203 lt_prog_compiler_wl_CXX='-Wl,'
19204 lt_prog_compiler_pic_CXX='-KPIC'
19205 lt_prog_compiler_static_CXX='-Bstatic'
19210 case $cc_basename in
19212 # NonStop-UX NCC 3.20
19213 lt_prog_compiler_pic_CXX='-KPIC'
19222 lt_prog_compiler_can_build_shared_CXX=no
19228 # For platforms which do not support PIC, -DPIC is meaningless:
19230 lt_prog_compiler_pic_CXX=
19233 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19237 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19242 # Check to make sure the PIC flag actually works.
19244 if test -n "$lt_prog_compiler_pic_CXX"; then
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19246 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19247 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19248 $as_echo_n "(cached) " >&6
19250 lt_cv_prog_compiler_pic_works_CXX=no
19251 ac_outfile=conftest.$ac_objext
19252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19253 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19254 # Insert the option either (1) after the last *FLAGS variable, or
19255 # (2) before a word containing "conftest.", or (3) at the end.
19256 # Note that $ac_compile itself does not contain backslashes and begins
19257 # with a dollar sign (not a hyphen), so the echo should work correctly.
19258 # The option is referenced via a variable to avoid confusing sed.
19259 lt_compile=`echo "$ac_compile" | $SED \
19260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19262 -e 's:$: $lt_compiler_flag:'`
19263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19264 (eval "$lt_compile" 2>conftest.err)
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 if (exit $ac_status) && test -s "$ac_outfile"; then
19269 # The compiler can only warn and ignore the option if not recognized
19270 # So say no if there are warnings other than the usual output.
19271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19274 lt_cv_prog_compiler_pic_works_CXX=yes
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19281 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19283 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19284 case $lt_prog_compiler_pic_CXX in
19286 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19289 lt_prog_compiler_pic_CXX=
19290 lt_prog_compiler_can_build_shared_CXX=no
19298 # Check to make sure the static flag actually works.
19300 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19303 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19304 $as_echo_n "(cached) " >&6
19306 lt_cv_prog_compiler_static_works_CXX=no
19307 save_LDFLAGS="$LDFLAGS"
19308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19311 # The linker can only warn and ignore the option if not recognized
19312 # So say no if there are warnings
19313 if test -s conftest.err; then
19314 # Append any errors to the config.log.
19315 cat conftest.err 1>&5
19316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19318 if diff conftest.exp conftest.er2 >/dev/null; then
19319 lt_cv_prog_compiler_static_works_CXX=yes
19322 lt_cv_prog_compiler_static_works_CXX=yes
19326 LDFLAGS="$save_LDFLAGS"
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19330 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19332 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19335 lt_prog_compiler_static_CXX=
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19343 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19344 $as_echo_n "(cached) " >&6
19346 lt_cv_prog_compiler_c_o_CXX=no
19347 $RM -r conftest 2>/dev/null
19351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19353 lt_compiler_flag="-o out/conftest2.$ac_objext"
19354 # Insert the option either (1) after the last *FLAGS variable, or
19355 # (2) before a word containing "conftest.", or (3) at the end.
19356 # Note that $ac_compile itself does not contain backslashes and begins
19357 # with a dollar sign (not a hyphen), so the echo should work correctly.
19358 lt_compile=`echo "$ac_compile" | $SED \
19359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19361 -e 's:$: $lt_compiler_flag:'`
19362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19363 (eval "$lt_compile" 2>out/conftest.err)
19365 cat out/conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19369 # The compiler can only warn and ignore the option if not recognized
19370 # So say no if there are warnings
19371 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19372 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19373 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19374 lt_cv_prog_compiler_c_o_CXX=yes
19379 # SGI C++ compiler will create directory out/ii_files/ for
19380 # template instantiation
19381 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19382 $RM out/* && rmdir out
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19395 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19396 $as_echo_n "(cached) " >&6
19398 lt_cv_prog_compiler_c_o_CXX=no
19399 $RM -r conftest 2>/dev/null
19403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19405 lt_compiler_flag="-o out/conftest2.$ac_objext"
19406 # Insert the option either (1) after the last *FLAGS variable, or
19407 # (2) before a word containing "conftest.", or (3) at the end.
19408 # Note that $ac_compile itself does not contain backslashes and begins
19409 # with a dollar sign (not a hyphen), so the echo should work correctly.
19410 lt_compile=`echo "$ac_compile" | $SED \
19411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19413 -e 's:$: $lt_compiler_flag:'`
19414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19415 (eval "$lt_compile" 2>out/conftest.err)
19417 cat out/conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19421 # The compiler can only warn and ignore the option if not recognized
19422 # So say no if there are warnings
19423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19424 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19425 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19426 lt_cv_prog_compiler_c_o_CXX=yes
19431 # SGI C++ compiler will create directory out/ii_files/ for
19432 # template instantiation
19433 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19434 $RM out/* && rmdir out
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19441 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19446 hard_links="nottested"
19447 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19448 # do not overwrite the value of need_locks provided by the user
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19450 $as_echo_n "checking if we can lock with hard links... " >&6; }
19453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19455 ln conftest.a conftest.b 2>&5 || hard_links=no
19456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19458 $as_echo "$hard_links" >&6; }
19459 if test "$hard_links" = no; then
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19461 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19473 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19476 # If we're using GNU nm, then we don't want the "-C" option.
19477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19478 # Also, AIX nm treats weak defined symbols like other global defined
19479 # symbols, whereas GNU nm marks them as "W".
19480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19481 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'
19483 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'
19487 export_symbols_cmds_CXX="$ltdll_cmds"
19489 cygwin* | mingw* | cegcc*)
19490 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'
19493 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19496 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19499 $as_echo "$ld_shlibs_CXX" >&6; }
19500 test "$ld_shlibs_CXX" = no && can_build_shared=no
19502 with_gnu_ld_CXX=$with_gnu_ld
19510 # Do we need to explicitly link libc?
19512 case "x$archive_cmds_need_lc_CXX" in
19514 # Assume -lc should be added
19515 archive_cmds_need_lc_CXX=yes
19517 if test "$enable_shared" = yes && test "$GCC" = yes; then
19518 case $archive_cmds_CXX in
19520 # FIXME: we may have to deal with multi-command sequences.
19523 # Test whether the compiler implicitly links with -lc since on some
19524 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19525 # to ld, don't add -lc before -lgcc.
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19527 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19528 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19529 $as_echo_n "(cached) " >&6
19532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19535 (eval $ac_compile) 2>&5
19537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19538 test $ac_status = 0; } 2>conftest.err; then
19541 libobjs=conftest.$ac_objext
19543 wl=$lt_prog_compiler_wl_CXX
19544 pic_flag=$lt_prog_compiler_pic_CXX
19550 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19551 allow_undefined_flag_CXX=
19552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19553 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19556 test $ac_status = 0; }
19558 lt_cv_archive_cmds_need_lc_CXX=no
19560 lt_cv_archive_cmds_need_lc_CXX=yes
19562 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19564 cat conftest.err 1>&5
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19570 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19571 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19642 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19644 library_names_spec=
19645 libname_spec='lib$name'
19649 postuninstall_cmds=
19653 shlibpath_overrides_runpath=unknown
19655 dynamic_linker="$host_os ld.so"
19656 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19657 need_lib_prefix=unknown
19658 hardcode_into_libs=no
19660 # when you set need_version to no, make sure it does not cause -set_version
19661 # flags to be left without arguments
19662 need_version=unknown
19667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19668 shlibpath_var=LIBPATH
19670 # AIX 3 has no versioning support, so we append a major version to the name.
19671 soname_spec='${libname}${release}${shared_ext}$major'
19678 hardcode_into_libs=yes
19679 if test "$host_cpu" = ia64; then
19680 # AIX 5 supports IA64
19681 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19682 shlibpath_var=LD_LIBRARY_PATH
19684 # With GCC up to 2.95.x, collect2 would create an import file
19685 # for dependence libraries. The import file would start with
19686 # the line `#! .'. This would cause the generated library to
19687 # depend on `.', always an invalid library. This was fixed in
19688 # development snapshots of GCC prior to 3.0.
19690 aix4 | aix4.[01] | aix4.[01].*)
19691 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19693 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19696 can_build_shared=no
19700 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19701 # soname into executable. Probably we can add versioning support to
19702 # collect2, so additional links can be useful in future.
19703 if test "$aix_use_runtimelinking" = yes; then
19704 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19705 # instead of lib<name>.a to let people know that these are not
19706 # typical AIX shared libraries.
19707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 # We preserve .a as extension for shared libraries through AIX4.2
19710 # and later when we are not doing run time linking.
19711 library_names_spec='${libname}${release}.a $libname.a'
19712 soname_spec='${libname}${release}${shared_ext}$major'
19714 shlibpath_var=LIBPATH
19721 # Since July 2007 AmigaOS4 officially supports .so libraries.
19722 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19726 library_names_spec='$libname.ixlibrary $libname.a'
19727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19728 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'
19734 library_names_spec='${libname}${shared_ext}'
19735 dynamic_linker="$host_os ld.so"
19736 shlibpath_var=LIBRARY_PATH
19742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19743 soname_spec='${libname}${release}${shared_ext}$major'
19744 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19745 shlibpath_var=LD_LIBRARY_PATH
19746 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19747 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19748 # the default ld.so.conf also contains /usr/contrib/lib and
19749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19750 # libtool to hard-code these into programs
19753 cygwin* | mingw* | pw32* | cegcc*)
19754 version_type=windows
19759 case $GCC,$host_os in
19760 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19761 library_names_spec='$libname.dll.a'
19762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19763 postinstall_cmds='base_file=`basename \${file}`~
19764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19765 dldir=$destdir/`dirname \$dlpath`~
19766 test -d \$dldir || mkdir -p \$dldir~
19767 $install_prog $dir/$dlname \$dldir/$dlname~
19768 chmod a+x \$dldir/$dlname~
19769 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19770 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19773 dlpath=$dir/\$dldll~
19775 shlibpath_overrides_runpath=yes
19779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19784 # MinGW DLLs use traditional 'lib' prefix
19785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19788 # pw32 DLLs use 'pw' prefix rather than 'lib'
19789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19798 dynamic_linker='Win32 ld.exe'
19799 # FIXME: first we should search . and the directory the executable is in
19803 darwin* | rhapsody*)
19804 dynamic_linker="$host_os dyld"
19805 version_type=darwin
19808 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19809 soname_spec='${libname}${release}${major}$shared_ext'
19810 shlibpath_overrides_runpath=yes
19811 shlibpath_var=DYLD_LIBRARY_PATH
19812 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19822 soname_spec='${libname}${release}${shared_ext}$major'
19823 shlibpath_var=LD_LIBRARY_PATH
19830 freebsd* | dragonfly*)
19831 # DragonFly does not have aout. When/if they implement a new
19832 # versioning mechanism, adjust this.
19833 if test -x /usr/bin/objformat; then
19834 objformat=`/usr/bin/objformat`
19837 freebsd[123]*) objformat=aout ;;
19838 *) objformat=elf ;;
19841 version_type=freebsd-$objformat
19842 case $version_type in
19844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19853 shlibpath_var=LD_LIBRARY_PATH
19856 shlibpath_overrides_runpath=yes
19858 freebsd3.[01]* | freebsdelf3.[01]*)
19859 shlibpath_overrides_runpath=yes
19860 hardcode_into_libs=yes
19862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19864 shlibpath_overrides_runpath=no
19865 hardcode_into_libs=yes
19867 *) # from 4.6 on, and DragonFly
19868 shlibpath_overrides_runpath=yes
19869 hardcode_into_libs=yes
19878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19879 soname_spec='${libname}${release}${shared_ext}$major'
19880 shlibpath_var=LD_LIBRARY_PATH
19881 hardcode_into_libs=yes
19888 dynamic_linker="$host_os runtime_loader"
19889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19890 soname_spec='${libname}${release}${shared_ext}$major'
19891 shlibpath_var=LIBRARY_PATH
19892 shlibpath_overrides_runpath=yes
19893 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19894 hardcode_into_libs=yes
19897 hpux9* | hpux10* | hpux11*)
19898 # Give a soname corresponding to the major version so that dld.sl refuses to
19899 # link against other versions.
19906 hardcode_into_libs=yes
19907 dynamic_linker="$host_os dld.so"
19908 shlibpath_var=LD_LIBRARY_PATH
19909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19911 soname_spec='${libname}${release}${shared_ext}$major'
19912 if test "X$HPUX_IA64_MODE" = X32; then
19913 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19915 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19921 hardcode_into_libs=yes
19922 dynamic_linker="$host_os dld.sl"
19923 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19926 soname_spec='${libname}${release}${shared_ext}$major'
19927 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19932 dynamic_linker="$host_os dld.sl"
19933 shlibpath_var=SHLIB_PATH
19934 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19936 soname_spec='${libname}${release}${shared_ext}$major'
19939 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19940 postinstall_cmds='chmod 555 $lib'
19941 # or fails outright, so override atomically:
19942 install_override_mode=555
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19952 shlibpath_var=LD_LIBRARY_PATH
19953 shlibpath_overrides_runpath=no
19954 hardcode_into_libs=yes
19957 irix5* | irix6* | nonstopux*)
19959 nonstopux*) version_type=nonstopux ;;
19961 if test "$lt_cv_prog_gnu_ld" = yes; then
19969 soname_spec='${libname}${release}${shared_ext}$major'
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19972 irix5* | nonstopux*)
19973 libsuff= shlibsuff=
19976 case $LD in # libtool.m4 will add one of these switches to LD
19977 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19978 libsuff= shlibsuff= libmagic=32-bit;;
19979 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19980 libsuff=32 shlibsuff=N32 libmagic=N32;;
19981 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19982 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19983 *) libsuff= shlibsuff= libmagic=never-match;;
19987 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19988 shlibpath_overrides_runpath=no
19989 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19990 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19991 hardcode_into_libs=yes
19994 # No shared lib support for Linux oldld, aout, or coff.
19995 linux*oldld* | linux*aout* | linux*coff*)
19999 # This must be Linux ELF.
20000 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005 soname_spec='${libname}${release}${shared_ext}$major'
20006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20007 shlibpath_var=LD_LIBRARY_PATH
20008 shlibpath_overrides_runpath=no
20010 # Some binutils ld are patched to set DT_RUNPATH
20011 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20012 $as_echo_n "(cached) " >&6
20014 lt_cv_shlibpath_overrides_runpath=no
20015 save_LDFLAGS=$LDFLAGS
20016 save_libdir=$libdir
20017 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20018 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20020 /* end confdefs.h. */
20030 if ac_fn_cxx_try_link "$LINENO"; then :
20031 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20032 lt_cv_shlibpath_overrides_runpath=yes
20035 rm -f core conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20037 LDFLAGS=$save_LDFLAGS
20038 libdir=$save_libdir
20042 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20044 # This implies no fast_install, which is unacceptable.
20045 # Some rework will be needed to allow for fast_install
20046 # before this can be enabled.
20047 hardcode_into_libs=yes
20049 # Append ld.so.conf contents to the search path
20050 if test -f /etc/ld.so.conf; then
20051 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' ' '`
20052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20055 # We used to test for /lib/ld.so.1 and disable shared libraries on
20056 # powerpc, because MkLinux only supported shared libraries with the
20057 # GNU dynamic linker. Since this was broken with cross compilers,
20058 # most powerpc-linux boxes support dynamic linking these days and
20059 # people can always --disable-shared, the test was removed, and we
20060 # assume the GNU/Linux dynamic linker is in use.
20061 dynamic_linker='GNU/Linux ld.so'
20068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20071 dynamic_linker='NetBSD (a.out) ld.so'
20073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20074 soname_spec='${libname}${release}${shared_ext}$major'
20075 dynamic_linker='NetBSD ld.elf_so'
20077 shlibpath_var=LD_LIBRARY_PATH
20078 shlibpath_overrides_runpath=yes
20079 hardcode_into_libs=yes
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20085 shlibpath_var=LD_LIBRARY_PATH
20086 shlibpath_overrides_runpath=yes
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094 soname_spec='${libname}${release}${shared_ext}$major'
20095 shlibpath_var=LD_LIBRARY_PATH
20096 shlibpath_overrides_runpath=no
20097 hardcode_into_libs=yes
20098 dynamic_linker='ldqnx.so'
20103 sys_lib_dlsearch_path_spec="/usr/lib"
20105 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20107 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20108 *) need_version=no ;;
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20115 openbsd2.[89] | openbsd2.[89].*)
20116 shlibpath_overrides_runpath=no
20119 shlibpath_overrides_runpath=yes
20123 shlibpath_overrides_runpath=yes
20128 libname_spec='$name'
20131 library_names_spec='$libname${shared_ext} $libname.a'
20132 dynamic_linker='OS/2 ld.exe'
20133 shlibpath_var=LIBPATH
20136 osf3* | osf4* | osf5*)
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 shlibpath_var=LD_LIBRARY_PATH
20143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20156 soname_spec='${libname}${release}${shared_ext}$major'
20157 shlibpath_var=LD_LIBRARY_PATH
20158 shlibpath_overrides_runpath=yes
20159 hardcode_into_libs=yes
20160 # ldd complains unless libraries are executable
20161 postinstall_cmds='chmod +x $lib'
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20168 shlibpath_var=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath=yes
20170 if test "$with_gnu_ld" = yes; then
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 case $host_vendor in
20183 shlibpath_overrides_runpath=no
20185 runpath_var=LD_RUN_PATH
20193 shlibpath_overrides_runpath=no
20194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20200 if test -d /usr/nec ;then
20202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20203 soname_spec='$libname${shared_ext}.$major'
20204 shlibpath_var=LD_LIBRARY_PATH
20208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20209 version_type=freebsd-elf
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 shlibpath_var=LD_LIBRARY_PATH
20215 shlibpath_overrides_runpath=yes
20216 hardcode_into_libs=yes
20217 if test "$with_gnu_ld" = yes; then
20218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20220 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20223 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20227 sys_lib_dlsearch_path_spec='/usr/lib'
20231 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 shlibpath_overrides_runpath=no
20238 hardcode_into_libs=yes
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 shlibpath_var=LD_LIBRARY_PATH
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20253 $as_echo "$dynamic_linker" >&6; }
20254 test "$dynamic_linker" = no && can_build_shared=no
20256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20257 if test "$GCC" = yes; then
20258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20261 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20262 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20264 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20265 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20307 hardcode_action_CXX=
20308 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20309 test -n "$runpath_var_CXX" ||
20310 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20312 # We can hardcode non-existent directories.
20313 if test "$hardcode_direct_CXX" != no &&
20314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20315 # have to relink, otherwise we might link with an installed library
20316 # when we should be linking with a yet-to-be-installed one
20317 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20318 test "$hardcode_minus_L_CXX" != no; then
20319 # Linking always hardcodes the temporary library directory.
20320 hardcode_action_CXX=relink
20322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20323 hardcode_action_CXX=immediate
20326 # We cannot hardcode anything, or else we can only hardcode existing
20328 hardcode_action_CXX=unsupported
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20331 $as_echo "$hardcode_action_CXX" >&6; }
20333 if test "$hardcode_action_CXX" = relink ||
20334 test "$inherit_rpath_CXX" = yes; then
20335 # Fast installation is not supported
20336 enable_fast_install=no
20337 elif test "$shlibpath_overrides_runpath" = yes ||
20338 test "$enable_shared" = no; then
20339 # Fast installation is not necessary
20340 enable_fast_install=needless
20349 fi # test -n "$compiler"
20355 with_gnu_ld=$lt_save_with_gnu_ld
20356 lt_cv_path_LDCXX=$lt_cv_path_LD
20357 lt_cv_path_LD=$lt_save_path_LD
20358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20360 fi # test "$_lt_caught_CXX_error" != yes
20363 ac_cpp='$CPP $CPPFLAGS'
20364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20383 # Only expand once:
20389 # Identify the assembler which will work hand-in-glove with the newly
20390 # built GCC, so that we can examine its features. This is the assembler
20391 # which will be driven by the driver program.
20393 # If build != host, and we aren't building gas in-tree, we identify a
20394 # build->target assembler and hope that it will have the same features
20395 # as the host->target assembler we'll be using.
20396 gcc_cv_gas_major_version=
20397 gcc_cv_gas_minor_version=
20398 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20400 if test "${gcc_cv_as+set}" = set; then :
20404 if test -x "$DEFAULT_ASSEMBLER"; then
20405 gcc_cv_as="$DEFAULT_ASSEMBLER"
20406 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20407 && test -f ../gas/Makefile \
20408 && test x$build = x$host; then
20409 gcc_cv_as=../gas/as-new$build_exeext
20410 elif test -x as$build_exeext; then
20411 # Build using assembler in the current directory.
20412 gcc_cv_as=./as$build_exeext
20413 elif test -x $AS_FOR_TARGET; then
20414 gcc_cv_as="$AS_FOR_TARGET"
20416 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20417 set dummy $AS_FOR_TARGET; ac_word=$2
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20419 $as_echo_n "checking for $ac_word... " >&6; }
20420 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20421 $as_echo_n "(cached) " >&6
20425 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20429 for as_dir in $PATH
20432 test -z "$as_dir" && as_dir=.
20433 for ac_exec_ext in '' $ac_executable_extensions; do
20434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20435 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20446 gcc_cv_as=$ac_cv_path_gcc_cv_as
20447 if test -n "$gcc_cv_as"; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20449 $as_echo "$gcc_cv_as" >&6; }
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452 $as_echo "no" >&6; }
20459 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20461 case "$ORIGINAL_AS_FOR_TARGET" in
20462 ./as | ./as$build_exeext) ;;
20463 *) ac_config_files="$ac_config_files as:exec-tool.in"
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20468 $as_echo_n "checking what assembler to use... " >&6; }
20469 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20470 # Single tree build which includes gas. We want to prefer it
20471 # over whatever linker top-level may have detected, since
20472 # we'll use what we're building after installation anyway.
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20474 $as_echo "newly built gas" >&6; }
20476 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20477 for f in $gcc_cv_as_bfd_srcdir/configure \
20478 $gcc_cv_as_gas_srcdir/configure \
20479 $gcc_cv_as_gas_srcdir/configure.in \
20480 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20481 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20482 if test x$gcc_cv_gas_version != x; then
20486 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20487 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20488 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20489 case $gcc_cv_gas_patch_version in
20490 "") gcc_cv_gas_patch_version="0" ;;
20492 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20493 + $gcc_cv_gas_minor_version \) \* 1000 \
20494 + $gcc_cv_gas_patch_version`
20496 in_tree_gas_is_elf=no
20497 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20498 || (grep 'obj_format = multi' ../gas/Makefile \
20499 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20501 in_tree_gas_is_elf=yes
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20505 $as_echo "$gcc_cv_as" >&6; }
20509 # Identify the linker which will work hand-in-glove with the newly
20510 # built GCC, so that we can examine its features. This is the linker
20511 # which will be driven by the driver program.
20513 # If build != host, and we aren't building gas in-tree, we identify a
20514 # build->target linker and hope that it will have the same features
20515 # as the host->target linker we'll be using.
20516 gcc_cv_gld_major_version=
20517 gcc_cv_gld_minor_version=
20518 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20519 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20521 if test "${gcc_cv_ld+set}" = set; then :
20525 if test -x "$DEFAULT_LINKER"; then
20526 gcc_cv_ld="$DEFAULT_LINKER"
20527 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20528 && test -f ../ld/Makefile \
20529 && test x$build = x$host; then
20530 gcc_cv_ld=../ld/ld-new$build_exeext
20531 elif test -x collect-ld$build_exeext; then
20532 # Build using linker in the current directory.
20533 gcc_cv_ld=./collect-ld$build_exeext
20534 elif test -x $LD_FOR_TARGET; then
20535 gcc_cv_ld="$LD_FOR_TARGET"
20537 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20538 set dummy $LD_FOR_TARGET; ac_word=$2
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20540 $as_echo_n "checking for $ac_word... " >&6; }
20541 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20542 $as_echo_n "(cached) " >&6
20546 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20550 for as_dir in $PATH
20553 test -z "$as_dir" && as_dir=.
20554 for ac_exec_ext in '' $ac_executable_extensions; do
20555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20556 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20567 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20568 if test -n "$gcc_cv_ld"; then
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20570 $as_echo "$gcc_cv_ld" >&6; }
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20573 $as_echo "no" >&6; }
20580 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20581 PLUGIN_LD=`basename $gcc_cv_ld`
20583 # Check whether --with-plugin-ld was given.
20584 if test "${with_plugin_ld+set}" = set; then :
20585 withval=$with_plugin_ld; if test x"$withval" != x; then
20586 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20587 PLUGIN_LD="$withval"
20593 cat >>confdefs.h <<_ACEOF
20594 #define PLUGIN_LD "$PLUGIN_LD"
20598 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20600 case "$ORIGINAL_LD_FOR_TARGET" in
20601 ./collect-ld | ./collect-ld$build_exeext) ;;
20602 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20607 $as_echo_n "checking what linker to use... " >&6; }
20608 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20609 # Single tree build which includes ld. We want to prefer it
20610 # over whatever linker top-level may have detected, since
20611 # we'll use what we're building after installation anyway.
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20613 $as_echo "newly built ld" >&6; }
20615 in_tree_ld_is_elf=no
20616 if (grep 'EMUL = .*elf' ../ld/Makefile \
20617 || grep 'EMUL = .*linux' ../ld/Makefile \
20618 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20619 in_tree_ld_is_elf=yes
20621 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
20623 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20624 if test x$gcc_cv_gld_version != x; then
20628 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20629 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20632 $as_echo "$gcc_cv_ld" >&6; }
20636 # Figure out what nm we will be using.
20637 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20638 if test "${gcc_cv_nm+set}" = set; then :
20642 if test -f $gcc_cv_binutils_srcdir/configure.in \
20643 && test -f ../binutils/Makefile \
20644 && test x$build = x$host; then
20645 gcc_cv_nm=../binutils/nm-new$build_exeext
20646 elif test -x nm$build_exeext; then
20647 gcc_cv_nm=./nm$build_exeext
20648 elif test -x $NM_FOR_TARGET; then
20649 gcc_cv_nm="$NM_FOR_TARGET"
20651 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20652 set dummy $NM_FOR_TARGET; ac_word=$2
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20654 $as_echo_n "checking for $ac_word... " >&6; }
20655 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20656 $as_echo_n "(cached) " >&6
20660 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20664 for as_dir in $PATH
20667 test -z "$as_dir" && as_dir=.
20668 for ac_exec_ext in '' $ac_executable_extensions; do
20669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20670 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20681 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20682 if test -n "$gcc_cv_nm"; then
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20684 $as_echo "$gcc_cv_nm" >&6; }
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20687 $as_echo "no" >&6; }
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20695 $as_echo_n "checking what nm to use... " >&6; }
20696 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20697 # Single tree build which includes binutils.
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20699 $as_echo "newly built nm" >&6; }
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20703 $as_echo "$gcc_cv_nm" >&6; }
20707 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20709 case "$ORIGINAL_NM_FOR_TARGET" in
20710 ./nm | ./nm$build_exeext) ;;
20711 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20716 # Figure out what objdump we will be using.
20717 if test "${gcc_cv_objdump+set}" = set; then :
20721 if test -f $gcc_cv_binutils_srcdir/configure.in \
20722 && test -f ../binutils/Makefile \
20723 && test x$build = x$host; then
20724 # Single tree build which includes binutils.
20725 gcc_cv_objdump=../binutils/objdump$build_exeext
20726 elif test -x objdump$build_exeext; then
20727 gcc_cv_objdump=./objdump$build_exeext
20728 elif test -x $OBJDUMP_FOR_TARGET; then
20729 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20731 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20732 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20734 $as_echo_n "checking for $ac_word... " >&6; }
20735 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20738 case $gcc_cv_objdump in
20740 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20744 for as_dir in $PATH
20747 test -z "$as_dir" && as_dir=.
20748 for ac_exec_ext in '' $ac_executable_extensions; do
20749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20750 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20761 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20762 if test -n "$gcc_cv_objdump"; then
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20764 $as_echo "$gcc_cv_objdump" >&6; }
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20767 $as_echo "no" >&6; }
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20775 $as_echo_n "checking what objdump to use... " >&6; }
20776 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20777 # Single tree build which includes binutils.
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20779 $as_echo "newly built objdump" >&6; }
20780 elif test x$gcc_cv_objdump = x; then
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20782 $as_echo "not found" >&6; }
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20785 $as_echo "$gcc_cv_objdump" >&6; }
20788 # Figure out what readelf we will be using.
20789 if test "${gcc_cv_readelf+set}" = set; then :
20793 if test -f $gcc_cv_binutils_srcdir/configure.in \
20794 && test -f ../binutils/Makefile \
20795 && test x$build = x$host; then
20796 # Single tree build which includes binutils.
20797 gcc_cv_readelf=../binutils/readelf$build_exeext
20798 elif test -x readelf$build_exeext; then
20799 gcc_cv_readelf=./readelf$build_exeext
20801 # Extract the first word of "readelf", so it can be a program name with args.
20802 set dummy readelf; ac_word=$2
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20804 $as_echo_n "checking for $ac_word... " >&6; }
20805 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20806 $as_echo_n "(cached) " >&6
20808 case $gcc_cv_readelf in
20810 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20814 for as_dir in $PATH
20817 test -z "$as_dir" && as_dir=.
20818 for ac_exec_ext in '' $ac_executable_extensions; do
20819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20820 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20831 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20832 if test -n "$gcc_cv_readelf"; then
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20834 $as_echo "$gcc_cv_readelf" >&6; }
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20837 $as_echo "no" >&6; }
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20845 $as_echo_n "checking what readelf to use... " >&6; }
20846 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20847 # Single tree build which includes binutils.
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20849 $as_echo "newly built readelf" >&6; }
20850 elif test x$gcc_cv_readelf = x; then
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20852 $as_echo "not found" >&6; }
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20855 $as_echo "$gcc_cv_readelf" >&6; }
20858 # Figure out what assembler alignment features are present.
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20860 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20861 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20862 $as_echo_n "(cached) " >&6
20864 gcc_cv_as_balign_and_p2align=no
20865 if test $in_tree_gas = yes; then
20866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20867 then gcc_cv_as_balign_and_p2align=yes
20869 elif test x$gcc_cv_as != x; then
20871 .p2align 2' > conftest.s
20872 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20874 (eval $ac_try) 2>&5
20876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20877 test $ac_status = 0; }; }
20879 gcc_cv_as_balign_and_p2align=yes
20881 echo "configure: failed program was" >&5
20884 rm -f conftest.o conftest.s
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20888 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20889 if test $gcc_cv_as_balign_and_p2align = yes; then
20891 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20896 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20897 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20898 $as_echo_n "(cached) " >&6
20900 gcc_cv_as_max_skip_p2align=no
20901 if test $in_tree_gas = yes; then
20902 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20903 then gcc_cv_as_max_skip_p2align=yes
20905 elif test x$gcc_cv_as != x; then
20906 echo '.p2align 4,,7' > conftest.s
20907 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20909 (eval $ac_try) 2>&5
20911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20912 test $ac_status = 0; }; }
20914 gcc_cv_as_max_skip_p2align=yes
20916 echo "configure: failed program was" >&5
20919 rm -f conftest.o conftest.s
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20923 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20924 if test $gcc_cv_as_max_skip_p2align = yes; then
20926 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20931 $as_echo_n "checking assembler for .literal16... " >&6; }
20932 if test "${gcc_cv_as_literal16+set}" = set; then :
20933 $as_echo_n "(cached) " >&6
20935 gcc_cv_as_literal16=no
20936 if test $in_tree_gas = yes; then
20937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20938 then gcc_cv_as_literal16=yes
20940 elif test x$gcc_cv_as != x; then
20941 echo '.literal16' > conftest.s
20942 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20944 (eval $ac_try) 2>&5
20946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20947 test $ac_status = 0; }; }
20949 gcc_cv_as_literal16=yes
20951 echo "configure: failed program was" >&5
20954 rm -f conftest.o conftest.s
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
20958 $as_echo "$gcc_cv_as_literal16" >&6; }
20959 if test $gcc_cv_as_literal16 = yes; then
20961 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
20966 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
20967 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
20968 $as_echo_n "(cached) " >&6
20970 gcc_cv_as_subsection_m1=no
20971 if test $in_tree_gas = yes; then
20972 if test $in_tree_gas_is_elf = yes \
20973 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20974 then gcc_cv_as_subsection_m1=yes
20976 elif test x$gcc_cv_as != x; then
20977 echo 'conftest_label1: .word 0
20979 conftest_label2: .word 0
20980 .previous' > conftest.s
20981 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20983 (eval $ac_try) 2>&5
20985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20986 test $ac_status = 0; }; }
20988 if test x$gcc_cv_nm != x; then
20989 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20990 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20991 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20993 else gcc_cv_as_subsection_m1=yes
20995 rm -f conftest.nm1 conftest.nm2
20998 echo "configure: failed program was" >&5
21001 rm -f conftest.o conftest.s
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21005 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21006 if test $gcc_cv_as_subsection_m1 = yes; then
21008 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21013 $as_echo_n "checking assembler for .weak... " >&6; }
21014 if test "${gcc_cv_as_weak+set}" = set; then :
21015 $as_echo_n "(cached) " >&6
21018 if test $in_tree_gas = yes; then
21019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21020 then gcc_cv_as_weak=yes
21022 elif test x$gcc_cv_as != x; then
21023 echo ' .weak foobar' > conftest.s
21024 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21026 (eval $ac_try) 2>&5
21028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21029 test $ac_status = 0; }; }
21033 echo "configure: failed program was" >&5
21036 rm -f conftest.o conftest.s
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21040 $as_echo "$gcc_cv_as_weak" >&6; }
21041 if test $gcc_cv_as_weak = yes; then
21043 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21048 $as_echo_n "checking assembler for .weakref... " >&6; }
21049 if test "${gcc_cv_as_weakref+set}" = set; then :
21050 $as_echo_n "(cached) " >&6
21052 gcc_cv_as_weakref=no
21053 if test $in_tree_gas = yes; then
21054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21055 then gcc_cv_as_weakref=yes
21057 elif test x$gcc_cv_as != x; then
21058 echo ' .weakref foobar, barfnot' > conftest.s
21059 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21061 (eval $ac_try) 2>&5
21063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21064 test $ac_status = 0; }; }
21066 gcc_cv_as_weakref=yes
21068 echo "configure: failed program was" >&5
21071 rm -f conftest.o conftest.s
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21075 $as_echo "$gcc_cv_as_weakref" >&6; }
21076 if test $gcc_cv_as_weakref = yes; then
21078 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21083 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21084 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21085 $as_echo_n "(cached) " >&6
21087 gcc_cv_as_nsubspa_comdat=no
21088 if test $in_tree_gas = yes; then
21089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21090 then gcc_cv_as_nsubspa_comdat=yes
21092 elif test x$gcc_cv_as != x; then
21093 echo ' .SPACE $TEXT$
21094 .NSUBSPA $CODE$,COMDAT' > conftest.s
21095 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21097 (eval $ac_try) 2>&5
21099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21100 test $ac_status = 0; }; }
21102 gcc_cv_as_nsubspa_comdat=yes
21104 echo "configure: failed program was" >&5
21107 rm -f conftest.o conftest.s
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21111 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21112 if test $gcc_cv_as_nsubspa_comdat = yes; then
21114 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21118 # .hidden needs to be supported in both the assembler and the linker,
21119 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21120 # This is irritatingly difficult to feature test for; we have to check the
21121 # date string after the version number. If we've got an in-tree
21122 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21124 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21126 $as_echo_n "checking assembler for .hidden... " >&6; }
21127 if test "${gcc_cv_as_hidden+set}" = set; then :
21128 $as_echo_n "(cached) " >&6
21130 gcc_cv_as_hidden=no
21131 if test $in_tree_gas = yes; then
21132 if test $in_tree_gas_is_elf = yes \
21133 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21134 then gcc_cv_as_hidden=yes
21136 elif test x$gcc_cv_as != x; then
21137 echo ' .hidden foobar
21138 foobar:' > conftest.s
21139 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21141 (eval $ac_try) 2>&5
21143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21144 test $ac_status = 0; }; }
21146 gcc_cv_as_hidden=yes
21148 echo "configure: failed program was" >&5
21151 rm -f conftest.o conftest.s
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21155 $as_echo "$gcc_cv_as_hidden" >&6; }
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21159 $as_echo_n "checking linker for .hidden support... " >&6; }
21160 if test "${gcc_cv_ld_hidden+set}" = set; then :
21161 $as_echo_n "(cached) " >&6
21163 if test $in_tree_ld = yes ; then
21164 gcc_cv_ld_hidden=no
21165 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 \
21166 && test $in_tree_ld_is_elf = yes; then
21167 gcc_cv_ld_hidden=yes
21170 gcc_cv_ld_hidden=yes
21171 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21172 if echo "$ld_ver" | grep GNU > /dev/null; then
21173 ld_vers=`echo $ld_ver | sed -n \
21174 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21175 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'`
21176 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21177 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21178 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21179 if test 0"$ld_date" -lt 20020404; then
21180 if test -n "$ld_date"; then
21181 # If there was date string, but was earlier than 2002-04-04, fail
21182 gcc_cv_ld_hidden=no
21183 elif test -z "$ld_vers"; then
21184 # If there was no date string nor ld version number, something is wrong
21185 gcc_cv_ld_hidden=no
21187 test -z "$ld_vers_patch" && ld_vers_patch=0
21188 if test "$ld_vers_major" -lt 2; then
21189 gcc_cv_ld_hidden=no
21190 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21191 gcc_cv_ld_hidden="no"
21192 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21193 gcc_cv_ld_hidden=no
21198 case "${target}" in
21199 hppa64*-*-hpux* | ia64*-*-hpux*)
21200 gcc_cv_ld_hidden=yes
21202 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21203 gcc_cv_ld_hidden=yes
21206 gcc_cv_ld_hidden=no
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21213 $as_echo "$gcc_cv_ld_hidden" >&6; }
21214 libgcc_visibility=no
21217 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21218 libgcc_visibility=yes
21220 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21225 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21226 gcc_cv_ld_ro_rw_mix=unknown
21227 if test $in_tree_ld = yes ; then
21228 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 \
21229 && test $in_tree_ld_is_elf = yes; then
21230 gcc_cv_ld_ro_rw_mix=read-write
21232 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21233 echo '.section myfoosect, "a"' > conftest1.s
21234 echo '.section myfoosect, "aw"' > conftest2.s
21235 echo '.byte 1' >> conftest2.s
21236 echo '.section myfoosect, "a"' > conftest3.s
21237 echo '.byte 0' >> conftest3.s
21238 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21239 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21240 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21241 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21242 conftest2.o conftest3.o > /dev/null 2>&1; then
21243 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21244 | sed -e '/myfoosect/!d' -e N`
21245 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21246 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21247 gcc_cv_ld_ro_rw_mix=read-only
21249 gcc_cv_ld_ro_rw_mix=read-write
21253 rm -f conftest.* conftest[123].*
21255 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21257 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21261 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21263 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21265 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21266 if test "${gcc_cv_as_leb128+set}" = set; then :
21267 $as_echo_n "(cached) " >&6
21269 gcc_cv_as_leb128=no
21270 if test $in_tree_gas = yes; then
21271 if test $in_tree_gas_is_elf = yes \
21272 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21273 then gcc_cv_as_leb128=yes
21275 elif test x$gcc_cv_as != x; then
21282 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21284 (eval $ac_try) 2>&5
21286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21287 test $ac_status = 0; }; }
21289 # GAS versions before 2.11 do not support uleb128,
21290 # despite appearing to.
21291 # ??? There exists an elf-specific test that will crash
21292 # the assembler. Perhaps it's better to figure out whether
21293 # arbitrary sections are supported and try the test.
21294 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21295 if echo "$as_ver" | grep GNU > /dev/null; then
21296 as_vers=`echo $as_ver | sed -n \
21297 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21298 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21299 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21300 if test $as_major -eq 2 && test $as_minor -lt 11
21302 else gcc_cv_as_leb128=yes
21306 echo "configure: failed program was" >&5
21309 rm -f conftest.o conftest.s
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21313 $as_echo "$gcc_cv_as_leb128" >&6; }
21314 if test $gcc_cv_as_leb128 = yes; then
21316 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21320 # Check if we have assembler support for unwind directives.
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21322 $as_echo_n "checking assembler for cfi directives... " >&6; }
21323 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21326 gcc_cv_as_cfi_directive=no
21327 if test x$gcc_cv_as != x; then
21333 .cfi_escape 1, 2, 3, 4, 5
21334 .cfi_endproc' > conftest.s
21335 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21337 (eval $ac_try) 2>&5
21339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21340 test $ac_status = 0; }; }
21344 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21345 # read-only and read-write sections, we need to make sure that the
21346 # assembler used emits read-write .eh_frame sections.
21347 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21348 if test "x$gcc_cv_objdump" != x; then
21349 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21350 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21351 gcc_cv_as_cfi_directive=no
21353 gcc_cv_as_cfi_directive=yes
21356 # no objdump, err on the side of caution
21357 gcc_cv_as_cfi_directive=no
21360 gcc_cv_as_cfi_directive=yes
21364 gcc_cv_as_cfi_directive=yes
21368 echo "configure: failed program was" >&5
21371 rm -f conftest.o conftest.s
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21375 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21377 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21379 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21380 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21381 $as_echo_n "(cached) " >&6
21383 gcc_cv_as_cfi_advance_working=no
21384 if test x$gcc_cv_as != x; then
21387 .cfi_adjust_cfa_offset 64
21389 .cfi_adjust_cfa_offset 128
21390 .cfi_endproc' > conftest.s
21391 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21393 (eval $ac_try) 2>&5
21395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21396 test $ac_status = 0; }; }
21399 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21400 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21401 gcc_cv_as_cfi_advance_working=yes
21405 echo "configure: failed program was" >&5
21408 rm -f conftest.o conftest.s
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21412 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21415 # no readelf, err on the side of caution
21416 gcc_cv_as_cfi_advance_working=no
21419 cat >>confdefs.h <<_ACEOF
21420 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21421 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21426 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21427 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21430 gcc_cv_as_cfi_personality_directive=no
21431 if test x$gcc_cv_as != x; then
21434 .cfi_personality 0, symbol
21435 .cfi_endproc' > conftest.s
21436 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21438 (eval $ac_try) 2>&5
21440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21441 test $ac_status = 0; }; }
21443 gcc_cv_as_cfi_personality_directive=yes
21445 echo "configure: failed program was" >&5
21448 rm -f conftest.o conftest.s
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21452 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21455 cat >>confdefs.h <<_ACEOF
21456 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21457 then echo 1; else echo 0; fi`
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21462 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21463 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21464 $as_echo_n "(cached) " >&6
21466 gcc_cv_as_cfi_sections_directive=no
21467 if test x$gcc_cv_as != x; then
21469 .cfi_sections .debug_frame, .eh_frame
21471 .cfi_endproc' > conftest.s
21472 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21474 (eval $ac_try) 2>&5
21476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21477 test $ac_status = 0; }; }
21479 gcc_cv_as_cfi_sections_directive=yes
21481 echo "configure: failed program was" >&5
21484 rm -f conftest.o conftest.s
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21488 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21491 cat >>confdefs.h <<_ACEOF
21492 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21493 then echo 1; else echo 0; fi`
21497 # GAS versions up to and including 2.11.0 may mis-optimize
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21500 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21501 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21502 $as_echo_n "(cached) " >&6
21504 gcc_cv_as_eh_frame=no
21505 if test $in_tree_gas = yes; then
21506 if test $in_tree_gas_is_elf = yes \
21507 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21508 then gcc_cv_as_eh_frame=yes
21510 elif test x$gcc_cv_as != x; then
21517 .section .eh_frame,"aw",@progbits
21519 .4byte .LECIE1-.LSCIE1
21533 .4byte .LEFDE1-.LASFDE1
21535 .4byte .LASFDE1-__FRAME_BEGIN__
21542 .LEFDE1:' > conftest.s
21543 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21545 (eval $ac_try) 2>&5
21547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21548 test $ac_status = 0; }; }
21550 cat > conftest.lit <<EOF
21551 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21552 0010 01000000 12000000 18000000 00000000 ................
21553 0020 08000000 04080000 0044 .........D
21555 cat > conftest.big <<EOF
21556 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21557 0010 00000001 00000012 00000018 00000000 ................
21558 0020 00000008 04000000 0844 .........D
21560 # If the assembler didn't choke, and we can objdump,
21561 # and we got the correct data, then succeed.
21562 # The text in the here-document typically retains its unix-style line
21563 # endings, while the output of objdump will use host line endings.
21564 # Therefore, use diff -b for the comparisons.
21565 if test x$gcc_cv_objdump != x \
21566 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21567 | tail -3 > conftest.got \
21568 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21569 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21571 gcc_cv_as_eh_frame=yes
21572 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21574 (eval $ac_try) 2>&5
21576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21577 test $ac_status = 0; }; }; then
21578 gcc_cv_as_eh_frame=buggy
21580 # Uh oh, what do we do now?
21581 gcc_cv_as_eh_frame=no
21584 echo "configure: failed program was" >&5
21587 rm -f conftest.o conftest.s
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21591 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21594 if test $gcc_cv_as_eh_frame = buggy; then
21596 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21601 $as_echo_n "checking assembler for section merging support... " >&6; }
21602 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21603 $as_echo_n "(cached) " >&6
21605 gcc_cv_as_shf_merge=no
21606 if test $in_tree_gas = yes; then
21607 if test $in_tree_gas_is_elf = yes \
21608 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21609 then gcc_cv_as_shf_merge=yes
21611 elif test x$gcc_cv_as != x; then
21612 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21613 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21615 (eval $ac_try) 2>&5
21617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21618 test $ac_status = 0; }; }
21620 gcc_cv_as_shf_merge=yes
21622 echo "configure: failed program was" >&5
21625 rm -f conftest.o conftest.s
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21629 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21631 if test $gcc_cv_as_shf_merge = no; then
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21633 $as_echo_n "checking assembler for section merging support... " >&6; }
21634 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21637 gcc_cv_as_shf_merge=no
21638 if test $in_tree_gas = yes; then
21639 if test $in_tree_gas_is_elf = yes \
21640 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21641 then gcc_cv_as_shf_merge=yes
21643 elif test x$gcc_cv_as != x; then
21644 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21645 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21647 (eval $ac_try) 2>&5
21649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21650 test $ac_status = 0; }; }
21652 gcc_cv_as_shf_merge=yes
21654 echo "configure: failed program was" >&5
21657 rm -f conftest.o conftest.s
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21661 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21665 cat >>confdefs.h <<_ACEOF
21666 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21671 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21672 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21673 $as_echo_n "(cached) " >&6
21675 gcc_cv_as_comdat_group=no
21676 if test $in_tree_gas = yes; then
21677 if test $in_tree_gas_is_elf = yes \
21678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21679 then gcc_cv_as_comdat_group=yes
21681 elif test x$gcc_cv_as != x; then
21682 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21683 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21685 (eval $ac_try) 2>&5
21687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21688 test $ac_status = 0; }; }
21690 gcc_cv_as_comdat_group=yes
21692 echo "configure: failed program was" >&5
21695 rm -f conftest.o conftest.s
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21699 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21701 if test $gcc_cv_as_comdat_group = yes; then
21702 gcc_cv_as_comdat_group_percent=no
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21705 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21706 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21707 $as_echo_n "(cached) " >&6
21709 gcc_cv_as_comdat_group_percent=no
21710 if test $in_tree_gas = yes; then
21711 if test $in_tree_gas_is_elf = yes \
21712 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21713 then gcc_cv_as_comdat_group_percent=yes
21715 elif test x$gcc_cv_as != x; then
21716 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21717 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
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; }; }
21724 gcc_cv_as_comdat_group_percent=yes
21726 echo "configure: failed program was" >&5
21729 rm -f conftest.o conftest.s
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21733 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21736 if test $in_tree_ld = yes ; then
21738 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 \
21739 && test $in_tree_ld_is_elf = yes; then
21742 elif test x"$ld_vers" != x; then
21744 if test 0"$ld_date" -lt 20050308; then
21745 if test -n "$ld_date"; then
21746 # If there was date string, but was earlier than 2005-03-08, fail
21748 elif test "$ld_vers_major" -lt 2; then
21750 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21755 # assume linkers other than GNU ld don't support COMDAT group
21758 if test $comdat_group = no; then
21759 gcc_cv_as_comdat_group=no
21760 gcc_cv_as_comdat_group_percent=no
21763 cat >>confdefs.h <<_ACEOF
21764 #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`
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21769 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21770 if test "${gcc_cv_as_discriminator+set}" = set; then :
21771 $as_echo_n "(cached) " >&6
21773 gcc_cv_as_discriminator=no
21774 if test $in_tree_gas = yes; then
21775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21776 then gcc_cv_as_discriminator=yes
21778 elif test x$gcc_cv_as != x; then
21781 .loc 1 1 0 discriminator 1' > conftest.s
21782 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21784 (eval $ac_try) 2>&5
21786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21787 test $ac_status = 0; }; }
21789 gcc_cv_as_discriminator=yes
21791 echo "configure: failed program was" >&5
21794 rm -f conftest.o conftest.s
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21798 $as_echo "$gcc_cv_as_discriminator" >&6; }
21799 if test $gcc_cv_as_discriminator = yes; then
21801 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21805 # Thread-local storage - the check is heavily parameterized.
21813 .section ".tdata","awT",@progbits
21816 ldq $27,__tls_get_addr($29) !literal!1
21817 lda $16,foo($29) !tlsgd!1
21818 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21819 ldq $27,__tls_get_addr($29) !literal!2
21820 lda $16,foo($29) !tlsldm!2
21821 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21822 ldq $1,foo($29) !gotdtprel
21823 ldah $2,foo($29) !dtprelhi
21824 lda $3,foo($2) !dtprello
21825 lda $4,foo($29) !dtprel
21826 ldq $1,foo($29) !gottprel
21827 ldah $2,foo($29) !tprelhi
21828 lda $3,foo($2) !tprello
21829 lda $4,foo($29) !tprel'
21832 tls_as_opt=--fatal-warnings
21834 cris-*-*|crisv32-*-*)
21836 .section ".tdata","awT",@progbits
21843 tls_as_opt=--fatal-warnings
21847 .section ".tdata","awT",@progbits
21850 call #gettlsoff(x)'
21859 .section ".tdata","awT",@progbits
21863 addil LT%foo-$tls_gdidx$,gp
21864 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21867 addil LT%foo-$tls_ldidx$,gp
21869 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21870 addil LR%foo-$tls_dtpoff$,%ret0
21871 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21873 addil LT%foo-$tls_ieoff$,gp
21874 ldw RT%foo-$tls_ieoff$(%r1),%t2
21877 addil LR%foo-$tls_leoff$,%t1
21878 ldo RR%foo-$tls_leoff$(%r1),%t2'
21881 tls_as_opt=--fatal-warnings
21885 .section ".tdata","awT",%progbits
21888 .word foo(gottpoff)
21898 .section ".tdata","awT",@progbits
21902 leal foo@TLSGD(,%ebx,1), %eax
21903 leal foo@TLSLDM(%ebx), %eax
21904 leal foo@DTPOFF(%eax), %edx
21905 movl foo@GOTTPOFF(%ebx), %eax
21906 subl foo@GOTTPOFF(%ebx), %eax
21907 addl foo@GOTNTPOFF(%ebx), %eax
21908 movl foo@INDNTPOFF, %eax
21909 movl $foo@TPOFF, %eax
21910 subl $foo@TPOFF, %eax
21911 leal foo@NTPOFF(%ecx), %eax'
21914 tls_as_opt=--fatal-warnings
21918 .section ".tdata","awT",@progbits
21922 leaq foo@TLSGD(%rip), %rdi
21923 leaq foo@TLSLD(%rip), %rdi
21924 leaq foo@DTPOFF(%rax), %rdx
21925 movq foo@GOTTPOFF(%rip), %rax
21926 movq $foo@TPOFF, %rax'
21929 tls_as_opt=--fatal-warnings
21933 .section ".tdata","awT",@progbits
21936 addl r16 = @ltoff(@dtpmod(foo#)), gp
21937 addl r17 = @ltoff(@dtprel(foo#)), gp
21938 addl r18 = @ltoff(@tprel(foo#)), gp
21939 addl r19 = @dtprel(foo#), gp
21940 adds r21 = @dtprel(foo#), r13
21941 movl r23 = @dtprel(foo#)
21942 addl r20 = @tprel(foo#), gp
21943 adds r22 = @tprel(foo#), r13
21944 movl r24 = @tprel(foo#)'
21947 tls_as_opt=--fatal-warnings
21951 .section .tdata,"awT",@progbits
21955 addiu $4, $28, %tlsgd(x)
21956 addiu $4, $28, %tlsldm(x)
21957 lui $4, %dtprel_hi(x)
21958 addiu $4, $4, %dtprel_lo(x)
21959 lw $4, %gottprel(x)($28)
21960 lui $4, %tprel_hi(x)
21961 addiu $4, $4, %tprel_lo(x)'
21964 tls_as_opt='-32 --fatal-warnings'
21968 .section .tdata,"awT",@progbits
21973 move.l x@TLSGD(%a5),%a0
21974 move.l x@TLSLDM(%a5),%a0
21975 move.l x@TLSLDO(%a5),%a0
21976 move.l x@TLSIE(%a5),%a0
21977 move.l x@TLSLE(%a5),%a0'
21980 tls_as_opt='--fatal-warnings'
21984 .section ".tdata","awT",@progbits
21992 addi 3,31,ld0@got@tlsgd
21994 addi 3,31,x1@got@tlsld
21997 addis 9,3,x2@dtprel@ha
21998 addi 9,9,x2@dtprel@l
21999 lwz 9,x3@got@tprel(31)
22002 addis 9,2,x2@tprel@ha
22003 addi 9,9,x2@tprel@l'
22006 tls_as_opt="-a32 --fatal-warnings"
22010 .section ".tdata","awT",@progbits
22018 addi 3,2,ld0@got@tlsgd
22024 addi 3,2,x1@got@tlsld
22030 addis 9,3,x2@dtprel@ha
22031 addi 9,9,x2@dtprel@l
22034 ld 9,x3@got@dtprel(2)
22040 tls_as_opt="-a64 --fatal-warnings"
22044 .section ".tdata","awT",@progbits
22051 .long foo@GOTNTPOFF
22052 .long foo@INDNTPOFF
22053 l %r1,foo@GOTNTPOFF(%r12)
22054 l %r1,0(%r1):tls_load:foo
22055 bas %r14,0(%r1,%r13):tls_gdcall:foo
22056 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22059 tls_as_opt="-m31 --fatal-warnings"
22063 .section ".tdata","awT",@progbits
22070 .quad foo@GOTNTPOFF
22071 lg %r1,foo@GOTNTPOFF(%r12)
22072 larl %r1,foo@INDNTPOFF
22073 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22074 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22077 tls_as_opt="-m64 -Aesame --fatal-warnings"
22079 sh-*-* | sh[34]-*-*)
22081 .section ".tdata","awT",@progbits
22091 tls_as_opt=--fatal-warnings
22095 sparc*-sun-solaris2.[56789]*)
22096 # TLS was introduced in the Solaris 9 4/04 release but
22097 # we do not enable it by default on Solaris 9 either.
22098 if test "x$enable_tls" = xyes ; then
22104 sparc*-sun-solaris2.*)
22111 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22113 .section ".tdata",#alloc,#write,#tls
22116 sethi %tgd_hi22(foo), %o0
22117 add %o0, %tgd_lo10(foo), %o1
22118 add %l7, %o1, %o0, %tgd_add(foo)
22119 call __tls_get_addr, %tgd_call(foo)
22120 sethi %tldm_hi22(foo), %l1
22121 add %l1, %tldm_lo10(foo), %l2
22122 add %l7, %l2, %o0, %tldm_add(foo)
22123 call __tls_get_addr, %tldm_call(foo)
22124 sethi %tldo_hix22(foo), %l3
22125 xor %l3, %tldo_lox10(foo), %l4
22126 add %o0, %l4, %l5, %tldo_add(foo)
22127 sethi %tie_hi22(foo), %o3
22128 add %o3, %tie_lo10(foo), %o3
22129 ld [%l7 + %o3], %o2, %tie_ld(foo)
22130 add %g7, %o2, %o4, %tie_add(foo)
22131 sethi %tle_hix22(foo), %l1
22132 xor %l1, %tle_lox10(foo), %o5
22133 ld [%g7 + %o5], %o1'
22138 .section ".tdata","awT",@progbits
22141 sethi %tgd_hi22(foo), %o0
22142 add %o0, %tgd_lo10(foo), %o1
22143 add %l7, %o1, %o0, %tgd_add(foo)
22144 call __tls_get_addr, %tgd_call(foo)
22145 sethi %tldm_hi22(foo), %l1
22146 add %l1, %tldm_lo10(foo), %l2
22147 add %l7, %l2, %o0, %tldm_add(foo)
22148 call __tls_get_addr, %tldm_call(foo)
22149 sethi %tldo_hix22(foo), %l3
22150 xor %l3, %tldo_lox10(foo), %l4
22151 add %o0, %l4, %l5, %tldo_add(foo)
22152 sethi %tie_hi22(foo), %o3
22153 add %o3, %tie_lo10(foo), %o3
22154 ld [%l7 + %o3], %o2, %tie_ld(foo)
22155 add %g7, %o2, %o4, %tie_add(foo)
22156 sethi %tle_hix22(foo), %l1
22157 xor %l1, %tle_lox10(foo), %o5
22158 ld [%g7 + %o5], %o1'
22161 tls_as_opt="-32 --fatal-warnings"
22166 .section ".tdata","awT",@progbits
22169 movi a8, foo@TLSFUNC
22170 movi a10, foo@TLSARG
22171 callx8.tls a8, foo@TLSCALL'
22177 if test "x$enable_tls" = xno ; then
22178 : # TLS explicitly disabled.
22179 elif test "x$enable_tls" = xyes ; then
22180 set_have_as_tls=yes # TLS explicitly enabled.
22181 elif test -z "$tls_first_major"; then
22182 : # If we don't have a check, assume no support.
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22185 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22186 if test "${gcc_cv_as_tls+set}" = set; then :
22187 $as_echo_n "(cached) " >&6
22190 if test $in_tree_gas = yes; then
22191 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22192 then gcc_cv_as_tls=yes
22194 elif test x$gcc_cv_as != x; then
22195 echo "$conftest_s" > conftest.s
22196 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22198 (eval $ac_try) 2>&5
22200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22201 test $ac_status = 0; }; }
22205 echo "configure: failed program was" >&5
22208 rm -f conftest.o conftest.s
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22212 $as_echo "$gcc_cv_as_tls" >&6; }
22213 if test $gcc_cv_as_tls = yes; then
22214 set_have_as_tls=yes
22217 if test $set_have_as_tls = yes ; then
22219 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22223 # Target-specific assembler checks.
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22226 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22227 gcc_cv_ld_static_dynamic=no
22228 if test $in_tree_ld = yes ; then
22229 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
22230 gcc_cv_ld_static_dynamic=yes
22232 elif test x$gcc_cv_ld != x; then
22233 # Check if linker supports -Bstatic/-Bdynamic option
22234 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22235 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22236 gcc_cv_ld_static_dynamic=yes
22239 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22241 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22245 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22247 if test x"$demangler_in_ld" = xyes; then
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22249 $as_echo_n "checking linker --demangle support... " >&6; }
22250 gcc_cv_ld_demangle=no
22251 if test $in_tree_ld = yes; then
22252 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 \
22253 gcc_cv_ld_demangle=yes
22255 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22256 # Check if the GNU linker supports --demangle option
22257 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22258 gcc_cv_ld_demangle=yes
22261 if test x"$gcc_cv_ld_demangle" = xyes; then
22263 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22267 $as_echo "$gcc_cv_ld_demangle" >&6; }
22271 # All TARGET_ABI_OSF targets.
22272 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22274 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22275 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22276 $as_echo_n "(cached) " >&6
22278 gcc_cv_as_alpha_explicit_relocs=no
22279 if test $in_tree_gas = yes; then
22280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22281 then gcc_cv_as_alpha_explicit_relocs=yes
22283 elif test x$gcc_cv_as != x; then
22284 echo ' .set nomacro
22286 extbl $3, $2, $3 !lituse_bytoff!1
22287 ldq $2, a($29) !literal!1
22288 ldq $4, b($29) !literal!2
22289 ldq_u $3, 0($2) !lituse_base!1
22290 ldq $27, f($29) !literal!5
22291 jsr $26, ($27), f !lituse_jsr!5
22292 ldah $29, 0($26) !gpdisp!3
22293 lda $0, c($29) !gprel
22294 ldah $1, d($29) !gprelhigh
22295 lda $1, d($1) !gprellow
22296 lda $29, 0($29) !gpdisp!3' > conftest.s
22297 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22299 (eval $ac_try) 2>&5
22301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22302 test $ac_status = 0; }; }
22304 gcc_cv_as_alpha_explicit_relocs=yes
22306 echo "configure: failed program was" >&5
22309 rm -f conftest.o conftest.s
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22313 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22314 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22316 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22320 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22321 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22322 $as_echo_n "(cached) " >&6
22324 gcc_cv_as_alpha_jsrdirect_relocs=no
22325 if test $in_tree_gas = yes; then
22326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22327 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22329 elif test x$gcc_cv_as != x; then
22330 echo ' .set nomacro
22332 ldq $27, a($29) !literal!1
22333 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22334 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22336 (eval $ac_try) 2>&5
22338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22339 test $ac_status = 0; }; }
22341 gcc_cv_as_alpha_jsrdirect_relocs=yes
22343 echo "configure: failed program was" >&5
22346 rm -f conftest.o conftest.s
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22350 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22351 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22353 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22360 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22361 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22364 gcc_cv_as_cris_no_mul_bug=no
22365 if test $in_tree_gas = yes; then
22366 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22367 then gcc_cv_as_cris_no_mul_bug=yes
22369 elif test x$gcc_cv_as != x; then
22370 echo '.text' > conftest.s
22371 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22373 (eval $ac_try) 2>&5
22375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22376 test $ac_status = 0; }; }
22378 gcc_cv_as_cris_no_mul_bug=yes
22380 echo "configure: failed program was" >&5
22383 rm -f conftest.o conftest.s
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22387 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22388 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22390 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22397 $as_echo_n "checking assembler for .register... " >&6; }
22398 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22399 $as_echo_n "(cached) " >&6
22401 gcc_cv_as_sparc_register_op=no
22402 if test x$gcc_cv_as != x; then
22403 echo '.register %g2, #scratch' > conftest.s
22404 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22406 (eval $ac_try) 2>&5
22408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22409 test $ac_status = 0; }; }
22411 gcc_cv_as_sparc_register_op=yes
22413 echo "configure: failed program was" >&5
22416 rm -f conftest.o conftest.s
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22420 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22421 if test $gcc_cv_as_sparc_register_op = yes; then
22423 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22428 $as_echo_n "checking assembler for -relax option... " >&6; }
22429 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22430 $as_echo_n "(cached) " >&6
22432 gcc_cv_as_sparc_relax=no
22433 if test x$gcc_cv_as != x; then
22434 echo '.text' > conftest.s
22435 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22437 (eval $ac_try) 2>&5
22439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22440 test $ac_status = 0; }; }
22442 gcc_cv_as_sparc_relax=yes
22444 echo "configure: failed program was" >&5
22447 rm -f conftest.o conftest.s
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22451 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22452 if test $gcc_cv_as_sparc_relax = yes; then
22454 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22459 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22460 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22463 gcc_cv_as_sparc_ua_pcrel=no
22464 if test x$gcc_cv_as != x; then
22471 .uaword %r_disp32(foo)' > conftest.s
22472 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22474 (eval $ac_try) 2>&5
22476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22477 test $ac_status = 0; }; }
22479 if test x$gcc_cv_ld != x \
22480 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22481 gcc_cv_as_sparc_ua_pcrel=yes
22485 echo "configure: failed program was" >&5
22488 rm -f conftest.o conftest.s
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22492 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22493 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22495 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22499 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22500 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22503 gcc_cv_as_sparc_ua_pcrel_hidden=no
22504 if test x$gcc_cv_as != x; then
22508 .uaword %r_disp32(foo)
22509 .byte 0x32, 0x33, 0x34
22513 .skip 4' > conftest.s
22514 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22516 (eval $ac_try) 2>&5
22518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22519 test $ac_status = 0; }; }
22521 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22522 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22523 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22524 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22525 if $gcc_cv_objdump -R conftest 2> /dev/null \
22526 | grep 'DISP32' > /dev/null 2>&1; then
22529 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22534 echo "configure: failed program was" >&5
22537 rm -f conftest.o conftest.s
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22541 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22542 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22544 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22548 fi # unaligned pcrel relocs
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22551 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22552 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22553 $as_echo_n "(cached) " >&6
22555 gcc_cv_as_sparc_offsetable_lo10=no
22556 if test x$gcc_cv_as != x; then
22558 or %g1, %lo(ab) + 12, %g1
22559 or %g1, %lo(ab + 12), %g1' > conftest.s
22560 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22562 (eval $ac_try) 2>&5
22564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22565 test $ac_status = 0; }; }
22567 if test x$gcc_cv_objdump != x \
22568 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22569 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22570 gcc_cv_as_sparc_offsetable_lo10=yes
22573 echo "configure: failed program was" >&5
22576 rm -f conftest.o conftest.s
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22580 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22581 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22583 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22588 i[34567]86-*-* | x86_64-*-*)
22591 # Full C++ conformance when using a shared libstdc++-v3 requires some
22592 # support from the Cygwin DLL, which in more recent versions exports
22593 # wrappers to aid in interposing and redirecting operators new, delete,
22594 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22595 # are configuring for a version of Cygwin that exports the wrappers.
22596 if test x$host = x$target; then
22597 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22598 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22599 gcc_ac_cygwin_dll_wrappers=yes
22601 gcc_ac_cygwin_dll_wrappers=no
22605 # Can't check presence of libc functions during cross-compile, so
22606 # we just have to assume we're building for an up-to-date target.
22607 gcc_ac_cygwin_dll_wrappers=yes
22610 cat >>confdefs.h <<_ACEOF
22611 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22616 cygwin* | pe | mingw32*)
22617 # Recent binutils allows the three-operand form of ".comm" on PE. This
22618 # definition is used unconditionally to initialise the default state of
22619 # the target option variable that governs usage of the feature.
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22621 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22622 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22623 $as_echo_n "(cached) " >&6
22625 gcc_cv_as_comm_has_align=no
22626 if test $in_tree_gas = yes; then
22627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22628 then gcc_cv_as_comm_has_align=yes
22630 elif test x$gcc_cv_as != x; then
22631 echo '.comm foo,1,32' > conftest.s
22632 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22634 (eval $ac_try) 2>&5
22636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22637 test $ac_status = 0; }; }
22639 gcc_cv_as_comm_has_align=yes
22641 echo "configure: failed program was" >&5
22644 rm -f conftest.o conftest.s
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22648 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22651 cat >>confdefs.h <<_ACEOF
22652 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22655 # Used for DWARF 2 in PE
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22657 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22658 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22659 $as_echo_n "(cached) " >&6
22661 gcc_cv_as_ix86_pe_secrel32=no
22662 if test $in_tree_gas = yes; then
22663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22664 then gcc_cv_as_ix86_pe_secrel32=yes
22666 elif test x$gcc_cv_as != x; then
22670 .secrel32 foo' > conftest.s
22671 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22673 (eval $ac_try) 2>&5
22675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22676 test $ac_status = 0; }; }
22678 if test x$gcc_cv_ld != x \
22679 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22680 gcc_cv_as_ix86_pe_secrel32=yes
22684 echo "configure: failed program was" >&5
22687 rm -f conftest.o conftest.s
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22691 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22692 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22694 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22701 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22702 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22703 $as_echo_n "(cached) " >&6
22705 gcc_cv_as_ix86_filds=no
22706 if test x$gcc_cv_as != x; then
22707 echo 'filds mem; fists mem' > conftest.s
22708 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22710 (eval $ac_try) 2>&5
22712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22713 test $ac_status = 0; }; }
22715 gcc_cv_as_ix86_filds=yes
22717 echo "configure: failed program was" >&5
22720 rm -f conftest.o conftest.s
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22724 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22725 if test $gcc_cv_as_ix86_filds = yes; then
22727 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22732 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22733 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22734 $as_echo_n "(cached) " >&6
22736 gcc_cv_as_ix86_fildq=no
22737 if test x$gcc_cv_as != x; then
22738 echo 'fildq mem; fistpq mem' > conftest.s
22739 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22741 (eval $ac_try) 2>&5
22743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22744 test $ac_status = 0; }; }
22746 gcc_cv_as_ix86_fildq=yes
22748 echo "configure: failed program was" >&5
22751 rm -f conftest.o conftest.s
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22755 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22756 if test $gcc_cv_as_ix86_fildq = yes; then
22758 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22763 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22764 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22765 $as_echo_n "(cached) " >&6
22767 gcc_cv_as_ix86_cmov_sun_syntax=no
22768 if test x$gcc_cv_as != x; then
22769 echo 'cmovl.l %edx, %eax' > conftest.s
22770 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22772 (eval $ac_try) 2>&5
22774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22775 test $ac_status = 0; }; }
22777 gcc_cv_as_ix86_cmov_sun_syntax=yes
22779 echo "configure: failed program was" >&5
22782 rm -f conftest.o conftest.s
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22786 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22787 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22789 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22794 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22795 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
22798 gcc_cv_as_ix86_ffreep=no
22799 if test x$gcc_cv_as != x; then
22800 echo 'ffreep %st(1)' > conftest.s
22801 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22803 (eval $ac_try) 2>&5
22805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22806 test $ac_status = 0; }; }
22808 gcc_cv_as_ix86_ffreep=yes
22810 echo "configure: failed program was" >&5
22813 rm -f conftest.o conftest.s
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22817 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22818 if test $gcc_cv_as_ix86_ffreep = yes; then
22820 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22825 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22826 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22827 $as_echo_n "(cached) " >&6
22829 gcc_cv_as_ix86_sahf=no
22830 if test x$gcc_cv_as != x; then
22831 echo 'sahf' > conftest.s
22832 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22834 (eval $ac_try) 2>&5
22836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22837 test $ac_status = 0; }; }
22839 gcc_cv_as_ix86_sahf=yes
22841 echo "configure: failed program was" >&5
22844 rm -f conftest.o conftest.s
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22848 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22849 if test $gcc_cv_as_ix86_sahf = yes; then
22851 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
22856 $as_echo_n "checking assembler for swap suffix... " >&6; }
22857 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
22858 $as_echo_n "(cached) " >&6
22860 gcc_cv_as_ix86_swap=no
22861 if test x$gcc_cv_as != x; then
22862 echo 'movl.s %esp, %ebp' > conftest.s
22863 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; }
22870 gcc_cv_as_ix86_swap=yes
22872 echo "configure: failed program was" >&5
22875 rm -f conftest.o conftest.s
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
22879 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
22880 if test $gcc_cv_as_ix86_swap = yes; then
22882 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22887 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22888 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22891 gcc_cv_as_ix86_diff_sect_delta=no
22892 if test x$gcc_cv_as != x; then
22893 echo '.section .rodata
22899 .L2: nop' > conftest.s
22900 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22902 (eval $ac_try) 2>&5
22904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22905 test $ac_status = 0; }; }
22907 gcc_cv_as_ix86_diff_sect_delta=yes
22909 echo "configure: failed program was" >&5
22912 rm -f conftest.o conftest.s
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22916 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22917 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22919 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22923 # This one is used unconditionally by i386.[ch]; it is to be defined
22924 # to 1 if the feature is present, 0 otherwise.
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22926 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22927 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22928 $as_echo_n "(cached) " >&6
22930 gcc_cv_as_ix86_gotoff_in_data=no
22931 if test $in_tree_gas = yes; then
22932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22933 then gcc_cv_as_ix86_gotoff_in_data=yes
22935 elif test x$gcc_cv_as != x; then
22940 .long .L0@GOTOFF' > conftest.s
22941 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22943 (eval $ac_try) 2>&5
22945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22946 test $ac_status = 0; }; }
22948 gcc_cv_as_ix86_gotoff_in_data=yes
22950 echo "configure: failed program was" >&5
22953 rm -f conftest.o conftest.s
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22957 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22960 cat >>confdefs.h <<_ACEOF
22961 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22968 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22969 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22970 $as_echo_n "(cached) " >&6
22972 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22973 if test $in_tree_gas = yes; then
22974 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22975 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22977 elif test x$gcc_cv_as != x; then
22979 addl r15 = @ltoffx(x#), gp
22981 ld8.mov r16 = [r15], x#' > conftest.s
22982 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22984 (eval $ac_try) 2>&5
22986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22987 test $ac_status = 0; }; }
22989 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22991 echo "configure: failed program was" >&5
22994 rm -f conftest.o conftest.s
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22998 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
22999 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23001 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23009 *-*-aix*) conftest_s=' .machine "pwr5"
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23014 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23015 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23016 $as_echo_n "(cached) " >&6
23018 gcc_cv_as_machine_directive=no
23019 if test x$gcc_cv_as != x; then
23020 echo ' .machine ppc7400' > conftest.s
23021 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23023 (eval $ac_try) 2>&5
23025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23026 test $ac_status = 0; }; }
23028 gcc_cv_as_machine_directive=yes
23030 echo "configure: failed program was" >&5
23033 rm -f conftest.o conftest.s
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23037 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23039 if test x$gcc_cv_as_machine_directive != xyes; then
23040 echo "*** This target requires an assembler supporting \".machine\"" >&2
23041 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23042 test x$build = x$target && exit 1
23046 *) conftest_s=' .machine power4
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23052 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23053 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23054 $as_echo_n "(cached) " >&6
23056 gcc_cv_as_powerpc_mfcrf=no
23057 if test $in_tree_gas = yes; then
23058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23059 then gcc_cv_as_powerpc_mfcrf=yes
23061 elif test x$gcc_cv_as != x; then
23062 echo "$conftest_s" > conftest.s
23063 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23065 (eval $ac_try) 2>&5
23067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23068 test $ac_status = 0; }; }
23070 gcc_cv_as_powerpc_mfcrf=yes
23072 echo "configure: failed program was" >&5
23075 rm -f conftest.o conftest.s
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23079 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23080 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23082 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23087 *-*-aix*) conftest_s=' .machine "pwr5"
23090 *) conftest_s=' .machine power5
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23096 $as_echo_n "checking assembler for popcntb support... " >&6; }
23097 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23100 gcc_cv_as_powerpc_popcntb=no
23101 if test $in_tree_gas = yes; then
23102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23103 then gcc_cv_as_powerpc_popcntb=yes
23105 elif test x$gcc_cv_as != x; then
23106 echo "$conftest_s" > conftest.s
23107 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23109 (eval $ac_try) 2>&5
23111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23112 test $ac_status = 0; }; }
23114 gcc_cv_as_powerpc_popcntb=yes
23116 echo "configure: failed program was" >&5
23119 rm -f conftest.o conftest.s
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23123 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23124 if test $gcc_cv_as_powerpc_popcntb = yes; then
23126 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23131 *-*-aix*) conftest_s=' .machine "pwr5x"
23134 *) conftest_s=' .machine power5
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23140 $as_echo_n "checking assembler for fp round support... " >&6; }
23141 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23144 gcc_cv_as_powerpc_fprnd=no
23145 if test $in_tree_gas = yes; then
23146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23147 then gcc_cv_as_powerpc_fprnd=yes
23149 elif test x$gcc_cv_as != x; then
23150 echo "$conftest_s" > conftest.s
23151 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23153 (eval $ac_try) 2>&5
23155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23156 test $ac_status = 0; }; }
23158 gcc_cv_as_powerpc_fprnd=yes
23160 echo "configure: failed program was" >&5
23163 rm -f conftest.o conftest.s
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23167 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23168 if test $gcc_cv_as_powerpc_fprnd = yes; then
23170 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23175 *-*-aix*) conftest_s=' .machine "pwr6"
23178 *) conftest_s=' .machine power6
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23184 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23185 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23186 $as_echo_n "(cached) " >&6
23188 gcc_cv_as_powerpc_mfpgpr=no
23189 if test $in_tree_gas = yes; then
23190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23191 then gcc_cv_as_powerpc_mfpgpr=yes
23193 elif test x$gcc_cv_as != x; then
23194 echo "$conftest_s" > conftest.s
23195 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23197 (eval $ac_try) 2>&5
23199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200 test $ac_status = 0; }; }
23202 gcc_cv_as_powerpc_mfpgpr=yes
23204 echo "configure: failed program was" >&5
23207 rm -f conftest.o conftest.s
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23211 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23212 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23214 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23219 *-*-aix*) conftest_s=' .csect .text[PR]
23221 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23225 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23226 *) conftest_s=' .text
23228 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23232 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23233 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23234 $as_echo_n "(cached) " >&6
23236 gcc_cv_as_powerpc_rel16=no
23237 if test $in_tree_gas = yes; then
23238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23239 then gcc_cv_as_powerpc_rel16=yes
23241 elif test x$gcc_cv_as != x; then
23242 echo "$conftest_s" > conftest.s
23243 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; }
23250 gcc_cv_as_powerpc_rel16=yes
23252 echo "configure: failed program was" >&5
23255 rm -f conftest.o conftest.s
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23259 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23260 if test $gcc_cv_as_powerpc_rel16 = yes; then
23262 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23267 *-*-aix*) conftest_s=' .machine "pwr6"
23270 *) conftest_s=' .machine power6
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23276 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23277 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23278 $as_echo_n "(cached) " >&6
23280 gcc_cv_as_powerpc_cmpb=no
23281 if test $in_tree_gas = yes; then
23282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23283 then gcc_cv_as_powerpc_cmpb=yes
23285 elif test x$gcc_cv_as != x; then
23286 echo "$conftest_s" > conftest.s
23287 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23289 (eval $ac_try) 2>&5
23291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23292 test $ac_status = 0; }; }
23294 gcc_cv_as_powerpc_cmpb=yes
23296 echo "configure: failed program was" >&5
23299 rm -f conftest.o conftest.s
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23303 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23304 if test $gcc_cv_as_powerpc_cmpb = yes; then
23306 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23311 *-*-aix*) conftest_s=' .machine "pwr6"
23314 *) conftest_s=' .machine power6
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23320 $as_echo_n "checking assembler for decimal float support... " >&6; }
23321 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23322 $as_echo_n "(cached) " >&6
23324 gcc_cv_as_powerpc_dfp=no
23325 if test $in_tree_gas = yes; then
23326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23327 then gcc_cv_as_powerpc_dfp=yes
23329 elif test x$gcc_cv_as != x; then
23330 echo "$conftest_s" > conftest.s
23331 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23333 (eval $ac_try) 2>&5
23335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23336 test $ac_status = 0; }; }
23338 gcc_cv_as_powerpc_dfp=yes
23340 echo "configure: failed program was" >&5
23343 rm -f conftest.o conftest.s
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23347 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23348 if test $gcc_cv_as_powerpc_dfp = yes; then
23350 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23355 *-*-aix*) conftest_s=' .machine "pwr7"
23358 *) conftest_s=' .machine power7
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23364 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23365 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23368 gcc_cv_as_powerpc_vsx=no
23369 if test $in_tree_gas = yes; then
23370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23371 then gcc_cv_as_powerpc_vsx=yes
23373 elif test x$gcc_cv_as != x; then
23374 echo "$conftest_s" > conftest.s
23375 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23377 (eval $ac_try) 2>&5
23379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380 test $ac_status = 0; }; }
23382 gcc_cv_as_powerpc_vsx=yes
23384 echo "configure: failed program was" >&5
23387 rm -f conftest.o conftest.s
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23391 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23392 if test $gcc_cv_as_powerpc_vsx = yes; then
23394 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23399 *-*-aix*) conftest_s=' .machine "pwr7"
23402 *) conftest_s=' .machine power7
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23408 $as_echo_n "checking assembler for popcntd support... " >&6; }
23409 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23410 $as_echo_n "(cached) " >&6
23412 gcc_cv_as_powerpc_popcntd=no
23413 if test $in_tree_gas = yes; then
23414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23415 then gcc_cv_as_powerpc_popcntd=yes
23417 elif test x$gcc_cv_as != x; then
23418 echo "$conftest_s" > conftest.s
23419 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; }
23426 gcc_cv_as_powerpc_popcntd=yes
23428 echo "configure: failed program was" >&5
23431 rm -f conftest.o conftest.s
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23435 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23436 if test $gcc_cv_as_powerpc_popcntd = yes; then
23438 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23443 *-*-aix*) conftest_s=' .csect .text[PR]
23445 *) conftest_s=' .text
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23450 $as_echo_n "checking assembler for lwsync support... " >&6; }
23451 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23452 $as_echo_n "(cached) " >&6
23454 gcc_cv_as_powerpc_lwsync=no
23455 if test $in_tree_gas = yes; then
23456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23457 then gcc_cv_as_powerpc_lwsync=yes
23459 elif test x$gcc_cv_as != x; then
23460 echo "$conftest_s" > conftest.s
23461 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23463 (eval $ac_try) 2>&5
23465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23466 test $ac_status = 0; }; }
23468 gcc_cv_as_powerpc_lwsync=yes
23470 echo "configure: failed program was" >&5
23473 rm -f conftest.o conftest.s
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23477 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23478 if test $gcc_cv_as_powerpc_lwsync = yes; then
23480 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23485 *-*-aix*) conftest_s=' .machine "476"
23488 *) conftest_s=' .machine "476"
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23494 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23495 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23496 $as_echo_n "(cached) " >&6
23498 gcc_cv_as_powerpc_dci=no
23499 if test $in_tree_gas = yes; then
23500 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23501 then gcc_cv_as_powerpc_dci=yes
23503 elif test x$gcc_cv_as != x; then
23504 echo "$conftest_s" > conftest.s
23505 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23507 (eval $ac_try) 2>&5
23509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23510 test $ac_status = 0; }; }
23512 gcc_cv_as_powerpc_dci=yes
23514 echo "configure: failed program was" >&5
23517 rm -f conftest.o conftest.s
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23521 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23522 if test $gcc_cv_as_powerpc_dci = yes; then
23524 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23529 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23530 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23531 $as_echo_n "(cached) " >&6
23533 gcc_cv_as_powerpc_gnu_attribute=no
23534 if test $in_tree_gas = yes; then
23535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23536 then gcc_cv_as_powerpc_gnu_attribute=yes
23538 elif test x$gcc_cv_as != x; then
23539 echo '.gnu_attribute 4,1' > conftest.s
23540 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23542 (eval $ac_try) 2>&5
23544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23545 test $ac_status = 0; }; }
23547 gcc_cv_as_powerpc_gnu_attribute=yes
23549 echo "configure: failed program was" >&5
23552 rm -f conftest.o conftest.s
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23556 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23557 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23559 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23564 $as_echo_n "checking assembler for tls marker support... " >&6; }
23565 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23566 $as_echo_n "(cached) " >&6
23568 gcc_cv_as_powerpc_tls_markers=no
23569 if test $in_tree_gas = yes; then
23570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23571 then gcc_cv_as_powerpc_tls_markers=yes
23573 elif test x$gcc_cv_as != x; then
23574 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23575 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23577 (eval $ac_try) 2>&5
23579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23580 test $ac_status = 0; }; }
23582 gcc_cv_as_powerpc_tls_markers=yes
23584 echo "configure: failed program was" >&5
23587 rm -f conftest.o conftest.s
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23591 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23592 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23594 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23601 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23602 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23605 gcc_cv_as_mips_explicit_relocs=no
23606 if test $in_tree_gas = yes; then
23607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23608 then gcc_cv_as_mips_explicit_relocs=yes
23610 elif test x$gcc_cv_as != x; then
23611 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23612 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23614 (eval $ac_try) 2>&5
23616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23617 test $ac_status = 0; }; }
23619 gcc_cv_as_mips_explicit_relocs=yes
23621 echo "configure: failed program was" >&5
23624 rm -f conftest.o conftest.s
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23628 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23629 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23630 if test x$target_cpu_default = x
23631 then target_cpu_default=MASK_EXPLICIT_RELOCS
23632 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23636 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23637 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23638 $as_echo_n "(cached) " >&6
23640 gcc_cv_as_mips_no_shared=no
23641 if test $in_tree_gas = yes; then
23642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23643 then gcc_cv_as_mips_no_shared=yes
23645 elif test x$gcc_cv_as != x; then
23646 echo 'nop' > conftest.s
23647 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23649 (eval $ac_try) 2>&5
23651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23652 test $ac_status = 0; }; }
23654 gcc_cv_as_mips_no_shared=yes
23656 echo "configure: failed program was" >&5
23659 rm -f conftest.o conftest.s
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23663 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23664 if test $gcc_cv_as_mips_no_shared = yes; then
23666 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23671 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23672 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23673 $as_echo_n "(cached) " >&6
23675 gcc_cv_as_mips_gnu_attribute=no
23676 if test $in_tree_gas = yes; then
23677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23678 then gcc_cv_as_mips_gnu_attribute=yes
23680 elif test x$gcc_cv_as != x; then
23681 echo '.gnu_attribute 4,1' > conftest.s
23682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23684 (eval $ac_try) 2>&5
23686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23687 test $ac_status = 0; }; }
23689 gcc_cv_as_mips_gnu_attribute=yes
23691 echo "configure: failed program was" >&5
23694 rm -f conftest.o conftest.s
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23698 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23699 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23701 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23706 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23707 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23708 $as_echo_n "(cached) " >&6
23710 gcc_cv_as_mips_dtprelword=no
23711 if test $in_tree_gas = yes; then
23712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23713 then gcc_cv_as_mips_dtprelword=yes
23715 elif test x$gcc_cv_as != x; then
23716 echo '.section .tdata,"awT",@progbits
23720 .dtprelword x+0x8000' > conftest.s
23721 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723 (eval $ac_try) 2>&5
23725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726 test $ac_status = 0; }; }
23728 gcc_cv_as_mips_dtprelword=yes
23730 echo "configure: failed program was" >&5
23733 rm -f conftest.o conftest.s
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23737 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23738 if test $gcc_cv_as_mips_dtprelword = yes; then
23740 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23745 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23746 gcc_cv_as_ld_jalr_reloc=no
23747 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23748 if test $in_tree_ld = yes ; then
23749 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 \
23750 && test $in_tree_ld_is_elf = yes; then
23751 gcc_cv_as_ld_jalr_reloc=yes
23753 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23754 echo ' .ent x' > conftest.s
23755 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23756 echo ' ld $25,%call16(y)($28)' >> conftest.s
23757 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23758 echo '1: jalr $25' >> conftest.s
23759 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23760 echo '1: jalr $25' >> conftest.s
23761 echo ' .end x' >> conftest.s
23762 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23763 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23764 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23765 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23766 gcc_cv_as_ld_jalr_reloc=yes
23772 if test $gcc_cv_as_ld_jalr_reloc = yes; then
23773 if test x$target_cpu_default = x; then
23774 target_cpu_default=MASK_RELAX_PIC_CALLS
23776 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23780 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23783 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23784 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23785 $as_echo_n "(cached) " >&6
23787 gcc_cv_ld_mips_personality_relaxation=no
23788 if test $in_tree_ld = yes ; then
23789 if test "$gcc_cv_gld_major_version" -eq 2 \
23790 -a "$gcc_cv_gld_minor_version" -ge 21 \
23791 -o "$gcc_cv_gld_major_version" -gt 2; then
23792 gcc_cv_ld_mips_personality_relaxation=yes
23794 elif test x$gcc_cv_as != x \
23795 -a x$gcc_cv_ld != x \
23796 -a x$gcc_cv_readelf != x ; then
23797 cat > conftest.s <<EOF
23799 .cfi_personality 0x80,indirect_ptr
23806 .section .data,"aw",@progbits
23810 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23811 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23812 if $gcc_cv_readelf -d conftest 2>&1 \
23813 | grep TEXTREL > /dev/null 2>&1; then
23815 elif $gcc_cv_readelf --relocs conftest 2>&1 \
23816 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23819 gcc_cv_ld_mips_personality_relaxation=yes
23823 rm -f conftest.s conftest.o conftest
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23826 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23827 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23829 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23835 # Mips and HP-UX need the GNU assembler.
23836 # Linux on IA64 might be able to use the Intel assembler.
23839 mips*-*-* | *-*-hpux* )
23840 if test x$gas_flag = xyes \
23841 || test x"$host" != x"$build" \
23842 || test ! -x "$gcc_cv_as" \
23843 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23846 echo "*** This configuration requires the GNU assembler" >&2
23852 # ??? Not all targets support dwarf2 debug_line, even within a version
23853 # of gas. Moreover, we need to emit a valid instruction to trigger any
23854 # info to the output file. So, as supported targets are added to gas 2.11,
23855 # add some instruction here to (also) show we expect this might work.
23856 # ??? Once 2.11 is released, probably need to add first known working
23857 # version to the per-target configury.
23859 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23860 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23861 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23862 | spu-*-* | fido*-*-* | m32c-*-*)
23865 ia64*-*-* | s390*-*-*)
23872 if test x"$insn" != x; then
23874 .file 1 \"conftest.s\"
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23878 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23879 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23880 $as_echo_n "(cached) " >&6
23882 gcc_cv_as_dwarf2_debug_line=no
23883 if test $in_tree_gas = yes; then
23884 if test $in_tree_gas_is_elf = yes \
23885 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23886 then gcc_cv_as_dwarf2_debug_line=yes
23888 elif test x$gcc_cv_as != x; then
23889 echo "$conftest_s" > conftest.s
23890 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23892 (eval $ac_try) 2>&5
23894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23895 test $ac_status = 0; }; }
23897 if test x$gcc_cv_objdump != x \
23898 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23899 | grep debug_line > /dev/null 2>&1; then
23900 gcc_cv_as_dwarf2_debug_line=yes
23903 echo "configure: failed program was" >&5
23906 rm -f conftest.o conftest.s
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23910 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23913 # The .debug_line file table must be in the exact order that
23914 # we specified the files, since these indices are also used
23915 # by DW_AT_decl_file. Approximate this test by testing if
23916 # the assembler bitches if the same index is assigned twice.
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23918 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23919 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23920 $as_echo_n "(cached) " >&6
23922 gcc_cv_as_dwarf2_file_buggy=no
23923 if test x$gcc_cv_as != x; then
23924 echo ' .file 1 "foo.s"
23925 .file 1 "bar.s"' > conftest.s
23926 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }
23933 gcc_cv_as_dwarf2_file_buggy=yes
23935 echo "configure: failed program was" >&5
23938 rm -f conftest.o conftest.s
23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23942 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23945 if test $gcc_cv_as_dwarf2_debug_line = yes \
23946 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23948 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23953 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23954 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23955 $as_echo_n "(cached) " >&6
23957 gcc_cv_as_gdwarf2_flag=no
23958 if test $in_tree_gas = yes; then
23959 if test $in_tree_gas_is_elf = yes \
23960 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23961 then gcc_cv_as_gdwarf2_flag=yes
23963 elif test x$gcc_cv_as != x; then
23964 echo "$insn" > conftest.s
23965 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967 (eval $ac_try) 2>&5
23969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970 test $ac_status = 0; }; }
23972 gcc_cv_as_gdwarf2_flag=yes
23974 echo "configure: failed program was" >&5
23977 rm -f conftest.o conftest.s
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23981 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23982 if test $gcc_cv_as_gdwarf2_flag = yes; then
23984 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23989 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23990 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23991 $as_echo_n "(cached) " >&6
23993 gcc_cv_as_gstabs_flag=no
23994 if test $in_tree_gas = yes; then
23995 if test $in_tree_gas_is_elf = yes \
23996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23997 then gcc_cv_as_gstabs_flag=yes
23999 elif test x$gcc_cv_as != x; then
24000 echo "$insn" > conftest.s
24001 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
24002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24003 (eval $ac_try) 2>&5
24005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24006 test $ac_status = 0; }; }
24008 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24009 # and warns about it, but still exits successfully. So check for
24011 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24013 (eval $ac_try) 2>&5
24015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24016 test $ac_status = 0; }; }
24018 else gcc_cv_as_gstabs_flag=yes
24021 echo "configure: failed program was" >&5
24024 rm -f conftest.o conftest.s
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24028 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24029 if test $gcc_cv_as_gstabs_flag = yes; then
24031 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24036 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24037 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24040 gcc_cv_as_debug_prefix_map_flag=no
24041 if test $in_tree_gas = yes; then
24042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24043 then gcc_cv_as_debug_prefix_map_flag=yes
24045 elif test x$gcc_cv_as != x; then
24046 echo "$insn" > conftest.s
24047 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24049 (eval $ac_try) 2>&5
24051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24052 test $ac_status = 0; }; }
24054 gcc_cv_as_debug_prefix_map_flag=yes
24056 echo "configure: failed program was" >&5
24059 rm -f conftest.o conftest.s
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24063 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24064 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24066 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24072 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24073 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24074 $as_echo_n "(cached) " >&6
24076 gcc_cv_as_lcomm_with_alignment=no
24077 if test x$gcc_cv_as != x; then
24078 echo '.lcomm bar,4,16' > conftest.s
24079 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24086 gcc_cv_as_lcomm_with_alignment=yes
24088 echo "configure: failed program was" >&5
24091 rm -f conftest.o conftest.s
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24095 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24096 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24098 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24102 # Check whether --enable-gnu-unique-object was given.
24103 if test "${enable_gnu_unique_object+set}" = set; then :
24104 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24106 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24107 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24111 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24112 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24113 $as_echo_n "(cached) " >&6
24115 gcc_cv_as_gnu_unique_object=no
24116 if test $in_tree_gas = yes; then
24117 if test $in_tree_gas_is_elf = yes \
24118 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24119 then gcc_cv_as_gnu_unique_object=yes
24121 elif test x$gcc_cv_as != x; then
24122 echo '.type foo, @gnu_unique_object' > conftest.s
24123 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24125 (eval $ac_try) 2>&5
24127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128 test $ac_status = 0; }; }
24130 gcc_cv_as_gnu_unique_object=yes
24132 echo "configure: failed program was" >&5
24135 rm -f conftest.o conftest.s
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24139 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24140 if test $gcc_cv_as_gnu_unique_object = yes; then
24141 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24142 if test x$host = x$build -a x$host = x$target &&
24143 glibcver=`ldd --version 2>/dev/null`; then
24144 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24145 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24146 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24147 if test "$glibcnum" -ge 2011 ; then
24148 enable_gnu_unique_object=yes
24154 if test x$enable_gnu_unique_object = xyes; then
24156 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24161 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24162 if test "${gcc_cv_as_line_zero+set}" = set; then :
24163 $as_echo_n "(cached) " >&6
24165 gcc_cv_as_line_zero=no
24166 if test $in_tree_gas = yes; then
24167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24168 then gcc_cv_as_line_zero=yes
24170 elif test "x$gcc_cv_as" != x; then
24171 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24172 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24174 (eval $ac_try) 2>&5
24176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24177 test $ac_status = 0; }; } &&
24178 test "x`cat conftest.out`" = x
24180 gcc_cv_as_line_zero=yes
24182 echo "configure: failed program was" >&5
24184 echo "configure: error output was" >&5
24185 cat conftest.out >&5
24187 rm -f conftest.o conftest.s conftest.out
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24191 $as_echo "$gcc_cv_as_line_zero" >&6; }
24192 if test "x$gcc_cv_as_line_zero" = xyes; then
24194 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24199 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24200 gcc_cv_ld_eh_frame_hdr=no
24201 if test $in_tree_ld = yes ; then
24202 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 \
24203 && test $in_tree_ld_is_elf = yes; then
24204 gcc_cv_ld_eh_frame_hdr=yes
24206 elif test x$gcc_cv_ld != x; then
24207 # Check if linker supports --eh-frame-hdr option
24208 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24209 gcc_cv_ld_eh_frame_hdr=yes
24213 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24215 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24219 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24222 $as_echo_n "checking linker position independent executable support... " >&6; }
24224 if test $in_tree_ld = yes ; then
24225 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 \
24226 && test $in_tree_ld_is_elf = yes; then
24229 elif test x$gcc_cv_ld != x; then
24230 # Check if linker supports -pie option
24231 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24235 if test x"$gcc_cv_ld_pie" = xyes; then
24237 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24241 $as_echo "$gcc_cv_ld_pie" >&6; }
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24244 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24245 gcc_cv_ld_eh_gc_sections=no
24246 if test $in_tree_ld = yes ; then
24247 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 \
24248 && test $in_tree_ld_is_elf = yes; then
24249 gcc_cv_ld_eh_gc_sections=yes
24251 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24252 cat > conftest.s <<EOF
24255 .type _start, @function
24258 .size _start, .-_start
24259 .section .text.foo,"ax",@progbits
24260 .type foo, @function
24264 .section .gcc_except_table.foo,"a",@progbits
24267 .section .eh_frame,"a",@progbits
24270 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24271 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24272 | grep "gc-sections option ignored" > /dev/null; then
24273 gcc_cv_ld_eh_gc_sections=no
24274 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24275 gcc_cv_ld_eh_gc_sections=yes
24276 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24277 if test x$gcc_cv_as_comdat_group != xyes; then
24278 gcc_cv_ld_eh_gc_sections=no
24279 cat > conftest.s <<EOF
24282 .type _start, @function
24285 .size _start, .-_start
24286 .section .gnu.linkonce.t.foo,"ax",@progbits
24287 .type foo, @function
24291 .section .gcc_except_table.foo,"a",@progbits
24294 .section .eh_frame,"a",@progbits
24297 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24298 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24299 | grep "gc-sections option ignored" > /dev/null; then
24300 gcc_cv_ld_eh_gc_sections=no
24301 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24302 gcc_cv_ld_eh_gc_sections=yes
24308 rm -f conftest.s conftest.o conftest
24312 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24313 gcc_cv_ld_eh_gc_sections=no
24316 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24318 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24322 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24329 $as_echo_n "checking linker --as-needed support... " >&6; }
24330 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24331 $as_echo_n "(cached) " >&6
24333 gcc_cv_ld_as_needed=no
24334 if test $in_tree_ld = yes ; then
24335 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 \
24336 && test $in_tree_ld_is_elf = yes; then
24337 gcc_cv_ld_as_needed=yes
24339 elif test x$gcc_cv_ld != x; then
24340 # Check if linker supports --as-needed and --no-as-needed options
24341 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24342 gcc_cv_ld_as_needed=yes
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24348 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24349 if test x"$gcc_cv_ld_as_needed" = xyes; then
24351 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24355 case "$target:$tm_file" in
24356 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24358 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24359 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24360 $as_echo_n "(cached) " >&6
24362 gcc_cv_ld_no_dot_syms=no
24363 if test $in_tree_ld = yes ; then
24364 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
24365 gcc_cv_ld_no_dot_syms=yes
24367 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24368 cat > conftest1.s <<EOF
24372 cat > conftest2.s <<EOF
24373 .section ".opd","aw"
24376 .type foo,@function
24378 .quad .LEfoo,.TOC.@tocbase,0
24384 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24385 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24386 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24387 gcc_cv_ld_no_dot_syms=yes
24389 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24394 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24395 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24397 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24404 $as_echo_n "checking linker --build-id support... " >&6; }
24405 if test "${gcc_cv_ld_buildid+set}" = set; then :
24406 $as_echo_n "(cached) " >&6
24408 gcc_cv_ld_buildid=no
24409 if test $in_tree_ld = yes ; then
24410 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24411 "$gcc_cv_gld_minor_version" -ge 18 -o \
24412 "$gcc_cv_gld_major_version" -gt 2 \
24413 && test $in_tree_ld_is_elf = yes; then
24414 gcc_cv_ld_buildid=yes
24416 elif test x$gcc_cv_ld != x; then
24417 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24418 gcc_cv_ld_buildid=yes
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24423 $as_echo "$gcc_cv_ld_buildid" >&6; }
24424 if test x"$gcc_cv_ld_buildid" = xyes; then
24426 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24430 # Check whether --enable-linker-build-id was given.
24431 if test "${enable_linker_build_id+set}" = set; then :
24432 enableval=$enable_linker_build_id;
24434 enable_linker_build_id=no
24438 if test x"$enable_linker_build_id" = xyes; then
24439 if test x"$gcc_cv_ld_buildid" = xyes; then
24441 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24445 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24450 $as_echo_n "checking linker --sysroot support... " >&6; }
24451 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24452 $as_echo_n "(cached) " >&6
24454 gcc_cv_ld_sysroot=no
24455 if test $in_tree_ld = yes ; then
24456 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
24457 gcc_cv_ld_sysroot=yes
24459 elif test x$gcc_cv_ld != x; then
24460 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24461 gcc_cv_ld_sysroot=yes
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24466 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24467 if test x"$gcc_cv_ld_sysroot" = xyes; then
24469 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24473 if test x$with_sysroot = x && test x$host = x$target \
24474 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24475 && test "$prefix" != "NONE"; then
24477 cat >>confdefs.h <<_ACEOF
24478 #define PREFIX_INCLUDE_DIR "$prefix/include"
24483 # Test for stack protector support in target C library.
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24485 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24486 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24487 $as_echo_n "(cached) " >&6
24489 gcc_cv_libc_provides_ssp=no
24491 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24492 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24493 if test "x$with_sysroot" = x; then
24494 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24495 elif test "x$with_build_sysroot" != "x"; then
24496 glibc_header_dir="${with_build_sysroot}/usr/include"
24497 elif test "x$with_sysroot" = xyes; then
24498 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24500 glibc_header_dir="${with_sysroot}/usr/include"
24503 glibc_header_dir=/usr/include
24505 # glibc 2.4 and later provides __stack_chk_fail and
24506 # either __stack_chk_guard, or TLS access to stack guard canary.
24507 if test -f $glibc_header_dir/features.h \
24508 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24509 $glibc_header_dir/features.h > /dev/null; then
24510 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24511 $glibc_header_dir/features.h > /dev/null; then
24512 gcc_cv_libc_provides_ssp=yes
24513 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24514 $glibc_header_dir/features.h > /dev/null \
24515 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24516 $glibc_header_dir/features.h > /dev/null; then
24517 gcc_cv_libc_provides_ssp=yes
24518 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24519 $glibc_header_dir/features.h > /dev/null && \
24520 test -f $glibc_header_dir/bits/uClibc_config.h && \
24521 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24522 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24523 gcc_cv_libc_provides_ssp=yes
24528 # Avoid complicated tests (see
24529 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24530 # simply assert that glibc does provide this, which is true for all
24531 # realistically usable GNU/Hurd configurations.
24532 gcc_cv_libc_provides_ssp=yes;;
24533 *-*-darwin* | *-*-freebsd*)
24534 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24535 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24536 gcc_cv_libc_provides_ssp=yes
24538 echo "no __stack_chk_fail on this target"
24542 *) gcc_cv_libc_provides_ssp=no ;;
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24546 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24548 if test x$gcc_cv_libc_provides_ssp = xyes; then
24550 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24554 # Check if TFmode long double should be used by default or not.
24555 # Some glibc targets used DFmode long double, but with glibc 2.4
24556 # and later they can use TFmode.
24558 powerpc*-*-linux* | \
24559 powerpc*-*-gnu* | \
24560 sparc*-*-linux* | \
24564 # Check whether --with-long-double-128 was given.
24565 if test "${with_long_double_128+set}" = set; then :
24566 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24568 gcc_cv_target_ldbl128=no
24569 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24570 if test "x$with_sysroot" = x; then
24571 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24572 elif test "x$with_build_sysroot" != "x"; then
24573 glibc_header_dir="${with_build_sysroot}/usr/include"
24574 elif test "x$with_sysroot" = xyes; then
24575 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24577 glibc_header_dir="${with_sysroot}/usr/include"
24580 glibc_header_dir=/usr/include
24582 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24583 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24584 && gcc_cv_target_ldbl128=yes
24590 if test x$gcc_cv_target_ldbl128 = xyes; then
24592 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24596 # Find out what GC implementation we want, or may, use.
24598 # Check whether --with-gc was given.
24599 if test "${with_gc+set}" = set; then :
24600 withval=$with_gc; case "$withval" in
24607 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24611 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24619 echo "Using $GGC for garbage collection."
24621 # Libraries to use on the host. This will normally be set by the top
24622 # level Makefile. Here we simply capture the value for our Makefile.
24623 if test -z "${HOST_LIBS+set}"; then
24628 # Use the system's zlib library.
24630 zlibinc="-I\$(srcdir)/../zlib"
24632 # Check whether --with-system-zlib was given.
24633 if test "${with_system_zlib+set}" = set; then :
24634 withval=$with_system_zlib; zlibdir=
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24644 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24645 # Check whether --enable-maintainer-mode was given.
24646 if test "${enable_maintainer_mode+set}" = set; then :
24647 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24654 $as_echo "$maintainer_mode" >&6; }
24656 if test "$maintainer_mode" = "yes"; then
24666 # Make empty files to contain the specs and options for each language.
24667 # Then add #include lines to for a compiler that has specs and/or options.
24673 # These (without "all_") are set in each config-lang.in.
24674 # `language' must be a single word so is spelled singularly.
24677 all_outputs='Makefile gccbug'
24678 # List of language makefile fragments.
24679 all_lang_makefrags=
24680 # List of language subdirectory makefiles. Deprecated.
24681 all_lang_makefiles=
24682 # Additional files for gengtype
24683 all_gtfiles="$target_gtfiles"
24685 # These are the languages that are set in --enable-languages,
24686 # and are available in the GCC tree.
24687 all_selected_languages=
24689 # Add the language fragments.
24690 # Languages are added via two mechanisms. Some information must be
24691 # recorded in makefile variables, these are defined in config-lang.in.
24692 # We accumulate them and plug them into the main Makefile.
24693 # The other mechanism is a set of hooks for each of the main targets
24694 # like `clean', `install', etc.
24696 language_hooks="Make-hooks"
24698 for lang in ${srcdir}/*/config-lang.in
24700 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24702 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24703 if test "x$lang_alias" = x
24705 echo "$lang doesn't set \$language." 1>&2
24708 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24709 subdirs="$subdirs $subdir"
24711 # $gcc_subdir is where the gcc integration files are to be found
24712 # for a language, both for internal compiler purposes (compiler
24713 # sources implementing front-end to GCC tree converters), and for
24714 # build infrastructure purposes (Make-lang.in, etc.)
24716 # This will be <subdir> (relative to $srcdir) if a line like
24717 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24718 # is found in <langdir>/config-lang.in, and will remain <langdir>
24721 # Except for the language alias (fetched above), the regular
24722 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24723 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24724 # only this and the language alias.
24726 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24727 if [ "$gcc_subdir" = "" ]; then
24728 gcc_subdir="$subdir"
24731 case ",$enable_languages," in
24733 all_selected_languages="$all_selected_languages $lang_alias"
24734 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24735 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24746 . ${srcdir}/$gcc_subdir/config-lang.in
24747 if test "x$language" = x
24749 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24754 case ",$enable_languages," in
24755 *,$lang_alias,*) ;;
24757 for i in $subdir_requires; do
24758 test -f "${srcdir}/$i/config-lang.in" && continue
24766 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24767 if test -f $srcdir/$gcc_subdir/lang.opt; then
24768 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24770 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24771 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24773 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24774 then all_lang_makefiles="$gcc_subdir/Makefile"
24776 all_languages="$all_languages $language"
24777 all_compilers="$all_compilers $compilers"
24778 all_outputs="$all_outputs $outputs"
24779 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24780 case ",$enable_languages," in
24783 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
24792 # Pick up gtfiles for c
24794 . ${srcdir}/c-config-lang.in
24795 all_gtfiles="$all_gtfiles [c] $gtfiles"
24798 for language in $all_selected_languages
24800 check_languages="$check_languages check-$language"
24803 # We link each language in with a set of hooks, reached indirectly via
24804 # lang.${target}. Only do so for selected languages.
24808 target_list="all.cross start.encap rest.encap tags \
24809 install-common install-man install-info install-pdf dvi pdf \
24810 html uninstall info man srcextra srcman srcinfo \
24811 mostlyclean clean distclean maintainer-clean install-plugin"
24813 for t in $target_list
24816 for lang in $all_selected_languages
24820 echo "lang.$t: $x" >> Make-hooks
24829 echo "dir ." > .gdbinit
24830 echo "dir ${srcdir}" >> .gdbinit
24831 if test x$gdb_needs_out_file_path = xyes
24833 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24835 if test "x$subdirs" != x; then
24838 echo "dir ${srcdir}/$s" >> .gdbinit
24841 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24843 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24847 # Find a directory in which to install a shared libgcc.
24849 # Check whether --enable-version-specific-runtime-libs was given.
24850 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24851 enableval=$enable_version_specific_runtime_libs;
24856 # Check whether --with-slibdir was given.
24857 if test "${with_slibdir+set}" = set; then :
24858 withval=$with_slibdir; slibdir="$with_slibdir"
24860 if test "${enable_version_specific_runtime_libs+set}" = set; then
24861 slibdir='$(libsubdir)'
24862 elif test "$host" != "$target"; then
24863 slibdir='$(build_tooldir)/lib'
24865 slibdir='$(libdir)'
24871 # Substitute configuration variables
24934 if test x${build} = x${host} ; then
24935 if test x${host} = x${target} ; then
24936 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24938 echo "Links are now set up to build a cross-compiler" 1>&2
24939 echo " from ${host} to ${target}." 1>&2
24942 if test x${host} = x${target} ; then
24943 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24944 echo " for ${target}." 1>&2
24946 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24947 echo " from ${host} to ${target}." 1>&2
24959 if test "x${CLOOGLIBS}" != "x" ; then
24961 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24967 if test "x${LIBELFLIBS}" != "x" ; then
24969 $as_echo "#define HAVE_libelf 1" >>confdefs.h
24973 # Check for plugin support
24974 # Check whether --enable-plugin was given.
24975 if test "${enable_plugin+set}" = set; then :
24976 enableval=$enable_plugin; enable_plugin=$enableval
24978 enable_plugin=yes; default_plugin=yes
24983 if test x"$enable_plugin" = x"yes"; then
24984 # Check that the host supports -rdynamic and -ldl
24987 saved_LDFLAGS="$LDFLAGS"
24992 LDFLAGS="$LDFLAGS -rdynamic"
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24994 $as_echo_n "checking for -rdynamic... " >&6; }
24995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24996 /* end confdefs.h. */
25006 if ac_fn_c_try_link "$LINENO"; then :
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25008 $as_echo "yes" >&6; }; have_rdynamic=yes
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25011 $as_echo "no" >&6; }
25013 rm -f core conftest.err conftest.$ac_objext \
25014 conftest$ac_exeext conftest.$ac_ext
25015 if test x"$have_rdynamic" = x"yes" ; then
25016 pluginlibs="-rdynamic"
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25021 $as_echo_n "checking for library containing dlopen... " >&6; }
25022 if test "${ac_cv_search_dlopen+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25025 ac_func_search_save_LIBS=$LIBS
25026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25027 /* end confdefs.h. */
25029 /* Override any GCC internal prototype to avoid an error.
25030 Use char because int might match the return type of a GCC
25031 builtin and then its argument prototype would still apply. */
25044 for ac_lib in '' dl; do
25045 if test -z "$ac_lib"; then
25046 ac_res="none required"
25049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25051 if ac_fn_c_try_link "$LINENO"; then :
25052 ac_cv_search_dlopen=$ac_res
25054 rm -f core conftest.err conftest.$ac_objext \
25056 if test "${ac_cv_search_dlopen+set}" = set; then :
25060 if test "${ac_cv_search_dlopen+set}" = set; then :
25063 ac_cv_search_dlopen=no
25065 rm conftest.$ac_ext
25066 LIBS=$ac_func_search_save_LIBS
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25069 $as_echo "$ac_cv_search_dlopen" >&6; }
25070 ac_res=$ac_cv_search_dlopen
25071 if test "$ac_res" != no; then :
25072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25076 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25077 pluginlibs="$pluginlibs -ldl"
25080 # Check that we can build shared objects with -fPIC -shared
25081 LDFLAGS="$LDFLAGS -fPIC -shared"
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25083 $as_echo_n "checking for -fPIC -shared... " >&6; }
25084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25085 /* end confdefs.h. */
25095 if ac_fn_c_try_link "$LINENO"; then :
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25097 $as_echo "yes" >&6; }; have_pic_shared=yes
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25100 $as_echo "no" >&6; }; have_pic_shared=no
25102 rm -f core conftest.err conftest.$ac_objext \
25103 conftest$ac_exeext conftest.$ac_ext
25104 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25109 # If plugin support had been requested but not available, fail.
25110 if test x"$enable_plugin" = x"no" ; then
25111 if test x"$default_plugin" != x"yes"; then
25113 Building GCC with plugin support requires a host that supports
25114 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25118 LDFLAGS="$saved_LDFLAGS"
25124 if test x"$enable_plugin" = x"yes"; then
25126 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25130 # Configure the subdirectories
25131 # AC_CONFIG_SUBDIRS($subdirs)
25133 # Create the Makefile
25134 # and configure language subdirectories
25135 ac_config_files="$ac_config_files $all_outputs"
25138 ac_config_commands="$ac_config_commands default"
25140 cat >confcache <<\_ACEOF
25141 # This file is a shell script that caches the results of configure
25142 # tests run on this system so they can be shared between configure
25143 # scripts and configure runs, see configure's option --config-cache.
25144 # It is not useful on other systems. If it contains results you don't
25145 # want to keep, you may remove or edit it.
25147 # config.status only pays attention to the cache file if you give it
25148 # the --recheck option to rerun configure.
25150 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25151 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25152 # following values.
25156 # The following way of writing the cache mishandles newlines in values,
25157 # but we know of no workaround that is simple, portable, and efficient.
25158 # So, we kill variables containing newlines.
25159 # Ultrix sh set writes to stderr and can't be redirected directly,
25160 # and sets the high bit in the cache file unless we assign to the vars.
25162 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25163 eval ac_val=\$$ac_var
25167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25171 _ | IFS | as_nl) ;; #(
25172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25173 *) { eval $ac_var=; unset $ac_var;} ;;
25179 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25180 *${as_nl}ac_space=\ *)
25181 # `set' does not quote correctly, so add quotes: double-quote
25182 # substitution turns \\\\ into \\, and sed turns \\ into \.
25185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25188 # `set' quotes correctly as required by POSIX, so do not add quotes.
25189 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25198 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25200 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25202 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25203 if test -w "$cache_file"; then
25204 test "x$cache_file" != "x/dev/null" &&
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25206 $as_echo "$as_me: updating cache $cache_file" >&6;}
25207 cat confcache >$cache_file
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25210 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25215 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25216 # Let make expand exec_prefix.
25217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25219 DEFS=-DHAVE_CONFIG_H
25223 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25224 # 1. Remove the extension, and $U if already installed.
25225 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25226 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25227 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25228 # will be set to the directory where LIBOBJS objects are built.
25229 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25230 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25232 LIBOBJS=$ac_libobjs
25234 LTLIBOBJS=$ac_ltlibobjs
25239 : ${CONFIG_STATUS=./config.status}
25241 ac_clean_files_save=$ac_clean_files
25242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25244 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25246 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25248 # Generated by $as_me.
25249 # Run this file to recreate the current configuration.
25250 # Compiler output produced by configure, useful for debugging
25251 # configure, is in config.log if it exists.
25254 ac_cs_recheck=false
25257 SHELL=\${CONFIG_SHELL-$SHELL}
25260 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25261 ## -------------------- ##
25262 ## M4sh Initialization. ##
25263 ## -------------------- ##
25265 # Be more Bourne compatible
25266 DUALCASE=1; export DUALCASE # for MKS sh
25267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25270 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25271 # is contrary to our usage. Disable this feature.
25272 alias -g '${1+"$@"}'='"$@"'
25273 setopt NO_GLOB_SUBST
25275 case `(set -o) 2>/dev/null` in #(
25287 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25288 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25291 # Prefer a ksh shell builtin over an external printf program on Solaris,
25292 # but without wasting forks for bash or zsh.
25293 if test -z "$BASH_VERSION$ZSH_VERSION" \
25294 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25295 as_echo='print -r --'
25296 as_echo_n='print -rn --'
25297 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25298 as_echo='printf %s\n'
25299 as_echo_n='printf %s'
25301 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25302 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25303 as_echo_n='/usr/ucb/echo -n'
25305 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25306 as_echo_n_body='eval
25310 expr "X$arg" : "X\\(.*\\)$as_nl";
25311 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25313 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25315 export as_echo_n_body
25316 as_echo_n='sh -c $as_echo_n_body as_echo'
25318 export as_echo_body
25319 as_echo='sh -c $as_echo_body as_echo'
25322 # The user is always right.
25323 if test "${PATH_SEPARATOR+set}" != set; then
25325 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25326 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25333 # We need space, tab and new line, in precisely that order. Quoting is
25334 # there to prevent editors from complaining about space-tab.
25335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25336 # splitting by setting IFS to empty value.)
25339 # Find who we are. Look in the path if we contain no directory separator.
25341 *[\\/]* ) as_myself=$0 ;;
25342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25343 for as_dir in $PATH
25346 test -z "$as_dir" && as_dir=.
25347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25353 # We did not find ourselves, most probably we were run as `sh COMMAND'
25354 # in which case we are not to be found in the path.
25355 if test "x$as_myself" = x; then
25358 if test ! -f "$as_myself"; then
25359 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25363 # Unset variables that we do not need and which cause bugs (e.g. in
25364 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25365 # suppresses any "Segmentation fault" message there. '((' could
25366 # trigger a bug in pdksh 5.2.14.
25367 for as_var in BASH_ENV ENV MAIL MAILPATH
25368 do eval test x\${$as_var+set} = xset \
25369 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25385 # as_fn_error ERROR [LINENO LOG_FD]
25386 # ---------------------------------
25387 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25388 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25389 # script with status $?, using 1 if that was 0.
25392 as_status=$?; test $as_status -eq 0 && as_status=1
25394 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25395 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25397 $as_echo "$as_me: error: $1" >&2
25398 as_fn_exit $as_status
25402 # as_fn_set_status STATUS
25403 # -----------------------
25404 # Set $? to STATUS, without forking.
25405 as_fn_set_status ()
25408 } # as_fn_set_status
25410 # as_fn_exit STATUS
25411 # -----------------
25412 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25416 as_fn_set_status $1
25422 # Portably unset VAR.
25425 { eval $1=; unset $1;}
25427 as_unset=as_fn_unset
25428 # as_fn_append VAR VALUE
25429 # ----------------------
25430 # Append the text in VALUE to the end of the definition contained in VAR. Take
25431 # advantage of any shell optimizations that allow amortized linear growth over
25432 # repeated appends, instead of the typical quadratic growth present in naive
25434 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25435 eval 'as_fn_append ()
25446 # as_fn_arith ARG...
25447 # ------------------
25448 # Perform arithmetic evaluation on the ARGs, and store the result in the
25449 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25450 # must be portable across $(()) and expr.
25451 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25452 eval 'as_fn_arith ()
25459 as_val=`expr "$@" || test $? -eq 1`
25464 if expr a : '\(a\)' >/dev/null 2>&1 &&
25465 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25471 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25472 as_basename=basename
25477 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25483 as_me=`$as_basename -- "$0" ||
25484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25485 X"$0" : 'X\(//\)$' \| \
25486 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25488 sed '/^.*\/\([^/][^/]*\)\/*$/{
25502 # Avoid depending upon Character Ranges.
25503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25506 as_cr_digits='0123456789'
25507 as_cr_alnum=$as_cr_Letters$as_cr_digits
25509 ECHO_C= ECHO_N= ECHO_T=
25510 case `echo -n x` in #(((((
25512 case `echo 'xy\c'` in
25513 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25522 rm -f conf$$ conf$$.exe conf$$.file
25523 if test -d conf$$.dir; then
25524 rm -f conf$$.dir/conf$$.file
25527 mkdir conf$$.dir 2>/dev/null
25529 if (echo >conf$$.file) 2>/dev/null; then
25530 if ln -s conf$$.file conf$$ 2>/dev/null; then
25532 # ... but there are two gotchas:
25533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25535 # In both cases, we have to default to `cp -p'.
25536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25538 elif ln conf$$.file conf$$ 2>/dev/null; then
25546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25547 rmdir conf$$.dir 2>/dev/null
25552 # Create "$as_dir" as a directory, including parents if necessary.
25557 -*) as_dir=./$as_dir;;
25559 test -d "$as_dir" || eval $as_mkdir_p || {
25563 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25564 *) as_qdir=$as_dir;;
25566 as_dirs="'$as_qdir' $as_dirs"
25567 as_dir=`$as_dirname -- "$as_dir" ||
25568 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25569 X"$as_dir" : 'X\(//\)[^/]' \| \
25570 X"$as_dir" : 'X\(//\)$' \| \
25571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25572 $as_echo X"$as_dir" |
25573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25577 /^X\(\/\/\)[^/].*/{
25590 test -d "$as_dir" && break
25592 test -z "$as_dirs" || eval "mkdir $as_dirs"
25593 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25597 if mkdir -p . 2>/dev/null; then
25598 as_mkdir_p='mkdir -p "$as_dir"'
25600 test -d ./-p && rmdir ./-p
25604 if test -x / >/dev/null 2>&1; then
25605 as_test_x='test -x'
25607 if ls -dL / >/dev/null 2>&1; then
25614 if test -d "$1"; then
25620 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25621 ???[sx]*):;;*)false;;esac;fi
25625 as_executable_p=$as_test_x
25627 # Sed expression to map a string onto a valid CPP name.
25628 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25630 # Sed expression to map a string onto a valid variable name.
25631 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25635 ## ----------------------------------- ##
25636 ## Main body of $CONFIG_STATUS script. ##
25637 ## ----------------------------------- ##
25639 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25642 # Save the log message, to keep $0 and so on meaningful, and to
25643 # report actual input values of CONFIG_FILES etc. instead of their
25644 # values after options handling.
25646 This file was extended by $as_me, which was
25647 generated by GNU Autoconf 2.64. Invocation command line was
25649 CONFIG_FILES = $CONFIG_FILES
25650 CONFIG_HEADERS = $CONFIG_HEADERS
25651 CONFIG_LINKS = $CONFIG_LINKS
25652 CONFIG_COMMANDS = $CONFIG_COMMANDS
25655 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25660 case $ac_config_files in *"
25661 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25664 case $ac_config_headers in *"
25665 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25670 # Files that config.status was made for.
25671 config_files="$ac_config_files"
25672 config_headers="$ac_config_headers"
25673 config_commands="$ac_config_commands"
25677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25679 \`$as_me' instantiates files and other configuration actions
25680 from templates according to the current configuration. Unless the files
25681 and actions are specified as TAGs, all are instantiated by default.
25683 Usage: $0 [OPTION]... [TAG]...
25685 -h, --help print this help, then exit
25686 -V, --version print version number and configuration settings, then exit
25687 -q, --quiet, --silent
25688 do not print progress messages
25689 -d, --debug don't remove temporary files
25690 --recheck update $as_me by reconfiguring in the same conditions
25691 --file=FILE[:TEMPLATE]
25692 instantiate the configuration file FILE
25693 --header=FILE[:TEMPLATE]
25694 instantiate the configuration header FILE
25696 Configuration files:
25699 Configuration headers:
25702 Configuration commands:
25705 Report bugs to the package provider."
25708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25711 configured by $0, generated by GNU Autoconf 2.64,
25712 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25714 Copyright (C) 2009 Free Software Foundation, Inc.
25715 This config.status script is free software; the Free Software Foundation
25716 gives unlimited permission to copy, distribute and modify it."
25721 test -n "\$AWK" || AWK=awk
25724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25725 # The default lists apply if the user does not specify any file.
25731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25732 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25743 # Handling of the options.
25744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25746 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25747 $as_echo "$ac_cs_version"; exit ;;
25748 --debug | --debu | --deb | --de | --d | -d )
25750 --file | --fil | --fi | --f )
25753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25755 as_fn_append CONFIG_FILES " '$ac_optarg'"
25756 ac_need_defaults=false;;
25757 --header | --heade | --head | --hea )
25760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25762 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25763 ac_need_defaults=false;;
25765 # Conflict between --help and --header
25766 as_fn_error "ambiguous option: \`$1'
25767 Try \`$0 --help' for more information.";;
25768 --help | --hel | -h )
25769 $as_echo "$ac_cs_usage"; exit ;;
25770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25774 # This is an error.
25775 -*) as_fn_error "unrecognized option: \`$1'
25776 Try \`$0 --help' for more information." ;;
25778 *) as_fn_append ac_config_targets " $1"
25779 ac_need_defaults=false ;;
25785 ac_configure_extra_args=
25787 if $ac_cs_silent; then
25789 ac_configure_extra_args="$ac_configure_extra_args --silent"
25793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25794 if \$ac_cs_recheck; then
25795 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25798 CONFIG_SHELL='$SHELL'
25799 export CONFIG_SHELL
25804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25809 ## Running $as_me. ##
25815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25825 # Handling of arguments.
25826 for ac_config_target in $ac_config_targets
25828 case $ac_config_target in
25829 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25830 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25831 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25832 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25833 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25834 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25836 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25841 # If the user did not use the arguments to specify the items to instantiate,
25842 # then the envvar interface is used. Set only those that are not.
25843 # We use the long form for the default assignment because of an extremely
25844 # bizarre bug on SunOS 4.1.3.
25845 if $ac_need_defaults; then
25846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25851 # Have a temporary directory for convenience. Make it in the build tree
25852 # simply because there is no reason against having it here, and in addition,
25853 # creating and moving files from /tmp can sometimes cause problems.
25854 # Hook for its removal unless debugging.
25855 # Note that there is a small window in which the directory will not be cleaned:
25856 # after its creation but before its name has been assigned to `$tmp'.
25860 trap 'exit_status=$?
25861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25863 trap 'as_fn_exit 1' 1 2 13 15
25865 # Create a (secure) tmp directory for tmp files.
25868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25869 test -n "$tmp" && test -d "$tmp"
25872 tmp=./conf$$-$RANDOM
25873 (umask 077 && mkdir "$tmp")
25874 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25876 # Set up the scripts for CONFIG_FILES section.
25877 # No need to generate them if there are no CONFIG_FILES.
25878 # This happens for instance with `./config.status config.h'.
25879 if test -n "$CONFIG_FILES"; then
25881 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25882 ac_cs_awk_getline=:
25883 ac_cs_awk_pipe_init=
25884 ac_cs_awk_read_file='
25885 while ((getline aline < (F[key])) > 0)
25888 ac_cs_awk_pipe_fini=
25890 ac_cs_awk_getline=false
25891 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25892 ac_cs_awk_read_file='
25894 print "cat " F[key] " &&"
25895 '$ac_cs_awk_pipe_init
25896 # The final `:' finishes the AND list.
25897 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25899 ac_cr=`echo X | tr X '\015'`
25900 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25901 # But we know of no other shell where ac_cr would be empty at this
25902 # point, so we can use a bashism as a fallback.
25903 if test "x$ac_cr" = x; then
25904 eval ac_cr=\$\'\\r\'
25906 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25907 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25910 ac_cs_awk_cr=$ac_cr
25913 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25916 # Create commands to substitute file output variables.
25918 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25919 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25920 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25923 } >conf$$files.sh &&
25924 . ./conf$$files.sh ||
25925 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25926 rm -f conf$$files.sh
25929 echo "cat >conf$$subs.awk <<_ACEOF" &&
25930 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25932 } >conf$$subs.sh ||
25933 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25934 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25936 for ac_last_try in false false false false false :; do
25937 . ./conf$$subs.sh ||
25938 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25940 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25941 if test $ac_delim_n = $ac_delim_num; then
25943 elif $ac_last_try; then
25944 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25949 rm -f conf$$subs.sh
25951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25952 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25956 s/^/S["/; s/!.*/"]=/
25966 s/\(.\{148\}\).*/\1/
25968 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25973 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25980 s/\(.\{148\}\).*/\1/
25982 s/["\\]/\\&/g; s/^/"/; s/$/"/
25986 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25991 ' <conf$$subs.awk | sed '
25996 ' >>$CONFIG_STATUS || ac_write_fail=1
25997 rm -f conf$$subs.awk
25998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26000 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26001 for (key in S) S_is_set[key] = 1
26003 \$ac_cs_awk_pipe_init
26007 nfields = split(line, field, "@")
26009 len = length(field[1])
26010 for (i = 2; i < nfields; i++) {
26012 keylen = length(key)
26013 if (S_is_set[key]) {
26015 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26016 len += length(value) + length(field[++i])
26021 if (nfields == 3 && !substed) {
26023 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26024 \$ac_cs_awk_read_file
26030 \$ac_cs_awk_pipe_fini
26033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26034 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26035 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26038 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26039 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26042 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26043 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26044 # trailing colons and then remove the whole line if VPATH becomes empty
26045 # (actually we leave an empty line to preserve line numbers).
26046 if test "x$srcdir" = x.; then
26047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26048 s/:*\$(srcdir):*/:/
26049 s/:*\${srcdir}:*/:/
26051 s/^\([^=]*=[ ]*\):*/\1/
26057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26058 fi # test -n "$CONFIG_FILES"
26060 # Set up the scripts for CONFIG_HEADERS section.
26061 # No need to generate them if there are no CONFIG_HEADERS.
26062 # This happens for instance with `./config.status Makefile'.
26063 if test -n "$CONFIG_HEADERS"; then
26064 cat >"$tmp/defines.awk" <<\_ACAWK ||
26068 # Transform confdefs.h into an awk script `defines.awk', embedded as
26069 # here-document in config.status, that substitutes the proper values into
26070 # config.h.in to produce config.h.
26072 # Create a delimiter string that does not exist in confdefs.h, to ease
26073 # handling of long lines.
26075 for ac_last_try in false false :; do
26076 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26077 if test -z "$ac_t"; then
26079 elif $ac_last_try; then
26080 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26086 # For the awk script, D is an array of macro values keyed by name,
26087 # likewise P contains macro parameters if any. Preserve backslash
26088 # newline sequences.
26090 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26092 s/.\{148\}/&'"$ac_delim"'/g
26095 s/^[ ]*#[ ]*define[ ][ ]*/ /
26102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26104 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26108 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26109 D["\1"]=" \3\\\\\\n"\\/p
26111 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26116 s/.\{148\}/&'"$ac_delim"'/g
26121 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26124 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26126 ' <confdefs.h | sed '
26127 s/'"$ac_delim"'/"\\\
26128 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26131 for (key in D) D_is_set[key] = 1
26134 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26136 split(line, arg, " ")
26137 if (arg[1] == "#") {
26141 defundef = substr(arg[1], 2)
26144 split(mac1, mac2, "(") #)
26146 prefix = substr(line, 1, index(line, defundef) - 1)
26147 if (D_is_set[macro]) {
26148 # Preserve the white space surrounding the "#".
26149 print prefix "define", macro P[macro] D[macro]
26152 # Replace #undef with comments. This is necessary, for example,
26153 # in the case of _POSIX_SOURCE, which is predefined and required
26154 # on some systems where configure will not decide to define it.
26155 if (defundef == "undef") {
26156 print "/*", prefix defundef, macro, "*/"
26164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26165 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26166 fi # test -n "$CONFIG_HEADERS"
26169 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26174 :[FHLC]) ac_mode=$ac_tag; continue;;
26176 case $ac_mode$ac_tag in
26178 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26179 :[FH]-) ac_tag=-:-;;
26180 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26197 -) ac_f="$tmp/stdin";;
26198 *) # Look for the file first in the build tree, then in the source tree
26199 # (if the path is not absolute). The absolute path cannot be DOS-style,
26200 # because $ac_f cannot contain `:'.
26204 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26206 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26208 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26209 as_fn_append ac_file_inputs " '$ac_f'"
26212 # Let's still pretend it is `configure' which instantiates (i.e., don't
26213 # use $as_me), people would be surprised to read:
26214 # /* config.h. Generated by config.status. */
26215 configure_input='Generated from '`
26216 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26218 if test x"$ac_file" != x-; then
26219 configure_input="$ac_file. $configure_input"
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26221 $as_echo "$as_me: creating $ac_file" >&6;}
26223 # Neutralize special characters interpreted by sed in replacement strings.
26224 case $configure_input in #(
26225 *\&* | *\|* | *\\* )
26226 ac_sed_conf_input=`$as_echo "$configure_input" |
26227 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26228 *) ac_sed_conf_input=$configure_input;;
26232 *:-:* | *:-) cat >"$tmp/stdin" \
26233 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26238 ac_dir=`$as_dirname -- "$ac_file" ||
26239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240 X"$ac_file" : 'X\(//\)[^/]' \| \
26241 X"$ac_file" : 'X\(//\)$' \| \
26242 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26243 $as_echo X"$ac_file" |
26244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26248 /^X\(\/\/\)[^/].*/{
26261 as_dir="$ac_dir"; as_fn_mkdir_p
26265 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26267 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26268 # A ".." for each directory in $ac_dir_suffix.
26269 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26270 case $ac_top_builddir_sub in
26271 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26272 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26275 ac_abs_top_builddir=$ac_pwd
26276 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26277 # for backward compatibility:
26278 ac_top_builddir=$ac_top_build_prefix
26281 .) # We are building in place.
26283 ac_top_srcdir=$ac_top_builddir_sub
26284 ac_abs_top_srcdir=$ac_pwd ;;
26285 [\\/]* | ?:[\\/]* ) # Absolute name.
26286 ac_srcdir=$srcdir$ac_dir_suffix;
26287 ac_top_srcdir=$srcdir
26288 ac_abs_top_srcdir=$srcdir ;;
26289 *) # Relative name.
26290 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26291 ac_top_srcdir=$ac_top_build_prefix$srcdir
26292 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26294 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26306 # If the template does not know about datarootdir, expand it.
26307 # FIXME: This hack should be removed a few years after 2.60.
26308 ac_datarootdir_hack=; ac_datarootdir_seen=
26319 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26320 *datarootdir*) ac_datarootdir_seen=yes;;
26321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26323 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26326 ac_datarootdir_hack='
26327 s&@datadir@&$datadir&g
26328 s&@docdir@&$docdir&g
26329 s&@infodir@&$infodir&g
26330 s&@localedir@&$localedir&g
26331 s&@mandir@&$mandir&g
26332 s&\\\${datarootdir}&$datarootdir&g' ;;
26336 # Neutralize VPATH when `$srcdir' = `.'.
26337 # Shell code in configure.ac might set extrasub.
26338 # FIXME: do we really want to maintain this feature?
26339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26340 ac_sed_extra="$ac_vpsub
26343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26346 s|@configure_input@|$ac_sed_conf_input|;t t
26347 s&@top_builddir@&$ac_top_builddir_sub&;t t
26348 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26349 s&@srcdir@&$ac_srcdir&;t t
26350 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26351 s&@top_srcdir@&$ac_top_srcdir&;t t
26352 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26353 s&@builddir@&$ac_builddir&;t t
26354 s&@abs_builddir@&$ac_abs_builddir&;t t
26355 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26356 $ac_datarootdir_hack
26358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26359 if $ac_cs_awk_getline; then
26360 $AWK -f "$tmp/subs.awk"
26362 $AWK -f "$tmp/subs.awk" | $SHELL
26364 || as_fn_error "could not create $ac_file" "$LINENO" 5
26366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26367 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26370 which seems to be undefined. Please make sure it is defined." >&5
26371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26372 which seems to be undefined. Please make sure it is defined." >&2;}
26376 -) cat "$tmp/out" && rm -f "$tmp/out";;
26377 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26379 || as_fn_error "could not create $ac_file" "$LINENO" 5
26385 if test x"$ac_file" != x-; then
26387 $as_echo "/* $configure_input */" \
26388 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26389 } >"$tmp/config.h" \
26390 || as_fn_error "could not create $ac_file" "$LINENO" 5
26391 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26393 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26396 mv "$tmp/config.h" "$ac_file" \
26397 || as_fn_error "could not create $ac_file" "$LINENO" 5
26400 $as_echo "/* $configure_input */" \
26401 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26402 || as_fn_error "could not create -" "$LINENO" 5
26406 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26407 $as_echo "$as_me: executing $ac_file commands" >&6;}
26412 case $ac_file$ac_mode in
26413 "as":F) chmod +x as ;;
26414 "collect-ld":F) chmod +x collect-ld ;;
26415 "nm":F) chmod +x nm ;;
26417 case ${CONFIG_HEADERS} in
26418 *auto-host.h:config.in*)
26421 # Make sure all the subdirs exist.
26422 for d in $subdirs doc build
26424 test -d $d || mkdir $d
26434 ac_clean_files=$ac_clean_files_save
26436 test $ac_write_fail = 0 ||
26437 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26440 # configure is writing to config.log, and then calls config.status.
26441 # config.status does its own redirection, appending to config.log.
26442 # Unfortunately, on DOS this fails, as config.log is still kept open
26443 # by configure, so config.status won't be able to write to it; its
26444 # output is simply discarded. So we exec the FD to /dev/null,
26445 # effectively closing config.log, so it can be properly (re)opened and
26446 # appended to by config.status. When coming back to configure, we
26447 # need to make the FD available again.
26448 if test "$no_create" != yes; then
26450 ac_config_status_args=
26451 test "$silent" = yes &&
26452 ac_config_status_args="$ac_config_status_args --quiet"
26454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26457 # would make configure fail if this is the last instruction.
26458 $ac_cs_success || as_fn_exit $?
26460 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26462 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}